* emultempl/mmix-elfnmmo.em (mmix_before_allocation): Force linker
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
86d3c9a8
HPN
12003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
2
06335781
HPN
3 * emultempl/mmix-elfnmmo.em (mmix_before_allocation): Force linker
4 relaxation always; don't exclude relocatable linking. Adjust for
5 _bfd_mmix_prepare_linker_allocated_gregs renamed to
6 _bfd_mmix_before_linker_allocation.
7 (mmix_after_allocation): Adjust for
8 _bfd_mmix_finalize_linker_allocated_gregs renamed to
9 _bfd_mmix_after_linker_allocation.
10 * scripttempl/mmo.sc: Use ADDR (.text), not . - SIZEOF (.text).
11
86d3c9a8
HPN
12 * ldlang.c (lang_size_sections): Last, set _cooked_size for output
13 sections.
14
8fbdf3ab
AM
152003-10-16 Alan Modra <amodra@bigpond.net.au>
16
17 * Makefile.am (GENSCRIPTS_EXTRA, GEN_EXTRA_DEPENDS): Remove. Use
18 GENSCRIPTS and GEN_DEPENDS in place of these.
19 * Makefile.in: Regenerate.
20 * genscripts_extra.sh: Delete. Merge extra functionality to..
21 * genscripts.sh: ..here.
22
23 * emulparams/gld960.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Define.
24 * emulparams/gld960coff.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
25 * emulparams/lnk960.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
26 * emulparams/m88kbcs.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
27 * emulparams/vanilla.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
28
9c4f8b73
AM
292003-10-16 Alan Modra <amodra@bigpond.net.au>
30
31 * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Don't
32 use $EMULATION_NAME to call bfd function.
33
661a32f7
DS
342003-10-14 Danny Smith <dannysmith@users.sourceforge.net>
35
36 * pe-dll.c (pe_implied_import_dll): Also scan .rdata sections
37 to identify data symbols.
38
786dbcc3
RS
392003-10-13 Richard Sandiford <rsandifo@redhat.com>
40
41 * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Move
42 definition from elf64btsmip.sh.
43 (TEXT_DYNAMIC): Likewise elf32btsmipn32.sh.
44 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Remove.
45 * emulparams/elf64btsmip.sh (INITIAL_READONLY_SECTIONS): Remove.
46 * emulparams/elf64bmip.sh (SHLIB_TEXT_START_ADDR): Define.
47 (EXECUTABLE_SYMBOLS): Set __elf_header correctly for shared objects.
48 Define __program_header_table in terms of __elf_header.
49
3f7deb8a
L
502003-10-10 H.J. Lu <hongjiu.lu@intel.com>
51
52 * Makefile.am (eelf64_ia64.c): Also depend on
53 $(srcdir)/emultempl/ia64elf.em.
54 * Makefile.in: Regenerated.
55
56 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Set to ia64elf.
57
58 * emultempl/ia64elf.em: New.
59
f19ae42f
KK
602003-10-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
61
62 * emulparams/shelf32_nbsd.sh (OTHER_SECTIONS): Redefine.
63
420e579c
HPN
642003-10-11 Hans-Peter Nilsson <hp@bitrange.com>
65
66 * ld.texinfo (Builtin Functions) <DEFINED>: Say that only symbols
67 defined before the statement using DEFINED yield 1.
68 * ldexp.c (fold_name) <case DEFINED>: In lang_first_phase_enum,
69 call lang_track_definedness on symbol. In subsequent phases, use
70 lang_symbol_definition_iteration and lang_statement_iteration to
71 check whether the symbol was defined before the current statement.
72 (exp_fold_tree) <case etree_assign et al>: Call
73 lang_update_definedness before updating symbol type when setting
74 symbol.
75 * ldlang.c (lang_definedness_table): New variable.
76 (lang_definedness_newfunc, lang_track_definedness)
77 (lang_symbol_definition_iteration, lang_update_definedness): New
78 functions.
79 (lang_init): Initialize lang_definedness_table and
80 lang_statement_iteration.
81 (lang_finish): Destroy bfd_hash_table_free.
82 (lang_size_sections): Increment lang_statement_iteration.
83 (lang_do_assignments_1): New function with former
84 lang_do_assignments contents. Change recursive calls to call this
85 function.
86 (lang_do_assignments): Evacuate contents. Increment
87 lang_statement_iteration, then just call lang_do_assignments_1.
88 * ldlang.h (struct lang_definedness_hash_entry)
89 (lang_statement_iteration, lang_track_definedness)
90 (lang_symbol_definition_iteration, lang_update_definedness):
91 Declare.
92
c6d3b05f
L
932003-10-09 H.J. Lu <hongjiu.lu@intel.com>
94
95 * scripttempl/elf.sc (__executable_start): Provide.
96
2f857bd0
DJ
972003-10-09 Daniel Jacobowitz <drow@mvista.com>
98
99 * emulparams/armelf.sh: Define NO_SMALL_DATA.
100 * emulparams/armelf_linux.sh, emulparams/armelf_oabi.sh,
101 emulparams/armnto.sh: Likewise.
102
a7f18fb3
AO
1032003-10-08 Alexandre Oliva <aoliva@redhat.com>
104
105 * ldlang.c (lang_size_sections_1): Use IGNORE_SECTION to tell
106 whether to skip test for no memory region.
107
e62eb3ee
NC
1082003-10-08 Nick Clifton <nickc@redhat.com>
109
110 * lexsup.c (parse_args: OPTION_CALL_SHARED): Revise comment
111 describing defaults. Change default to report unresolved symbols
112 in object files as well.
113
6a33aff4
HPN
1142003-10-08 Hans-Peter Nilsson <hp@bitrange.com>
115
116 * ldexp.c (fold_name) <case DEFINED>: Set section of result to
117 abs_output_section.
118
398b8515
BW
1192003-10-07 Bob Wilson <bob.wilson@acm.org>
120
121 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS,
122 OTHER_READWRITE_SECTIONS, OTHER_SECTIONS): Set section addresses to
123 zero for relocatable links.
124
c0d48c0b
DA
1252003-10-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
126
127 * configure.host (HOSTING_LIBS): Define for hppa*-*-linux*.
128
29ca8dc5
NS
1292003-10-07 Nathan Sidwell <nathan@codesourcery.com>
130
131 * ldwrite.c (unsplittable_name): New.
132 (clone_section): Strip existing numeric suffix. Only truncate names
133 for coff targets.
134 (split_sections): Use unsplittable_name.
135
85477099
NC
1362003-10-06 Nick Clifton <nickc@redhat.com>
137
138 * lexsup.c (parse_args): Report unresolved symbols in shared
139 libraries when creating a dynamic executable. This is a
140 restoration of the default behaviour for previous versions of
141 the linker.
142
1432003-10-06 Matt Thomas <matt@3am-software.com>
85cf2a8a
NC
144
145 * emulparams/hppanbsd.sh: Remove OUTPUT_FORMAT.
146 * emulparams/hppaobsd.sh: Add OUTPUT_FORMAT="elf32-hppa".
147
4615568e
NC
1482003-10-06 Robert Millan <robertmh@gnu.org>
149
150 * configure.tgt: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
151
4b7f0676
NC
1522003-10-02 Ivan Warren <ivan@vmfacility.fr>
153
154 * pe-dll.c (make_one): Correct sym def order & pick right sym for
155 .idata$7 reloc.
156
43c58ae6
CD
1572003-09-30 Chris Demetriou <cgd@broadcom.com>
158
159 * NEWS: Add an indication of the cutoff for 2.14.
160
5f74bc13
CD
1612003-09-30 Chris Demetriou <cgd@broadcom.com>
162
163 * ldmain.c (get_emulation): Ignore "-mips64r2".
164
13dfd2d0
NC
1652003-09-03 Robert Millan <robertmh@gnu.org>
166
167 * configure.host: Match GNU/KFreeBSD with new kfreebsd*-gnu
168 triplet.
169 * configure.tgt: Likewise.
170
71df864f
AM
1712003-08-29 Jafa <jafa@silicondust.com>
172
173 * emulparams/elf32ip2k.sh (TEMPLATE_NAME): Define.
174
3673a93e
NC
1752003-08-21 Nick Clifton <nickc@redhat.com>
176
177 * po/tr.po: Updated Turkish translation.
178
560e09e9
NC
1792003-08-20 Nick Clifton <nickc@redhat.com>
180
181 * ldmain.c: Initialise the new fields in bfd_link_info to
182 NOT_YET_SET.
183 * lexsup.c (enum option_values): New enum. Use this to
184 replace the handed coded values for the long switch options.
185 (ld_options): Add 'unresolved-symbols',
186 'warn-unresolved-symbols' and 'error-unresolved-symbols'.
187 (parse_args): Handle the new switches. Set the values of
188 unresolved_symbols_in_objects and
189 unresolved_symbols_in_shared_libs appropriately. If they were
190 not initialised by the command line, install default values.
191 * emultempl/elf32.em (handle_option): Update OPTION_GROUP and
192 -z defs to use the new fields in bfd_link_info.
193 * ld.texinfo: Document the new switches.
194 * NEWS: Mention this feature.
195
aafdb207
NC
1962003-08-15 Dmitry Diky <diwil@mail.ru>
197
198 * Makefile.am (GENSCRIPTS_EXTRA): New script definition which
199 calls genscripts_extra.sh.
200 Rearrange all msp430 depends using this script.
201 * Makefile.in: Regenerate.
202 * genscripts_extra.sh: New file: Similar to genscripts.sh, except
203 that the script to be run to generate the emulations can be passed
204 as an optional parameter instead of being computed from the
205 emulation name.
206 * emulparams/msp430all.sh: New file: Combine all msp430 subdevice
207 definitions into one file.
208 * emulparams/msp430x*.sh: Removed.
209
cd6d6c15
NC
2102003-08-15 Nick Clifton <nickc@redhat.com>
211
212 * ld.texinfo (Options): Put keywords for the -z option into a
213 table. Add more text describing what the -z now option does.
214
68cdbb4a
AM
2152003-08-14 Alan Modra <amodra@bigpond.net.au>
216
217 * dep-in.sed: Remove libintl.h.
218 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
219 * Makefile.in: Regenerate.
220
f22f5fcd
AM
2212003-08-13 Alan Modra <amodra@bigpond.net.au>
222
223 * genscripts.sh (libpath.exp): Only generate for first emulation.
224 (LIB_PATH): Correct order of paths. Don't add $tool_lib when
225 already present or when LIB_PATH is set to ":".
226
0b28295d
ILT
2272003-08-12 Ian Lance Taylor <ian@airs.com>
228
229 * ldmain.c (undefined_symbol): Change parameter name from `fatal'
230 to `error'. If only a warning, put warning in the reported
231 string. Consistently set failure flag when not a warning.
232
3b260895
NC
2332003-08-08 Dmitry Diky <diwil@mail.ru>
234
235 * Makefile.am: Add xW42 and xE42 parts. Sort MPU list according to
236 gcc order.
237 * Makefile.in: Regenerate.
238 * configure.tgt: Add extra emulations.
239 * emulparams/msp430xE423.sh: New file.
240 * emulparams/msp430xE427.sh: New file.
241 * emulparams/msp430xW425.sh: New file.
242 * emulparams/msp430xE425.sh: New file.
243 * emulparams/msp430xW423.sh: New file.
244 * emulparams/msp430xW427.sh: New file.
245
1fa1d2cd
DS
2462003-08-07 Danny Smith <dannysmith@users.sourceforge.net>
247
248 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
249 Change second (cmdline) arg to lang_add_entry to FALSE.
250 (set_pe_subsystem): Change second arg to lang_add_entry to TRUE.
251
9d7e2ba5
JE
2522003-08-05 Christian Groessler <chris@groessler.org>
253 Jason Eckhardt <jle@rice.edu>
254
255 * configure.tgt: Recognize new target i860-*-coff.
256 * Makefile.am (ALL_EMULATIONS): Add ecoff_i860.o.
257 (ecoff_i860.c): New rule.
258 * emulparams/coff_i860.sh: New file.
259 * scripttempl/i860coff.sc: New file.
260 * Makefile.in: Regenerate.
261
8c675694
NC
2622003-08-04 Nick Clifton <nickc@redhat.com>
263
264 * emultempl/elf32.em (before_allocation): Prepend "warning: "
265 to messages produced for .gnu.warning.SYMBOL sections.
266
2a36a117
AM
2672003-08-04 Alan Modra <amodra@bigpond.net.au>
268
269 * emultempl/elf32.em (output_rel_find): Add "isdyn" param. Put
270 .rel.dyn before other reloc sections. Don't stop looking for reloc
271 sections on finding one that isn't allocated. Match .rel even when
272 placing .rela and vice versa, when setting last_rel and
273 last_rel_alloc for the first time. If no reloc sections in script,
274 prefer allocated section over non-alloc.
275 (gld${EMULATION_NAME}_place_orphan): Handle orphan .rel.dyn.
276
8a1cb159
KK
2772003-07-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
278
279 * emulparams/shelf.sh (OTHER_SECTIONS): Don't include .stack
280 section for shared library.
281 * emulparams/shelf32.sh (OTHER_SECTIONS): Likewise.
282 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
283
83a27a96
SC
2842003-07-29 Stephane Carrez <stcarrez@nerim.fr>
285
286 * scripttempl/elfm68hc12.sc: Add gcc_except_table.
287 * scripttempl/elfm68hc11.sc: Likewise.
288
c86b6a7b
AM
2892003-07-28 Alan Modra <amodra@bigpond.net.au>
290
f37f3db7
AM
291 * emulparams/elf64ppc.sh (GOT): Fix for shell brace matching.
292
c86b6a7b
AM
293 * emulparams/elf64ppc.sh (GOT): Don't merge .toc into .got for ld -r.
294
7e7d5768
AM
2952003-07-27 Alan Modra <amodra@bigpond.net.au>
296
297 * ld.texinfo: Typo fixes. Document SUBALIGN.
298 * ldgram.y (opt_subalign): Add.
299 * ldlex.l (SUBALIGN): Recognize.
300 * ldlang.c (overlay_subalign): New var.
301 (lang_enter_overlay): Add subalign param.
302 (lang_enter_overlay_section): Pass overlay_subalign to
303 lang_enter_output_section_statement.
304 * ldlang.h (lang_enter_overlay): Update.
305
834d807b
NC
3062003-07-24 Nick Clifton <nickc@redhat.com>
307
308 * po/fr.po: Updated French translation.
309
494fee87
SC
3102003-07-23 Stephane Carrez <stcarrez@nerim.fr>
311
312 * scripttempl/elfm68hc11.sc: Keep ctor/dtor sections; Take into
313 account .tramp sections;
314 * scripttempl/elfm68hc12.sc: Likewise.
315
602d6c6f
NC
3162003-07-17 Charles Wilson <cwilson@ece.gatech.edu>
317
318 * ld/pe-dll.c: Add libcygwin to autofilter_liblist[]
319
6c37ac4d
NC
3202003-07-17 Nick Clifton <nickc@redhat.com>
321
322 * po/es.po: New Spanish translation.
323
fce00800
AM
3242003-07-11 Alan Modra <amodra@bigpond.net.au>
325
326 * po/ld.pot: Regenerate.
327
e901de89
BW
3282003-07-10 Bob Wilson <bob.wilson@acm.org>
329
330 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit
331 with new .got.loc section.
332 (OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for
333 non-relocating links.
334 (OTHER_SECTIONS): Add .xt.lit here. Change it to keep linkonce
335 sections separate for non-relocating links; likewise for .xt.insn.
336
4a096548
AO
3372003-07-10 Alexandre Oliva <aoliva@redhat.com>
338
339 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
340 * emulparams/elf32am33lin.sh: Adjust to match kernel parameters.
341 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
342 * configure.host (am33_2.0-*-linux*): Added.
343 * configure.tgt (am33_2.0-*-linux*): Likewise.
344 * emulparams/elf32am33lin.sh: New.
345 * Makefile.am (eelf32am33lin.c): New rule.
346 * Makefile.in: Rebuilt.
347
892bb326
AO
3482003-07-09 Alexandre Oliva <aoliva@redhat.com>
349
350 2001-04-17 Alexandre Oliva <aoliva@redhat.com>
351 * emulparams/mn10300.sh (TEMPLATE_NAME): Define.
352 (GENERATE_SHLIB_SCRIPT): Likewise.
353
68f8ff14
AM
3542003-07-10 Alan Modra <amodra@bigpond.net.au>
355
356 * emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
357 (GOT): Define.
358 * emultempl/ppc64elf.em (stub_added): New static var.
359 (ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
360 (ppc_add_stub_section): Set stub_added.
361 (gld${EMULATION_NAME}_finish): Look for .got rather than .toc. Adjust
362 ppc64_elf_size_stubs call and test for stubs.
363 * scripttempl/elf.sc (GOT): Define and use.
364
fb319d8d
JR
3652003-07-08 J"orn Rennecke <joern.rennecke@superh.com>
366
367 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
368 Allow second call from ldemul_finish.
369
3a51fda6
JR
3702003-07-04 J"orn Rennecke <joern.rennecke@superh.com>
371
372 * emulparams/shelf32.sh (STACK_ADDR): Don't define.
373 (OTHER_SECTIONS): Include .stack.
374 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
375
9203ba99
JJ
3762003-07-02 Jakub Jelinek <jakub@redhat.com>
377
378 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
379 .opd if -pie.
380 (OTHER_READWRITE_SECTIONS): Include .opd if -pie.
381 * scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
382 if -pie.
383
1579bae1
AM
3842003-06-28 Alan Modra <amodra@bigpond.net.au>
385
386 * ld.h: Convert to C90, remove unnecessary prototypes and casts.
387 Replace PTR with void *. Formatting.
388 * ldcref.c: Likewise.
389 * ldctor.c: Likewise.
390 * ldctor.h: Likewise.
391 * ldemul.h: Likewise.
392 * ldexp.c: Likewise.
393 * ldexp.h: Likewise.
394 * ldfile.c: Likewise.
395 * ldfile.h: Likewise.
396 * ldlang.c: Likewise.
397 * ldlang.h: Likewise.
398 * ldlex.h: Likewise.
399 * ldlex.l: Likewise.
400 * ldmain.c: Likewise.
401 * ldmain.h: Likewise.
402 * ldmisc.c: Likewise.
403 * ldmisc.h: Likewise.
404 * ldver.h: Likewise.
405 * ldwrite.c: Likewise.
406 * ldwrite.h: Likewise.
407 * lexsup.c: Likewise.
408 * mri.c: Likewise.
409 * mri.h: Likewise.
410 * pe-dll.c: Likewise.
411 * pe-dll.h: Likewise.
412 * deffilep.y: Likewise.
413 * deffile.h: Likewise. Don't include ansidecl.h.
414 * emulparams/elf32mcore.sh: Remove unnecessary cast.
415 * emultempl/m68kcoff.em: Likewise.
416 * emultempl/m68kelf.em: Likewise.
417 * emultempl/ticoff.em: Remove lang_add_output_format declaration.
418 * sysdep.h: Don't include ansidecl.h.
419 * Makefile.am: Run "make dep-am".
420 * Makefile.in: Regenerate.
421
dc17f155
NC
4222003-06-27 Nick Clifton <nickc@redhat.com>
423
424 * deffilep.y (def_file_add_directive): Cope with NUL seperated
425 directives. Fix reporting of unparseable directives.
426 (def_error): Check for a NULL def_filename.
427
0c7a8e5a
AM
4282003-06-27 Alan Modra <amodra@bigpond.net.au>
429
430 * emultempl/aix.em: Convert to C90, remove unnecessary prototypes
431 and casts. Replace PTR with void *. Formatting.
1579bae1
AM
432 * emultempl/alphaelf.em: Likewise.
433 * emultempl/armcoff.em: Likewise.
434 * emultempl/armelf.em: Likewise.
435 * emultempl/armelf_oabi.em: Likewise.
436 * emultempl/beos.em: Likewise.
437 * emultempl/elf32.em: Likewise.
438 * emultempl/generic.em: Likewise.
439 * emultempl/gld960.em: Likewise.
440 * emultempl/gld960c.em: Likewise.
441 * emultempl/hppaelf.em: Likewise.
442 * emultempl/linux.em: Likewise.
443 * emultempl/lnk960.em: Likewise.
444 * emultempl/m68hc1xelf.em: Likewise.
445 * emultempl/m68kcoff.em: Likewise.
446 * emultempl/m68kelf.em: Likewise.
447 * emultempl/mipsecoff.em: Likewise.
448 * emultempl/mipself.em: Likewise.
449 * emultempl/mmix-elfnmmo.em: Likewise.
450 * emultempl/mmixelf.em: Likewise.
451 * emultempl/mmo.em: Likewise.
452 * emultempl/needrelax.em: Likewise.
453 * emultempl/netbsd.em: Likewise.
454 * emultempl/pe.em: Likewise.
455 * emultempl/sh64elf.em: Likewise.
456 * emultempl/sunos.em: Likewise.
457 * emultempl/ticoff.em: Likewise.
458 * emultempl/vanilla.em: Likewise.
459 * emultempl/xtensaelf.em: Likewise.
0c7a8e5a
AM
460 * Makefile.am: Correct dependencies.
461 * Makefile.in: Regenerate.
462
1049f94e
AM
4632003-06-25 Alan Modra <amodra@bigpond.net.au>
464
465 * ld.texinfo: Correct spelling of "relocatable".
1579bae1
AM
466 * ldctor.c: Likewise.
467 * ldexp.c: Likewise.
468 * ldfile.c: Likewise.
469 * ldint.texinfo: Likewise.
470 * ldlang.c: Likewise.
471 * ldmain.c: Likewise.
472 * ldwrite.c: Likewise.
473 * lexsup.c: Likewise.
474 * emultempl/aix.em: Likewise.
475 * emultempl/alphaelf.em: Likewise.
476 * emultempl/armcoff.em: Likewise.
477 * emultempl/armelf_oabi.em: Likewise.
478 * emultempl/beos.em: Likewise.
479 * emultempl/elf32.em: Likewise.
480 * emultempl/generic.em: Likewise.
481 * emultempl/gld960.em: Likewise.
482 * emultempl/gld960c.em: Likewise.
483 * emultempl/hppaelf.em: Likewise.
484 * emultempl/linux.em: Likewise.
485 * emultempl/lnk960.em: Likewise.
486 * emultempl/m68hc1xelf.em: Likewise.
487 * emultempl/m68kcoff.em: Likewise.
488 * emultempl/m68kelf.em: Likewise.
489 * emultempl/mipsecoff.em: Likewise.
490 * emultempl/mipself.em: Likewise.
491 * emultempl/mmix-elfnmmo.em: Likewise.
492 * emultempl/mmo.em: Likewise.
493 * emultempl/needrelax.em: Likewise.
494 * emultempl/pe.em: Likewise.
495 * emultempl/ppc64elf.em: Likewise.
496 * emultempl/sh64elf.em: Likewise.
497 * emultempl/sunos.em: Likewise.
498 * emultempl/ticoff.em: Likewise.
499 * emultempl/xtensaelf.em: Likewise.
1049f94e 500
7e5d8d48
AM
5012003-06-24 Alan Modra <amodra@bigpond.net.au>
502
503 * emultempl/ppc32elf.em: Convert to C90.
504
7d8a3a28
AM
5052003-06-20 Alan Modra <amodra@bigpond.net.au>
506
507 * emultempl/ppc64elf.em: Convert to C90 function definitions, remove
508 unnecessary prototypes and casts.
509
bda6c678
AM
5102003-06-19 Alan Modra <amodra@bigpond.net.au>
511
512 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
513 statistics from ppc64_elf_build_stubs.
514
6bc8652b
AM
5152003-06-19 Alan Modra <amodra@bigpond.net.au>
516
517 * emultempl/ppc64elf.em (build_section_lists): Check return status
518 from ppc64_elf_next_input_section.
519
f97b9cb8
L
5202003-06-17 H.J. Lu <hongjiu.lu@intel.com>
521
522 * ldlang.c (section_already_linked): Put back assignment of
523 kept_section.
524
fea39bcb
NC
5252003-06-17 Rainer Keuchel <rkeuchel@allgeier.com>
526
527 * pe-dll.c (generate_reloc): Catch and ignore an ARM_26D
6bc8652b 528 reloc.
fea39bcb 529
40bdaaa8
NC
5302003-06-17 Loren James Rittle <rittle@latour.rsch.comm.mot.com>
531
532 * configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
533 if not produced by gcc.
534
b826ae22
HPN
5352003-06-16 Hans-Peter Nilsson <hp@axis.com>
536
537 * configure.tgt: Add specific case for cris-*-linux-gnu*
538 with crislinux emulation only.
539
a06a29f2
NC
5402003-06-13 Robert Millan <zeratul2@wanadoo.es>
541
542 * configure.tgt: Add i386-netbsd-gnu target.
543
728fa2f6
RS
5442003-06-12 Richard Sandiford <rsandifo@redhat.com>
545
546 * configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
547 to $targ_extra_libpath.
548
3b443373
L
5492003-06-11 H.J. Lu <hongjiu.lu@intel.com>
550
551 * po/Make-in (DESTDIR): New.
552 (install-data-yes): Support $(DESTDIR).
553 (uninstall): Likewise.
554
cfa1ac0c
DE
5552003-06-10 Doug Evans <dje@sebabeach.org>
556
557 * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
558 * Makefile.in: Regenerate.
559
f4984206
RS
5602003-06-10 Richard Sandiford <rsandifo@redhat.com>
561
562 * configure.tgt (h8300*): Add h8300sxn emulations.
563 * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
564 (eh8300sxn.c, eh8300sxnelf.c): New rules.
565 * Makefile.in: Regenerate.
566 * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
d1b2d571 567 * scripttempl/h8300sxn.sc: New file.
f4984206 568
285272bd
AM
5692003-06-10 Alan Modra <amodra@bigpond.net.au>
570
571 * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
572 CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
573
0b9a4d73
AM
5742003-06-08 Alan Modra <amodra@bigpond.net.au>
575
576 * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
577 (build_toc_list): New function.
578 (gld${EMULATION_NAME}_finish): Call build_toc_list and
579 ppc64_elf_reinit_toc. Adjust ppc64_elf_build_stubs call.
580 (OPTION_STUBSYMS): Define.
581 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
582 (PARSE_AND_LIST_OPTIONS): Document.
583 (PARSE_AND_LIST_ARGS_CASES): Handle.
584
c16d554d
RM
5852003-06-05 Roland McGrath <roland@redhat.com>
586
587 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
588 extra \t in -z noexecstack line.
589
9ee5e499
JJ
5902003-05-23 Jakub Jelinek <jakub@redhat.com>
591
592 * ldgram.y (phdr_type): Grok PT_GNU_STACK.
593 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
594 -z execstack and -z noexecstack.
595 (gld${EMULATION_NAME}_list_options): Likewise.
596 * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
597
65982ba6 5982003-06-03 Michael Snyder <msnyder@redhat.com>
6bc8652b 599 and Bernd Schmidt <bernds@redhat.com>
65982ba6 600 and Alexandre Oliva <aoliva@redhat.com>
9ee5e499 601
65982ba6
MS
602 * Makefile.am: Add new emulations for h8300sx.
603 * Makefile.in: Regenerate.
604 * configure.tgt: Add new emulations.
605 * emulparams/h8300sx.sh: New emulation.
606 * emulparams/h8300sxelf.sh: Ditto.
607 * scripttempl/h8300sx.sc: Ditto.
608
6f6f27f8
L
6092003-06-03 H.J. Lu <hongjiu.lu@intel.com>
610
611 * ldmisc.c: Include "bfdlink.h".
612 (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
613 and -LD_DEFINITION_IN_DISCARDED_SECTION.
614
615 * Makefile.am: Rebuild dependency.
616 * Makefile.in: Regenerated.
617
308f753f
KK
6182003-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
619
620 * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
621 * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
622
03a1c9a7
NC
6232003-06-02 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
624
625 * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
626 sorted alphabetically, instead of exported_symbols, which is
627 sorted by ordinal.
628
36af4a4e
JJ
6292003-05-30 Ulrich Drepper <drepper@redhat.com>
630 Jakub Jelinek <jakub@redhat.com>
631
632 * lexsup.c (OPTION_PIE): Define.
633 (ld_options): Add -pie and --pic-executable options.
634 (parse_args): Handle OPTION_PIE.
635 * ldmain.c (main): Initialize link_info.pie and
636 link_info.executable.
637 * genscripts.sh: Generate PIE scripts.
638 * ld.texinfo: Document -pie and --pic-executable options.
639 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
640 (gld${EMULATION_NAME}_place_orphan): Likewise.
641 (gld${EMULATION_NAME}_get_script): Include PIE scripts.
642 * scripttempl/elf.sc: In PIE scripts set . the same way as in
643 shared scripts.
644 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
645 * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
646 * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
647 * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
648 * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
649 * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
650 * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
651 * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
652 * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
653 * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
654 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
655
cdaeef2e
L
6562003-05-30 H.J. Lu <hongjiu.lu@intel.com>
657
658 * genscripts.sh: Create tmpdir/libpath.exp.
659
06aa7234
NC
6602003-05-30 Nick Clifton <nickc@redhat.com>
661
662 * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
663 with a test for a NULL bfd_for_interworking.
664
561c27b2
JT
6652003-05-29 Jason Thorpe <thorpej@wasabisystems.com>
666
667 * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
668 correctly for more recent versions of NetBSD.
669 (alpha*-*-netbsd*): Remove.
670 (i[3-7]86-*-netbsd*): Remove.
671
29e1a6e4
NC
6722003-05-29 Nick Clifton <nickc@redhat.com>
673
674 * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
675
90be1c5c
MR
6762003-05-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
677
678 * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
679 trap on pointer crops.
680
cea3d58d
NC
6812003-05-21 Marcus Comstedt <marcus@mc.pp.se>
682
683 * configure.tgt: Check for a target triplet of shl-...-netbsdelf
684 as well as shle-...-netbsdelf.
685
80c7c40a
NC
6862003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
687
688 * configure.host: Accept i[3-7]86 variants.
689 * configure.tgt: Likewise.
690
a6c0916f
L
6912003-05-15 H.J. Lu <hongjiu.lu@intel.com>
692
693 * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
694
d2012d17
DJ
6952003-05-09 Daniel Jacobowitz <drow@mvista.com>
696
697 * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
698 (earmelfb.c, earmelfb_linux.c): New rules.
699 * Makefile.in: Regenerated.
700 * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
df9a14a1 701 * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
d2012d17 702
3cd9fdd5 7032003-05-09 Nick Clifton <nickc@redhat.com>
c16d554d 704
66184979
NC
705 * ldlang.c (lang_size_sections_1): Default to generating a
706 fatal error message if a loadable section is not allocated
707 to a memory region when regions are defined.
708
efdffbe2
AM
7092003-05-09 Alan Modra <amodra@bigpond.net.au>
710
711 * Makefile.am (em68hc11elf.c): Correct dependencies.
712 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
713 * Makefile.in: Regenerate.
714 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
715 bfd_elf_record_link_assignment name.
716
8aae64e6
AO
7172003-05-07 Alexandre Oliva <aoliva@redhat.com>
718
719 * ldmain.h (overflow_cutoff_limit): Declare.
720 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
721 (reloc_overflow): Limit error messages based on it.
722 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
723 unlimited.
724
5c7966bf
AM
7252003-05-05 Alan Modra <amodra@bigpond.net.au>
726
727 * ldlex.l: Accept C style comments in version scripts.
728
c7996ad6
L
7292003-04-28 H.J. Lu <hjl@gnu.org>
730
731 * ldlang.c (lang_process): Add the relax finalize pass.
732
733 * ldmain.c (main): Initialize link_info.relax_finalizing to
734 FALSE.
735
d145330d
RM
7362003-04-24 Roland McGrath <roland@redhat.com>
737
738 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
739 If a name string is unknown, give an error rather than crashing later.
740
7412003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
742
743 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
8d9cd6b1
NC
744 eh8300hnelf.o, eh8300snelf.o and respective rules.
745 * Makefile.in: Regenerate.
746 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
747 * emulparams/h8300hn.sh: New
748 * emulparams/h8300sn.sh: New
d145330d 749 * emulparams/h8300hnelf.sh: New
8d9cd6b1
NC
750 * emulparams/h8300snelf.sh: New
751 * scripttempl/h8300hn.sc: new
752 * scripttempl/h8300sn.sc: new
753
0f0569c4
L
7542003-04-23 H.J. Lu <hjl@gnu.org>
755
756 * ldmain.c (link_callbacks): Initialize error_handler.
757
758 * ldmisc.c (error_handler): New function.
759
760 * ldmisc.h (error_handler): New prototype.
761
e2cebd4b
SC
7622003-04-21 Stephane Carrez <stcarrez@nerim.fr>
763
764 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
765 * emulparams/m68hc11elfb.sh: Likewise.
766 * emulparams/m68hc12elf.sh: Likewise.
767 * emulparams/m68hc12elfb.sh: Likewise.
768
67bb9940
SC
7692003-04-19 Stephane Carrez <stcarrez@nerim.fr>
770
771 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
772 68HC11 and 68HC12.
773 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
774 generate.
775 (LDEMUL_FINISH): Override to generate the trampolines after gc and
776 linker relaxation.
777 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
778 stub file for trampolines.
779 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
780 --no-trampoline and --bank-window to control the memory bank window.
781
97b51f20
L
7822003-04-18 H.J. Lu <hjl@gnu.org>
783
784 * ldfile.c (ldfile_add_library_path): Remove the unused
785 variable.
786
517ed485
NC
7872003-04-18 Andrew Haley <aph@cambridge.redhat.com>
788
789 * scripttempl/xstormy16.sc (__data, __rdata): New.
790
39f1ebed
NC
7912003-04-16 Nick Clifton <nickc@redhat.com>
792
793 * scripttempl/xstormy16.sc: Add .jcr section mapping.
794
731e28d8
L
7952003-04-15 H.J. Lu <hjl@gnu.org>
796
797 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
798
799 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
800
c2dcd04e
NC
8012003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
802
803 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
804 * ld.texinfo: Likewise.
805
877d60f7
AM
8062003-04-14 Alan Modra <amodra@bigpond.net.au>
807
808 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
809 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
810 other variants of crtbegin.o, crtend.o.
811 (DTOR): Likewise.
812 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
813 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
814 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
815 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
816 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
817 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
818 * scripttempl/mmo.sc (ctors, dtors): Likewise.
819 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
820
d4b6ee67
NC
8212003-04-09 Dmitry Diky <diwil@mail.ru>
822
823 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
824 sections to respect C++ constructor/destructor. Add ctors/dtors
825 start/stop definitions.
826 * scripttempl/elf32msp430_3.sc: Likewise.
827
bb10df36
NC
8282003-04-06 Nick Clifton <nickc@redhat.com>
829
830 * ld.texinfo (Options): Add a reminder of the target specific
831 nature to the description of the i386 PE specific options, for
832 readers who have not read all the way through the manual.
833
be33c5dd
SS
8342003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
835
9f863369 836 * configure.tgt: Fixed bug in list of targ_extra_emuls.
be33c5dd
SS
837 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
838 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
839 * emulparams/tic3xcoff_onchip.sh: Ditto
840 * emulparams/tic4xcoff.sh: Ditto
841 * scripttempl/tic4xcoff.sc: Ditto
842
e8fd7476
NC
8432003-04-03 Nick Clifton <nickc@redhat.com>
844
845 * NEWS: Mention support for Xtensa architecture.
846
2b817be1
NC
8472003-04-02 Nick Clifton <nickc@redhat.com>
848
849 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
850
8512003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
852
853 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
854 Don't call pe_dll_build_section() if link_info.relocateable.
855 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
856 if link_info.relocateable.
857
8582003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
859
860 * pe-dll.c (process_def_file): Don't create an export
861 section if there are no exports and we're building an exe
862 (pe_dll_build_sections): Ditto
863 (pe_dll_fill_sections): Conditionalize setting
864 abfd->dll true on info->shared
865 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
866 If i386pe or armpe, call pe_dll_build_section()
867 for both exe's and dll's, not just dll's.
868 (gld_${EMULATION_NAME}_finish): For all targets except
869 shpe and mipspe, call pe_dll_fill_sections() for both
870 exe's and dll's, not just dll's.
871
f6c8b716
BW
8722003-04-02 Bob Wilson <bob.wilson@acm.org>
873
874 * emulparams/xtensa-config.sh: Remove comment indicating that this is
875 a generated file.
876
e0001a05
NC
8772003-04-01 Bob Wilson <bob.wilson@acm.org>
878
877d60f7
AM
879 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
880 (eelf32xtensa.c): New target.
881 * Makefile.in: Regenerate.
882 * configure.tgt: Handle xtensa-*-*.
883 * gen-doc.texi: Set XTENSA variable.
884 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
885 * emulparams/elf32xtensa.sh: New file.
886 * emulparams/xtensa-config.sh: Likewise.
887 * emultempl/xtensaelf.em: Likewise.
888 * scripttempl/elfxtensa.sc: Likewise.
e0001a05 889
276e5094
JJ
8902003-04-01 Jakub Jelinek <jakub@redhat.com>
891
892 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
893 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
894 if --enable-64-bit-bfd.
895
5a6c6817
NC
8962003-04-01 Nick Clifton <nickc@redhat.com>
897
394ce546 898 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
5a6c6817 899 note section.
394ce546 900 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
5a6c6817
NC
901 name of note section.
902
a6e02871
AO
9032003-03-31 Alexandre Oliva <aoliva@redhat.com>
904
905 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
906 --section-start.
907
5ed6aba4
NC
9082003-03-31 David Heine <dlheine@suif.stanford.edu>
909
910 * ldfile.c (ldfile_add_library_path): Always allocate space for
911 the filename.
912 * ldlang.c (lang_register_vers_node): Free the node if it cannot
913 be used.
914 * ldmain.c (set_scripts_dir): Always free the constructed
915 directory name.
916 (add_keepsyms_file): Fix memory leak.
917 * ldmisc.c (vfinfo): Likewise.
877d60f7 918 * lexsup.c (parse_args): Likewise.
5ed6aba4 919
e16bb312
NC
9202003-03-25 Stan Cox <scox@redhat.com>
921 Nick Clifton <nickc@redhat.com>
877d60f7 922
6bc8652b 923 Contribute support for Intel's iWMMXt chip - an ARM variant:
e16bb312
NC
924
925 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
926 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
927 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
928 (.bss): Likewise.
929
3fe38064
NC
9302003-03-25 Alexandre Oliva <aoliva@redhat.com>
931
932 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
933 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
934 (main): Initialize them.
935 * ldfile.c: Include pathnames.h.
936 (is_sysrooted_pathname): New.
937 (ldfile_add_library_path): Use it.
938 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
939 search_dirs if given an absolute pathname.
940 (ldfile_open_file): Issue error message for sysrooted
941 absolute pathnames.
942 * Makefile.am: Updated dependencies.
943 * Makefile.in: Rebuild.
944