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