* emultempl/ppc32elf.em: Convert to C90.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
7e5d8d48
AM
12003-06-24 Alan Modra <amodra@bigpond.net.au>
2
3 * emultempl/ppc32elf.em: Convert to C90.
4
7d8a3a28
AM
52003-06-20 Alan Modra <amodra@bigpond.net.au>
6
7 * emultempl/ppc64elf.em: Convert to C90 function definitions, remove
8 unnecessary prototypes and casts.
9
bda6c678
AM
102003-06-19 Alan Modra <amodra@bigpond.net.au>
11
12 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
13 statistics from ppc64_elf_build_stubs.
14
6bc8652b
AM
152003-06-19 Alan Modra <amodra@bigpond.net.au>
16
17 * emultempl/ppc64elf.em (build_section_lists): Check return status
18 from ppc64_elf_next_input_section.
19
f97b9cb8
L
202003-06-17 H.J. Lu <hongjiu.lu@intel.com>
21
22 * ldlang.c (section_already_linked): Put back assignment of
23 kept_section.
24
fea39bcb
NC
252003-06-17 Rainer Keuchel <rkeuchel@allgeier.com>
26
27 * pe-dll.c (generate_reloc): Catch and ignore an ARM_26D
6bc8652b 28 reloc.
fea39bcb 29
40bdaaa8
NC
302003-06-17 Loren James Rittle <rittle@latour.rsch.comm.mot.com>
31
32 * configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
33 if not produced by gcc.
34
b826ae22
HPN
352003-06-16 Hans-Peter Nilsson <hp@axis.com>
36
37 * configure.tgt: Add specific case for cris-*-linux-gnu*
38 with crislinux emulation only.
39
a06a29f2
NC
402003-06-13 Robert Millan <zeratul2@wanadoo.es>
41
42 * configure.tgt: Add i386-netbsd-gnu target.
43
728fa2f6
RS
442003-06-12 Richard Sandiford <rsandifo@redhat.com>
45
46 * configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
47 to $targ_extra_libpath.
48
3b443373
L
492003-06-11 H.J. Lu <hongjiu.lu@intel.com>
50
51 * po/Make-in (DESTDIR): New.
52 (install-data-yes): Support $(DESTDIR).
53 (uninstall): Likewise.
54
cfa1ac0c
DE
552003-06-10 Doug Evans <dje@sebabeach.org>
56
57 * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
58 * Makefile.in: Regenerate.
59
f4984206
RS
602003-06-10 Richard Sandiford <rsandifo@redhat.com>
61
62 * configure.tgt (h8300*): Add h8300sxn emulations.
63 * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
64 (eh8300sxn.c, eh8300sxnelf.c): New rules.
65 * Makefile.in: Regenerate.
66 * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
d1b2d571 67 * scripttempl/h8300sxn.sc: New file.
f4984206 68
285272bd
AM
692003-06-10 Alan Modra <amodra@bigpond.net.au>
70
71 * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
72 CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
73
0b9a4d73
AM
742003-06-08 Alan Modra <amodra@bigpond.net.au>
75
76 * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
77 (build_toc_list): New function.
78 (gld${EMULATION_NAME}_finish): Call build_toc_list and
79 ppc64_elf_reinit_toc. Adjust ppc64_elf_build_stubs call.
80 (OPTION_STUBSYMS): Define.
81 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
82 (PARSE_AND_LIST_OPTIONS): Document.
83 (PARSE_AND_LIST_ARGS_CASES): Handle.
84
c16d554d
RM
852003-06-05 Roland McGrath <roland@redhat.com>
86
87 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
88 extra \t in -z noexecstack line.
89
9ee5e499
JJ
902003-05-23 Jakub Jelinek <jakub@redhat.com>
91
92 * ldgram.y (phdr_type): Grok PT_GNU_STACK.
93 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
94 -z execstack and -z noexecstack.
95 (gld${EMULATION_NAME}_list_options): Likewise.
96 * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
97
65982ba6 982003-06-03 Michael Snyder <msnyder@redhat.com>
6bc8652b 99 and Bernd Schmidt <bernds@redhat.com>
65982ba6 100 and Alexandre Oliva <aoliva@redhat.com>
9ee5e499 101
65982ba6
MS
102 * Makefile.am: Add new emulations for h8300sx.
103 * Makefile.in: Regenerate.
104 * configure.tgt: Add new emulations.
105 * emulparams/h8300sx.sh: New emulation.
106 * emulparams/h8300sxelf.sh: Ditto.
107 * scripttempl/h8300sx.sc: Ditto.
108
6f6f27f8
L
1092003-06-03 H.J. Lu <hongjiu.lu@intel.com>
110
111 * ldmisc.c: Include "bfdlink.h".
112 (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
113 and -LD_DEFINITION_IN_DISCARDED_SECTION.
114
115 * Makefile.am: Rebuild dependency.
116 * Makefile.in: Regenerated.
117
308f753f
KK
1182003-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
119
120 * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
121 * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
122
03a1c9a7
NC
1232003-06-02 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
124
125 * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
126 sorted alphabetically, instead of exported_symbols, which is
127 sorted by ordinal.
128
36af4a4e
JJ
1292003-05-30 Ulrich Drepper <drepper@redhat.com>
130 Jakub Jelinek <jakub@redhat.com>
131
132 * lexsup.c (OPTION_PIE): Define.
133 (ld_options): Add -pie and --pic-executable options.
134 (parse_args): Handle OPTION_PIE.
135 * ldmain.c (main): Initialize link_info.pie and
136 link_info.executable.
137 * genscripts.sh: Generate PIE scripts.
138 * ld.texinfo: Document -pie and --pic-executable options.
139 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
140 (gld${EMULATION_NAME}_place_orphan): Likewise.
141 (gld${EMULATION_NAME}_get_script): Include PIE scripts.
142 * scripttempl/elf.sc: In PIE scripts set . the same way as in
143 shared scripts.
144 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
145 * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
146 * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
147 * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
148 * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
149 * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
150 * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
151 * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
152 * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
153 * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
154 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
155
cdaeef2e
L
1562003-05-30 H.J. Lu <hongjiu.lu@intel.com>
157
158 * genscripts.sh: Create tmpdir/libpath.exp.
159
06aa7234
NC
1602003-05-30 Nick Clifton <nickc@redhat.com>
161
162 * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
163 with a test for a NULL bfd_for_interworking.
164
561c27b2
JT
1652003-05-29 Jason Thorpe <thorpej@wasabisystems.com>
166
167 * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
168 correctly for more recent versions of NetBSD.
169 (alpha*-*-netbsd*): Remove.
170 (i[3-7]86-*-netbsd*): Remove.
171
29e1a6e4
NC
1722003-05-29 Nick Clifton <nickc@redhat.com>
173
174 * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
175
90be1c5c
MR
1762003-05-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
177
178 * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
179 trap on pointer crops.
180
cea3d58d
NC
1812003-05-21 Marcus Comstedt <marcus@mc.pp.se>
182
183 * configure.tgt: Check for a target triplet of shl-...-netbsdelf
184 as well as shle-...-netbsdelf.
185
80c7c40a
NC
1862003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
187
188 * configure.host: Accept i[3-7]86 variants.
189 * configure.tgt: Likewise.
190
a6c0916f
L
1912003-05-15 H.J. Lu <hongjiu.lu@intel.com>
192
193 * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
194
d2012d17
DJ
1952003-05-09 Daniel Jacobowitz <drow@mvista.com>
196
197 * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
198 (earmelfb.c, earmelfb_linux.c): New rules.
199 * Makefile.in: Regenerated.
200 * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
df9a14a1 201 * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
d2012d17 202
3cd9fdd5 2032003-05-09 Nick Clifton <nickc@redhat.com>
c16d554d 204
66184979
NC
205 * ldlang.c (lang_size_sections_1): Default to generating a
206 fatal error message if a loadable section is not allocated
207 to a memory region when regions are defined.
208
efdffbe2
AM
2092003-05-09 Alan Modra <amodra@bigpond.net.au>
210
211 * Makefile.am (em68hc11elf.c): Correct dependencies.
212 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
213 * Makefile.in: Regenerate.
214 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
215 bfd_elf_record_link_assignment name.
216
8aae64e6
AO
2172003-05-07 Alexandre Oliva <aoliva@redhat.com>
218
219 * ldmain.h (overflow_cutoff_limit): Declare.
220 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
221 (reloc_overflow): Limit error messages based on it.
222 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
223 unlimited.
224
5c7966bf
AM
2252003-05-05 Alan Modra <amodra@bigpond.net.au>
226
227 * ldlex.l: Accept C style comments in version scripts.
228
c7996ad6
L
2292003-04-28 H.J. Lu <hjl@gnu.org>
230
231 * ldlang.c (lang_process): Add the relax finalize pass.
232
233 * ldmain.c (main): Initialize link_info.relax_finalizing to
234 FALSE.
235
d145330d
RM
2362003-04-24 Roland McGrath <roland@redhat.com>
237
238 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
239 If a name string is unknown, give an error rather than crashing later.
240
2412003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
242
243 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
8d9cd6b1
NC
244 eh8300hnelf.o, eh8300snelf.o and respective rules.
245 * Makefile.in: Regenerate.
246 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
247 * emulparams/h8300hn.sh: New
248 * emulparams/h8300sn.sh: New
d145330d 249 * emulparams/h8300hnelf.sh: New
8d9cd6b1
NC
250 * emulparams/h8300snelf.sh: New
251 * scripttempl/h8300hn.sc: new
252 * scripttempl/h8300sn.sc: new
253
0f0569c4
L
2542003-04-23 H.J. Lu <hjl@gnu.org>
255
256 * ldmain.c (link_callbacks): Initialize error_handler.
257
258 * ldmisc.c (error_handler): New function.
259
260 * ldmisc.h (error_handler): New prototype.
261
e2cebd4b
SC
2622003-04-21 Stephane Carrez <stcarrez@nerim.fr>
263
264 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
265 * emulparams/m68hc11elfb.sh: Likewise.
266 * emulparams/m68hc12elf.sh: Likewise.
267 * emulparams/m68hc12elfb.sh: Likewise.
268
67bb9940
SC
2692003-04-19 Stephane Carrez <stcarrez@nerim.fr>
270
271 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
272 68HC11 and 68HC12.
273 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
274 generate.
275 (LDEMUL_FINISH): Override to generate the trampolines after gc and
276 linker relaxation.
277 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
278 stub file for trampolines.
279 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
280 --no-trampoline and --bank-window to control the memory bank window.
281
97b51f20
L
2822003-04-18 H.J. Lu <hjl@gnu.org>
283
284 * ldfile.c (ldfile_add_library_path): Remove the unused
285 variable.
286
517ed485
NC
2872003-04-18 Andrew Haley <aph@cambridge.redhat.com>
288
289 * scripttempl/xstormy16.sc (__data, __rdata): New.
290
39f1ebed
NC
2912003-04-16 Nick Clifton <nickc@redhat.com>
292
293 * scripttempl/xstormy16.sc: Add .jcr section mapping.
294
731e28d8
L
2952003-04-15 H.J. Lu <hjl@gnu.org>
296
297 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
298
299 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
300
c2dcd04e
NC
3012003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
302
303 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
304 * ld.texinfo: Likewise.
305
877d60f7
AM
3062003-04-14 Alan Modra <amodra@bigpond.net.au>
307
308 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
309 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
310 other variants of crtbegin.o, crtend.o.
311 (DTOR): Likewise.
312 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
313 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
314 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
315 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
316 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
317 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
318 * scripttempl/mmo.sc (ctors, dtors): Likewise.
319 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
320
d4b6ee67
NC
3212003-04-09 Dmitry Diky <diwil@mail.ru>
322
323 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
324 sections to respect C++ constructor/destructor. Add ctors/dtors
325 start/stop definitions.
326 * scripttempl/elf32msp430_3.sc: Likewise.
327
bb10df36
NC
3282003-04-06 Nick Clifton <nickc@redhat.com>
329
330 * ld.texinfo (Options): Add a reminder of the target specific
331 nature to the description of the i386 PE specific options, for
332 readers who have not read all the way through the manual.
333
be33c5dd
SS
3342003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
335
9f863369 336 * configure.tgt: Fixed bug in list of targ_extra_emuls.
be33c5dd
SS
337 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
338 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
339 * emulparams/tic3xcoff_onchip.sh: Ditto
340 * emulparams/tic4xcoff.sh: Ditto
341 * scripttempl/tic4xcoff.sc: Ditto
342
e8fd7476
NC
3432003-04-03 Nick Clifton <nickc@redhat.com>
344
345 * NEWS: Mention support for Xtensa architecture.
346
2b817be1
NC
3472003-04-02 Nick Clifton <nickc@redhat.com>
348
349 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
350
3512003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
352
353 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
354 Don't call pe_dll_build_section() if link_info.relocateable.
355 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
356 if link_info.relocateable.
357
3582003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
359
360 * pe-dll.c (process_def_file): Don't create an export
361 section if there are no exports and we're building an exe
362 (pe_dll_build_sections): Ditto
363 (pe_dll_fill_sections): Conditionalize setting
364 abfd->dll true on info->shared
365 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
366 If i386pe or armpe, call pe_dll_build_section()
367 for both exe's and dll's, not just dll's.
368 (gld_${EMULATION_NAME}_finish): For all targets except
369 shpe and mipspe, call pe_dll_fill_sections() for both
370 exe's and dll's, not just dll's.
371
f6c8b716
BW
3722003-04-02 Bob Wilson <bob.wilson@acm.org>
373
374 * emulparams/xtensa-config.sh: Remove comment indicating that this is
375 a generated file.
376
e0001a05
NC
3772003-04-01 Bob Wilson <bob.wilson@acm.org>
378
877d60f7
AM
379 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
380 (eelf32xtensa.c): New target.
381 * Makefile.in: Regenerate.
382 * configure.tgt: Handle xtensa-*-*.
383 * gen-doc.texi: Set XTENSA variable.
384 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
385 * emulparams/elf32xtensa.sh: New file.
386 * emulparams/xtensa-config.sh: Likewise.
387 * emultempl/xtensaelf.em: Likewise.
388 * scripttempl/elfxtensa.sc: Likewise.
e0001a05 389
276e5094
JJ
3902003-04-01 Jakub Jelinek <jakub@redhat.com>
391
392 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
393 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
394 if --enable-64-bit-bfd.
395
5a6c6817
NC
3962003-04-01 Nick Clifton <nickc@redhat.com>
397
394ce546 398 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
5a6c6817 399 note section.
394ce546 400 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
5a6c6817
NC
401 name of note section.
402
a6e02871
AO
4032003-03-31 Alexandre Oliva <aoliva@redhat.com>
404
405 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
406 --section-start.
407
5ed6aba4
NC
4082003-03-31 David Heine <dlheine@suif.stanford.edu>
409
410 * ldfile.c (ldfile_add_library_path): Always allocate space for
411 the filename.
412 * ldlang.c (lang_register_vers_node): Free the node if it cannot
413 be used.
414 * ldmain.c (set_scripts_dir): Always free the constructed
415 directory name.
416 (add_keepsyms_file): Fix memory leak.
417 * ldmisc.c (vfinfo): Likewise.
877d60f7 418 * lexsup.c (parse_args): Likewise.
5ed6aba4 419
e16bb312
NC
4202003-03-25 Stan Cox <scox@redhat.com>
421 Nick Clifton <nickc@redhat.com>
877d60f7 422
6bc8652b 423 Contribute support for Intel's iWMMXt chip - an ARM variant:
e16bb312
NC
424
425 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
426 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
427 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
428 (.bss): Likewise.
429
3fe38064
NC
4302003-03-25 Alexandre Oliva <aoliva@redhat.com>
431
432 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
433 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
434 (main): Initialize them.
435 * ldfile.c: Include pathnames.h.
436 (is_sysrooted_pathname): New.
437 (ldfile_add_library_path): Use it.
438 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
439 search_dirs if given an absolute pathname.
440 (ldfile_open_file): Issue error message for sysrooted
441 absolute pathnames.
442 * Makefile.am: Updated dependencies.
443 * Makefile.in: Rebuild.
444