1
--- binutils-2.11.90.0.19.orig/ld/Makefile.am
2
+++ binutils-2.11.90.0.19/ld/Makefile.am
4
# We put the scripts in the directory $(scriptdir)/ldscripts.
5
# We can't put the scripts in $(datadir) because the SEARCH_DIR
6
# directives need to be different for native and cross linkers.
7
-scriptdir = $(tooldir)/lib
11
EMULATION_OFILES = @EMULATION_OFILES@
12
--- binutils-2.11.90.0.19.orig/ld/Makefile.in
13
+++ binutils-2.11.90.0.19/ld/Makefile.in
15
# We put the scripts in the directory $(scriptdir)/ldscripts.
16
# We can't put the scripts in $(datadir) because the SEARCH_DIR
17
# directives need to be different for native and cross linkers.
18
-scriptdir = $(tooldir)/lib
19
+scriptdir = $(libdir)
22
EMULATION_OFILES = @EMULATION_OFILES@
23
diff -urN binutils-2.11.90.0.27/gprof/gprof.texi binutils-2.11.90.0.27.new/gprof/gprof.texi
24
--- binutils-2.11.90.0.27/gprof/gprof.texi Tue Jun 19 14:57:58 2001
25
+++ binutils-2.11.90.0.27.new/gprof/gprof.texi Mon Aug 27 10:27:23 2001
27
If more than one profile file is specified, the @code{gprof}
28
output shows the sum of the profile information in the given profile files.
30
+If you use gcc 2.95.x or 3.0 to compile your binaries, you may need
31
+to add the @samp{-fprofile-arcs} to the compile command line in order
32
+for the call graphs to be properly stored in gmon.out.
34
@code{Gprof} calculates the amount of time spent in each routine.
35
Next, these times are propagated along the edges of the call graph.
36
Cycles are discovered, and calls into a cycle are made to share the time
38
to do the linking, simply specify @samp{-pg} in addition to your usual
39
options. The same option, @samp{-pg}, alters either compilation or linking
40
to do what is necessary for profiling. Here are examples:
42
+If you use gcc 2.95.x or 3.0.x, you may need to add the
43
+@samp{-fprofile-arcs} option to the compile line along with @samp{-pg}
44
+in order to allow the call-graphs to be properly included in the gmon.out
48
cc -g -c myprog.c utils.c -pg
49
diff -urN binutils-2.11.92.0.5/bfd/opncls.c binutils-2.11.92.0.5.new/bfd/opncls.c
50
--- binutils-2.11.92.0.5/bfd/opncls.c Mon Oct 1 18:25:21 2001
51
+++ binutils-2.11.92.0.5.new/bfd/opncls.c Sat Oct 13 11:26:59 2001
55
const bfd_target *target_vec;
58
+ if (stat (filename, &s) == 0)
59
+ if (S_ISDIR(s.st_mode)) {
60
+ bfd_set_error (bfd_error_file_not_recognized);
64
nbfd = _bfd_new_bfd ();
66
diff -urN binutils-2.11.92.0.12.3/opcodes/i386-dis.c binutils-2.11.92.0.12.3.new/opcodes/i386-dis.c
67
--- binutils-2.11.92.0.12.3/opcodes/i386-dis.c Fri Nov 16 17:05:55 2001
68
+++ binutils-2.11.92.0.12.3.new/opcodes/i386-dis.c Mon Dec 31 15:55:04 2001
70
* The function returns the length of this instruction in bytes.
73
-static char intel_syntax;
74
+static signed char intel_syntax;
75
static char open_char;
76
static char close_char;
77
static char separator_char;
78
diff -urN binutils-2.12.90.0.12/ld/emultempl/elf32.em binutils-2.12.90.0.12.new/ld/emultempl/elf32.em
79
--- binutils-2.12.90.0.12/ld/emultempl/elf32.em Wed Jun 19 00:41:59 2002
80
+++ binutils-2.12.90.0.12.new/ld/emultempl/elf32.em Wed Jun 26 10:00:26 2002
82
&& command_line.rpath == NULL)
84
lib_path = (const char *) getenv ("LD_RUN_PATH");
85
+ if ((lib_path) && (strlen (lib_path) == 0))
87
if (gld${EMULATION_NAME}_search_needed (lib_path, l->name,
91
rpath = command_line.rpath;
93
rpath = (const char *) getenv ("LD_RUN_PATH");
94
+ if ((rpath) && (strlen (rpath) == 0))
96
if (! (bfd_elf_size_dynamic_sections
97
(output_bfd, command_line.soname, rpath,
98
command_line.filter_shlib,
99
diff -urN binutils-2.13.90.0.18/gprof/gprof.texi binutils-2.13.90.0.18.new/gprof/gprof.texi
100
--- binutils-2.13.90.0.18/gprof/gprof.texi 2003-02-02 18:29:09.000000000 -0500
101
+++ binutils-2.13.90.0.18.new/gprof/gprof.texi 2003-02-02 18:28:37.000000000 -0500
106
-monitor(3), profil(2), cc(1), prof(1), and the Info entry for @file{gprof}.
107
+profil(2), cc(1), prof(1), and the Info entry for @file{gprof}.
109
``An Execution Profiler for Modular Programs'',
110
by S. Graham, P. Kessler, M. McKusick;
111
--- binutils-2.13.90.0.18/bfd/elf64-alpha.c 2003-01-21 19:21:32.000000000 +0100
112
+++ binutils-2.13.90.0.18-modif/bfd/elf64-alpha.c 2003-04-11 01:24:26.000000000 +0200
113
@@ -4184,9 +4184,12 @@
115
loc = srel->contents;
116
loc += srel->reloc_count++ * sizeof (Elf64_External_Rela);
117
- bfd_elf64_swap_reloca_out (abfd, &outrel, loc);
118
- BFD_ASSERT (sizeof (Elf64_External_Rela) * srel->reloc_count
119
- <= srel->_cooked_size);
122
+ bfd_elf64_swap_reloca_out (abfd, &outrel, loc);
123
+ BFD_ASSERT (sizeof (Elf64_External_Rela) * srel->reloc_count
124
+ <= srel->_cooked_size);
128
/* Relocate an Alpha ELF section for a relocatable link.
129
2003-05-23 H.J. Lu <hongjiu.lu@intel.com>
131
* ltmain.sh: Make symlink for shared library if needed.
135
2003-07-14 H.J. Lu <hongjiu.lu@intel.com>
137
* Makefile.in: Regenerated.
139
2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
141
* Makefile.in: Regenerated.
143
2003-05-23 H.J. Lu <hongjiu.lu@intel.com>
145
* Makefile.am (libopcodes_la_LIBADD): Use "-L../bfd -lbfd"
146
instead of "../bfd/libbfd.la".
147
* Makefile.in: Regenerated.
149
--- binutils/ltmain.sh.dso 2002-03-22 00:16:20.000000000 -0800
150
+++ binutils/ltmain.sh 2003-07-14 12:50:17.000000000 -0700
151
@@ -4413,6 +4413,10 @@ relink_command=\"$relink_command\""
152
# LD_LIBRARY_PATH before the program is installed.
153
$show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
154
$run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
155
+ if test -n "$linkname"; then
156
+ $show "(cd $output_objdir && $rm ../$linkname && $LN_S $output_objdir/$linkname ../$linkname)"
157
+ $run eval '(cd $output_objdir && $rm ../$linkname && $LN_S $output_objdir/$linkname ../$linkname)' || exit $?