]>
Commit | Line | Data |
---|---|---|
cd1a2927 MT |
1 | --- binutils-2.11.90.0.19.orig/ld/Makefile.am |
2 | +++ binutils-2.11.90.0.19/ld/Makefile.am | |
3 | @@ -19,7 +19,7 @@ | |
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 | |
8 | +scriptdir = $(libdir) | |
9 | ||
10 | EMUL = @EMUL@ | |
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 | |
14 | @@ -123,7 +123,7 @@ | |
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) | |
20 | ||
21 | EMUL = @EMUL@ | |
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 | |
26 | @@ -137,6 +137,10 @@ | |
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. | |
29 | ||
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. | |
33 | + | |
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 | |
37 | @@ -266,6 +270,11 @@ | |
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: | |
41 | + | |
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 | |
45 | +file. | |
46 | ||
47 | @example | |
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 | |
52 | @@ -127,6 +127,13 @@ | |
53 | { | |
54 | bfd *nbfd; | |
55 | const bfd_target *target_vec; | |
56 | + struct stat s; | |
57 | + | |
58 | + if (stat (filename, &s) == 0) | |
59 | + if (S_ISDIR(s.st_mode)) { | |
60 | + bfd_set_error (bfd_error_file_not_recognized); | |
61 | + return NULL; | |
62 | + } | |
63 | ||
64 | nbfd = _bfd_new_bfd (); | |
65 | if (nbfd == NULL) | |
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 | |
69 | @@ -1830,7 +1830,7 @@ | |
70 | * The function returns the length of this instruction in bytes. | |
71 | */ | |
72 | ||
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 | |
81 | @@ -692,6 +692,8 @@ | |
82 | && command_line.rpath == NULL) | |
83 | { | |
84 | lib_path = (const char *) getenv ("LD_RUN_PATH"); | |
85 | + if ((lib_path) && (strlen (lib_path) == 0)) | |
86 | + lib_path = NULL; | |
87 | if (gld${EMULATION_NAME}_search_needed (lib_path, l->name, | |
88 | force)) | |
89 | break; | |
90 | @@ -871,6 +873,8 @@ | |
91 | rpath = command_line.rpath; | |
92 | if (rpath == NULL) | |
93 | rpath = (const char *) getenv ("LD_RUN_PATH"); | |
94 | + if ((rpath) && (strlen (rpath) == 0)) | |
95 | + rpath = NULL; | |
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 | |
102 | @@ -185,7 +185,7 @@ | |
103 | @c man end | |
104 | ||
105 | @c man begin SEEALSO | |
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}. | |
108 | ||
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 @@ | |
114 | ||
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); | |
120 | + if (loc) | |
121 | + { | |
122 | + bfd_elf64_swap_reloca_out (abfd, &outrel, loc); | |
123 | + BFD_ASSERT (sizeof (Elf64_External_Rela) * srel->reloc_count | |
124 | + <= srel->_cooked_size); | |
125 | + } | |
126 | } | |
127 | ||
128 | /* Relocate an Alpha ELF section for a relocatable link. | |
129 | 2003-05-23 H.J. Lu <hongjiu.lu@intel.com> | |
130 | ||
131 | * ltmain.sh: Make symlink for shared library if needed. | |
132 | ||
133 | opcodes/ | |
134 | ||
135 | 2003-07-14 H.J. Lu <hongjiu.lu@intel.com> | |
136 | ||
137 | * Makefile.in: Regenerated. | |
138 | ||
139 | 2003-06-11 H.J. Lu <hongjiu.lu@intel.com> | |
140 | ||
141 | * Makefile.in: Regenerated. | |
142 | ||
143 | 2003-05-23 H.J. Lu <hongjiu.lu@intel.com> | |
144 | ||
145 | * Makefile.am (libopcodes_la_LIBADD): Use "-L../bfd -lbfd" | |
146 | instead of "../bfd/libbfd.la". | |
147 | * Makefile.in: Regenerated. | |
148 | ||
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 $? | |
158 | + fi | |
159 | ;; | |
160 | esac | |
161 | exit 0 |