* config/tc-mips.c (append_insn): In a compound relocation, take the
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
3b443373
L
12003-06-11 H.J. Lu <hongjiu.lu@intel.com>
2
3 * po/Make-in (DESTDIR): New.
4 (install-data-yes): Support $(DESTDIR).
5 (uninstall): Likewise.
6
cfa1ac0c
DE
72003-06-10 Doug Evans <dje@sebabeach.org>
8
9 * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
10 * Makefile.in: Regenerate.
11
f4984206
RS
122003-06-10 Richard Sandiford <rsandifo@redhat.com>
13
14 * configure.tgt (h8300*): Add h8300sxn emulations.
15 * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
16 (eh8300sxn.c, eh8300sxnelf.c): New rules.
17 * Makefile.in: Regenerate.
18 * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
d1b2d571 19 * scripttempl/h8300sxn.sc: New file.
f4984206 20
285272bd
AM
212003-06-10 Alan Modra <amodra@bigpond.net.au>
22
23 * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
24 CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
25
0b9a4d73
AM
262003-06-08 Alan Modra <amodra@bigpond.net.au>
27
28 * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
29 (build_toc_list): New function.
30 (gld${EMULATION_NAME}_finish): Call build_toc_list and
31 ppc64_elf_reinit_toc. Adjust ppc64_elf_build_stubs call.
32 (OPTION_STUBSYMS): Define.
33 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
34 (PARSE_AND_LIST_OPTIONS): Document.
35 (PARSE_AND_LIST_ARGS_CASES): Handle.
36
c16d554d
RM
372003-06-05 Roland McGrath <roland@redhat.com>
38
39 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
40 extra \t in -z noexecstack line.
41
9ee5e499
JJ
422003-05-23 Jakub Jelinek <jakub@redhat.com>
43
44 * ldgram.y (phdr_type): Grok PT_GNU_STACK.
45 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
46 -z execstack and -z noexecstack.
47 (gld${EMULATION_NAME}_list_options): Likewise.
48 * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
49
65982ba6
MS
502003-06-03 Michael Snyder <msnyder@redhat.com>
51 and Bernd Schmidt <bernds@redhat.com>
52 and Alexandre Oliva <aoliva@redhat.com>
9ee5e499 53
65982ba6
MS
54 * Makefile.am: Add new emulations for h8300sx.
55 * Makefile.in: Regenerate.
56 * configure.tgt: Add new emulations.
57 * emulparams/h8300sx.sh: New emulation.
58 * emulparams/h8300sxelf.sh: Ditto.
59 * scripttempl/h8300sx.sc: Ditto.
60
6f6f27f8
L
612003-06-03 H.J. Lu <hongjiu.lu@intel.com>
62
63 * ldmisc.c: Include "bfdlink.h".
64 (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
65 and -LD_DEFINITION_IN_DISCARDED_SECTION.
66
67 * Makefile.am: Rebuild dependency.
68 * Makefile.in: Regenerated.
69
308f753f
KK
702003-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
71
72 * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
73 * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
74
03a1c9a7
NC
752003-06-02 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
76
77 * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
78 sorted alphabetically, instead of exported_symbols, which is
79 sorted by ordinal.
80
36af4a4e
JJ
812003-05-30 Ulrich Drepper <drepper@redhat.com>
82 Jakub Jelinek <jakub@redhat.com>
83
84 * lexsup.c (OPTION_PIE): Define.
85 (ld_options): Add -pie and --pic-executable options.
86 (parse_args): Handle OPTION_PIE.
87 * ldmain.c (main): Initialize link_info.pie and
88 link_info.executable.
89 * genscripts.sh: Generate PIE scripts.
90 * ld.texinfo: Document -pie and --pic-executable options.
91 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
92 (gld${EMULATION_NAME}_place_orphan): Likewise.
93 (gld${EMULATION_NAME}_get_script): Include PIE scripts.
94 * scripttempl/elf.sc: In PIE scripts set . the same way as in
95 shared scripts.
96 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
97 * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
98 * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
99 * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
100 * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
101 * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
102 * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
103 * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
104 * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
105 * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
106 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
107
cdaeef2e
L
1082003-05-30 H.J. Lu <hongjiu.lu@intel.com>
109
110 * genscripts.sh: Create tmpdir/libpath.exp.
111
06aa7234
NC
1122003-05-30 Nick Clifton <nickc@redhat.com>
113
114 * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
115 with a test for a NULL bfd_for_interworking.
116
561c27b2
JT
1172003-05-29 Jason Thorpe <thorpej@wasabisystems.com>
118
119 * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
120 correctly for more recent versions of NetBSD.
121 (alpha*-*-netbsd*): Remove.
122 (i[3-7]86-*-netbsd*): Remove.
123
29e1a6e4
NC
1242003-05-29 Nick Clifton <nickc@redhat.com>
125
126 * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
127
90be1c5c
MR
1282003-05-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
129
130 * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
131 trap on pointer crops.
132
cea3d58d
NC
1332003-05-21 Marcus Comstedt <marcus@mc.pp.se>
134
135 * configure.tgt: Check for a target triplet of shl-...-netbsdelf
136 as well as shle-...-netbsdelf.
137
80c7c40a
NC
1382003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
139
140 * configure.host: Accept i[3-7]86 variants.
141 * configure.tgt: Likewise.
142
a6c0916f
L
1432003-05-15 H.J. Lu <hongjiu.lu@intel.com>
144
145 * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
146
d2012d17
DJ
1472003-05-09 Daniel Jacobowitz <drow@mvista.com>
148
149 * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
150 (earmelfb.c, earmelfb_linux.c): New rules.
151 * Makefile.in: Regenerated.
152 * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
df9a14a1 153 * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
d2012d17 154
3cd9fdd5 1552003-05-09 Nick Clifton <nickc@redhat.com>
c16d554d 156
66184979
NC
157 * ldlang.c (lang_size_sections_1): Default to generating a
158 fatal error message if a loadable section is not allocated
159 to a memory region when regions are defined.
160
efdffbe2
AM
1612003-05-09 Alan Modra <amodra@bigpond.net.au>
162
163 * Makefile.am (em68hc11elf.c): Correct dependencies.
164 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
165 * Makefile.in: Regenerate.
166 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
167 bfd_elf_record_link_assignment name.
168
8aae64e6
AO
1692003-05-07 Alexandre Oliva <aoliva@redhat.com>
170
171 * ldmain.h (overflow_cutoff_limit): Declare.
172 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
173 (reloc_overflow): Limit error messages based on it.
174 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
175 unlimited.
176
5c7966bf
AM
1772003-05-05 Alan Modra <amodra@bigpond.net.au>
178
179 * ldlex.l: Accept C style comments in version scripts.
180
c7996ad6
L
1812003-04-28 H.J. Lu <hjl@gnu.org>
182
183 * ldlang.c (lang_process): Add the relax finalize pass.
184
185 * ldmain.c (main): Initialize link_info.relax_finalizing to
186 FALSE.
187
d145330d
RM
1882003-04-24 Roland McGrath <roland@redhat.com>
189
190 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
191 If a name string is unknown, give an error rather than crashing later.
192
1932003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
194
195 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
8d9cd6b1
NC
196 eh8300hnelf.o, eh8300snelf.o and respective rules.
197 * Makefile.in: Regenerate.
198 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
199 * emulparams/h8300hn.sh: New
200 * emulparams/h8300sn.sh: New
d145330d 201 * emulparams/h8300hnelf.sh: New
8d9cd6b1
NC
202 * emulparams/h8300snelf.sh: New
203 * scripttempl/h8300hn.sc: new
204 * scripttempl/h8300sn.sc: new
205
0f0569c4
L
2062003-04-23 H.J. Lu <hjl@gnu.org>
207
208 * ldmain.c (link_callbacks): Initialize error_handler.
209
210 * ldmisc.c (error_handler): New function.
211
212 * ldmisc.h (error_handler): New prototype.
213
e2cebd4b
SC
2142003-04-21 Stephane Carrez <stcarrez@nerim.fr>
215
216 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
217 * emulparams/m68hc11elfb.sh: Likewise.
218 * emulparams/m68hc12elf.sh: Likewise.
219 * emulparams/m68hc12elfb.sh: Likewise.
220
67bb9940
SC
2212003-04-19 Stephane Carrez <stcarrez@nerim.fr>
222
223 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
224 68HC11 and 68HC12.
225 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
226 generate.
227 (LDEMUL_FINISH): Override to generate the trampolines after gc and
228 linker relaxation.
229 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
230 stub file for trampolines.
231 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
232 --no-trampoline and --bank-window to control the memory bank window.
233
97b51f20
L
2342003-04-18 H.J. Lu <hjl@gnu.org>
235
236 * ldfile.c (ldfile_add_library_path): Remove the unused
237 variable.
238
517ed485
NC
2392003-04-18 Andrew Haley <aph@cambridge.redhat.com>
240
241 * scripttempl/xstormy16.sc (__data, __rdata): New.
242
39f1ebed
NC
2432003-04-16 Nick Clifton <nickc@redhat.com>
244
245 * scripttempl/xstormy16.sc: Add .jcr section mapping.
246
731e28d8
L
2472003-04-15 H.J. Lu <hjl@gnu.org>
248
249 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
250
251 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
252
c2dcd04e
NC
2532003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
254
255 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
256 * ld.texinfo: Likewise.
257
877d60f7
AM
2582003-04-14 Alan Modra <amodra@bigpond.net.au>
259
260 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
261 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
262 other variants of crtbegin.o, crtend.o.
263 (DTOR): Likewise.
264 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
265 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
266 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
267 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
268 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
269 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
270 * scripttempl/mmo.sc (ctors, dtors): Likewise.
271 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
272
d4b6ee67
NC
2732003-04-09 Dmitry Diky <diwil@mail.ru>
274
275 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
276 sections to respect C++ constructor/destructor. Add ctors/dtors
277 start/stop definitions.
278 * scripttempl/elf32msp430_3.sc: Likewise.
279
bb10df36
NC
2802003-04-06 Nick Clifton <nickc@redhat.com>
281
282 * ld.texinfo (Options): Add a reminder of the target specific
283 nature to the description of the i386 PE specific options, for
284 readers who have not read all the way through the manual.
285
be33c5dd
SS
2862003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
287
9f863369 288 * configure.tgt: Fixed bug in list of targ_extra_emuls.
be33c5dd
SS
289 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
290 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
291 * emulparams/tic3xcoff_onchip.sh: Ditto
292 * emulparams/tic4xcoff.sh: Ditto
293 * scripttempl/tic4xcoff.sc: Ditto
294
e8fd7476
NC
2952003-04-03 Nick Clifton <nickc@redhat.com>
296
297 * NEWS: Mention support for Xtensa architecture.
298
2b817be1
NC
2992003-04-02 Nick Clifton <nickc@redhat.com>
300
301 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
302
3032003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
304
305 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
306 Don't call pe_dll_build_section() if link_info.relocateable.
307 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
308 if link_info.relocateable.
309
3102003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
311
312 * pe-dll.c (process_def_file): Don't create an export
313 section if there are no exports and we're building an exe
314 (pe_dll_build_sections): Ditto
315 (pe_dll_fill_sections): Conditionalize setting
316 abfd->dll true on info->shared
317 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
318 If i386pe or armpe, call pe_dll_build_section()
319 for both exe's and dll's, not just dll's.
320 (gld_${EMULATION_NAME}_finish): For all targets except
321 shpe and mipspe, call pe_dll_fill_sections() for both
322 exe's and dll's, not just dll's.
323
f6c8b716
BW
3242003-04-02 Bob Wilson <bob.wilson@acm.org>
325
326 * emulparams/xtensa-config.sh: Remove comment indicating that this is
327 a generated file.
328
e0001a05
NC
3292003-04-01 Bob Wilson <bob.wilson@acm.org>
330
877d60f7
AM
331 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
332 (eelf32xtensa.c): New target.
333 * Makefile.in: Regenerate.
334 * configure.tgt: Handle xtensa-*-*.
335 * gen-doc.texi: Set XTENSA variable.
336 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
337 * emulparams/elf32xtensa.sh: New file.
338 * emulparams/xtensa-config.sh: Likewise.
339 * emultempl/xtensaelf.em: Likewise.
340 * scripttempl/elfxtensa.sc: Likewise.
e0001a05 341
276e5094
JJ
3422003-04-01 Jakub Jelinek <jakub@redhat.com>
343
344 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
345 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
346 if --enable-64-bit-bfd.
347
5a6c6817
NC
3482003-04-01 Nick Clifton <nickc@redhat.com>
349
394ce546 350 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
5a6c6817 351 note section.
394ce546 352 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
5a6c6817
NC
353 name of note section.
354
a6e02871
AO
3552003-03-31 Alexandre Oliva <aoliva@redhat.com>
356
357 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
358 --section-start.
359
5ed6aba4
NC
3602003-03-31 David Heine <dlheine@suif.stanford.edu>
361
362 * ldfile.c (ldfile_add_library_path): Always allocate space for
363 the filename.
364 * ldlang.c (lang_register_vers_node): Free the node if it cannot
365 be used.
366 * ldmain.c (set_scripts_dir): Always free the constructed
367 directory name.
368 (add_keepsyms_file): Fix memory leak.
369 * ldmisc.c (vfinfo): Likewise.
877d60f7 370 * lexsup.c (parse_args): Likewise.
5ed6aba4 371
e16bb312
NC
3722003-03-25 Stan Cox <scox@redhat.com>
373 Nick Clifton <nickc@redhat.com>
877d60f7 374
e16bb312
NC
375 Contribute support for Intel's iWMMXt chip - an ARM variant:
376
377 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
378 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
379 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
380 (.bss): Likewise.
381
3fe38064
NC
3822003-03-25 Alexandre Oliva <aoliva@redhat.com>
383
384 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
385 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
386 (main): Initialize them.
387 * ldfile.c: Include pathnames.h.
388 (is_sysrooted_pathname): New.
389 (ldfile_add_library_path): Use it.
390 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
391 search_dirs if given an absolute pathname.
392 (ldfile_open_file): Issue error message for sysrooted
393 absolute pathnames.
394 * Makefile.am: Updated dependencies.
395 * Makefile.in: Rebuild.
396