* Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
ce4f7385
AM
12002-07-03 Alan Modra <amodra@bigpond.net.au>
2
3 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
4 Run "make dep-am".
5 * Makefile.in: Regenerate.
6
b7b482a3
AM
72002-07-02 Alan Modra <amodra@bigpond.net.au>
8
71daf8b4
AM
9 * ldfile.c (ldfile_try_open_bfd): Formatting.
10
b7b482a3
AM
11 * ldmisc.c (demangle): Move so that it doesn't intrude between
12 vfinfo comment and body. Add comment.
13
29e2951e
AM
142002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
15
16 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
17
e3e942e9
AM
182002-07-01 Alan Modra <amodra@bigpond.net.au>
19
20 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
21 * ldlang.c (entry_sym): Likewise.
22 (ldlang_undef_chain_list_type): Likewise.
23 (lang_finish): Adjust references to entry_symbol.
24 (lang_add_entry): Likewise.
25 (lang_gc_sections): Use link_info.gc_sym_list.
26 (lang_process): Set link_info.gc_sym_list.
27 * ldlex.l: Include bfdlink.h.
28 * ldmain.c (main): Init link_info.gc_sym_list.
29 * emultempl/aix.em: Adjust references to entry_symbol.
30 * emultempl/armcoff.em: Likewise.
31 * emultempl/armelf.em: Likewise.
32 * emultempl/pe.em: Likewise.
33 * emultempl/ppc64elf.em (ppc_after_open): New function.
34 (LDEMUL_AFTER_OPEN): Define.
35 * emulparams/elf64ppc.sh: KEEP .opd sections.
36
a66c0f2c
SC
372002-06-29 Stephane Carrez <stcarrez@nerim.fr>
38
39 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
40 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
41 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
42 (EEPROM_START_ADDR): Define.
43 (EEPROM_MEMORY): Define.
44 * emulparams/m68hc12elf.sh: Likewise.
45 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
46 section to put soft registers in .page0.
47 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
48
2b67cf00
JL
492002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
50
51 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
52 section. Add ${RELOCATING-0}.
53
164c4054
JR
54Wed Jun 26 16:33:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
55
56 * emulparams/shelf.sh (STACK_ADDR): Don't define.
57 (OTHER_SECTIONS): Define.
58 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
59 (OTHER_SECTIONS): Undef.
60
fc28fbc2
AM
612002-06-26 Alan Modra <amodra@bigpond.net.au>
62
63 * ldmisc.c (demangle): Restore dots stripped from sym name.
64
a13a0de8
L
652002-06-25 H.J. Lu <hjl@gnu.org>
66
67 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
68 * Makefile.in: Regenerated.
69
b553b183
NC
702002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
71
72 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
73 the size of attached object files, to allow make the object files
74 available via FTP or HTTP and to mention that the mail will be
75 sent to a mailing list.
76
2755afba
NC
772002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
78
79 * ld/configure.host (romp): Drop support.
80
7d0a848e
CD
812002-06-18 Chris Demetriou <cgd@broadcom.com>
82
83 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
84 section flags for SEC_DATA, rather than for SEC_CODE being unset.
85
8505f884
CD
862002-06-18 Chris Demetriou <cgd@broadcom.com>
87
88 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
89 format specifier used to print BFD name.
90
7d553a40
DB
912002-06-18 Dave Brolley <brolley@redhat.com>
92
93 From Catherine Moore, Michael Meissner, Jim Blandy:
94 * emulparams/elf32frv.sh: New file.
95 * configure.tgt: Support frv-*-*.
96 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
97 (eelf32frv.c): New target.
98
82434356
TR
992002-06-17 Tom Rix <trix@redhat.com>
100
101 * emultempl/elf32.em: gld*_get_script: Check for
102 GENERATE_COMBRELOC_SCRIPT.
103 * scripttempl/elfd10v.sc : Fix STACK and INSN.
104 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
105
5d9b5481
JR
106Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
107
108 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
109
c4bb8067
L
1102002-06-12 H.J. Lu <hjl@gnu.org>
111
112 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
113 false if xvec doesn't match.
114
e052cfbe
RS
1152002-06-10 Richard Sandiford <rsandifo@redhat.com>
116
117 * ldlang.c (lang_size_sections_1): Skip removed output sections.
118
4da711b1
AM
1192002-06-08 Alan Modra <amodra@bigpond.net.au>
120
121 * ldexp.c: Replace CONST with const.
122 * ldfile.c: Likewise.
123 * ldfile.h: Likewise.
124 * ldlex.l: Likewise.
125 * mri.c: Likewise.
126 * pe-dll.h: Likewise.
127
eb95bb9a
AM
1282002-06-07 Alan Modra <amodra@bigpond.net.au>
129
130 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
131
e0076ab3
NC
1322002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
133
134 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
135 to -1 == implicit enable.
136 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
137 initialize link_info.pei386_auto_import to -1 == implicit
138 enable.
139 (gld_${EMULATION_NAME}_parse_args): When processing
140 --enable-auto-import and --disable-auto-import options, use
141 '1' and '0' instead of 'true' and 'false'.
142 (pe_find_data_imports): Only issue message about auto-import
143 when the feature is implicitly enabled. Downgrade message to
144 informational instead of warning.
145
f13a5424
AM
1462002-06-07 Alan Modra <amodra@bigpond.net.au>
147
148 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
149
1abffd82
JL
1502002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
151
152 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
153 HOSTING_CRT0 and HOSTING_LIBS.
154
e0076ab3 1552002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
7a33bc10
JR
156
157 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
158
4a5e698d
JT
1592002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
160
161 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
162 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
163
1d475d82
AM
1642002-06-05 Alan Modra <amodra@bigpond.net.au>
165
166 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
167 SEC_EXCLUDE sections when doing a relocatable link.
168
5b0e55b6
JT
1692002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
170
171 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
172 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
173 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
174 (eshlelf64_nbsd.c): New rules.
175 * Makefile.in: Regenerate.
176 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
177 (sh64-*-netbsd*): New targets.
178 * emulparams/shelf32_nbsd.sh: New file.
179 * emulparams/shelf64_nbsd.sh: New file.
180 * emulparams/shlelf32_nbsd.sh: New file.
181 * emulparams/shlelf64_nbsd.sh: New file.
182
9ad85d9b
AM
1832002-06-04 Alan Modra <amodra@bigpond.net.au>
184
185 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
186
0c9b4fee
MM
1872002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
188
189 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
190 C++ constructors/destructors, loosely based on the m68hc11 port.
191
2c538bde
AM
1922002-05-31 Alan Modra <amodra@bigpond.net.au>
193
194 * Makefile.in: Regenerate.
195 * aclocal.m4: Regenerate.
196 * config.in: Regenerate.
197 * configure: Regenerate.
198
a0cb91c6
AM
1992002-05-31 Graeme Peterson <gp@qnx.com>
200
201 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
202 (ei386nto.c): Add rule.
203 * Makefile.in: Regenerate.
204 * configure.tgt: Add i[3456]86-*-nto-qnx*.
205 * emulparams/i386nto.sh: New file.
206
37020578
JT
2072002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
208
209 * NEWS: Add entry for VAX ELF support.
210
ab68f3e0
JT
2112002-05-29 Matt Thomas <matt@3am-software.com>
212 Jason Thorpe <thorpej@wasabisystems.com>
213
214 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
215 (eelf32vax.c)
216 (evaxnbsd.c): New rules.
217 * Makefile.in: Regenerate.
218 * configure.tgt (vax-*-netbsdelf*)
219 (vax-*-netbsdaout*)
220 (vax-*-netbsd*): New targets.
221 * emulparams/elf32vax.sh: New file.
222 * emulparams/vaxnbsd.sh: New file.
223
8afb0e02
NC
2242002-05-29 Adam Nemet <anemet@lnxw.com>
225
226 * emultempl/armelf.em (arm_elf_after_open): Don't determine
227 bfd_for_interwork, instead add glue sections to each input bfd.
228 (bfd_for_interwork): New global.
229 (arm_elf_set_bfd_for_interworking): New function.
230 (arm_elf_before_allocation): Use it.
231
d172d4ba
NC
2322002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
233
234 * Makefile.am: Add DLX make target.
235 * configure.tgt: Add DLX configuration.
236 * Makefile.in: Regenerate.
237 * emulparams/elf32_dlx.sh: New file
238 * scripttempl/dlx.sc: New file
239
b4477fa8
NC
2402002-05-27 Per Lundberg <per@caleb.dnsalias.org>
241
242 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
243 * Makefile.in: Regenerate.
244 * emulparams/elf_chaos.sh: Use elf_chaos script.
245 * scripttempl/elf_chaos.sc: New file.
246
ee3cc2e2
RS
2472002-05-27 Richard Sandiford <rsandifo@redhat.com>
248
249 * ldlang.c (lang_size_sections_1): Move check for conflicting load
250 addresses and regions from here...
251 (lang_get_regions): ...to this new function.
252 (lang_leave_output_section_statement): Use lang_get_regions.
253 (lang_leave_overlay): Likewise.
254 * mri.c (mri_draw_tree): Pass null as last argument to
255 lang_leave_output_section_statement.
256 * emultempl/elf32.em (gld*_place_orphan): Likewise.
257 * emultempl/mmo.em (mmo_place_orphan): Likewise.
258 * emultempl/pe.em (gld*_place_orphan): Likewise.
259
aa501e5c
JT
2602002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
261
262 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
263
658957db
KH
2642002-05-25 Kazu Hirata <kazu@cs.umass.edu>
265
266 * ldemul.c: Fix formatting.
267 * ldfile.c: Likewise.
268 * pe-dll.c: Likewise.
269 * pe-dll.h: Likewise.
270
3511b595
AM
2712002-05-25 Alan Modra <amodra@bigpond.net.au>
272
0d6d936f
AM
273 * ldlang.c (lang_process): Formatting, grammar.
274
3511b595
AM
275 * ldlex.l: Use #include "" instead of <> for local header files.
276
436e8db0
NC
2772002-05-24 TAMURA Kent <kent@netbsd.org>
278
279 * configure.tgt: Add a target for i386-netbsdpe.
280
13ae64f3
JJ
2812002-05-23 Jakub Jelinek <jakub@redhat.com>
282
283 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
284 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
285 output section if necessary. Handle .tbss.
286 (lang_size_sections): Clear _raw_size for .tbss section
287 (it allocates space in PT_TLS segment only).
288 * ldwrite.c (build_link_order): Build link order for .tbss too.
289
68b2fc7a
AM
2902002-05-23 Alan Modra <amodra@bigpond.net.au>
291
292 * configure.in: Correct spelling of AC_PREREQ.
293
70b0be79
CF
2942002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
295
296 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
297 default.
298 (autofilter_objlist): Add crtbegin.o, crtend.o.
299
3002002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
301
302 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
303 (longopts): Add new option --exclude-libs.
304 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
305 (gld_${EMULATION_NAME}_parse_args): Use it.
306 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
307 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
308 from whole archives.
309 (pe_dll_add_excludes): Set excludes->type.
310 (auto_export): Add new variable libname and set to archive basename if
311 abfd. Use it when filtering default and user-specified libarary
312 excludes. Let string "ALL" mean all libs when filtering user-specified
313 libs.
314 * ld.texinfo: Document --exclude-libs.
315
fac1652d
AM
3162002-05-22 Alan Modra <amodra@bigpond.net.au>
317
318 * ldemul.c (ldemul_new_vers_pattern): New function.
319 * ldemul.h (ldemul_new_vers_pattern): Declare.
320 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
321 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
322 * emultempl/ppc64elf.em (dotsyms): New static var.
323 (gld${EMULATION_NAME}_new_vers_pattern): New function.
324 (LDEMUL_NEW_VERS_PATTERN): Define.
325 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
326 (PARSE_AND_LIST_LONGOPTS): Likewise.
327 (PARSE_AND_LIST_ARGS_CASES): Handle them.
328 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
329 initialiser.
330 * emultempl/armcoff.em: Likewise.
331 * emultempl/armelf_oabi.em: Likewise.
332 * emultempl/beos.em: Likewise.
333 * emultempl/elf32.em: Likewise.
334 * emultempl/generic.em: Likewise.
335 * emultempl/gld960.em: Likewise.
336 * emultempl/gld960c.em: Likewise.
337 * emultempl/linux.em: Likewise.
338 * emultempl/lnk960.em: Likewise.
339 * emultempl/m68kcoff.em: Likewise.
340 * emultempl/mipsecoff.em: Likewise.
341 * emultempl/pe.em: Likewise.
342 * emultempl/sunos.em: Likewise.
343 * emultempl/ticoff.em: Likewise.
344 * emultempl/vanilla.em: Likewise.
345
eb3d6bb8
AM
3462002-05-22 Alan Modra <amodra@bigpond.net.au>
347
348 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
349 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
350 (LIB_SEARCH_DIRS): No need to use "tr".
351 (COMPILE_IN): Only set for native targets.
352 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
353 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
354 * configure.tgt (powerpc*): Set tdir_*.
355 (powerpcle*): Correct targ_extra_emuls.
356 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
357 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
358
54f24647
AM
3592002-05-22 Alan Modra <amodra@bigpond.net.au>
360
361 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
362 calling lang_add_entry.
363
aa713662
L
3642002-05-21 H.J. Lu (hjl@gnu.org)
365
366 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
367 "-z muldefs".
368 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
369
370 * ld.texinfo: Updated for --allow-multiple-definition and
371 "-z muldefs".
372
373 * ldmain.c (main): Initialize the allow_multiple_definition
374 field to false.
375
376 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
377 (ld_options): Add --allow-multiple-definition.
378 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
379
658f2588
JT
3802002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
381
382 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
383 (earmelfb_nbsd.c): New rule.
384 * Makefile.in: Regenerate.
385 * configure.tgt (armeb-*-netbsdelf*): New target.
386 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
387 (arm-*-netbsd*): Likewise.
388 * emulparams/armelfb_nbsd.sh: New file.
389
ca10c62d
TR
3902002-05-18 Tom Rix <trix@redhat.com>
391
392 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
393 support.
394
fae1e84f
MM
3952002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
396
397 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
398 * Makefile.in: Regenerate.
399 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
400
7c8bf1e8
MM
4012002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
402
403 * emulparams/avr1.sh: New file.
404 * emulparams/avr2.sh: New file.
405 * emulparams/avr3.sh: New file.
406 * emulparams/avr4.sh: New file.
407 * emulparams/avr5.sh: New file.
408 * scripttempl/avr.sc: New file.
409
c2c01aa7
AM
4102002-05-15 Alan Modra <amodra@bigpond.net.au>
411
412 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
413 (lang_place_orphans): Abort if just_syms_flag.
414
f1f0d9ab
TR
4152002-05-10 Tom Rix <trix@redhat.com>
416
417 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
418 architecture and machine information in the output bfd.
419 (gld*_before_parse): Remove old arch and machine code.
420 (choose_target): Rename to gld*_choose_target.
421 (rtld): Change type to int.
422 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
423 objects in XCOFF archives.
424 * ldfile.h: Update copyright date.
425
f4d73366
JJ
4262002-05-10 Jakub Jelinek <jakub@redhat.com>
427
428 * ldmain.c (main): Enable -z combreloc by default.
429
d3d8a9ee
NC
4302002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
431
432 * Makefile.am: Honour DESTDIR.
433 * Makefile.in: Regenerate.
434
9f88b410
RS
4352002-05-07 Richard Sandiford <rsandifo@redhat.com>
436
437 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
438 (lang_enter_overlay): Remove the last two parameters.
439 (lang_leave_overlay): Take them here instead.
440 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
441 (section): Pass LMA and crossref flag to lang_leave_overlay rather
442 than lang_enter_overlay.
443 * ldlang.c (lang_memory_region_lookup): Return null for null names.
444 (lang_output_section_statement_lookup): Initialize update_dot_tree.
445 (lang_size_sections_1): Evaluate it.
446 (lang_leave_output_section_statement): Rework LMA lookup.
447 (overlay_lma, overlay_nocrossrefs): Remove.
3511b595 448 (lang_enter_overlay): Remove LMA and crossref arguments.
9f88b410
RS
449 (lang_enter_overlay_section): Don't set the LMA here.
450 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
451 assignment to the last section's update_dot_tree. Unconditionally
452 use the load and run-time regions specified in the OVERLAY statement.
453 Likewise the first section's LMA. Only set the other sections' LMAs
454 when no load region is given.
455
b9a743c8
NC
4562002-05-06 Nick Clifton <nickc@redhat.com>
457
458 * po/sv.po: New translation.
459
a3d60be3
AM
4602002-05-04 Alan Modra <amodra@bigpond.net.au>
461
462 * emultempl/hppaelf.em (build_section_lists): New function.
463 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
464 and build_section_lists.
465
b7a26f91
KH
4662002-05-03 Kazu Hirata <kazu@cs.umass.edu>
467
468 * ld.h: Fix formatting.
469 * ldexp.c: Likewise.
470 * ldfile.c: Likewise.
471 * ldlang.c: Likewise.
472 * ldmain.c: Likewise.
473 * lexsup.c: Likewise.
474 * pe-dll.c: Likewise.
475
805fc799
AM
4762002-05-02 Alan Modra <amodra@bigpond.net.au>
477
478 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
479 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
480 (build_section_lists): Do output_section tests here.
481
cc7e59b2
TR
4822002-04-30 Tom Rix <trix@redhat.com>
483
484 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
485
9c1d81c1
AM
4862002-05-01 Alan Modra <amodra@bigpond.net.au>
487
488 Long branch stubs, multiple stub sections.
489 * emultempl/ppc64elf.em: Include ldctor.h.
490 (stub_file): New var.
491 (group_size): New var.
492 (ppc_create_output_section_statements): New function.
493 (struct hook_stub_info): New.
494 (hook_in_stub): New function.
495 (ppc_add_stub_section): New function.
496 (ppc_layout_sections_again): New function.
497 (build_section_lists): New function.
498 (gld${EMULATION_NAME}_finish): Rewrite.
499 (real_func): New var.
500 (ppc_for_each_input_file_wrapper): New function.
501 (ppc_lang_for_each_input_file): New function.
502 (lang_for_each_input_file): Define.
503 (PARSE_AND_LIST_PROLOGUE): Define.
504 (PARSE_AND_LIST_LONGOPTS): Define.
505 (PARSE_AND_LIST_OPTIONS): Define.
506 (PARSE_AND_LIST_ARGS_CASES): Define.
507 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
508
aa67bccf
TR
5092002-04-30 Tom Rix <trix@redhat.com>
510
511 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
512 -blibpath, -bnolibpath support.
513
94349e12
MM
5142002-04-30 Mark Mitchell <mark@codesourcery.com>
515
516 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
517 (eelf32ppcwindiss.c): New target.
518 * Makefile.in: Regenerated.
519 * configure.tgt: Add support for powerpc-*-windiss.
520 * emulparams/elf32ppcwindiss.sh: New file.
521
7b17f854
RS
5222002-04-30 Richard Sandiford <rsandifo@redhat.com>
523
524 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
525 * ldexp.c (exp_print_token): Add "infix_p" argument.
526 (exp_print_tree): Update accordingly.
527
596dafeb
AM
5282002-04-28 Alan Modra <amodra@bigpond.net.au>
529
530 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
531 * Makefile.in: Regenerate.
532 * mpw-elfmips.c: Delete.
533 * mpw-eppcmac.c: Delete.
534 * mpw-esh.c: Delete.
535 * mpw-idtmips.c: Delete.
536
a44d7f9c
JR
537Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
538
539 * emulparams/shelf32.sh (MACHINE): Now sh5.
540
944cd72c
TS
5412002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
542
543 * ldgram.y: Fix syntax warning.
544
5835c212
NC
5452002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
546
547 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
548 to prevent "-n" from being taken as an abbreviation for
549 "--no-pipeline-knowledge".
550
024531e2
AM
5512002-04-08 Alan Modra <amodra@bigpond.net.au>
552
d08a14c3
AM
553 * ldlang.c (lang_size_sections_1): Don't complain about
554 SEC_NEVER_LOAD sections having no memory region specified.
555
024531e2
AM
556 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
557
c657a1f0
MG
5582002-04-07 matthew green <mrg@redhat.com>
559
560 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
561
61bef6f1
AM
5622002-04-04 Alan Modra <amodra@bigpond.net.au>
563
564 * dep-in.sed: Cope with absolute paths.
565 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
566 Run "make dep-am".
567 * Makefile.in: Regenerate.
568
49ba2791
TS
5692002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
570
571 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
572
50e60fb5
JJ
5732002-04-03 Jakub Jelinek <jakub@redhat.com>
574
575 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
576 is smaller than maximum, round dot up to common page boundary.
577
6f12f4ca
AM
5782002-03-28 Alan Modra <amodra@bigpond.net.au>
579
580 * configure.host: Set up for generic hosts first, then tweak as
581 necessary in more specific targets.
582 (HOSTING_LIBS): Include libgcc_eh.a if found.
583
a8f1f017
AJ
5842002-03-23 Andreas Jaeger <aj@suse.de>
585
586 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
587
1d3fdf38
AM
5882002-03-21 Alan Modra <amodra@bigpond.net.au>
589
590 * Makefile.am: Run "make dep-am".
591 * Makefile.in: Regenerate.
592
79b1faa8
AM
5932002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
594
595 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
596
fcf0e35b
AM
5972002-03-20 Alan Modra <amodra@bigpond.net.au>
598
599 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
600 add the symbol to the linker hash table immediately.
601 (lang_place_undefineds): Split symbol creation out..
602 (insert_undefined): ..to here.
603
fed2999d
DB
6042002-03-18 David O'Brien <obrien@FreeBSD.org>
605
606 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
607 the contents of the buffer returned from basename function will are
608 getting overwritten while still being used.
609
beb43bb9
JH
610Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
611 Andreas Jaeger <aj@suse.de>
612 Andreas Schwab <schwab@suse.de>
613
614 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
615 * elf_x86_64.sh (ARCH): Set to i386:x86-64
616 set libraries to default to lib64 paths.
617
eb1e0e80
NC
6182002-03-18 Tom Rix <trix@redhat.com>
619
620 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
621 * configure.tgt : Same.
622 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
623 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
624 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
625 emulation parameters for better -b32, -b64 support.
626 * emulparms/aixrs6.sh : Same.
627 * emulparms/ppcmacos.sh : Same.
628 * emultempl/aix.em (choose_target) : Use new emulation parameters
629 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
630 * Makefile.in : Regenerate.
631
a1c259a1
NC
6322002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
633
634 * po/fr.po: Updated version.
635
862120bd
AM
6362002-03-18 Alan Modra <amodra@bigpond.net.au>
637
638 * ldmain.c (main): Move .text readonly flag fudges from here..
639 * ldlang.c (lang_process): ..to here.
640
d35a52e2
AM
6412002-03-14 Alan Modra <amodra@bigpond.net.au>
642
643 * ldlang.c (lang_check): Remove the word size check added in last
644 change. Treat emitrelocations case as for relocatable links.
645
9ce88e60
NC
6462002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
647
648 * po/fr.po: Updated version.
649
30cba025
AM
6502002-03-13 Alan Modra <amodra@bigpond.net.au>
651
652 * ldlang.c (lang_check): Do relocatable link checks first, so that
653 warn_mismatch can't override. Check compatible and word size too.
654
84ec0e6d
DJ
6552002-03-07 Daniel Jacobowitz <drow@mvista.com>
656
657 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
658
2d13d8c5
JJ
6592002-03-05 Jakub Jelinek <jakub@redhat.com>
660
661 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
662 DATA_SEGMENT_ALIGN.
663
b5090659
L
6642002-03-04 H.J. Lu <hjl@gnu.org>
665
666 * scripttempl/elf.sc: Put .preinit_array, .init_array and
667 .fini_array in the data segment.
668
f42ce16e
AM
6692002-03-04 Alan Modra <amodra@bigpond.net.au>
670
671 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
672
de77b6ac
RH
6732002-03-01 David Mosberger <davidm@hpl.hp.com>
674
675 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
676 .init_array, and .fini_array.
677
997e08c0
AS
6782002-02-20 Andreas Schwab <schwab@suse.de>
679
680 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
681 .IA64_unwind* in a relocatable link.
682
9a66911f
NC
6832002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
684
685 * NEWS: Mark 2.12 branch.
686
d86bcc10
MS
6872002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
688
689 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
690 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
691
69f284c7
TR
6922002-02-18 Tom Rix <trix@redhat.com>
693
694 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
695 (gld*_before_allocation): Same.
a8f1f017 696 (gld*_create_output_section_statements): Generate
69f284c7
TR
697 __rtinit if run time linking. Add librtl.a to the link.
698 (gld*_read_file): Clean.
699
82bd7b59
AM
7002002-02-18 Alan Modra <amodra@bigpond.net.au>
701
702 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
703
ac3e50bf
DB
7042002-02-18 David O'Brien <obrien@FreeBSD.org>
705
6a7f963b 706 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
ac3e50bf
DB
707 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
708 and eelf64alpha_fbsd.
6a7f963b 709 * Makefile.in: Regenerate.
ac3e50bf
DB
710 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
711 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
712 use a FreeBSD-specific emulation rather than the psABI one.
713 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
714 for all FreeBSD ELF systems.
715 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
716 emulation.
717 * emulparams/elf32ppc_fbsd.sh: Likewise.
718 * emulparams/elf64_ia64_fbsd.sh: Likewise.
719 * emulparams/elf64_sparc_fbsd.sh: Likewise.
720 * emulparams/elf64alpha_fbsd.sh: Likewise.
721 * emulparams/elf_i386_fbsd.sh: Likewise.
722 * emulparams/elf_x86_64_fbsd.sh: Likewise.
723
6ad738c5
NC
7242002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
725
726 * po/tr.po: Updated version.
727
9673c93c
AM
7282002-02-18 Alan Modra <amodra@bigpond.net.au>
729
730 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
731 (FILL): Likewise.
732
1c5e6447
HPN
7332002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
734
735 * emultempl/mmo.em (mmo_after_open): Don't call
736 _bfd_mmix_check_all_relocs when producing ELF output.
737
8bb57516
RH
7382002-02-15 Richard Henderson <rth@redhat.com>
739
de77b6ac 740 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
8bb57516
RH
741 definition. Emit a unop+nop pair.
742
49fda6c8
HPN
7432002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
744
83c2d653
HPN
745 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
746 for presence of .MMIX.reg_contents.linker_allocated before early
747 exit.
748
49fda6c8
HPN
749 * NEWS: Mention support for MMIX.
750
2c382fb6
AM
7512002-02-15 Alan Modra <amodra@bigpond.net.au>
752
753 Support arbitrary length fill patterns.
a139d329
AM
754 * ld.texinfo (Output Section Fill): Describe fill expressions.
755 (FILL): Refer to the above.
2c382fb6
AM
756 * ldexp.h (etree_value_type): Add "str" field.
757 (union etree_union): Add "str" to "value" struct.
758 (exp_bigintop): Declare.
759 (exp_get_fill): Declare.
760 * ldexp.c: Include "safe-ctype.h".
761 (exp_intop): Set value.str to NULL.
762 (exp_bigintop): New function.
763 (new_rel): Pass in "str", and set new.str from it.
764 (new_rel_from_section): Set new.str to NULL.
765 (fold_name): Adjust calls to new_rel.
766 (exp_fold_tree): Likewise.
767 (exp_get_fill): New function.
768 * ldgram.y (struct big_int bigint, fill_type *fill): New.
769 (INT): Returns a "bigint". Adjust all code handling INTs.
770 (fill_opt): Returns a "fill".
771 (fill_exp): Split out of fill_opt, use for FILL.
772 * ldlang.h (struct _fill_type): New.
773 (fill_type): Move typedef to ldexp.h.
774 (lang_output_section_statement_type): "fill" is now a pointer.
775 (lang_fill_statement_type): Likewise.
776 (lang_padding_statement_type): Likewise.
777 (lang_add_fill): Now takes a "fill_type *" param.
778 (lang_leave_output_section_statement): Likewise.
779 (lang_do_assignments): Likewise.
780 (lang_size_sections): Likewise.
781 (lang_leave_overlay_section): Likewise.
782 (lang_leave_overlay): Likewise.
783 * ldlang.c: Include ldgram.h after ldexp.h.
784 (lang_output_section_statement_lookup): Adjust for fill_type change.
785 (print_fill_statement): Likewise.
786 (print_padding_statement): Likewise.
787 (insert_pad): Now takes a "fill_type *" arg.
788 (size_input_section): Likewise.
789 (lang_size_sections_1): Likewise.
790 (lang_size_sections): Likewise.
791 (lang_do_assignments): Likewise.
792 (lang_add_fill): Likewise.
793 (lang_leave_output_section_statement): Likewise.
794 (lang_leave_overlay_section): Likewise.
795 (lang_leave_overlay): Likewise.
796 Adjust all callers of the above function.
797 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
798 starting with "0X" as well as "0x". Return bigint.str for hex
799 numbers starting with "0x" or "0X", zero bigint.str otherwise.
800 Always use base 16 for numbers starting with "$".
801 * ldmain.c: Include ldgram.h after ldexp.h.
802 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
803 of bfd_fill_link_order.
804 * pe-dll.c: Adjust lang_do_assignments calls.
805 * emultempl/elf32.em: Likewise.
806 * emultempl/hppaelf.em: Likewise.
807 * emultempl/ppc64elf.em: Likewise.
808 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
809 lang_add_assignment call.
810 * emultempl/pe.em: Likewise.
811
313e35ee
AM
8122002-02-14 Phil Edwards <pme@gcc.gnu.org>
813
a139d329 814 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
313e35ee
AM
815 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
816 the pattern in question is not a regexp.
817 * ldlang.c: Likewise.
818 * ldlang.h: Likewise.
819 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
820
2d20f7bf
JJ
8212002-02-12 Jakub Jelinek <jakub@redhat.com>
822
823 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
824 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
825 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
826 * ldexp.c (exp_data_seg): New variable.
827 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
828 (fold_binary): Handle DATA_SEGMENT_ALIGN.
829 (exp_fold_tree): Handle DATA_SEGMENT_END.
830 Pass allocation_done when recursing instead of hardcoding
831 lang_allocating_phase_enum.
832 * ldexp.h (exp_data_seg): New.
833 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
834 (lang_size_sections): New.
835 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
836 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
837 if COMMONPAGESIZE is defined.
838 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
839 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
840 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
841 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
842 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
843 libraries only.
844
06880219
AM
8452002-02-11 Alan Modra <amodra@bigpond.net.au>
846
847 * Makefile.in: Regenerate.
848
37b0ac0f
DJ
8492002-02-10 Daniel Jacobowitz <drow@mvista.com>
850
851 * lexsup.c: Remove strtoul declaration.
852
4e5bae56
DJ
8532002-02-10 Daniel Jacobowitz <drow@mvista.com>
854
855 * ldmain.c: Add prototype for main ().
856 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
857 * emultempl/lnk960.em (lnk960_choose_target): Function should
858 take two arguments.
859
1e281515
AM
8602002-02-10 Alan Modra <amodra@bigpond.net.au>
861
862 * ldlang.c (entry_section): New initialised variable.
863 (lang_finish): Use it.
864 * ldlang.h (entry_section): Declare.
865 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
866 entry_section to ".opd".
867
f92d92ff 8682002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
869
870 * ld.texinfo (Options): Add back in -nostdlib documentation,
871 which had been inadvertently removed.
872
74c44237
HPN
8732002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
874
875 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
876 register section vma to a sane value after emitting error. Make
877 fatal conditions cause program exit when emitting message.
878
5e37cc46
NC
8792002-02-08 Ivan Guzvinec <ivang@opencores.org>
880
881 * configure.tgt: Add or32-*-rtems target.
882
2d92cb7d
AO
8832002-02-08 Alexandre Oliva <aoliva@redhat.com>
884
885 Contribute sh64-elf.
886 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
887 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
888 in OTHER_RELOCATABLE_SECTIONS.
889 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
890 * emulparams/shelf32.sh (STACK_ADDR): Define.
891 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
892 (OTHER_SECTIONS): this. Removed stack settings.
893 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
894 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
895 2001-03-12 DJ Delorie <dj@redhat.com>
896 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
897 relaxing if any shmedia or mixed sections are found.
898 2001-03-07 DJ Delorie <dj@redhat.com>
899 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
900 einfo. Gracefully decline to output to non-elf formats.
901 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
902 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
903 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
904 * emulparams/shelf32.sh: Ditto.
905 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
906 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
907 comment.
908 2001-01-10 Ben Elliston <bje@redhat.com>
909 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
910 non-portable shell constructs. From Hans-Peter Nilsson.
911 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
912 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
913 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
914 dependencies to the shell script include chain.
915 * Makefile.in: Regenerate.
916 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
917 * emultempl/sh64elf.em: Update and tweak comments.
918 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
919 make a .cranges section SEC_IN_MEMORY.
920 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
921 * emultempl/sh64elf.em
922 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
923 .cranges section found to be necessary; continue and set stored
924 section contents flags for sections with non-mixed contents.
925 Use a struct sh64_section_data container and sh64_elf_section_data
926 to store contents-type flags.
927 Remove unused update of "isec".
928 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
929 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
930 access contents-type flags. Assert that the associated container
931 is initialized. Use that container, not elf_gp_size, to hold size
932 of linker-generated cranges contents.
933 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
934 * emultempl/sh64elf.em
935 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
936 there's already a .cranges section. When section flag difference
937 is found, don't NULL-check cranges a second time. Tweak comments.
938 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
939 merging, not max size, as size of ld-generated .cranges contents.
940 Don't set ELF section flags in output section. When checking for
941 needed .cranges descriptors, don't use a variable; compare
942 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
943 comments.
944 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
945 * emultempl/sh64elf.em: New file.
946 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
947 * Makefile.in: Regenerate.
948 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
949 (OTHER_RELOCATING_SECTIONS): Ditto.
950 (EXTRA_EM_FILE): New, set to sh64elf if not set.
951 * emulparams/shlelf32.sh: Stub out all settings except
952 OUTPUT_FORMAT. Source shelf32.sh.
953 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
954 OTHER_RELOCATING_SECTIONS.
955 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
956 * emulparams/shlelf64.sh: Stub out all settings except
957 OUTPUT_FORMAT. Source shelf64.sh.
958 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
959 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
960 .cranges section.
961 (DATA_START_SYMBOLS): Define, provide ___data.
962 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
963 for consecutive .data section.
964 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
965 section after .data section.
966 * emulparams/shlelf64.sh: Ditto.
967 * emulparams/shelf32.sh: Ditto.
968 (ALIGNMENT): Define to 8.
969 * emulparams/shelf32.sh: Ditto.
970 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
971 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
972 built-in linker scripts.
973 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
974 * emulparams/shlelf64.sh: New.
975 * emulparams/shelf64.sh: New.
976 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
977 targ_extra_emuls.
978 * Makefile.am: Add support for shlelf64 and shelf64.
979 * Makefile.in: Regenerate.
980 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
981 * configure.tgt (sh64-*-elf*): Add shelf as default.
982 Add shlelf to targ_extra_emuls.
983 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
984 * emulparams/shelf32.sh: New file.
985 * emulparams/shlelf32.sh: New file.
986 * Makefile.am: Add support for shlelf32 and shelf32.
987 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
988 * Makefile.in: Regenerate.
989
e3dc8847
HPN
9902002-02-05 Hans-Peter Nilsson <hp@axis.com>
991
992 * ldlang.c (lang_reset_memory_regions): Rename from
993 reset_memory_regions. Change all callers. Make public.
994 * ldlang.h (lang_reset_memory_regions): Prototype.
995 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
996 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
997 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
998 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 999
8017dbcb
HPN
10002002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1001
1002 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1003 arithmetic when checking for too many global registers.
1004
006336b8
JT
10052002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1006
1007 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1008 (ehppanbsd.c): New rule.
1009 * Makefile.in: Regenerate.
1010 * configure.tgt (hppa*-*-netbsd*): New target.
1011 * emulparams/hppalinux.sh: Add comment to check other files
1012 that source this file it is modified, and list which
1013 files that do.
1014 * emulparams/hppanbsd.sh: New file.
1015
da1f2fec
GK
10162002-02-01 Geoffrey Keating <geoffk@redhat.com>
1017
1018 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1019 stack.
1020
48fa4a5d
HPN
10212002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1022
1023 Support on-demand global register allocation from
1024 R_MMIX_BASE_PLUS_OFFSET relocs.
1025 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1026 mmix_set_reg_section_vma. Call
1027 _bfd_mmix_finalize_linker_allocated_gregs.
1028 (mmix_before_allocation): New function.
1029 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1030 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1031 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1032 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1033 before .MMIX.reg_contents.
1034 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1035 (mmo_after_open): New function.
1036 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1037 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1038 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1039
3b16e843
NC
10402002-01-31 Ivan Guzvinec <ivang@opencores.org>
1041
1042 * emulparams/or32.sh: New file.
1043 * emulparams/or32elf.sh: New file.
1044 * scripttempl/or32.sc: New file.
1045 * configure.tgt : Add support for or32.
1046 * configure: Regenerate
1047 * Makefile.am: Add support for or32.
1048 * Makefile.in: Regenerate.
1049 * NEWS: Mention support for or32.
1050 * po/ld.pot: Regenerate.
1051
f744d540 10522002-01-29 Chris Demetriou <cgd@broadcom.com>
313e35ee 1053 Mitch Lichtenberg <mpl@broadcom.com>
f744d540
CD
1054
1055 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1056 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1057 reloc creation (ld --embedded-relocs).
1058
4867be41
DJ
10592002-01-27 Daniel Jacobowitz <drow@mvista.com>
1060
1061 * configure: Regenerated.
1062
cd8e197b
HPN
10632002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1064
1065 * Makefile.am (install): Depend on install-info.
1066 * Makefile.in: Regenerate.
1067
9cb61eab
AM
10682002-01-26 Christian Rose <menthos@menthos.com>
1069
1070 * ldmain.c (main): Use full sentences to ease translation.
1071
1caa7b23
NC
10722002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1073
1074 * po/fr.po: Updated version.
1075
1ddbd152
NC
10762002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1077
1078 * po/es.po: Updated version.
1079
1e84433f
AJ
10802002-01-25 Andreas Jaeger <aj@suse.de>
1081
1082 * ldlex.l (yy_input): Correct error check.
1083
6d39955e
AM
10842002-01-25 Alan Modra <amodra@bigpond.net.au>
1085
1086 * ldmisc.c (demangle): Put back dots when string not demangled.
1087
a9ed1e1b
RH
10882002-01-22 Richard Henderson <rth@redhat.com>
1089
1090 * emulparams/elf64alpha.sh (NOP): Use unop.
1091
968ec2b9
AJ
10922002-01-21 Andreas Jaeger <aj@suse.de>
1093
1094 * ldlex.l: Use fread instead of read.
1095
9596feea
JT
10962002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1097
1098 * configure.tgt (ia64-*-netbsd*): New target.
1099
493a6d47
L
11002002-01-21 H.J. Lu <hjl@gnu.org>
1101
1102 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1103 0.
1104 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1105
2a538ba5
AJ
11062002-01-18 Andreas Jaeger <aj@suse.de>
1107
1108 * ldver.c (ldversion): Update year.
1109
328577ad
NC
11102002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1111
1112 * po/ld.pot: Regenerate.
1113
1f808cd5
AM
11142002-01-16 Alan Modra <amodra@bigpond.net.au>
1115
1116 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1117 * Makefile.in: Regenerate.
1118 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1119 * emultempl/ppc64elf.em: New file.
1120
335c5610
DD
11212002-01-15 DJ Delorie <dj@redhat.com>
1122
1123 * scripttempl/pe.sc: Add support for constructor priorities.
1124
c40bbade
DC
11252002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1126
1127 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1128 * emulparams/avr23xx.sh: Likewise.
1129 * emulparams/avr4433.sh: Likewise.
1130 * emulparams/avr44x4.sh: Likewise.
1131 * emulparams/avr85xx.sh: Likewise.
1132 * emulparams/avrmega103.sh: Likewise.
1133 * emulparams/avrmega161.sh: Likewise.
1134 * emulparams/avrmega603.sh: Likewise.
1135 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1136
34efb449
AO
11372002-01-08 Alexandre Oliva <aoliva@redhat.com>
1138
1139 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1140 archive is excluded.
1141
8d05742f
JT
11422002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1143
1144 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 1145 (eshelf_nbsd.c): New rule.
8d05742f
JT
1146 (eshlelf_nbsd.c): New rule.
1147 * Makefile.in: Regenerate.
1148 * configure.tgt (sh*le-*-netbsdelf*): New target.
1149 (sh*-*-netbsdelf*): New target.
1150 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1151 * ld/emulparams/shelf_nbsd.sh: New emulation.
1152 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1153
be2d1673
NC
11542002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1155
1156 * po/es.po: New file: Spanish translation.
1157 * configure.in (ALL_LINGUAS): Add es.
1158 * configure: Regenerate.
1159
dbab7a7b
NC
11602002-01-06 John Marshall <jmarshall@acm.org>
1161
1162 * ld.texinfo: Note that --emit-relocs is currently only
1163 implemented for ELF.
1164
3dfe7a8c
AM
11652002-01-05 Alan Modra <amodra@bigpond.net.au>
1166
1167 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1168 of bfd_section_list_remove and bfd_section_list_insert macros.
1169 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1170 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1171
8a8b2d4b
AJ
11722002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1173
1174 * configure.tgt (x86_64-*-netbsd*): New target.
1175
9a4c7f16
TR
11762001-12-21 Tom Rix <trix@redhat.com>
1177
8a8b2d4b 1178 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
1179 For -binitfini support.
1180 * emultempl/aix.em (gld*_before_parse): Fix comment.
1181 * emultempl/aix.em (gld*_parse_args): Fix comment.
1182
3695c299
AM
11832001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1184
cf86e6df
AM
1185 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1186 mips*el-*-netbsd*.
1187 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1188
3695c299
AM
1189 * configure.tgt (arm-*-netbsdelf*): Add target.
1190 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1191 * emulparams/armelf_nbsd.sh: Added.
1192 * Makefile.am: Add rules for earmelf_nbsd.
1193 * Makefile.in: Regenerate.
1194
97cb79ae
AJ
11952001-12-19 Andreas Jaeger <aj@suse.de>,
1196 Susanne Oberhauser <froh@suse.de>
1197
1198 * configure.host: Add rules for x86_64-*linux-gnu. Change
1199 s390x-linux entry to use gcc to report configuration, replace gcc
1200 with $CC in s390-linux
1201
9d201f2f
AJ
12022001-12-19 Andreas Jaeger <aj@suse.de>
1203
1204 * ld.texinfo (VERSION): Fix markup.
1205
0b69cd08
MG
12062001-12-18 matthew green <mrg@eterna.com.au>
1207
1208 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1209 (m68kelfnbsd.c): New rule.
1210 * Makefile.in: Regenerate.
1211 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1212 (m68*-*-netbsd*4k*): .. this.
1213 (m68*-*-netbsdelf*): New target.
1214 (m68*-*-netbsd*): Also include ELF support.
1215 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1216 * emulparams/m68kelfnbsd.sh: New emulation.
1217
6b9b879a
JJ
12182001-12-18 Jakub Jelinek <jakub@redhat.com>
1219
1220 * ldgram.y (vers_node): Support anonymous version tags.
1221 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1222 tag is not defined together with non-anonymous versions.
1223 * ld.texinfo: Document it.
1224
9fc877ed
NC
12252001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1226
1227 * po/tr.po: New file: Turkish translation.
1228 * configure.in (ALL_LINGUAS): Add tr.
1229 * configure: Regenerate.
1230
fc18a3f3
RH
12312001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1232
1233 * Makefile.am: Add rules for eelf64alpha_nbsd.
1234 * Makefile.in: Regenerate.
1235 * configure.tgt (alpha*-*-netbsd*): Set
1236 targ_emul to elf64alpha_nbsd.
1237 * emulparams/elf64alpha_nbsd.sh: Added.
1238
76f63e91
AM
12392001-12-17 Alan Modra <amodra@bigpond.net.au>
1240
1241 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1242 section_tail when fiddling with section list.
1243 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1244 broken into separate strings to make translation easier.
1245 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1246 fiddling with section list.
1247 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1248
d03b89bd
HPN
12492001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1250
1251 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1252
320fec9a
AM
12532001-12-15 Alan Modra <amodra@bigpond.net.au>
1254
1255 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1256
65765700
JJ
12572001-12-13 Jakub Jelinek <jakub@redhat.com>
1258
1259 * emultempl/elf32.em (finish): Supply output_bfd
1260 to bfd_elf*_discard_info.
1261 (OPTION_EH_FRAME_HDR): Define.
1262 (longopts): Add --eh-frame-hdr.
1263 (parse_args): Handle it.
1264 (list_options): Add --eh-frame-hdr to help.
1265 * emultempl/hppaelf.em (finish): Supply output_bfd
1266 to bfd_elf*_discard_info.
1267 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1268
89894c62
AM
12692001-12-13 Alan Modra <amodra@bigpond.net.au>
1270
1271 * lexsup.c (parse_args): Don't pass shortopts to second call to
1272 getopt functions. Restore optind rather than decrementing before
1273 second call. Remove errind as it now duplicates last_optind.
1274
583f1926
CF
12752001-12-11 Christopher Faylor <cgf@redhat.com>
1276
1277 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1278
93fbbb04
GK
12792001-12-07 Geoffrey Keating <geoffk@redhat.com>
1280 Richard Henderson <rth@redhat.com>
1281
1282 * Makefile.am: Add support for xstormy16.
1283 * configure.tgt: Add support for xstormy16.
1284 * Makefile.in: Regenerate.
1285 * emulparams/elf32xstormy16.sh: New file.
1286 * scripttempl/xstormy16.sc: New file.
1287
583f1926
CF
12882001-10-01 Christopher Faylor <cgf@cygnus.com>
1289
fc18a3f3
RH
1290 * Makefile.in (LIB_PATH): Make configurable.
1291 (GENSCRIPTS): Set LIB_PATH in environment.
1292 * configure.in: Substitute LIB_PATH.
1293 * configure: Regenerate.
1294 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1295 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 1296
ff291a48
NC
12972001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1298
1299 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1300 describing the -N option so that it is easier to translate into
1301 foreign languages.
1302
e3c8793a
NC
13032001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1304
1305 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1306 statements describing a single option with a single, newline
1307 escaped fprintf. This allows better translation into other
1308 languages.
9d201f2f 1309
fc18a3f3
RH
1310 * ldmain.c (add_archive_element): Combine multiple strings
1311 into a single string to permit better translation into other
1312 languages.
e3c8793a 1313
f2eab0af
TR
13142001-12-05 Tom Rix <trix@redhat.com>
1315
1316 * Makefile.am: Remove eaixppc64.
9d201f2f 1317 * Makefile.in: Regenerate.
f2eab0af 1318
249172c3
TR
13192001-12-04 Tom Rix <trix@redhat.com>
1320
9d201f2f 1321 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
1322 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1323 warning.
1324 (gld*_read_file): Fix typo.
1325 (change_symbol_mode): Add prototype.
1326 (is_syscall): Same.
9d201f2f 1327
249172c3
TR
1328 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1329 * emulparams/aixrs6.sh : Same.
1330 * emulparams/ppcmacos.sh : Same.
1331 * emulparams/aixppc64.sh : Delete file.
1332 * emultempl/aix.em : Formatting changes.
1333
5b5cd1b0
HPN
13342001-12-04 Hans-Peter Nilsson <hp@axis.com>
1335
1336 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1337 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1338 __Sbss.
1339 (OTHER_END_SYMBOLS): Fix formatting.
1340 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1341 (OTHER_END_SYMBOLS): Fix formatting.
1342
7cecdbff
AM
13432001-12-04 Alan Modra <amodra@bigpond.net.au>
1344
1345 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1346
742aeb63 13472001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 1348
742aeb63 1349 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 1350 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
1351 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1352 (ldemul_default_target): Same.
1353 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
1354 * emultempl/gld960c.em (gld960_choose_target): Same.
1355 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
1356 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1357 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1358 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 1359 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
1360 -b32 and -b64.
1361
48459341
L
13622001-11-27 H.J. Lu <hjl@gnu.org>
1363
1364 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1365 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1366 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1367 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1368 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1369 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1370 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1371 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1372
7cecdbff 1373 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
1374 is not empty.
1375 (SDATA): Likewise.
1376 (REL_SDATA): Likewise.
1377 (REL_SBSS): Likewise.
1378 (REL_SDATA2): Likewise.
1379 (REL_SBSS2): Likewise.
1380 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1381 (SDATA2): Likewise.
1382
ecfdd20c
SC
13832001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1384
1385 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1386 destructor in rom.
7cecdbff 1387 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 1388
da54c6eb
L
13892001-11-22 H.J. Lu <hjl@gnu.org>
1390
1391 * Makefile.in: Regenerated with automake based on automake
1392 1.4-8 in RedHat 7.1.
1393
465bc359
AM
13942001-11-22 Alan Modra <amodra@bigpond.net.au>
1395
1396 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1397 (config.status): Delete rule.
1398 Add extra dependencies to cover sourced emulparams files.
1399 * Makefile.in: Regenerate.
1400
1401 * scripttempl/elf.sc: Order <section>, <section>.* and
1402 corresponding linkonce sections as seen in input files.
1403 Formatting fixes. Zero vma of all sections if not relocating.
1404 (STACK): Define and insert if STACK_ADDR defined.
1405 (OTHER_RELOCATING_SECTIONS): Delete.
1406 (OTHER_END_SYMBOLS): Define.
1407 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1408 (OTHER_READWRITE_SECTIONS): Likewise.
1409 (OTHER_GOT_SECTIONS): Likewise.
1410 (OTHER_SDATA_SECTIONS): Likewise.
1411 (OTHER_BSS_SECTIONS): Likewise.
1412 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1413 (OTHER_READWRITE_SECTIONS): Likewise.
1414 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1415 (OTHER_READWRITE_SECTIONS): Likewise
1416
1417 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1418 (STACK_ADDR): Define.
1419 * emulparams/armelf_oabi.sh: As for armelf.sh.
1420 * emulparams/elf32mcore.sh: As for armelf.sh.
1421 * emulparams/h8300elf.sh: As for armelf.sh.
1422 * emulparams/mn10200.sh: As for armelf.sh.
1423 * emulparams/shelf.sh: As for armelf.sh.
1424
1425 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1426 (OTHER_END_SYMBOLS): Define.
1427 * emulparams/m32relf.sh: As for elf32fr30.sh.
1428 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1429 * emulparams/h8300self.sh: As for elf32fr30.sh.
1430
1431 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1432 defines with RELOCATING test.
1433 (OTHER_SDATA_SECTIONS): Likewise.
1434 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1435 (OTHER_END_SYMBOLS): ..this.
1436 * emulparams/crislinux.sh: As for criself.sh.
1437
1438 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1439 if not relocating.
1440 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1441 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1442 normal and linkonce sections as seen in input files.
1443 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1444 (TEXT_DYNAMIC): Likewise.
1445 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1446 (OTHER_SDATA_SECTIONS): Likewise.
1447 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1448 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1449 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1450 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1451 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1452 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1453 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1454 sections as seen in input files.
1455 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1456 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1457 if not relocating.
1458 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1459 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1460 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1461 (OTHER_SECTIONS): Instead, use this..
1462 (OTHER_END_SYMBOLS): ..and this.
1463
1464 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1465 * emulparams/elf32bsmip.sh: Likewise.
1466 * emulparams/elf32btsmip.sh: Likewise.
1467 * emulparams/elf32ebmip.sh: Likewise.
1468 * emulparams/elf32lmip.sh: Likewise.
1469 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1470 * emulparams/elf32lsmip.sh: Likewise.
1471 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1472 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1473 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1474 * emulparams/elf64btsmip.sh: Likewise.
1475 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1476 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1477 * emulparams/elf32ppclinux.sh: Likewise.
1478 * emulparams/elf32ppcsim.sh: Likewise.
1479 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1480 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1481 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1482 * emulparams/h8300self.sh: Likewise.
1483 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1484 * emulparams/sh.sh: Comment.
1485 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1486 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1487 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1488
abc6ab0a
AM
14892001-11-21 David Heine <dlheine@tensilica.com>
1490 Alan Modra <amodra@bigpond.net.au>
1491
1492 * ldlang.c (map_input_to_output_sections): Replace "break"
1493 accidentally removed with 2001-08-03 change.
1494 (lang_gc_sections_1): Likewise.
1495
2181f54f
AM
14962001-11-21 Alan Modra <amodra@bigpond.net.au>
1497
1498 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1499
ca0b5847
AM
15002001-11-20 Angela Marie Thomas <angela@redhat.com>
1501
1502 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
1503 of false when calling lang_size_sections.
1504 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 1505
c56feb2b
AM
15062001-11-15 Alan Modra <amodra@bigpond.net.au>
1507
1508 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1509 function when LDEMUL_FINISH isn't set to the same name. Don't
1510 call ${LDEMUL_FINISH}.
1511 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1512 * emultempl/armelf.em (arm_elf_finish): Call
1513 gld${EMULATION_NAME}_finish.
1514 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1515 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1516 hppaelf_layout_sections_again if necessary.
1517 (need_laying_out): New var.
1518 (hppaelf_layaout_sections_again): Rename to
1519 hppaelf_layout_sections_again. Clear need_laying_out.
1520 (PARSE_AND_LIST_OPTIONS): Format text.
1521
a48ca7f2
L
15222001-11-14 H.J. Lu <hjl@gnu.org>
1523
1524 * emultempl/armelf.em (arm_elf_finish): Renamed from
1525 gld${EMULATION_NAME}_finish.
1526 (LDEMUL_FINISH): Set to arm_elf_finish.
1527
73d074b4
DJ
15282001-11-14 Daniel Jacobowitz <drow@mvista.com>
1529
1530 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1531 (struct ld_emulation_xfer_struct): Use it.
1532
3b16e843 15332001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 1534
465bc359 1535 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
1536 additional symbols referenced by newer crt0.o files from HP.
1537
f11b7027
NC
15382001-11-12 Anthony Green <green@redhat.com>
1539
1540 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1541
3bf2994f
AM
15422001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1543
1544 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1545 * Makefile.in: Regenerate.
1546
ff5dcc92
SC
15472001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1548
1549 * ld.texinfo: Use @command for commands, @option for options.
1550 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1551 the page man title.
1552 * Makefile.in: Rebuild.
1553
9fb9af6e
CD
15542001-11-04 Chris Demetriou <cgd@broadcom.com>
1555
1556 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1557 Add support for targets.
2181f54f 1558
3c62831e
NC
15592001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1560
1561 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1562 * configure: Regernate.
1563 * po/fr.po: New file.
1564 * po/sv.po: New file.
1565
3a9091c4
NC
15662001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1567
1568 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1569 as little endian default and to support big endian.
2181f54f 1570
361b220e
CD
15712001-11-01 Chris Demetriou <cgd@broadcom.com>
1572
1573 * ld.texinfo (Options): Document new option, -nostdlib.
1574 * lexsup.c (OPTION_NOSTDLIB): New definition.
1575 (ld_options): Add entry for "nostdlib".
1576 (parse_args): Handle OPTIONS_NOSTDLIB.
1577 * ldfile.c (ldfile_add_library_path): Don't add directories
1578 to the search path if they weren't specified on the command line
1579 and -nostdlib was specified.
1580 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1581
210a7bd1
NC
15822001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1583
1584 * lexsup.c (parse_args): Prevent infinite parsing loop when
1585 "-rpath.a" is specified on the command line.
1586 Replace calls to fprintf with calls to einfo.
1587
114283d8
NC
15882001-10-31 John Marshall <jmarshall@acm.org>
1589
1590 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1591 appear only once across all the linker scripts involved in a link
1592 invocation no longer applies. Make the documentation reflect
1593 that.
1594
7649aa50
NC
15952001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1596
1597 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1598 targets.
1599 (sh-*-linux*): Added targ_extra_libpath.
1600
6e814ff8
AM
16012001-10-31 David Heine <dlheine@tensilica.com>
1602
1603 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1604 for padding statements.
1605
3c3bdf30
NC
16062001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1607
1608 * configure.tgt (mmix-*-*): New target.
1609 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1610 Add dependencies to match.
1611 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1612 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1613 scripttempl/mmo.sc: New files.
1614 * gen-doc.texi: @set MMIX.
1615 * ld.texinfo: Ditto.
6e814ff8 1616 [MMIX] Add MMIX node.
3c3bdf30
NC
1617 * Makefile.in: Regenerate.
1618
ca0c1d3e
KH
16192001-10-29 Kazu Hirata <kazu@hxi.com>
1620
1621 * ldlang.c: Fix a comment typo.
1622
1a3d33ce
AM
16232001-10-23 Alan Modra <amodra@bigpond.net.au>
1624
1625 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1626 entries, and match *-*-linux*.
1627
b47c4208
AM
16282001-10-20 Alan Modra <amodra@bigpond.net.au>
1629
1630 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1631 with ldlex_script, ldlex_popstate.
1632 (ifile_p1): Likewise.
1633 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1634 correct slot.
1635 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1636 to 1. Don't BEGIN(SCRIPT).
1637 (lex_redirect): Similarly.
1638 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1639
fd521b47
NC
16402001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1641
1642 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1643 __EH_FRAME_END__ and accept eh frames into data section.
1644 Add ctor and dtor sections.
1645
59d28a94
DD
16462001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1647
1648 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1649 (auto-export): Fix indentation.
1650
663dd378
DD
16512001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1652
1653 * pe-dll.c (autofilter_objectlist): Add startup objects
1654 for profiling.
1655 (auto-export): Constify char * p.
6e814ff8 1656 Extract file basename and use strcmp rather than ststr
663dd378
DD
1657 for object lookup.
1658
31d677f9
CD
16592001-10-18 Chris Demetriou <cgd@broadcom.com>
1660
1661 * ldmain.c (get_emulation): Improve comment about the handling
1662 of -mipsN options.
1663
aa200fe8
AM
16642001-10-17 Alan Modra <amodra@bigpond.net.au>
1665
1666 * po/POTFILES.in: Regenerate.
1667
146e7110
AM
16682001-10-16 Vassili Karpov <malc@pulsesoft.com>
1669
1670 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1671 -z nocopyreloc and -z nocombreloc usage strings.
1672
b4330e85
NC
16732001-10-12 Vassili Karpov <malc@pulsesoft.com>
1674
146e7110 1675 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
1676 in usage.
1677
5af8a2fb
NC
16782001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1679
1680 * scripttempl/armaout.sc: Place .bss section after end of aligned
1681 data section to match behaviour of aout code in constructrion of
1682 header.
1683
5b784096
DD
16842001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1685
1686 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1687 startup files for mingw32 dlls to list.
1688
61585df2
CD
16892001-10-10 Chris Demetriou <cgd@broadcom.com>
1690
1691 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1692
45cf6f3e
AH
16932001-10-08 Aldy Hernandez <aldyh@redhat.com>
1694
1695 * configure.tgt (targ): Add arm9e-*-elf.
1696
e24d7c12
L
16972001-10-05 H.J. Lu <hjl@gnu.org>
1698
1699 * genscripts.sh: Fix a typo in the last change.
1700
ec38dd05
JJ
17012001-10-05 Jakub Jelinek <jakub@redhat.com>
1702
1703 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1704 -z nocombreloc in usage.
1705
cedd6b0d
JB
17062001-10-03 Jim Blandy <jimb@redhat.com>
1707
1708 * genscripts.sh: Include a comment at the top of each generated
1709 script, explaining its purpose.
1710
8bd621d8
AM
17112001-10-03 Vassili Karpov <malc@pulsesoft.com>
1712
1713 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1714 * NEWS: Mention -z nocopyreloc.
1715 * ld.texinfo (Options): Describe nocopyreloc.
1716
fcd8210c
AM
17172001-10-03 Alan Modra <amodra@bigpond.net.au>
1718
1719 * configure: Regenerate.
1720
d32820f2
AM
17212001-10-02 Alan Modra <amodra@bigpond.net.au>
1722
1723 * ldver.h (ld_program_version): Remove declaration.
1724 * lexsup.c (parse_args): Move printing of copyright message..
1725 * ldver.c (ldversion): .. to here.
1726 Use BFD_VERSION_STRING in place of BFD_VERSION.
1727 (ld_program_version): Remove.
1728 * Makefile.am (Makefile): Depend on bfd/configure.in.
1729 Run "make dep-am".
1730 * Makefile.in: Regenerate.
1731
af46bcdc
HPN
17322001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1733
1734 * Makefile.am: Update dependencies with "make dep-am".
1735 * Makefile.in: Regenerate.
1736
4818e05f 17372001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 1738
4818e05f
AM
1739 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1740 * lexsup.c: Add --no-define-common commandline option.
1741 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1742 * ldlex.l: Likewise.
1743 * ld.h: Add command_line.inhibit_common_definition.
1744 * ldmain.c (main): Initialize.
1745 * ld.texinfo: Document.
862517b6 1746
d5e0ebeb
AM
17472001-09-26 Alan Modra <amodra@bigpond.net.au>
1748
1749 * ldmisc.c (USE_STDARG): Remove.
1750 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1751 (einfo): Likewise.
1752 (minfo): Likewise.
1753 (lfinfo): Likewise.
1754
1755 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1756 declarations. Update copyright.
1757
2f8d8971
NC
17582001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1759
85c77458
NC
1760 * pe-dll.c: Remove obsoleted declaration of
1761 pe_get_data_import_dll_name.
1762 (pe_create_import_fixup): Fix thinko.
1763
2f8d8971
NC
1764 * ld.texinfo(enable-auto-import): Clarify the explanation.
1765
17662001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1767
1768 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1769 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1770 DLL_SUPPORT controlled code.
1771
72358f65 17722001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 1773
72358f65
NC
1774 * emultempl/pe.em(pe_data_import_dll): Make static.
1775 (pe_get_data_import_dll_name): New accessor function.
146e7110 1776 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
1777 pe_get_data_import_dll_name() from pe.em, instead of
1778 directly accessing pe_data_import_dll variable from pe.em.
1779
3882b010
L
17802001-09-18 Bruno Haible <haible@clisp.cons.org>
1781
1782 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1783 (def_file_add_directive): Use ISSPACE instead of isspace.
1784 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1785 isdigit/isxdigit/isalpha/isalnum.
1786 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1787 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1788 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1789 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1790 isalnum.
1791 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1792 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1793 isupper/tolower.
1794 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1795 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1796 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1797 (ctor_prio): Use ISDIGIT instead of isdigit.
1798 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1799 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1800 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1801 isupper/tolower.
1802 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1803 (stricpy): Use TOLOWER instead of isupper/tolower.
1804 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1805 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1806 (lex_warn_invalid): Use ISPRINT instead of isprint.
1807 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1808 (main): For gettext, also set the LC_CTYPE locate facet.
1809 (add_keepsyms_file): Use ISSPACE instead of isspace.
1810 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1811 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1812 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1813 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1814 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1815 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1816 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1817 (quoteput): Use ISSPACE instead of isspace.
1818 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1819 instead of isalnum.
1820
db09f25b
AM
18212001-09-18 Alan Modra <amodra@bigpond.net.au>
1822
1823 * deffilep.y (def_stash_module): Constify "name" param.
1824
1825 * pe-dll.c: Replace CONST with const throughout.
1826 (quick_symbol): Constify "n1", "n2", "n3" params.
1827 (make_singleton_name_thunk): Constify "import" param. Make
1828 "buffer_len" a size_t.
1829 (make_import_fixup_entry): Constify "name", "fixup_name",
1830 "dll_symname" params.
1831 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1832 (pe_get32): Likewise.
1833 (pe_implied_import_dll): Likewise.
1834
1835 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1836 (sort_by_section_name): Likewise.
1837
1838 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1839 (make_import_fixup): Cast printf arg, rel->address to long rather
1840 than int.
1841 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1842
74699268
AM
18432001-09-15 Alan Modra <amodra@bigpond.net.au>
1844
1845 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1846 defines BufferSize. Increase buffer size by one.
1847
775cabad
NC
18482001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1849
1850 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1851
056a1d49
NC
18522001-09-14 Kevin Lo <kevlo@openbsd.org>
1853
1854 * configure.tgt: Add arm-openbsd target.
1855
a7d792bb
L
18562001-09-12 H.J. Lu <hjl@gnu.org>
1857
1858 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1859 eelf64lppc.o to ...
1860 (ALL_64_EMULATIONS): Here.
1861 * Makefile.in: Regenerated.
1862
0d888aac
CW
18632001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1864
1865 * emultempl/pe.em(make_import_fixup): change signature to
1866 take asection as well as arelec; we need this for proper
146e7110 1867 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
1868 there is no attempt to add a constant addend to the reloc;
1869 otherwise, report error condition.
1870 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1871 since final argument is a pointer to make_import_fixup().
1872 Change call to cb() to match make_import_fixup() signature.
1873 (make_import_fixup_mark): make buffer_len unsigned.
1874 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1875
18762001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1877
1878 * ld.texinfo: add verbose documentation for auto-import
146e7110 1879 direct-addressing workaround, to compliment the terse
0d888aac
CW
1880 error message.
1881
cedacdc0
CM
18822001-09-12 Andrew MacLeod <amacleod@redhat.com>
1883
146e7110 1884 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 1885
3b16e843 18862001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
1887
1888 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1889 * emulparams/h8300self.sh: Similarly.
1890
559e4713
NC
18912001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1892
1893 * ld.texinfo (Options, --stack): Correct default value for stack
1894 reserve.
1895
1fdf0249
TR
18962001-09-05 Tom Rix <trix@redhat.com>
1897
1898 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 1899
9b5799b8
AJ
19002001-09-03 Andreas Jaeger <aj@suse.de>
1901
1902 * emultempl/beos.em: Declare prototypes for comparions functions,
1903 adjust definitions.
1904
48f6162b
AJ
19052001-09-02 Andreas Jaeger <aj@suse.de>
1906
1907 * emultempl/aix.em: Add missing prototype.
1908 * emultempl/lnk960.em: Likewise.
1909 * emultempl/vanilla.em: Likewise.
1910 * emultempl/armcoff.em: Likewise.
1911 * emultempl/armelf_oabi.em: Likewise.
1912 * emultempl/beos.em: Likewise.
1913 * emultempl/gld960c.em: Likewise.
1914 * emultempl/gld960.em: Likewise.
1915
1916 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1917 for prototype declaration.
1918
39e5585e
EC
19192001-08-31 Eric Christopher <echristo@redhat.com>
1920 Jason Eckhardt <jle@redhat.com>
1921
1922 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1923
3fc90ddb
AJ
19242001-08-31 Andreas Jaeger <aj@suse.de>
1925
1926 * emultempl/pe.em: Add missing prototypes.
1927 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1928 pe_find_data_imports.
1929 (pr_sym): Add unused attribute.
1930
d43ded80
PB
19312001-08-29 Joel Sherrill <joel@OARcorp.com>
1932
39e5585e 1933 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
1934 default from coff to elf.
1935
3946dd2f
JL
19362001-08-29 Jeff Law <law@redhat.com>
1937
1938 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1939 ARCH specification.
1940 * emulparams/h8300self.sh: Similarly.
1941
3b16e843 19422001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
1943
1944 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1945 eh8300self.o .
1946 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1947 * configure.tgt (h8300-*-elf*): New case.
1948 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1949 * emulparams/h8300self.sh: New file.
1950 * Makefile.in: Regenerated.
1951
70d0c6e9
NC
19522001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1953
1954 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1955 with macro name.
1956
5c67d4bb
AM
19572001-08-27 Linus Nordberg <linus@swox.com>
1958 Alan Modra <amodra@bigpond.net.au>
1959
1960 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1961 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1962 Run "make dep-am"
1963 * Makefile.in: Regenerate.
1964 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1965 entries to correct alphabetical position.
1966 * emulparams/elf64ppc.sh: New.
1967 * emulparams/elf64lppc.sh: New.
1968
08131015
NC
19692001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1970
1971 * ldmain.c (main): Declare BSIZE as static.
1972
db6751f2
JJ
19732001-08-23 Jakub Jelinek <jakub@redhat.com>
1974
1975 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1976 into .rel.dyn resp. .rela.dyn if combreloc.
1977 (get_script): If .x linker script is equal to .xn, only put it
1978 once into the binary.
1979 Add .xc and .xsc scripts.
1980 (parse_args): Handle -z combreloc and -z nocombreloc.
1981 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1982 For .xc and .xsc scripts put all .rel* or .rela* input sections
1983 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1984 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1985 is elf.
1986 Strip trailing whitespace from script.
1987 Generate .xc and .xsc scripts if requested.
1988 * ldmain.c (main): Initialize link_info.combreloc and
1989 link_info.spare_dynamic_tags.
1990 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1991 (ld_options): Add --spare-dynamic-tags option.
1992 (parse_args): Likewise.
1993 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1994 * ldint.texinfo: Document .xc and .xsc linker scripts.
1995 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1996
63d069c0
L
19972001-08-22 H.J. Lu <hjl@gnu.org>
1998
1999 * emulparams/elf32fr30.sh: Add a newline.
2000
948f9114
AJ
20012001-08-21 Andreas Jaeger <aj@suse.de>
2002
2003 * deffilep.y: Add missing prototypes.
2004 * pe-dll.c: Likewise.
2005
ae7fb08f
AM
20062001-08-20 Alan Modra <amodra@bigpond.net.au>
2007
2af02257
AM
2008 * ldlang.c (insert_pad): Fix typos in last patch.
2009
2010 * ldlang.c: When traversing lang_statement_union_type lists,
2011 consistently use "header.next" rather than "next".
2012 * mpw-eppcmac.c: Likewise.
2013 * emultempl/beos.em: Likewise.
2014 * emultempl/hppaelf.em: Likewise.
2015 * emultempl/pe.em: Likewise.
2016 * ldlang.h (union lang_statement_union): Remove "next" field.
2017
c0c330a7
AM
2018 * ldlang.c (insert_pad): Use offsetof macro.
2019 (lang_size_sections): Always neuter padding statements.
2020 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2021
ae7fb08f
AM
2022 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2023 passed to lang_size_sections.
2024 (pe_exe_fill_sections): Likewise.
2025 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2026 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2027
fab80407
AM
20282001-08-18 Alan Modra <amodra@bigpond.net.au>
2029
2030 * emultempl/aix.em: Formatting fixes.
2031
b3327aad
AM
20322001-08-18 Alan Modra <amodra@bigpond.net.au>
2033
2034 * ldlang.c (insert_pad): Make use of an existing pad statement if
2035 available. Move code calculating alignment, adjusting section
2036 alignment power, and adjusting dot to ..
2037 (size_input_section): .. here. Remove unused relax param.
2038 (lang_size_sections): Change boolean `relax' param to boolean *.
2039 Adjust call to size_input_section. Make use of insert_pad to
2040 place pad after the assignment statement. If relaxing, zap
2041 padding statements.
2042 (reset_memory_regions): Reset output_bfd section sizes too.
2043 (relax_again): Move to..
2044 (lang_process): ..here. Adjust call to lang_size_sections, and
2045 remove duplicated code.
2046 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2047
563e308f
AM
20482001-08-17 Alan Modra <amodra@bigpond.net.au>
2049
2050 * ld.texinfo: Document that fill values now use the four least
2051 significant bytes.
2052 * emulparams/elf32fr30.sh (NOP): Update.
2053 * emulparams/elf32mcore.sh: Likewise.
2054 * emulparams/elf64_s390.sh: Likewise.
2055 * emulparams/elf_i386.sh: Likewise.
2056 * emulparams/elf_i386_be.sh: Likewise.
2057 * emulparams/elf_i386_chaos.sh: Likewise.
2058 * emulparams/elf_i386_ldso.sh: Likewise.
2059 * emulparams/elf_s390.sh: Likewise.
2060 * emulparams/elf_x86_64.sh: Likewise.
2061 * emulparams/i386moss.sh: Likewise.
2062 * emulparams/i386nw.sh: Likewise.
2063 * emulparams/m68kelf.sh: Likewise.
2064 * scripttempl/elf.sc: Update NOP comment.
2065 * scripttempl/elfi370.sc: Likewise.
2066 * scripttempl/elfm68hc11.sc: Likewise.
2067 * scripttempl/elfm68hc12.sc: Likewise.
2068 * scripttempl/nw.sc: Likewise.
2069
b90e1c6f
TR
20702001-08-15 Tom Rix <trix@redhat.com>
2071
2072 * ldgram.y (saved_script_handle): Initialize to NULL.
2073 * ldmain.c (main): Change check on saved_script_handle.
948f9114 2074
39dcfe18
AM
20752001-08-14 Alan Modra <amodra@bigpond.net.au>
2076
cde43e70
AM
2077 * emultempl/elf32.em: Formatting fixes.
2078 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2079 looking at sec->owner.
2080 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2081 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2082 unused code, and reorganize orphan section placement code.
2083
39dcfe18
AM
2084 * ldlang.c (wild_doit): Rename to lang_add_section.
2085 * ldlang.h: Here too.
2086 * mpw-elfmips.c: And here.
2087 * emultempl/beos.em: And here.
2088 * emultempl/elf32.em: And here.
2089 * emultempl/hppaelf.em: And here.
2090 * emultempl/pe.em: And here.
2091
908d20b3
RH
20922001-08-13 Richard Henderson <rth@redhat.com>
2093
2094 * emultempl/needrelax.em: New file.
2095 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2096 * Makefile.am (eelf64_ia64.c): Depend on it.
2097 * Makefile.in: Rebuild.
2098
0f33d40b
AM
20992001-08-13 Alan Modra <amodra@bigpond.net.au>
2100
22af9fd3
AM
2101 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2102 output_section is set non-NULL.
2103
0f33d40b
AM
2104 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2105 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2106 needlessly create an output_section_statement. Treat a correctly
2107 named output_section_statement with NULL bfd_section as compatible.
2108
55ab6103
HPN
21092001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2110
2111 * emultempl/generic.em: Support EXTRA_EM_FILE.
2112 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2113 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2114 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2115 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2116 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2117 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2118 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2119 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2120 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2121 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2122
24098abb
RH
21232001-08-12 Richard Henderson <rth@redhat.com>
2124
2125 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2126 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2127 scripttempl/v850.sc: Keep .jcr data.
2128
b9a8de1e 21292001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
2130 Andrew Haley <aph@cambridge.redhat.com>
2131 Nick Clifton <nickc@redhat.com>
b9a8de1e 2132
146e7110 2133 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
2134 Change type to file handle.
2135 * ld.h (had_script): Rename and retype.
2136 * ldfile.c (ldfile_open_command_file): Save the file handle
2137 used in saved_script_handle.
2138 * lexsup.c (parse_args): Do not allow -c option to alter
2139 saved_script_handle.
2140 * ldmain.c (main): Print out the linker script used if
2141 --verbose is given. Check saved_script_handle to obtain the
2142 external linker script used, or if NULL, dump the builtin
2143 script.
2144 * ld.texinfo: Document that --verbose now dumps the linker
2145 script used, regardless of whether it was an internal or an
2146 external script.
2147
0218d1e4
AJ
21482001-08-10 Andreas Jaeger <aj@suse.de>
2149
2150 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2151 to build warnings.
2152 * configure: Regenerate.
2153
5253f23b
AM
21542001-08-09 Alan Modra <amodra@bigpond.net.au>
2155
73810896
AM
2156 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2157
5253f23b
AM
2158 * scripttempl/elf.sc: Move non-text .dynamic section before
2159 .plt/.got/.sdata* group.
2160 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2161 (OTHER_SDATA_SECTIONS): Add.
2162 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2163 OTHER_GOT_SECTIONS.
2164 * emulparams/crislinux.sh: Likewise.
2165 * emulparams/elf32b4300.sh: Likewise.
2166 * emulparams/elf32bmip.sh: Likewise.
2167 * emulparams/elf32bmipn32.sh: Likewise.
2168 * emulparams/elf32bsmip.sh: Likewise.
2169 * emulparams/elf32btsmip.sh: Likewise.
2170 * emulparams/elf32ebmip.sh: Likewise.
2171 * emulparams/elf32elmip.sh: Likewise.
2172 * emulparams/elf32l4300.sh: Likewise.
2173 * emulparams/elf32lmip.sh: Likewise.
2174 * emulparams/elf32lsmip.sh: Likewise.
2175 * emulparams/elf32ltsmip.sh: Likewise.
2176 * emulparams/elf64bmip.sh: Likewise.
2177 * emulparams/elf64btsmip.sh: Likewise.
2178 * emulparams/elf64ltsmip.sh: Likewise.
2179
179c732c
AM
21802001-08-08 Alan Modra <amodra@bigpond.net.au>
2181
2182 * genscripts.sh: Source the emulparams script before each output
2183 script is generated so that variables like `RELOCATING' may affect
2184 variables defined in the emulparams script.
2185
3fd36710
AM
21862001-08-04 Alan Modra <amodra@bigpond.net.au>
2187
20713691
AM
2188 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2189 order.
2190
3fd36710
AM
2191 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2192 ie. iterate over wild_statement.section_list.
2193 (gld${EMULATION_NAME}_place_orphan): Likewise.
2194
de0b1853
SC
21952001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2196
2197 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2198 .fini[0-4] sections used by _exit
2199 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2200 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2201 * scripttempl/elfm68hc11.sc: Likewise.
2202
ff7e6f88
L
22032001-08-03 H.J. Lu <hjl@gnu.org>
2204
2205 * emultempl/beos.em (init): Add the missing initialization.
2206
b6bf44ba
AM
22072001-08-03 Alan Modra <amodra@bigpond.net.au>
2208
2209 * ld.texinfo (Input Section Basics): Clarify ordering of output
2210 sections.
2211 * ldlang.c (callback_t): Add wildcard_list param.
2212 (walk_wild_section): Remove "section" param. Rewrite for
2213 lang_wild_statement_type change. Remove unique_section_p test.
2214 (walk_wild_file): Remove "section" param.
2215 (walk_wild): Remove "section" and "file" params.
2216 (lang_gc_wild): Likewise.
2217 (wild): Likewise. Modify for lang_wild_statement_type change.
2218 (wild_sort): Likewise. Add "sec" param.
2219 (gc_section_callback): Likewise.
2220 (output_section_callback): Likewise. Do unique_section_p test.
2221 (map_input_to_output_sections): Modify call to wild.
2222 (lang_gc_sections_1): Likewise.
2223 (print_wild_statement): Modify for lang_wild_statement_type
2224 change.
2225 (lang_add_wild): Replace filename, filenames_sorted param with
2226 filespec. Replace section_name, sections_sorted,
2227 exclude_filename_list with section_list.
2228 * ldlang.h (lang_add_wild): Here too.
2229 (lang_wild_statement_type): Replace section_name, sections_sorted,
2230 and exclude_filename_list with section_list.
2231 * ldgram.y (current_file): Delete.
2232 (%union): Add wildcard_list.
2233 (file_NAME_list): Set type to wildcard_list. Build a linked list
2234 rather than calling lang_add_wild for each entry.
2235 (input_section_spec_no_keep): Call lang_add_wild here instead.
2236 * ld.h (struct wildcard_list): Declare.
2237 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2238
b044cda1
CW
22392001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2240
2241 * ldmain.c (main): initialize link_info.pei386_auto_import
2242 * pe-dll.c: new tables for auto-export filtering
2243 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 2244 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
2245 "by hand".
2246
22472001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2248
b6bf44ba
AM
2249 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2250 static variable current_sec (static struct sec *). Add
b044cda1 2251 forward declaration for add_bfd_to_link.
b6bf44ba
AM
2252 (process_def_file): Don't export undefined symbols. Do not
2253 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
2254 with new API.
2255 (pe_walk_relocs_of_symbol): New function.
2256 (generate_reloc): add optional extra debugging
b6bf44ba 2257 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 2258 line in output
b6bf44ba 2259 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
2260 (DATA auto-import support).
2261 (make_singleton_name_thunk): New function.
2262 (make_import_fixup_mark): New function.
2263 (make_import_fixup_entry): New function.
2264 (pe_create_import_fixup): New function.
b6bf44ba 2265 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 2266 char *.
b6bf44ba
AM
2267 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2268 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
2269 pe_create_import_fixup.
2270 * emultempl/pe.em: add new options --enable-auto-import,
2271 --disable-auto-import, and --enable-extra-pe-debug.
2272 (make_import_fixup): New function.
2273 (pe_find_data_imports): New function.
2274 (pr_sym): New function.
b6bf44ba 2275 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
2276 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2277 CODE.
2278
22792001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 2280
b044cda1
CW
2281 * ld.texinfo: add additional documentation for
2282 --export-all-symbols. Document --out-implib,
2283 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
2284 --dll-search-prefix, --enable-auto-import, and
2285 --disable-auto-import.
b044cda1
CW
2286 * ldint.texinfo: Add detailed documentation on auto-import
2287 implementation.
2288
156e34dd
NC
22892001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2290
2291 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2292 example.
2293
d6231427
AM
22942001-07-24 Alan Modra <amodra@bigpond.net.au>
2295
2296 * Makefile.am: Update dependencies with "make dep-am".
2297 * Makefile.in: Regenerate
2298
e14ec88b
AM
22992001-07-23 Alan Modra <amodra@bigpond.net.au>
2300
2301 * ldcref.c (check_section_sym_xref): New function.
2302 (check_nocrossrefs): Call it.
2303 (check_nocrossref): Interate over h->refs here instead of..
2304 (check_refs): ..here. Pass in the symbol name, section, and bfd
2305 rather than hash_entry pointers.
2306 (struct check_refs_info): Keep symbol name rather than hash entry.
2307 Remove "same".
2308 (check_reloc_refs): Tweak for above changes in check_refs_info.
2309 Only report references to section syms when symname is NULL to
2310 prevent duplicate messages for the same reloc.
2311
1b577b00
NC
23122001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2313
c7d701b0
NC
2314 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2315 available. Do not print NULL trees.
2316 (exp_print_token): Print unknown tokens with values > 126 as
2317 decimal values not ASCII characters.
2318
1545243b
NC
2319 * ldlang.c (lang_leave_overlay): If a region is specified assign
2320 it to all sections inside the overlay unless they have been
2321 assigned to the own, non-default, memory region.
2322
1b577b00
NC
2323 * README: Add header for consistency with other README files.
2324
5030876b
L
23252001-07-14 H.J. Lu <hjl@gnu.org>
2326
2327 * emultempl/elf32.em (output_prev_sec_find): Never return
2328 bfd_abs_section_ptr, bfd_com_section_ptr nor
2329 bfd_und_section_ptr.
2330
18c7a9a5
NC
23312001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2332
22af9fd3 2333 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
2334 elf32.em.
2335 * Makefile.in: Regenerate.
2336
9ffecff1
MG
23372001-07-14 matthew green <mrg@eterna.com.au>
2338
2339 * configure.tgt (i386-*-netbsdelf*): New target.
2340 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2341
95500e1c
JJ
23422001-07-13 Jakub Jelinek <jakub@redhat.com>
2343
2344 * emultempl/elf32.em (output_prev_sec_find): New.
2345 (place_orphan): Use it.
2346
e97cb84f
L
23472001-07-11 H.J. Lu <hjl@gnu.org>
2348
2349 * ldmain.c (main): Fix typos in the last change.
2350
7333607e
JJ
23512001-07-11 Jakub Jelinek <jakub@redhat.com>
2352
2353 * ldmain.c (main): Disallow -F and -f without -shared.
2354
d29d80f2
NC
23552001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2356
2357 * emultempl/pe.em (after_open): Check for the output_bfd not
2358 having any coff_data structure allocated to it.
2359
c2a1a436
DB
23602001-07-09 David O'Brien <obrien@FreeBSD.org>
2361
2362 * emultempl/elf32.em: Do not assuming that contents of the buffer
2363 returned from basename function will remain unchanged accross other
2364 function calls.
2365
63653551
L
23662001-07-03 H.J. Lu <hjl@gnu.org>
2367
2368 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2369 2001-07-03. It creates dynamic entries even for static binaries.
2370
d303a449
L
23712001-07-03 Jakub Jelinek <jakub@redhat.com>
2372
2373 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2374 (DYNAMIC): Use it to reserve few dynamic entries for
2375 post-linking tools.
2376
9f22353f
AM
23772001-06-27 Alan Modra <amodra@bigpond.net.au>
2378
2379 * emulparams/hppa64linux.sh: New file.
2380 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2381 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2382 (ehppa64linux.c): Add rule to make it.
2383 Run "make dep-am".
2384 * Makefile.in: Regenerate.
2385
62bf86b4
HPN
23862001-06-21 Hans-Peter Nilsson <hp@axis.com>
2387
2388 * ld.texinfo (Options, -r): Mention restrictions when using
2389 different object formats.
2390
429d935d
HPN
23912001-06-19 Hans-Peter Nilsson <hp@axis.com>
2392
2393 * ldlang.c (lang_check): Emit fatal error if relocatable link
2394 between different object flavours with relocations in input.
2395
cb840a31
L
23962001-06-19 H.J. Lu <hjl@gnu.org>
2397
2398 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2399 (--version-script): Mention the language support.
2400
9bf03acc
L
24012001-06-19 H.J. Lu <hjl@gnu.org>
2402
2403 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2404
c45021f2
NC
24052001-06-18 H.J. Lu <hjl@gnu.org>
2406
b6bf44ba
AM
2407 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2408 (diststuff): Add $(MANS).
2409 * Makefile.in: Regenerated.
c45021f2 2410
b6bf44ba 2411 * ld.1: Removed.
c45021f2 2412
6caa99ab
HPN
24132001-06-18 Hans-Peter Nilsson <hp@axis.com>
2414
605d9b3a
HPN
2415 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2416 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2417 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2418 * ld.h (args_type): Remove member export_dynamic. All users
2419 changed to use struct bfd_link_info member.
2420
6caa99ab
HPN
2421 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2422 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2423 * Makefile.in: Regenerate.
2424
6f9efd97
L
24252001-06-18 H.J. Lu <hjl@gnu.org>
2426
2427 * ldlang.c (init_os): Add the newline to the einfo call.
2428 (lang_check): Likewise.
2429 (lang_do_version_exports_section): Likewise.
2430
5af9fd8b
L
24312001-06-15 H.J. Lu <hjl@gnu.org>
2432
2433 * lexsup.c (parse_args); Save optind to report unrecognized
2434 option.
2435
2a096f04
HPN
24362001-06-15 Hans-Peter Nilsson <hp@axis.com>
2437
7e66c3f5
HPN
2438 * ldlang.c (lang_check): Emit fatal error if relocatable link
2439 between different object flavours.
2440
2a096f04
HPN
2441 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2442 Set new link_info member export_dynamic.
2443 * ldmain.c (main): Initialize new link_info member export_dynamic.
2444
6770ec8c
NC
24452001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2446
2447 * ldlang.c (walk_wild): Only call walk_wild_file if
2448 lookup_name returns something.
b6bf44ba 2449 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 2450 (load_symbols): Change to a boolean function.
b6bf44ba 2451 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
2452 executable.
2453
8529105a
AM
24542001-06-08 Alan Modra <amodra@bigpond.net.au>
2455
2456 * ldlang.c (record_bfd_errors): Remove.
2457
2458 * emultempl/aix.em: Fix copyright dates.
2459
8f3aa7a0
AJ
24602001-06-07 Andreas Jaeger <aj@suse.de>
2461
2462 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2463 (TEXT_START_ADDR): Likewise.
2464
3277f888
AM
24652001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2466
2467 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2468
3763134d
DD
24692001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2470
2471 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2472
5929ebc0
L
24732001-05-31 H.J. Lu <hjl@gnu.org>
2474
2475 * ldlang.c (open_input_bfds): Don't change the bfd error
2476 handler whilst loading symbols.
2477
c04a062d
NC
24782001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2479
2480 * configure.tgt: Remove i370-mvs architecture, it is not currently
2481 supported.
2482
96fcab3e
L
24832001-05-25 H.J. Lu <hjl@gnu.org>
2484
2485 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2486 like emulparams/aixppc.sh.
2487
db8d4f23
L
24882001-05-25 H.J. Lu <hjl@gnu.org>
2489
2490 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2491 setting of output_filename after bfd_scan_arch.
2492 * emultempl/pe.em: Likewise.
2493
5f642101
L
24942001-05-25 H.J. Lu <hjl@gnu.org>
2495
2496 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2497 like emulparams/aixppc.sh.
2498
2499 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2500 instead of ${srcdir}/emultempl/stringify.sed.
2501
64e9ece0
TW
25022001-05-25 Timothy Wall <twall@oculustech.com>
2503
2504 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 2505 output.
64e9ece0 2506
c709b096
AM
25072001-05-25 Alan Modra <amodra@one.net.au>
2508
2509 * configure.host: Replace linuxoldld with linux*oldld.
2510 * configure.tgt: Likewise.
2511
6cbdcc6f
L
25122001-05-24 H.J. Lu <hjl@gnu.org>
2513
2514 * emultempl/stringify.sed: Removed again.
2515
86af25fe
L
25162001-05-24 H.J. Lu <hjl@gnu.org>
2517
2518 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2519 (gld${EMULATION_NAME}_before_parse): Initialize
2520 ldfile_output_architecture, ldfile_output_machine and
2521 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2522 * emultempl/beos.em: Likewise.
2523 * emultempl/elf32.em: Likewise.
2524 * emultempl/linux.em: Likewise.
2525 * emultempl/mipsecoff.em: Likewise.
2526 * emultempl/pe.em: Likewise.
2527 * emultempl/sunos.em: Likewise.
2528
3b1b01cf
TR
25292001-05-24 Tom Rix <trix@redhat.com>
2530
8f3aa7a0 2531 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
2532 udate import file format.
2533 (change_symbol_mode) New, same
2534 (is_syscall) New, same
2535 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2536 * emulparams/aixppc64.sh : same
2537 * emulparams/aixrs6.sh : same
2538 * emulparams/ppcmacos.sh : same
2539 * emultempl/aix.em : use strtoull to parse options
2540 * Makefile.am : add eaixppc64 emulation for xcoff64
2541 * Makefile.in : same
2542 * configure.tgt : same
2543
2544 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 2545 default data section offset to 0x20000000
3b1b01cf 2546 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 2547 loader and debug sections use the currect section offset.
3b1b01cf
TR
2548
2549 * emultempl/aix.em : Add xcoff64 support
2550 Add -binitfini support
8f3aa7a0 2551 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 2552 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 2553 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
2554 sections
2555
2556 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 2557
57e6abd2
AO
25582001-05-23 Alexandre Oliva <aoliva@redhat.com>
2559
2560 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2561 variable to avoid non-portable shell construct.
2562
d1cf510e
NC
25632001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2564
2565 * ldmain.c (get_emulation): Add -mips5 command line argument.
2566
506eee22
NC
25672001-05-22 Alexandre Oliva <aoliva@redhat.com>
2568
2569 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2570 (ELF_INTERPRETER_NAME): Define it.
2571 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2572 it.
2573 * configure.tgt (targ_emul, targ_extra_emuls)
2574 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2575 as primary, elf_i386 as extra.
2576 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2577 (eelf_i386_ldso.c): New rule.
2578 * Makefile.in: Rebuilt.
2579
25802001-05-22 Nick Clifton <nickc@redhat.com>
2581
2582 * lexsup.c (ld_options): Allow -I to be an alias for
2583 --dynamic-linker. This is for Solaris compatability.
2584 * ld.texinfo: Document that -I can be used.
2585 * ld.1: Regenerate.
2586
d1778b88
AM
25872001-05-16 Alan Modra <amodra@one.net.au>
2588
2589 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2590 whether an input section is the first one assigned to an output
2591 section.
2592 Assorted formatting fixes.
2593
02649152
DD
25942001-05-14 DJ Delorie <dj@delorie.com>
2595
2596 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2597 * Makefile.in: Ditto.
2598
579f31ac
JJ
25992001-05-11 Jakub Jelinek <jakub@redhat.com>
2600
2601 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2602 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2603 output sections.
2604 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2605
8550eb6e
JJ
26062001-05-11 Jakub Jelinek <jakub@redhat.com>
2607
2608 * ldlang.c (lang_process): Call bfd_merge_sections.
2609
8e5a525c
AM
26102001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2611
2612 * ldgram.y: Fix typo.
2613
1c9acd94
L
26142001-05-03 H.J. Lu <hjl@gnu.org>
2615
2616 * emultempl/elf32.em: Include "libiberty.h".
2617 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2618 basename of the bfd filename.
2619 (gld${EMULATION_NAME}_stat_needed): Likewise.
2620 (gld${EMULATION_NAME}_try_needed): Likewise.
2621 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2622
14fe918e
L
26232001-05-02 H.J. Lu <hjl@gnu.org>
2624
2625 * emultempl/pe.em: Include <ctype.h>.
2626
c7e40348
NC
26272001-05-02 Johan Rydberg <jrydberg@opencores.org>
2628
b6bf44ba 2629 * emulparams/elf32openrisc.sh: New file.
c7e40348 2630
b6bf44ba
AM
2631 * Makefile.am: Add OpenRISC target.
2632 * Makefile.in: Regenerated.
c7e40348 2633
b6bf44ba 2634 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
2635
26362001-05-02 Nick Clifton <nickc@redhat.com>
2637
2638 * emultempl/aix.em: Replace buystring with xstrdup.
2639 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 2640
d1b2b2dc
L
26412001-05-02 H.J. Lu <hjl@gnu.org>
2642
2643 * ldfile.c: Include "libiberty.h".
2644 * ldlex.l: Likewise.
2645
2646 * ldmisc.c (buystring): Removed.
2647 * ldmisc.h: Likewise.
2648
2649 * ldfile.c: Replace buystring with xstrdup.
2650 * ldlang.c: Likewise.
2651 * ldlex.l: Likewise.
2652 * ldmain.c: Likewise.
2653 * ldmisc.c: Likewise.
2654 * lexsup.c: Likewise.
2655 * mpw-eppcmac.c: Likewise.
2656
35714f2a
AJ
26572001-04-30 Andreas Jaeger <aj@suse.de>
2658
2659 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2660
884fb58e
NC
26612001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2662
b6bf44ba
AM
2663 * ldlang.c (load_symbols): Give emulation a chance
2664 to process unrecognized file before fatal error is
2665 reported, not after.
884fb58e 2666
87748b32
NC
26672001-04-27 Sean McNeil <sean@mcneil.com>
2668
2669 * configure.tgt: Add arm-vxworks target.
2670 * scripttempl/armcoff.sc: Support .text or .data as a section name
2671 prefix.
2672 Define _etext.
35714f2a 2673
7ce691ae
C
26742001-04-13 J.T. Conklin <jtc@redback.com>
2675
2676 * ld.texinfo: Document --fatal-warnings.
2677 * ld.1: Regenerate.
2678
2679 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 2680 warnings have been turned into errors.
7ce691ae
C
2681 * lexsup.c (OPTION_WARN_FATAL): Define.
2682 (ld_options): Entry for --fatal-warnings.
2683 (parse_args): Handle OPTION_WARN_FATAL.
2684 * ld.h (ld_config_type): Add fatal_warnings field.
2685
f5fa8ca2
JJ
26862001-04-13 Jakub Jelinek <jakub@redhat.com>
2687
2688 * ldmain.c (main): Default to discard_sec_merge.
2689 * lexsup.c (OPTION_DISCARD_NONE): Define.
2690 (ld_options): Add --discard-none.
2691 (parse_args): Handle OPTION_DISCARD_NONE.
2692 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2693 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2694 all its input sections match.
2695
fdec3cfc
L
26962001-04-05 Steven J. Hill <sjhill@cotw.com>
2697
2698 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2699 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2700 (eelf32ltsmip.c): New target.
2701 (eelf64btsmip.c): Likewise.
2702 (eelf64ltsmip.c): Likewise.
2703 * Makefile.in: Regenerated.
2704
2705 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2706 target.
2707 (mips*-*-linux-gnu*): Likewise.
2708
2709 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2710 MIPS taget.
35714f2a 2711 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
2712 target.
2713 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2714 endian target.
2715
589bad82
HPN
27162001-04-05 Hans-Peter Nilsson <hp@axis.com>
2717
2718 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2719 correct value of __Stext here.
2720 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2721 .startup section.
2722
2723 * emulparams/crislinux.sh: Remove FIXME.
2724
94202e16
AM
27252001-04-02 Alan Modra <alan@linuxcare.com.au>
2726
2727 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2728 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2729
1268a053
HPN
27302001-03-27 Hans-Peter Nilsson <hp@axis.com>
2731
2732 * configure.tgt (cris-*-*): Change default emulation to criself.
2733 (cris-*-*aout*): New rule.
2734
d85e9ff7
AM
27352001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2736
2737 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2738 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2739
0879a67a
AJ
27402001-03-26 Andreas Jaeger <aj@suse.de>
2741
2742 * ld.texinfo (Overview): Fix syntax in texi code.
2743
0285c67d
NC
27442001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2745
2746 * ld.texinfo: Put @c man indications to generate the ld man page.
2747 When generating man, define all the variables. Define SEEALSO
2748 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2749 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2750 (ld.1): Generate from ld.texinfo.
2751 * Makefile.in: Regenerate.
2752
c20ec07b
NC
27532001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2754
2755 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 2756 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 2757
cc5ce052
UD
27582001-03-17 Ulrich Drepper <drepper@redhat.com>
2759
2760 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2761 is an absolute path look only for this file and not along the path.
2762
a1ab1d2a
UD
27632001-03-17 Ulrich Drepper <drepper@redhat.com>
2764
2765 * emultempl/elf32.em (OPTION_GROUP): New macro.
2766 Add new option Bgroup to longopts.
2767 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2768 (gld*_list_options): Add -Bgroup and -z defs.
2769 * ld.1: Document -Bgroup and -z defs.
2770 * ld.texinfo: Likewise.
2771
788fca5a
MM
27722001-03-07 Michael Meissner <meissner@redhat.com>
2773
2774 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2775 with sections created by -fdata-sections.
2776 (.dynbss,.bss): Ditto.
2777
1c7566d1
AM
27782001-03-05 Alan Modra <alan@linuxcare.com.au>
2779
2780 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2781 after_allocation_default, not gld..._before_allocation.
2782
27b7e12d
AM
27832001-02-27 Alan Modra <alan@linuxcare.com.au>
2784
2785 * configure.in (BFD_VERSION): New.
2786 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2787 * configure: Regenerate.
2788 * Makefile.am: Run "make dep-am"
2789 * Makefile.in: Regenerate.
2790
2bc551c7
TW
27912001-02-26 Timothy Wall <twall@cygnus.com>
2792
2793 * emulparams/elf64_aix.sh: Add additional read-only sections;
2794 uncomment lines which are now required.
2795
1276aefa
NC
27962001-02-26 H.J. Lu <hjl@gnu.org>
2797
2798 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
2799 that problems can be caught whilst loading symbols.
2800 (record_bfd_errors): New function: Report BFD errors and mark
2801 the executable output as being invalid.
1276aefa 2802
41c49998
TW
28032001-02-22 Timothy Wall <twall@cygnus.com>
2804
2805 * configure.host: Add configuration for ia64-*-aix*.
2806 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2807 Add dependencies for eelf64_aix.c.
2808 * Makefile.in: Regenerate.
2809 * configure.tgt: Add ia64-*-aix* mapping.
2810 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 2811 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
2812 AIX-specific test.
2813
78f85fd7
L
28142001-02-20 H.J. Lu <hjl@gnu.org>
2815
2816 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2817 false if we found the file.
2818
1ac7e077 28192001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
2820
2821 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2822 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2823
e135f41b
NC
28242001-02-18 lars brinkhoff <lars@nocrew.org>
2825
2826 * Makefile.am: Add PDP-11 target.
2827 * configure.tgt: Likewise.
2828 * emulparams/pdp11.sh: New file.
2829
a842aceb
DB
28302001-02-17 David O'Brien <obrien@FreeBSD.org>
2831
2832 * configure.host: Add a generic FreeBSD configuration entry such that
2833 all [modern] FreeBSD systems on all platforms will look the same.
2834
24174db0
L
28352001-02-14 H.J. Lu <hjl@gnu.org>
2836
2837 * configure.tgt: Remove mention of earmelf_linux26.
2838
30c3c13a
RH
28392001-02-13 Richard Henderson <rth@redhat.com>
2840
2841 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2842
b46a87b1
L
28432001-02-13 H.J. Lu <hjl@gnu.org>
2844
2845 * ldexp.h (node_type): Add etree_provided.
2846 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2847 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 2848 for etree_provided.
b46a87b1
L
2849 (exp_print_tree): Handle etree_provided.
2850 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2851 etree_provided.
2852
f3988fd9
RH
28532001-02-09 David Mosberger <davidm@hpl.hp.com>
2854
2855 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2856 .IA_64.unwind.* pattern to unwind table section and
2857 .IA_64.unwind_info* pattern to unwind info section.
2858
a85d7ed0
NC
28592001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2860
2861 * Makefile.am: Add linux target for S/390.
2862 * Makefile.in: Likewise.
2863 * configure.host: Likewise.
2864 * configure.tgt: Likewise.
2865 * emulparams/elf64_s390.sh: New file.
2866 * emulparams/elf_s390.sh: New file.
2867
780248c4
JJ
28682001-02-09 Jakub Jelinek <jakub@redhat.com>
2869
2870 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2871 targ_extra_libpath.
2872 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2873
0e2534bd
PB
28742001-02-06 Philip Blundell <philb@gnu.org>
2875
2876 * Makefile.am: Remove mention of earmelf_linux26.
2877 * Makefile.in: Regenerate.
2878
46c1ea57
PB
28792001-02-04 Philip Blundell <philb@gnu.org>
2880
2881 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2882 * emulparams/armelf_linux26.sh: Delete.
2883 * configure.tgt: Remove mention of armelf_linux26 emulation.
2884
0088edd2
NC
28852001-02-01 Nick Clifton <nickc@redhat.com>
2886
2887 * ld.1: Replace occurances of -oformat with --oformat.
2888
02aa14fb
AM
28892001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2890
2891 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2892 load_base is specified.
2893
f813923c
HPN
28942001-01-24 Hans-Peter Nilsson <hp@axis.com>
2895
2896 * emultempl/elf32.em: Correct spelling in comments and listed
2897 options.
2898
c1eb1488
AM
28992001-01-23 Alan Modra <alan@linuxcare.com.au>
2900
2901 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2902 default for the first section of a group of overlay sections.
2903
d9fc3714
AM
29042001-01-22 Alan Modra <alan@linuxcare.com.au>
2905
2906 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2907 * Makefile.in: Regenerate.
2908 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2909 Check for null tool_dir.
2910
6be0ca94
JW
29112001-01-16 Jim Wilson <wilson@redhat.com>
2912
2913 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2914 and IA_64.unwind.info.
2915
b9247304
L
29162001-01-16 H.J. Lu <hjl@gnu.org>
2917
2918 * ldlang.c (lang_check): Merge the private data only if the
2919 input file has contents.
2920
577a0623
AM
29212001-01-14 Alan Modra <alan@linuxcare.com.au>
2922
d952f17a
AM
2923 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2924
ffd6e9de
AM
2925 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2926 enabling search for libmilli. On a relocatable link, make .text
2927 sections unique.
2928 (LDEMUL_AFTER_PARSE): Define.
2929 (hppaelf_finish): Correct spelling of relocatable in comments.
2930
577a0623
AM
2931 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2932 rummage through the script for sections on the unique list.
2933 Correct length of strncmp for ".note".
2934 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2935
2936 * ldlang.c (unique_section_list): New var.
2937 (unique_section_p): New function.
2938 (walk_wild_section): Don't match sections on unique_section_list.
2939 (lang_add_unique): New function.
ffd6e9de 2940 Correct spelling of relocatable in comments.
577a0623
AM
2941
2942 * ldlang.h (struct unique_sections): Declare.
2943 (unique_section_list): Declare.
2944 (unique_section_p): Declare.
2945 (lang_add_unique): Declare.
2946
2947 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2948 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2949
2950 * ld.texinfo (--unique): Update.
2951
b7ed8fad
NC
29522001-01-13 Nick Clifton <nickc@redhat.com>
2953
2954 * lexsup.c (parse_args): Remove spurious white space.
2955
d0398d6a
NC
29562001-01-12 Nick Clifton <nickc@redhat.com>
2957
2958 * lexsup.c (parse_args): Update copyright date.
2959
350fdb00
PB
29602001-01-12 Philip Blundell <pb@futuretv.com>
2961
2962 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2963
60c6797e
KH
29642001-01-10 Kazu Hirata <kazu@hxi.com>
2965
2966 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2967 * scripttempl/h8300h.sc: Fix formatting.
2968 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
2969 * scripttempl/h8500.sc: Likewise.
2970 * scripttempl/h8500b.sc: Likewise.
2971 * scripttempl/h8500c.sc: Likewise.
2972 * scripttempl/h8500m.sc: Likewise.
2973 * scripttempl/h8500s.sc: Likewise.
60c6797e 2974
482e8b32
DB
29752000-01-07 David O'Brien <obrien@BSDi.com>
2976
2977 * emultempl/elf32.em: Only perform Linux ld hints processing when
2978 targeting Linux.
2979
d7ed7ca6
PB
29802001-01-07 Philip Blundell <philb@gnu.org>
2981
2982 * ld.texinfo (Bug Reporting): Update email address for reports.
2983
0fc3347a
NC
29842000-12-31 Nick Clifton <nickc@redhat.com>
2985
2986 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2987 options by checking for a return value of '?' not -1.
2988
e4897a32
NC
29892000-12-28 Nick Clifton <nickc@redhat.com>
2990
2991 * lexsup.c (struct ld_option): Add new enum value:
2992 EXACTLY_TWO_DASHES.
2993 (ld_options[]): Change -omagic, -output and -oformat options
2994 to be EXACTLY_TWO_DASHES.
2995 (OUTPUT_COUNT): Use ARRAY_SIZE.
2996 (parse_args): Change parameter 'argc' to unsigned.
2997 Place EXACTLY_TWO_DASHES options into new really_longopts
2998 array.
2999 If getopt_long_only fails, try calling getopt_long using the
3000 really_longopts array.
3001 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3002 TWO_DASHES options.
3003
3004 * ldlex.h: Fix prototype of parse_args.
3005
3006 * ld.texinfo: Document that long options starting with 'o'
3007 must be preceeded by two dashes. Change example of a single
3008 dashed long option from -oformat to -trace-symbol.
3009
1122a5fc
NC
30102000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3011
3012 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3013 (longopts[]): New --no-default-excludes option.
3014 (gld_${EMULATION_NAME}_list_options): Document.
3015 (gld_${EMULATION_NAME}_parse_args): Handle.
3016
037849a9
NC
30172000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3018
3019 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3020 whitespace, it breaks the K&R C preprocessor.
3021
7ec229ce
DD
30222000-12-11 DJ Delorie <dj@redhat.com>
3023
3024 * ld.texinfo: Add notes about --whole-archive and gcc.
3025
b79e8c78
NC
30262000-11-18 Fred Fish <fnf@be.com>
3027
3028 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3029 (ld_options): Entry for --allow-shlib-undefined.
3030 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3031 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3032 to false.
3033 * ld.texinfo: Document new command line switch.
d952f17a 3034
9a8e2505
GK
30352000-12-12 Geoffrey Keating <geoffk@redhat.com>
3036
3037 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3038 .fixup is actually read/write.
3039 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3040 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3041 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3042
3b16e843 30432000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
3044
3045 * NEWS: Add note about x86_64 architecture.
3046
93b63cd3
DD
30472000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3048
3049 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3050 Set DWARF2 sections to a VMA of zero.
3051
68b2fc7a 30522000-12-01 Joel Sherrill <joel@OARcorp.com>
24f6971a 3053
d952f17a 3054 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
3055 New targets.
3056 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3057 (sparc*-*-rtems*): Switched from a.out to ELF.
3058
2be3aa03
NC
30592000-11-30 Jan Hubicka <jh@suse.cz>
3060
3061 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3062 (eelf_x86_64.c): New.
3063 * Makefile.in: Regenerate.
3064 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3065 * emulparams/elf_x86_64.sh: New.
3066
8c899858
HPN
30672000-11-30 Hans-Peter Nilsson <hp@axis.com>
3068
3069 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3070 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3071
3072 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3073 merging non-a.out sections into CONSTRUCTING.
3074
e47b9e39
NC
30752000-11-28 Nick Clifton <nickc@redhat.com>
3076
3077 * ld.1 (COPYING): Mention that the GNU Free Documentation
3078 License is present in the sources, but not the output, and
3079 also available from the GNU website.
3080 (GNU Free Documentation License): Comment out this section.
3081
ad95f82a
DB
30822000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3083
3084 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3085 does not use them.
3086
fd89e65f
DB
30872000-11-25 David O'Brien <obrien@FreeBSD.org>
3088
3089 * ld.1: Remove old date so it does not give the impression the manpage
3090 is way out of date.
3091
077b8428
NC
30922000-11-24 Nick Clifton <nickc@redhat.com>
3093
3094 * configure.tgt (xscale-coff): Add target.
3095 (xscale-elf): Add target.
3096
49425d28
NC
30972000-11-24 Fred Fish <fnf@be.com>
3098
d952f17a
AM
3099 * ldmain.c (main): Remove redundant init of config.make_executable
3100 to true.
49425d28 3101
d3480244
RH
31022000-11-15 Richard Henderson <rth@redhat.com>
3103
3104 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3105
1ce7de8b
KH
31062000-11-14 Kazu Hirata <kazu@hxi.com>
3107
3108 * scripttempl/h8300.sc: Fix formatting.
3109 * scripttempl/h8300h.sc: Likewise.
3110 * scripttempl/h8300s.sc: Likewise.
3111
3b16e843 31122000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
3113
3114 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3115
2e418547
PB
31162000-11-09 Philip Blundell <pb@futuretv.com>
3117
3118 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3119 around orphan sections whose names can be represented in C.
3120
c940e6fc
JW
31212000-11-07 Jim Wilson <wilson@redhat.com>
3122
3123 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3124 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3125
704c465c
NC
31262000-11-06 Nick Clifton <nickc@redhat.com>
3127
3128 * ld.texinfo: Add GNU Free Documentation License.
3129 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 3130 * ld.1: Add GNU Free Documentation License.
704c465c 3131
dca7760f
AM
31322000-11-05 Alan Modra <alan@linuxcare.com.au>
3133
3134 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3135 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3136
3137 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3138 Move 2000-11-02 Makefile.in changes to this file.
3139 * Makefile.in: Regenerate.
3140
40a633d5
NC
31412000-11-03 Nick Clifton <nickc@redhat.com>
3142
3143 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3144 constructors and destructors.
3145 * scripttempl/h8300h.sc: Ditto.
3146 * scripttempl/h8300s.sc: Ditto.
3147 * scripttempl/h8500.sc: Ditto.
3148 * scripttempl/h8500b.sc: Ditto.
3149 * scripttempl/h8500c.sc: Ditto.
3150 * scripttempl/h8500m.sc: Ditto.
3151 * scripttempl/h8500s.sc: Ditto.
3152 * scripttempl/v850.sc: Ditto.
3153 * scripttempl/w65.sc: Ditto.
3154 * scripttempl/z8000.sc: Ditto.
3155
59ff2774
NC
31562000-11-02 Per Lundberg <plundis@chaosdev.org>
3157
3158 * Makefile.in (e_i386_chaos.c): New rule.
3159 (ALL_EMULATIONS): Added e_i386_chaos.o.
3160 * emulparams/elf_i386_chaos.sh: New file.
3161 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3162
645571e1
JJ
31632000-10-20 Jakub Jelinek <jakub@redhat.com>
3164
3165 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3166 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3167 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3168 library path suffix.
3169 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3170
c5975a45
HPN
31712000-10-18 Hans-Peter Nilsson <hp@axis.com>
3172
3173 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3174 for consecutive sections.
3175
ea20a7da
CC
31762000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3177
d952f17a
AM
3178 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3179 options.
3180 * ld.texinfo: Added notes about this new option.
ea20a7da 3181
6e45556a
NC
31822000-10-16 Nick Clifton <nickc@redhat.com>
3183
3184 * emultempl/pe.em (_after_open): Add tests of return values from
3185 bfd functions. Emit appropriate error messages if necessary.
3186
b9a69188
NC
31872000-10-13 Nick Clifton <nickc@redhat.com>
3188
3189 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
3190 local variables - they are not used, but leave in the call to
3191 bfd_canonicalize_symtab.
b9a69188
NC
3192 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3193 pe_dll_search_prefix.
3194
627427de 31952000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 3196
627427de
DD
3197 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3198 (longopts): New --dll-search-prefix option.
3199 (gld_${EMULATION_NAME}_list_options): Document.
3200 (gld_${EMULATION_NAME}_parse_args): Handle.
3201 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3202 dynamically, search for a dll named '<prefix><basename>.dll'
3203 in preference to 'lib<basename>.dll' if --dll-search-prefix
3204 is specified.
3205
24376d1b
AM
32062000-10-12 Alan Modra <alan@linuxcare.com.au>
3207
3208 * ldlang.c (section_already_linked): Set kept_section instead of
3209 sec->comdat->sec.
3210
e47d05ad
KH
32112000-10-10 Kazu Hirata <kazu@hxi.com>
3212
3213 * deffile.h: Fix formatting.
3214 * lexsup.c: Likewise.
3215 * mri.c: Likewise.
3216
23a87948
DD
32172000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3218
3219 * pe-dll.c (make_one): Do not generate code thunk for DATA
3220 exports.
3221 (process_def_file): deduce DATA flag for auto-export sumbols.
3222
86b1cc60
KH
32232000-10-09 Kazu Hirata <kazu@hxi.com>
3224
89cdebba
KH
3225 * ld.h: Fix formatting.
3226 * ldcref.c: Likewise.
3227 * ldctor.h: Likewise.
3228 * ldemul.c: Likewise.
3229 * ldemul.h: Likewise.
3230 * ldexp.c: Likewise.
3231 * ldexp.h: Likewise.
3232 * ldfile.c: Likewise.
3233 * ldfile.h: Likewise.
3234 * ldlang.c: Likewise.
3235 * ldlang.h: Likewise.
3236 * ldmain.c: Likewise.
7bfd51a3
KH
3237 * pe-dll.c: Likewise.
3238
3239 * pe-dll.c: Revert some formatting fixes.
86b1cc60 3240
d643799d
KH
32412000-10-08 Kazu Hirata <kazu@hxi.com>
3242
3243 * pe-dll.c: Fix formatting.
3244
08da4cac
KH
32452000-10-05 Kazu Hirata <kazu@hxi.com>
3246
3247 * ldlang.c: Fix formatting.
3248
c2a94a7a
DD
32492000-10-03 DJ Delorie <dj@redhat.com>
3250
3251 * pe-dll.c (fill_edata): initialize entire block
3252 (make_one): fill in correct section.
3253
8c95a62e
KH
32542000-10-03 Kazu Hirata <kazu@hxi.com>
3255
3256 * ldexp.c: Fix formatting.
3257
486e80e2
DD
32582000-10-02 DJ Delorie <dj@redhat.com>
3259
3260 * emultempl/pe.em (gld_*_after_open): detect case where there two
3261 import libraries for same dll; rename one to ensure proper link
3262 order.
3263
3264 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3265 typo
3266 (generate_edata): fix typo
3267
24dd9f75
HPN
32682000-09-29 Hans-Peter Nilsson <hp@axis.com>
3269
3270 * scripttempl/crisaout.sc (ENTRY): Now __start.
3271 (.text): Add default setting for __start.
3272 Remove CONSTRUCTORS handling.
3273 (/DISCARD/): Add .gnu.warning.*.
3274 * emulparams/crislinux.sh (ENTRY): Now __start.
3275 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3276 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3277 (ENTRY): Now __start.
3278 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3279 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3280
4de2d33d
KH
32812000-09-29 Kazu Hirata <kazu@hxi.com>
3282
5cc18311
KH
3283 * deffile.h: Fix formatting.
3284 * ld.h: Likewise.
3285 * ldcref.c: Likewise.
4de2d33d 3286 * ldctor.c: Likewise.
5cc18311 3287 * ldctor.h: Likewise.
4de2d33d 3288 * ldemul.c: Likewise.
5cc18311 3289 * ldemul.h: Likewise.
4de2d33d 3290 * ldexp.c: Likewise.
5cc18311 3291 * ldexp.h: Likewise.
4de2d33d 3292 * ldfile.c: Likewise.
5cc18311 3293 * ldfile.h: Likewise.
4de2d33d 3294 * ldlang.c: Likewise.
5cc18311
KH
3295 * ldlang.h: Likewise.
3296 * lexsup.c: Likewise.
3297 * mri.c: Likewise.
3298 * pe-dll.c: Likewise.
4de2d33d 3299
45b1f63c
DD
33002000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3301
3302 * pe-dll.c (process_def_file): Uninitialized data wasn't
3303 exported with --export-all-symbols switch.
d952f17a 3304
45b1f63c
DD
33052000-09-28 DJ Delorie <dj@redhat.com>
3306
3307 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3308 noname work properly.
3309
47d89dba
AM
33102000-09-28 Alan Modra <alan@linuxcare.com.au>
3311
3312 * ld.texinfo (HPPA ELF32): New section.
3313
3314 * emultempl/hppaelf.em (group_size): New.
3315 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3316 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3317 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3318 options to prevent abbreviations matching.
3319 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3320 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3321
36bdbeec
NC
33222000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3323
3324 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3325 on the m68*-*-elf target. Make it support COFF input objects.
3326
6d5e62f8
KH
33272000-09-21 Kazu Hirata <kazu@hxi.com>
3328
3329 * ldmain.c: Fix formatting.
3330 * ldmisc.c: Likewise.
3331 * ldver.c: Likewise.
3332 * ldwrite.c: Likewise.
3333
e2eb67d9
AM
33342000-09-21 Alan Modra <alan@linuxcare.com.au>
3335
3336 * ldwrite.c (clone_section): Silence gcc warnings.
3337
b3ea3584
AM
33382000-09-20 Alan Modra <alan@linuxcare.com.au>
3339
3340 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3341 out of memory failure.
3342
3343 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3344 (clone_section): Handle out of memory failures. Rename var to
3345 avoid c++ reserved word.
3346
25f72752
AM
33472000-09-18 Alan Modra <alan@linuxcare.com.au>
3348
3349 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3350 stub_name param to stub_sec_name.
3351 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3352
0752970e
NC
33532000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3354
3355 * emultempl/m68kelf.em: New file.
3356 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3357 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3358 * Makefile.in: Regenerate.
3359
92b7e9d8
AM
33602000-09-15 Alan Modra <alan@linuxcare.com.au>
3361
3362 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3363 only as needed.
3364
9b14b192
NC
33652000-09-13 Nick Clifton <nickc@redhat.com>
3366
3367 * ldmain.c (multiple_definition): Disable relaxation if
3368 multiple symbol definitions are encountered - otherwise the
3369 linker could abort with an assertion failure.
3370
891fa266
NC
33712000-09-10 Nick Clifton <nickc@redhat.com>
3372
3373 * mri.c: Fix formatting.
3374
5d64ca4e
L
33752000-09-07 H.J. Lu <hjl@gnu.org>
3376
3377 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3378 * configure: Rebuild.
3379
dd94604f
L
33802000-09-07 H.J. Lu <hjl@gnu.org>
3381
3382 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3383 * Makefile.in: Rebuild.
3384
71bfc0ae
AM
33852000-09-07 Alan Modra <alan@linuxcare.com.au>
3386
3387 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3388 broken list handling. Create __start_SECNAME and __stop_SECNAME
3389 when no place-holder. Add some comments. Test both SEC_CODE and
3390 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 3391 Handle case where no output section statement created.
71bfc0ae 3392
4a428502
AO
33932000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3394
3395 * configure.tgt (sh-*-linux*): Added.
3396 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3397 * Makefile.in: Rebuilt.
3398 * emulparams/shelf_linux.sh: New file.
3399 * emulparams/shlelf_linux.sh: New file.
3400
f9989030
AM
34012000-09-06 Alan Modra <alan@linuxcare.com.au>
3402
3403 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3404 try shuffling sections when the orphan happens to be the place
3405 holder. Keep count of unique section names generated so we speed
3406 the search for a new name.
3407
58cccadb
AO
34082000-09-06 Alexandre Oliva <aoliva@redhat.com>
3409
3410 * configure: Rebuilt with new libtool.m4.
3411
5b343f5a
NC
34122000-09-05 Nick Clifton <nickc@redhat.com>
3413
3414 * Makefile.in: Regenerate.
3415 * aclocal.m4: Regenerate.
3416 * configure: Regenerate.
3417 * config.in: Regenerate.
3418 * po/ld.pot: Regenerate.
3419
3420 * ldint.texinfo: Remove CVS revision marker - it foils local
3421 comparisons.
3422
3423 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 3424
a854a4a7
AM
34252000-09-05 Alan Modra <alan@linuxcare.com.au>
3426
3231d22e
AM
3427 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3428 to stub section flags.
3429 (hppa_for_each_input_file_wrapper): New.
3430 (hppa_lang_for_each_input_file): New.
3431 (lang_for_each_input_file): Define to call above.
3432 (multi_subspace): New.
3433 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3434 (PARSE_AND_LIST_PROLOGUE): Define.
3435 (PARSE_AND_LIST_LONGOPTS): Define.
3436 (PARSE_AND_LIST_OPTIONS): Define.
3437 (PARSE_AND_LIST_ARGS_CASES): Define.
3438 (hppaelf_finish): Call elf32_hppa_set_gp.
3439 (hppaelf_set_output_arch): Remove.
3440 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3441
3442 * emulparams/hppalinux.sh (ELFSIZE): Define.
3443 (MACHINE): Define.
3444 (OTHER_READONLY_SECTIONS): Define.
3445 (DATA_PLT): Define.
3446 (GENERATE_SHLIB_SCRIPT): Define.
3447
5f992e62
AM
3448 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3449 to const throughout. Change `void *' to `PTR' throughout.
3450 (lang_memory_default): Function is local to file, add `static'.
3451
3452 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3453 (ehppalinux.c): Likewise.
3454 (earmelf.c): Likewise.
3455 (earmelf_linux.c): Likewise.
3456 (earmelf_linux26.c): Likewise.
3457 * Makefile.in: Regenerate.
3458
a854a4a7
AM
3459 * ld.h (ld_config_type): Add unique_orphan_sections.
3460 * lexsup.c (OPTION_UNIQUE): Define.
3461 (ld_options): Add "--unique".
3462 (parse_args): Handle it.
3463 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3464 search for an existing output section if unique_orphan_sections is
3465 set. Make use of bfd_get_unique_section_name rather than
3466 duplicating code here.
3467 * ld.texinfo: Describe --unique.
3468
3469 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3470 optional arg to split-by-file.
3471 (parse_args): Handle them.
3472 * ld.texinfo: Update description of these options.
3473 * ldwrite.c (clone_section): Pass in the section name. Replace
3474 local code with bfd_get_unique_section_name.
3475 (split_sections): Tidy code and comments. Use a list traversal
3476 more appropriate to the list construction. Handle cooked section
3477 sizes. Split when split_by_reloc reached rather than exceeded.
3478 Track section size and split when split_by_file reached. Fix
3479 link_order_tail (even though it's not used).
3480 (ldwrite): Modify condition for calling split_sections to suit
3481 changed split_by_reloc and split_by_file.
3482 * ldmain.c (main): Init config.split_by_reloc and
3483 config.split_by_file to -1.
3484 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3485 Change split_by_file to bfd_size_type.
3486
18e03609
NC
34872000-09-02 Nick Clifton <nickc@redhat.com>
3488
3489 * configure.in: Increase version number to 2.10.91.
3490 * NEWS: Mention new ability to support removal of duplicate DWARF2
3491 debug information.
3492 * configure: Regenerate.
3493 * aclocal.m4: Regenerate.
3494 * config.in: Regenerate.
3495
3a9d486c
NC
34962000-09-02 Daniel Berlin <dberlin@redhat.com>
3497
3498 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3499 sections.
a2b64bed 3500 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
3501 * scripttempl/elfd10v.sc: Ditto.
3502 * scripttempl/elfd30v.sc: Ditto.
3503 * scripttempl/elfi370.sc: Ditto.
3504 * scripttempl/elfm68hc11.sc: Ditto.
3505 * scripttempl/elfm68hc12.sc: Ditto.
3506 * scripttempl/elfi386beos.sc: Ditto.
3507 * scripttempl/v850.sc: Ditto.
50bbae35 3508
ac48eca1
AO
35092000-08-31 Alexandre Oliva <aoliva@redhat.com>
3510
3511 * acinclude.m4: Include libtool and gettext macros from the
3512 top level.
3513 * aclocal.m4, configure: Rebuilt.
3514
c13b1b77
NC
35152000-08-25 Nick Clifton <nickc@redhat.com>
3516
3517 * ldlang.c (open_output): When choosing the target for a
3518 particular endianness, do nothing if the target is not
3519 supported.
3520
dcb0bd0e
L
35212000-08-25 H.J. Lu <hjl@gnu.org>
3522
3523 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3524 check -rpath nor LD_RUN_PATH for cross link.
3525 * ld.texinfo: Document the change.
3526
5bcac8a4
HPN
35272000-08-24 Hans-Peter Nilsson <hp@axis.com>
3528
3529 * NEWS: Mention support for CRIS.
3530
6dd8c765
L
35312000-08-23 H.J. Lu <hjl@gnu.org>
3532
3533 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3534 the current runpath list from bfd_elf_get_runpath_list ()
3535 before search.
3536
ec4eb78a
L
35372000-08-22 H.J. Lu <hjl@gnu.org>
3538
3539 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3540 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3541 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3542 trace_file_tries is non-zero.
3543 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3544 if trace_file_tries is non-zero.
3545
3546 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 3547 * NEWS: Mention it.
ec4eb78a 3548
22b36938
JE
35492000-08-14 Jason Eckhardt <jle@cygnus.com>
3550
3551 * NEWS: Mention i860 support.
3552
d73e9da0
AS
35532000-08-14 Andreas Schwab <schwab@suse.de>
3554
3555 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 3556 syntax.
d73e9da0 3557
9ac4db9c
GK
35582000-08-10 Geoff Keating <geoffk@cygnus.com>
3559
3560 * scripttempl/elf.sc: Add a comment giving the correspondence
3561 between sections, per-datum sections, and linkonce sections. Make
3562 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3563 .sbss2.
3564
165589e4
JE
35652000-08-10 Jason Eckhardt <jle@cygnus.com>
3566
3567 * emulparams/elf32_i860.sh: New file.
3568 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3569 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3570 (eelf32_i860.c): New rule.
3571 * Makefile.in: Regenerate.
3572
345a835d
NC
35732000-08-10 Nick Clifton <nickc@cygnus.com>
3574
3575 * emulparams/mipspe.sh (ENTRY): Add definition.
3576
e374f1d9
NC
35772000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3578
3579 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3580 in error message.
3581
236d5abf
NC
35822000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3583
3584 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3585 the final size of .bss section.
3586 * scripttempl/elfm68hc12.sc: Likewise.
3587
4b209b22
AM
35882000-08-04 Alan Modra <alan@linuxcare.com.au>
3589
3590 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3591 gld${EMULATION_NAME}_parse_args for consistency. Combine
3592 lastoptind and prevoptind vars, and keep track of last optind.
3593 (gld_${EMULATION_NAME}_list_options): Rename to
3594 gld${EMULATION_NAME}_list_options.
3595
28423a68
AM
35962000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3597
3598 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3599 (i586-sco-sysv5uw7.1.0).
3600
b2009ff7
L
36012000-07-27 H.J. Lu <hjl@gnu.org>
3602
3603 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3604 (PARSE_AND_LIST_PROLOGUE): New.
3605 (PARSE_AND_LIST_LONGOPTS): Likewise.
3606 (PARSE_AND_LIST_OPTIONS): Likewise.
3607 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3608 (PARSE_AND_LIST_EPILOGUE): Likewise.
3609
04925e1e
AM
36102000-07-28 Alan Modra <alan@linuxcare.com.au>
3611
41392f03
AM
3612 * emultempl/armelf.em: Elide functions common to elf32.em,
3613 ie. most of the file.
3614 (arm_elf_after_open): New. Do arm specific things then call
3615 gld${EMULATION_NAME}_after_open.
3616 (arm_elf_before_allocation): New. Call
3617 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3618 (PARSE_AND_LIST_PROLOGUE): Define.
3619 (PARSE_AND_LIST_SHORTOPTS): Define.
3620 (PARSE_AND_LIST_LONGOPTS): Define.
3621 (PARSE_AND_LIST_OPTIONS): Define.
3622 (PARSE_AND_LIST_ARGS_CASES): Define.
3623 (LDEMUL_AFTER_OPEN): Define.
3624 (LDEMUL_BEFORE_ALLOCATION): Define.
3625 (LDEMUL_BEFORE_PARSE): Define.
3626 (LDEMUL_FINISH): Define.
3627
3628 * emultempl/hppaelf.em: Similarly zap most of this file.
3629 (hppaelf_add_stub_section): Prototype.
3630 (hppaelf_layaout_sections_again): Prototype.
3631 (hook_in_stub): Prototype.
3632 (LDEMUL_SET_OUTPUT_ARCH): Define.
3633 (LDEMUL_FINISH): Define.
3634 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3635
3636 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3637 (EXTRA_EM_FILE): New.
3638 * emulparams/armelf_linux.sh: Likewise.
3639 * emulparams/armelf_linux26.sh: Likewise.
3640 * emulparams/hppalinux.sh: Likewise.
3641 * emulparams/hppaelf.sh: Likewise.
3642 (NOP): Define.
3643
3644 * emultempl/elf32.em: Fix formatting.
3645 (EXTRA_EM_FILE): Source it.
3646 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3647 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3648 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3649 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3650 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3651 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3652 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3653 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3654 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3655 allow functions in this file to be overridden.
3656 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3657
3658 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3659
04925e1e
AM
3660 * emultempl/elf32.em: Reorganize file.
3661
88cdf297
NC
36622000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3663
3664 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3665 specific option to fit 64-bit executable in the lower
3666 31-bit address range. This is done by changing start
3667 address of .interp (the very first section of executable)
3668 and then setting EF_ALPHA_32BIT elf header flag.
3669
20bccb34
NC
36702000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3671
3672 * emultempl/m68kcoff.em: New file.
3673 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3674 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3675 generic.em.
3676 * Makefile.in: Regenerate.
3677
699845ef
L
36782000-07-20 H.J. Lu <hjl@gnu.org>
3679
3680 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3681 and "disable-new-dtags" to stop getopt from treating -d/-e as
3682 abbreviations for these options.
3683
6c1439be
L
36842000-07-20 H.J. Lu <hjl@gnu.org>
3685
3686 * ld.texinfo: Add documentation for --disable-new-dtags and
3687 --enable-new-dtags.
3688
3689 * ldmain.c (main): Initialize link_info.new_dtags to false.
3690
3691 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3692 --disable-new-dtags and --enable-new-dtags.
3693 (gld_${EMULATION_NAME}_list_options): Likewise.
3694
28c309a2
NC
36952000-07-05 Kenneth Block <krblock@computer.org>
3696
a2b64bed
NC
3697 * lexsup.c: Add optional style to demangle switch
3698 * ld.texinfo: Document optional style to demangle switch.
50bbae35 3699
9d06555c
HPN
37002000-07-20 Hans-Peter Nilsson <hp@axis.com>
3701
3702 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3703 ecrislinux.o.
3704 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3705 Regenerate dependencies.
3706 * Makefile.in: Rebuild.
3707 * configure.tgt (cris-*-*): New target.
3708 * emulparams/crisaout.sh, emulparams/criself.sh,
3709 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3710 * po/POTFILES.in, po/ld.pot: Regenerate.
3711
19e3be22
L
37122000-07-20 H.J. Lu <hjl@gnu.org>
3713
3714 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3715 Print out ignored -z options.
3716
e0ee487b
L
37172000-07-19 H.J. Lu <hjl@gnu.org>
3718
19e3be22
L
3719 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3720 (PARSE_AND_LIST_PROLOGUE): New.
3721 (PARSE_AND_LIST_LONGOPTS): Likewise.
3722 (PARSE_AND_LIST_OPTIONS): Likewise.
3723 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3724
3725 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3726
3727 * lexsup.c (ld_options): Comment out 'z'.
3728 (parse_args): Likewise.
3729
3730 * emultempl/elf32.em: Include "elf/common.h".
3731 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3732 options.
3733 (gld_${EMULATION_NAME}_list_options): Likewise.
3734
3735 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 3736
49e56c49
L
37372000-07-19 H.J. Lu <hjl@gnu.org>
3738
3739 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3740 bfd_elf_set_dt_needed_soname ().
3741
9d68bc82
DD
37422000-07-18 DJ Delorie <dj@cygnus.com>
3743
3744 * pe-dll.c (pe_dll_id_target): check object target name also
3745
53db15ed
HPN
37462000-07-18 Hans-Peter Nilsson <hp@axis.com>
3747
3748 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3749 ${INIT_END} if relocating.
3750 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3751
0ad8cf4c
DD
37522000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3753
a2b64bed 3754 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
3755 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3756 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3757 errors introduced by the old dynamic lib search order.
3758
874c8c99
DD
37592000-07-17 DJ Delorie <dj@cygnus.com>
3760
3761 * pe-dll.c (process_def_file): auto-export data items also
3762 (pe_process_import_defs): also see if _imp_ form needed
3763
5b4cf3f4
DD
37642000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3765
3766 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3767 for dll import libraries
3768
062739d1
NC
37692000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3770
3771 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 3772 gcc 2.95.2 and later.
062739d1 3773
1c64c4ed
NC
37742000-07-11 Kazu Hirata <kazu@hxi.com>
3775
50bbae35
AM
3776 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3777 message.
1c64c4ed 3778
b71e2778
AM
37792000-07-10 Alan Modra <alan@linuxcare.com.au>
3780
3781 * ldemul.h (struct lang_input_statement_struct): Remove forward
3782 declaration.
3783 (struct search_dirs): Likewise.
3784 * ldfile.h (struct lang_input_statement_struct): Likewise.
3785 Protect file from multiple inclusion.
3786 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3787 declaration from macro to file scope.
3788
3789 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3790 * ldgram.y: Likewise here.
3791 * ldlang.c: And here.
3792 * ldmain.c: And here.
3793 * mpw-elfmips.c: And here.
3794 * mpw-eppcmac.c: And here.
3795 * emultempl/aix.em: And here.
3796 * emultempl/armcoff.em: And here.
3797 * emultempl/armelf.em: And here.
3798 * emultempl/armelf_oabi.em: And here.
3799 * emultempl/beos.em: And here.
3800 * emultempl/elf32.em: And here.
3801 * emultempl/hppaelf.em: And here.
3802 * emultempl/linux.em: And here.
3803 * emultempl/lnk960.em: And here.
3804 * emultempl/pe.em: And here.
3805 * emultempl/sunos.em: And here.
3806 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3807 * mpw-idtmips.c: Ditto.
3808 * emultempl/generic.em: Ditto.
3809 * emultempl/gld960.em: Ditto.
3810 * emultempl/gld960c.em: Ditto.
3811 * emultempl/mipsecoff.em: Ditto.
3812 * emultempl/ticoff.em: Ditto.
3813 * emultempl/vanilla.em: Ditto.
3814
3815 * pe-dll.c: Include ldfile.h
3816 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3817
3818 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3819 arguments to bfd_elf32_size_dynamic_sections call.
3820 (gldelf32ebmip_place_orphan): Add missing arguments to
3821 lang_leave_output_section_statement call.
3822
2ef53d66
L
38232000-07-10 H.J. Lu <hjl@gnu.org>
3824
3825 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3826 DLL_SUPPORT.
3827 (strhash): Likewise.
3828 (compute_dll_image_base): Likewise.
3829 (pe_undef_found_sym): Likewise.
3830 (pe_undef_cdecl_match): Likewise.
3831 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3832 argument "arch" with ATTRIBUTE_UNUSED.
3833
9a8cbb09
AM
38342000-07-10 Alan Modra <alan@linuxcare.com.au>
3835
3836 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3837
3838 From Ryan Bradetich <rbradetich@uswest.net>
3839 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 3840
4900fc06
AM
38412000-07-09 Alan Modra <alan@linuxcare.com.au>
3842
3843 Changes to create multiple linker stubs, positioned immediately
3844 before the section where they are required.
3845 * emultempl/hppaelf.em: Include elf32-hppa.h.
3846 (stub_sec, file_chain): Delete.
3847 (hppaelf_create_output_section_statements): Don't make a stub
3848 section here.
3849 (hook_stub_info): New struct.
3850 (hook_in_stub): New function.
3851 (hppaelf_add_stub_section): New function.
3852 (hppaelf_finish): Do nothing for relocateable links. Modify the
3853 call to elf32_hppa_size_stubs. Move code for updating section
3854 layout from here...
3855 (hppaelf_layaout_sections_again): ..to here, a new function.
3856
3857 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3858 broken list handling. Pass in a pointer to the list.
3859 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3860 for above changes.
3861 (hppaelf_before_parse): Prototype.
3862 (hppaelf_set_output_arch): Prototype.
3863 (hppaelf_create_output_section_statements): Prototype.
3864 (hppaelf_delete_padding_statements): Prototype.
3865 (hppaelf_finish): Prototype.
3866
3867 Merge from elf32.em
3868 * emultempl/hppaelf.em: Include ctype.h.
3869 (struct orphan_save): New.
3870 (gld${EMULATION_NAME}_place_orphan): New.
3871 (output_rel_find): New.
3872 (hppaelf_get_script): Update from elf32.em.
3873 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3874 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 3875 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
3876
3877 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3878 ehppalinux.o, sort it. Regenerate dependencies.
3879 (ehppalinux.c): Depend on hppaelf.em
3880 * Makefile.in: Regenerate.
3881
3882 * configure.tgt: targ_emul=hppalinux for hppa*linux
3883
3884 * emulparams/hppalinux.sh: New.
3885 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3886
227aeb07
AM
38872000-07-08 Alan Modra <alan@linuxcare.com.au>
3888
3889 * lexsup.c (parse_args): Copy section name.
3890
28609fd4 38912000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 3892
2ef53d66 3893 * emultempl/pe.em: institute the following search order for
602e90d3
DD
3894 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3895 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3896 static lib (libfoo.a) if none of the above are found.
3897
5f577f7d
DD
38982000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3899
50bbae35 3900 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 3901 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 3902 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
3903 (gld_${EMULATION_NAME}_parse): Handle.
3904 (strhash): New static function.
50bbae35 3905 (compute_dll_image_base): New static function.
5f577f7d
DD
3906 (gld_${EMULATION_NAME}_set_symbols): Use.
3907
9a8cbb09 39082000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
3909
3910 * MAINTAINERS: new
3911
3548145d 39122000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
3913
3914 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3915 * emulparams/elf32btsmip.sh: New file.
3916 * Makefile.am: Add traditional mips target.
3917 * Makefile.in: Rebuild.
3918
67798033
L
39192000-07-01 H.J. Lu <hjl@gnu.org>
3920
3921 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3922 automake to use YLWRAP.
3923 * Makefile.in: Rebuild.
3924
0bdaf48b
AM
39252000-07-01 Alan Modra <alan@linuxcare.com.au>
3926
3927 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3928 (CLEANFILES): Add DEPA.
3929 * Makefile.in: Regenerate.
3930
c9e769c2
TW
39312000-06-30 Timothy Wall <twall@ppc>
3932
3933 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3934 the page in the upper octet of the address.
3935
65aa24b6
NC
39362000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3937
3938 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3939
4667035e
AM
39402000-06-24 Alan Modra <alan@linuxcare.com.au>
3941
3942 * NEWS: arm-elf does --gc-sections too.
3943
1581f8c9
AM
39442000-06-22 Alan Modra <alan@linuxcare.com.au>
3945
3946 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3947 find one.
3948 * Makefile.in: Regenerate.
3949
01580992
L
39502000-06-21 H.J. Lu <hjl@gnu.org>
3951
3952 * Makefile.am: Rebuild dependency.
3953 * Makefile.in: Rebuild.
3954
bbeb2e03
L
39552000-06-20 H.J. Lu <hjl@gnu.org>
3956
3957 * Makefile.am: Rebuild dependency.
3958 * Makefile.in: Rebuild.
3959
74459f0e
TW
39602000-06-20 Timothy Wall <twall@cygnus.com>
3961
3962 * scripttempl/tic54xcoff.sc: New.
3963 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3964 * gen-doc.texi: Add flag for TI COFF.
3965 * ld.texinfo: Add documentation for TI COFF handling switches.
3966 * emultempl/ticoff.em: New. TI COFF handling.
3967 * configure.tgt: Add tic54x target.
3968 * Makefile.am: Add tic54x target.
3969 * Makefile.in: Ditto.
3970
2ab47eed
AM
39712000-06-20 Alan Modra <alan@linuxcare.com.au>
3972
3973 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3974 checking for backslashes.
3975
919e4093
AM
39762000-06-19 Alan Modra <alan@linuxcare.com.au>
3977
3978 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3979
987fd5b4
AM
39802000-06-18 Alan Modra <alan@linuxcare.com.au>
3981
3982 * NEWS: Update list of targets supporting --gc-sections.
3983
3984 * scripttempl/elf.sc: KEEP .eh_frame contents.
3985 * scripttempl/elfd30v.sc: Same here.
3986
60bcf0fa
NC
39872000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3988
3989 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3990 and m68hc11 (elf).
3991 * Makefile.in: Rebuild.
3992 * configure.tgt: Recognize m68hc12 and m68hc11.
3993 * scripttempl/elfm68hc12.sc: New file.
3994 * emulparams/m68hc12elfb: New emulation.
3995 * emulparams/m68hc12elf: New emulation.
3996 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3997 (includes a memory.x script to define the ROM and RAM banks).
3998 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3999 New configuration files for support of Motorola 68hc11
4000
c7c54483
AM
40012000-06-15 Alan Modra <alan@linuxcare.com.au>
4002
4003 * ldmain.c (main): Only change SEC_READONLY for final link.
4004
bcef29e6
L
40052000-06-13 H.J. Lu <hjl@gnu.org>
4006
4007 * configure: Regenerate.
4008
946efd95
DB
40092000-06-08 David O'Brien <obrien@FreeBSD.org>
4010
4011 * configure.in (VERSION): Update to show this is the CVS mainline.
4012
57a6fd07
DB
40132000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4014
4015 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4016 input objects to be ECOFF.
4017 (check_sections): einfo takes %B, not %P, to print a BFD name.
4018
e06cae36
L
40192000-06-05 Michael Matz <matz@ifh.de>
4020
4021 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 4022 version scripts.
e06cae36 4023
d952f17a 4024 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 4025
2f0b56c0
DC
40262000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4027
4028 * emulparams/avr1200.sh (STACK): Define as 0.
4029 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4030 * emulparams/avr4433.sh (STACK): Likewise.
4031 * emulparams/avr44x4.sh (STACK): Likewise.
4032 * emulparams/avr85xx.sh (STACK): Likewise.
4033 * emulparams/avrmega103.sh (STACK): Likewise.
4034 * emulparams/avrmega161.sh (STACK): Likewise.
4035 * emulparams/avrmega603.sh (STACK): Likewise.
4036 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4037 (__stack): Define from ${STACK} for main().
4038
2114f57b
AM
40392000-05-26 Alan Modra <alan@linuxcare.com.au>
4040
4041 * Makefile.am: Update dependencies with "make dep-am"
4042 * Makefile.in: Regenerate.
4043
5af11cab
AM
40442000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4045
4046 * ldmain.c: Include filenames.h.
4047 (set_scripts_dir): Support backslashes in program name.
4048
1f0df59a
NC
40492000-05-22 Igor Shevlyakov <igor@windriver.com>
4050
4051 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
4052 read-only, don't forget to reset SEC_READONLY because it
4053 could be already set.
1f0df59a 4054
176355da
NC
40552000-05-22 Thomas de Lellis <tdel@windriver.com>
4056
50bbae35
AM
4057 * ld.1: Add documentation for new command line option:
4058 --section-start <sectionname>=<sectionorg>
4059 This is a generic version of -Ttext etc. which accepts
4060 any section name as a parameter instead of just text/data/
4061 bss.
4062 * ld.texinfo: More docs.
4063 * NEWS: More docs.
4064 * lexsup.c: (parse_args): Recognize new command line option.
176355da 4065 (ld_options): Add new option.
50bbae35 4066
8c5ff972
L
40672000-05-18 H.J. Lu <hjl@gnu.org>
4068
4069 * lexsup.c (parse_args): `i' == `r', not `q'.
4070
3b16e843 40712000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
4072
4073 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4074
a712da20
NC
40752000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4076 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 4077
a712da20
NC
4078 Add support for '-q' == '--emit-relocs' switch.
4079 * ldmain.c (main): Default to false.
4080 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4081 * NEWS: Describe the emitrelocations switch.
4082 * ld.texinfo: Describe the emitrelocations switch.
4083
690a460e
NC
40842000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4085
a2b64bed 4086 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
4087 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4088 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4089 link options.
50bbae35 4090
c2f1343c
AM
40912000-05-15 David O'Brien <obrien@FreeBSD.org>
4092
4093 * lexsup.c (parse_args): Update the year in the copyright notice.
4094
897083bd
AM
40952000-05-13 Alan Modra <alan@linuxcare.com.au>
4096
4097 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4098 Replace defines with those from intl/libgettext.h to quieten gcc
4099 warnings.
4100
cd4c806a
L
41012000-05-10 H.J. Lu <hjl@gnu.org>
4102
4103 * ldlang.c (open_input_bfds): Don't load the same file within
4104 a group again if the whole archive has been loaded already.
4105
93697284
AM
41062000-05-03 Alan Modra <alan@linuxcare.com.au>
4107
4108 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4109 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4110 strtoul.
4111
3b16e843 41122000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 4113
99a4150f 4114 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 4115
ebd6fc29
JW
4116 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4117 host "ia64-*-linux-gnu*".
4118
a1934524
AM
41192000-04-29 Andreas Jaeger <aj@suse.de>
4120
4121 * ld.h: Correctly check GCC version.
4122
3b16e843 41232000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
4124
4125 * Makefile.am: Add PA64 support. Add missing dependencies for
4126 PA32 elf support.
4127 * Makefile.in: Rebuilt.
4128 * configure.tgt: Add PA64 support (currently disabled).
4129
aea4bd9d
AM
41302000-04-25 Alan Modra <alan@linuxcare.com.au>
4131
4132 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4133 (output_rel_find): New function.
4134 (hold_section, hold_use): Delete.
4135 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4136 hold_interp): Make local to place_orphan.
4137 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4138 rather than place_section to find possible previous use of orphan.
4139 Similarly find the place-holder output sections. Use returned
4140 value from lang_enter_output_section_statement rather than calling
4141 lang_output_section_statement_lookup.
4142 * emultempl/armelf.em: Same here.
4143 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4144
4145 * ldlang.c (lang_enter_output_section_statement): Return output
4146 section statement.
4147 * ldlang.h (lang_enter_output_section_statement): Change
4148 declaration too.
4149
4150 * ldlang.h (lang_output_section_statement): Export it.
4151 * ldlang.c (lang_output_section_statement): Ditto.
4152
2b5fc1f5
NC
41532000-04-24 Nick Clifton <nickc@cygnus.com>
4154
4155 * ld.texinfo (Output Section Data): Add note that section data
4156 commands cannot appear outside of section directives.
4157
d8475ff6
JL
41582000-04-2 Matthew Green <mrg@cygnus.com>
4159
4160 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4161
3b16e843
NC
41622000-04-21 Richard Henderson <rth@cygnus.com>
4163 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
4164
4165 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4166 (eelf64_ia64.c): New rule.
4167 * Makefile.in: Rebuild.
4168 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4169 * emulparams/elf64_ia64.sh: New file.
50bbae35 4170
c9637625
RH
41712000-04-21 Richard Henderson <rth@cygnus.com>
4172
4173 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4174
28ea9521
AM
41752000-04-19 Alan Modra <alan@linuxcare.com.au>
4176
4177 * dep-in.sed: Match space at start of file name, not at end.
4178
20d04697
L
41792000-04-18 H.J. Lu <hjl@gnu.org>
4180
4181 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4182 lang_leave_output_section_statement () after calling
4183 lang_enter_output_section_statement ().
4184 * emultempl/armelf.em: Likewise.
4185
5ba47421
AM
41862000-04-18 Alan Modra <alan@linuxcare.com.au>
4187
4188 * emultempl/elf32.em (struct orphan_save): Add section field.
4189 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4190 better order, and place first orphan section as we did before the
4191 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4192 Don't call make_bfd_section here, let wild_doit do the job for us.
4193 Don't build a statement list when we'll only throw it away.
4194 * emultempl/armelf.em: Ditto.
4195 * emultempl/pe.em: Similarly.
4196
bdbe5705
GK
41972000-04-14 Geoff Keating <geoffk@cygnus.com>
4198
4199 * scripttempl/elfppc.sc: Remove.
4200 * emulparams/elf32ppc.sh: Use elf.sc.
4201 * emulparams/elf32lppc.sh: Use elf.sc.
4202 * emulparams/elf32ppclinux.sh: Use elf.sc.
4203 * emulparams/elf32ppcsim.sh: New file.
4204 * emulparams/elf32lppcsim.sh: New file.
4205 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4206 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4207 * Makefile.in: Regenerate.
4208 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4209
01cc8ff8
AM
42102000-04-14 Alan Modra <alan@linuxcare.com.au>
4211
5ba47421 4212 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 4213 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
4214 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4215 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
4216 Also set all relocateable section start addresses.
4217
6c86c541
GK
42182000-04-13 Geoff Keating <geoffk@cygnus.com>
4219
4220 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4221 Add new BSS_PLT variable for when .plt need not be contained in
4222 the file. Move _etext so that it is also after .fini, and provide
4223 both etext and _etext with a leading underscore. Mark the start
4224 and end of .sbss.
4225
6a345e87
AM
42262000-04-12 Alan Modra <alan@linuxcare.com.au>
4227
4228 * emultempl/elf32.em (struct orphan_save): New.
4229 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4230 hold_interp): Make them struct orphan_save.
4231 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4232 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4233 the end of the relevant section list. Also add associated section
4234 statements to the end of any previous orphan statements.
4235 * emultempl/armelf.em: Similarly.
4236 * emultempl/pe.em: Similarly.
4237
8be86746
AM
42382000-04-11 Alan Modra <alan@linuxcare.com.au>
4239
4240 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4241
3b16e843 42422000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 4243
a2d91340 4244 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 4245 --enable-build-warnings option.
a2d91340
AC
4246 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4247 * Makefile.in, configure: Re-generate.
4248
41b49281
AM
42492000-04-04 Alan Modra <alan@linuxcare.com.au>
4250
8ad3436c
AM
4251 * po/ld.pot: Regenerate.
4252
4253 * lexsup.c (help): Restore translated part of bug string.
4254
41b49281
AM
4255 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4256 (DEP): Quote when passing vars to sub-make. Add warning message
4257 to end.
4258 (DEP1): Rewrite for "gcc -MM".
4259 (CLEANFILES): Add DEP2.
4260 Update dependencies.
4261 * Makefile.in: Regenerate.
4262
c20f4f8c
AM
42632000-04-03 Alan Modra <alan@linuxcare.com.au>
4264
4265 * ld.h: #include "bin-bugs.h"
4266 * lexsup.c (help): Use REPORT_BUGS_TO.
4267
adde6300
AM
42682000-03-27 Denis Chertykov <denisc@overta.ru>
4269
4270 * configure.tgt (avr-*-*): New target support.
4271 * Makefile.am: Likewise.
4272 * scripttempl/elf32avr.sc: New script file.
4273 * emulparams/avr1200.sh: New file.
4274 * emulparams/avr23xx.sh: New file.
4275 * emulparams/avr4433.sh New file.
4276 * emulparams/avr44x4.sh New file.
4277 * emulparams/avr85xx.sh New file.
4278 * emulparams/avrmega103.sh New file.
4279 * emulparams/avrmega161.sh New file.
4280 * emulparams/avrmega603.sh New file.
4281 * Makefile.in: Regenerate.
4282
9282ff41
L
42832000-03-09 Andreas Jaeger <aj@suse.de>
4284
4285 * Makefile.am (check-DEJAGNU): Also unset LANG.
4286 * Makefile.in: Rebuild.
4287
a9998805
ILT
42882000-03-06 Ian Lance Taylor <ian@zembu.com>
4289
4290 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4291 archive.
4292
f9bc20e7
NC
42932000-03-02 H.J. Lu <hjl@gnu.org>
4294
4295 * emulparams/elf32mcore.sh: Include "getopt.h".
4296
4e277b38
ILT
42972000-03-01 Ian Lance Taylor <ian@zembu.com>
4298
4299 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4300
f0c87f88
NC
43012000-03-01 H.J. Lu <hjl@gnu.org>
4302
4303 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4304 * emulparams/shpe.sh: Likewise.
4305
43062000-03-01 Nick Clifton <nickc@cygnus.com>
4307
4308 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4309 to unused parameters.
4310
4311 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4312 functions only used by DLL code.
4313 (_place_orphan): Initialise 'dollar'.
4314
b6f29aaa
L
43152000-03-01 H.J. Lu <hjl@gnu.org>
4316
4317 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4318 indicate if the undefined symbol is a fatal error or not.
4319 Don't delete the output file if "fatal" is false.
4320
af28fce3
L
43212000-02-29 H.J. Lu <hjl@gnu.org>
4322
50bbae35 4323 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
4324 Set LC_COLLATE and LC_ALL to null and export them. It is for
4325 sort which expects the C locale.
4326 Add $(LIBS) to all $(HOSTING_LIBS).
4327 * Makefile.in: Rebuild.
4328
40d109bf
AM
43292000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4330
4331 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4332 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4333 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4334 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4335 find_potential_libraries.
4336
db5be682
JB
43372000-02-28 Jim Blandy <jimb@redhat.com>
4338
4339 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 4340 list entries; the lexer considers commas to be valid part of a
db5be682
JB
4341 filename, so in something like `foo, bar' the comma is considered
4342 part of the first filename, `foo,'.
4343 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4344
3558ff4c
ILT
43452000-02-27 Loren J. Rittle <ljrittle@acm.org>
4346
4347 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4348 host "i[3456]86-*-freebsdelf*".
4349
4eee2681
ILT
43502000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4351
4352 * scripttempl/i386go32.sc: Move misplaced semicolons.
4353
8d75d12d
ILT
43542000-02-25 Ian Lance Taylor <ian@zembu.com>
4355
4356 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4357 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4358 (eelf64hppa.c, ehppaelf.c): Remove targets.
4359 * Makefile.in: Rebuild.
4360
a1836d49
AO
43612000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4362
ad51fb57
AO
4363 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4364 GNU/Linux/sparc, but keep the default as 32.
4365
a1836d49
AO
4366 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4367 it default if sparcv9 or sparc64.
4368
344a211f
NC
43692000-02-24 Nick Clifton <nickc@cygnus.com>
4370
4371 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4372 * Makefile.in: Regenerate.
4373 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4374
4375 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4376 find_potential_libraries.
4377 * ldemul.c (ldemul_find_potential_libraries): New function.
4378
4379 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 4380 exported.
344a211f
NC
4381 (ldfile_open_file): Call ldemul_find_potential_libraries.
4382 * ldfile.h: Add prototype for ldfile_open_file_search.
4383
4384 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4385
4386 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4387 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4388
4389 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4390 (gld_X_find_potential_libraries): New function. Search for
4391 libraries called "*.lib".
4392
a2b64bed 4393 * scripttempl/pe.sc: Add .pdata section.
344a211f 4394
eaba1dd3
RH
43952000-02-23 Richard Henderson <rth@cygnus.com>
4396
4397 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4398 Add and use memory regions.
4399
5b93d8bb
AM
44002000-02-23 Linas Vepstas (linas@linas.org)
4401
4402 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4403
4404 * Makefile.am: Add support for Linux/IBM 370.
4405 * configure.tgt: Likewise.
4406
4407 * Makefile.in: Regenerate.
4408
f6af82bd
AM
44092000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4410
4411 * ldlang.c (print_input_section, print_data_statement,
4412 print_reloc_statement, print_padding_statement, insert_pad,
4413 size_input_section, lang_check_section_addresses,
4414 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 4415 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
4416 (lang_do_assignments): Also change `size' to unsigned.
4417
9e673ad1
RH
44182000-02-16 Richard Henderson <rth@cygnus.com>
4419
4420 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4421
562d3460
TW
44222000-02-16 Timothy Wall <twall@cygnus.com>
4423
4424 * mri.c (mri_draw_tree): Add default LMA region argument to call
4425 to lang_leave_output_section_statement.
4426 * ldlang.h: Update prototypes with LMA region arguments.
4427 * ldlang.c (lang_size_sections): Encapsulate region bounds
4428 checking in os_check_region call.
4429 (os_check_region): New function.
4430 (lang_output_section_statement_lookup): Initialize lma_region.
4431 (lang_leave_output_section_statement): Add LMA region argument.
4432 (lang_leave_overlay): Ditto.
4433 * ldgram.y: Handle LMA region syntax.
4434 * ld.texinfo (Output Section Description): Describe LMA region usage.
4435 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 4436 lma region in call to lang_leave_output_section_statement.
562d3460 4437 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 4438 lma region in call to lang_leave_output_section_statement.
562d3460 4439 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 4440 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
4441
4442
9e4ed18c
TW
44432000-02-04 Timothy Wall <twall@redhat.com>
4444
4445 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4446 octets when calculating section end addresses.
4447
32edc927
TW
44482000-02-04 Timothy Wall <twall@redhat.com>
4449
4450 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4451
4cbfc3ac
TW
44522000-02-03 Timothy Wall <twall@redhat.com>
4453
a2b64bed 4454 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 4455 octet count.
a2b64bed 4456 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
4457 print_reloc_statement, print_padding_statement): Print target
4458 address values and section sizes as bytes, not octets.
4459 (insert_pad) Calculate padding size in octets, and adjust "dot"
4460 by bytes.
4461 (size_input_section) Always adjust "dot" by bytes, not octets.
4462 (lang_check_section_addresses, lang_do_assignments) Adjust
4463 "dot" by bytes, not octets. Use the larger of the directive size
4464 or octets_per_byte for the number of octets actually allocated in
4465 the output section.
4466 (lang_set_startof) Make sure STARTOF returns a target address.
4467 (lang_one_common) Record size changes in octets.
4468 (lang_abs_symbol_at_end_of) Section end symbol's value is
4469 recorded in target bytes.
68b2fc7a 4470 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4cbfc3ac 4471 to be clear about behavior when an octet is smaller than one byte.
50bbae35 4472
305c7206
AM
44732000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4474
4475 * ldcref.c (output_cref): Don't pass message strings to printf
4476 as format arg.
4477 Update copyright.
4478
4479 * ldmisc.c (vfinfo): Same here.
4480 Update copyright.
4481
e1c47aa4
AM
44822000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4483
4484 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4485 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4486 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4487 Add missing NULL initialisers, and comments.
4488
4489 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4490
13392b77
NC
44912000-01-21 Nick Clifton <nickc@cygnus.com>
4492
4493 * ldlang.c (lang_size_sections): Fix typo in comment.
4494
cce4c4c5
NC
44952000-01-18 H.J. Lu <hjl@gnu.org>
4496
4497 * ldlang.c (lang_size_sections): Also update the current
4498 address of a region if the SEC_NEVER_LOAD bit is not set.
4499
0decc840
NC
45002000-01-10 Philip Blundell <pb@futuretv.com>
4501
4502 * configure.tgt (arm*-*-conix*): New target.
4503
4e53152f
NC
45042000-01-07 Nick Clifton <nickc@cygnus.com>
4505
4506 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
4507 line switches with -Wl, (or whatever is appropriate) if it is
4508 being invoked by a comnpiler driver program.
50bbae35 4509 Fix description of the behaviour of the -n command line switch.
4e53152f 4510
3b16e843 45112000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
4512
4513 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4514 (name_list): New.
4515 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4516 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4517 (exclude_name_list): New.
4518 ldlang.c (walk_wild_section): Support list of excluded files.
4519 (print_wild_statement): Likewise.
4520 (lang_add_wild): Likewise.
4521 * ldlang.h (lang_wild_statement_type): Likewise.
4522 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 4523
5aaace27
NC
45242000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4525
870df5dc
NC
4526 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4527 (process_def_file): Use.
4528 (pe_dll_compat_implib): New variable.
4529 (make_one): Use.
50bbae35 4530
870df5dc
NC
4531 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4532 pe_dll_compat_implib.
50bbae35
AM
4533
4534 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
4535 compat-implib options.
4536 (gld_${EMULATION_NAME}_list_options): List new options.
4537 (gld_${EMULATION_NAME}_parse_args): Handle.
4538
50bbae35 4539 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 4540 dll.
50bbae35
AM
4541
4542 * deffilep.y (opt_name): Allow "." in name.
5aaace27 4543
2f6d2f85 4544For older changes see ChangeLog-9899
252b5132
RH
4545\f
4546Local Variables:
4547mode: change-log
4548left-margin: 8
4549fill-column: 74
4550version-control: never
4551End:
This page took 0.425224 seconds and 4 git commands to generate.