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