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