97b8e7fde7fd643870d9c6605578b4425f40b91f
[openwrt.git] / openwrt / toolchain / binutils / 2.14.90.0.6 / 001-debian.patch
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 @@ -672,6 +672,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 @@ -867,6 +869,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${ELFSIZE}_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 diff -urN binutils-2.13.90.0.10/opcodes/alpha-opc.c binutils-2.13.90.0.10.new/opcodes/alpha-opc.c
112 --- binutils-2.13.90.0.10/opcodes/alpha-opc.c 2002-03-07 14:52:40.000000000 -0500
113 +++ binutils-2.13.90.0.10.new/opcodes/alpha-opc.c 2002-10-12 20:16:08.000000000 -0400
114 @@ -1101,7 +1101,8 @@
115 { "wmb", MFC(0x18,0x4400), BASE, ARG_NONE },
116 { "fetch", MFC(0x18,0x8000), BASE, { ZA, PRB } },
117 { "fetch_m", MFC(0x18,0xA000), BASE, { ZA, PRB } },
118 - { "rpcc", MFC(0x18,0xC000), BASE, { RA } },
119 + { "rpcc", MFC(0x18,0xC000), BASE, { RA, ZB } },
120 + { "rpcc", MFC(0x18,0xC000), BASE, { RA, RB } }, /* ev6 una */
121 { "rc", MFC(0x18,0xE000), BASE, { RA } },
122 { "ecb", MFC(0x18,0xE800), BASE, { ZA, PRB } }, /* ev56 una */
123 { "rs", MFC(0x18,0xF000), BASE, { RA } },
124 --- binutils-2.13.90.0.18/bfd/elf64-alpha.c 2003-01-21 19:21:32.000000000 +0100
125 +++ binutils-2.13.90.0.18-modif/bfd/elf64-alpha.c 2003-04-11 01:24:26.000000000 +0200
126 @@ -4184,9 +4184,12 @@
127
128 loc = srel->contents;
129 loc += srel->reloc_count++ * sizeof (Elf64_External_Rela);
130 - bfd_elf64_swap_reloca_out (abfd, &outrel, loc);
131 - BFD_ASSERT (sizeof (Elf64_External_Rela) * srel->reloc_count
132 - <= srel->_cooked_size);
133 + if (loc)
134 + {
135 + bfd_elf64_swap_reloca_out (abfd, &outrel, loc);
136 + BFD_ASSERT (sizeof (Elf64_External_Rela) * srel->reloc_count
137 + <= srel->_cooked_size);
138 + }
139 }
140
141 /* Relocate an Alpha ELF section for a relocatable link.
142 2003-05-23 H.J. Lu <hongjiu.lu@intel.com>
143
144 * ltmain.sh: Make symlink for shared library if needed.
145
146 opcodes/
147
148 2003-07-14 H.J. Lu <hongjiu.lu@intel.com>
149
150 * Makefile.in: Regenerated.
151
152 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
153
154 * Makefile.in: Regenerated.
155
156 2003-05-23 H.J. Lu <hongjiu.lu@intel.com>
157
158 * Makefile.am (libopcodes_la_LIBADD): Use "-L../bfd -lbfd"
159 instead of "../bfd/libbfd.la".
160 * Makefile.in: Regenerated.
161
162 --- binutils/ltmain.sh.dso 2002-03-22 00:16:20.000000000 -0800
163 +++ binutils/ltmain.sh 2003-07-14 12:50:17.000000000 -0700
164 @@ -4413,6 +4413,10 @@ relink_command=\"$relink_command\""
165 # LD_LIBRARY_PATH before the program is installed.
166 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
167 $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
168 + if test -n "$linkname"; then
169 + $show "(cd $output_objdir && $rm ../$linkname && $LN_S $output_objdir/$linkname ../$linkname)"
170 + $run eval '(cd $output_objdir && $rm ../$linkname && $LN_S $output_objdir/$linkname ../$linkname)' || exit $?
171 + fi
172 ;;
173 esac
174 exit 0
175 --- binutils/opcodes/Makefile.am.dso 2003-06-11 07:18:04.000000000 -0700
176 +++ binutils/opcodes/Makefile.am 2003-07-14 12:50:18.000000000 -0700
177 @@ -283,7 +283,7 @@ disassemble.lo: disassemble.c $(INCDIR)/
178
179 libopcodes_la_SOURCES = dis-buf.c disassemble.c
180 libopcodes_la_DEPENDENCIES = $(OFILES) ../bfd/libbfd.la
181 -libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@ ../bfd/libbfd.la
182 +libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@ -L../bfd -lbfd
183 libopcodes_la_LDFLAGS = -release $(VERSION) @WIN32LDFLAGS@
184
185 # libtool will build .libs/libopcodes.a. We create libopcodes.a in
This page took 0.052021 seconds and 3 git commands to generate.