Add arm-*-nto port.
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2002-07-30 Graeme Peterson <gp@qnx.com>
2
3 * configure.tgt: Add support for arm-*-nto target.
4 * Makefile.am: Add earmnto.o file.
5 * Makefile.in: Regenerate.
6 * NEWS: Mention port of ARM support to QNX.
7 * emulparams/armnto.sh: New file.
8
9 2002-07-30 Jakub Jelinek <jakub@redhat.com>
10
11 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
12 for relocatable link.
13 (lang_size_sections_1): Don't make .tbss zero size for relocatable
14 link.
15
16 2002-07-26 Bernd Schmidt <bernds@redhat.com>
17
18 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
19 (STACK_ADDR): New.
20
21 2002-07-25 Nick Clifton <nickc@redhat.com>
22
23 * po/sv.po: Updated Swedish translation.
24 * po/es.po: Updated Spanish translation.
25 * po/fr.po: Updated French translation.
26
27 2002-07-24 Nick Clifton <nickc@redhat.com>
28
29 * po/sv.po: Updated Swedish translation.
30 * po/es.po: Updated Spanish translation.
31
32 2002-07-23 Nick Clifton <nickc@redhat.com>
33
34 * po/fr.po: Updated French translation.
35
36 2002-07-20 Alan Modra <amodra@bigpond.net.au>
37
38 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
39 bomb on /DISCARD/ input section.
40 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
41 * emultempl/mmo.em (mmo_place_orphan): Likewise.
42
43 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
44
45 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
46 output section.
47
48 2002-07-16 Denis Chertykov <denisc@overta.ru>
49 Nick Clifton <nickc@redhat.com>
50 Frank Ch. Eigler <fche@redhat.com>
51 John Healy <jhealy@redhat.com>
52
53 * configure.tgt: Add support for ip2k-elf.
54 * Makefile.am: Add support for ip2k-elf.
55 * Makefile.in: Regenerate.
56 * emulparams/elf32ip2k.sh: New file.
57 * scripttempl/ip2k.sc: New file
58 * NEWS: Mention support for new port.
59
60 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
61
62 * NEWS: Add 'Changes in 2.13'.
63
64 2002-07-14 H.J. Lu <hjl@gnu.org>
65
66 * ld.texinfo: Document a .symver takes precedence over a
67 version script.
68
69 2002-07-12 Alan Modra <amodra@bigpond.net.au>
70
71 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
72 (COMMONPAGESIZE): Define.
73
74 2002-07-09 Alan Modra <amodra@bigpond.net.au>
75
76 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
77
78 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
79
80 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
81 powerpc-*-openbsd* and sparc64-*-openbsd*.
82 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
83 * Makefile.in: Regenerate.
84 * emulparams/hppaobsd.sh: New file.
85
86 2002-07-05 Alan Modra <amodra@bigpond.net.au>
87
88 * ldlang.c (print_wild_statement): Fix output formatting.
89
90 2002-07-04 Alan Modra <amodra@bigpond.net.au>
91
92 * ldlang.c: (strip_excluded_output_sections): New function.
93 (lang_process): Call it.
94 (lang_size_sections_1): Revert 2002-06-10 change.
95
96 2002-07-03 Alan Modra <amodra@bigpond.net.au>
97
98 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
99 Run "make dep-am".
100 * Makefile.in: Regenerate.
101
102 2002-07-02 Alan Modra <amodra@bigpond.net.au>
103
104 * ldfile.c (ldfile_try_open_bfd): Formatting.
105
106 * ldmisc.c (demangle): Move so that it doesn't intrude between
107 vfinfo comment and body. Add comment.
108
109 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
110
111 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
112
113 2002-07-01 Alan Modra <amodra@bigpond.net.au>
114
115 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
116 * ldlang.c (entry_sym): Likewise.
117 (ldlang_undef_chain_list_type): Likewise.
118 (lang_finish): Adjust references to entry_symbol.
119 (lang_add_entry): Likewise.
120 (lang_gc_sections): Use link_info.gc_sym_list.
121 (lang_process): Set link_info.gc_sym_list.
122 * ldlex.l: Include bfdlink.h.
123 * ldmain.c (main): Init link_info.gc_sym_list.
124 * emultempl/aix.em: Adjust references to entry_symbol.
125 * emultempl/armcoff.em: Likewise.
126 * emultempl/armelf.em: Likewise.
127 * emultempl/pe.em: Likewise.
128 * emultempl/ppc64elf.em (ppc_after_open): New function.
129 (LDEMUL_AFTER_OPEN): Define.
130 * emulparams/elf64ppc.sh: KEEP .opd sections.
131
132 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
133
134 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
135 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
136 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
137 (EEPROM_START_ADDR): Define.
138 (EEPROM_MEMORY): Define.
139 * emulparams/m68hc12elf.sh: Likewise.
140 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
141 section to put soft registers in .page0.
142 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
143
144 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
145
146 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
147 section. Add ${RELOCATING-0}.
148
149 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
150
151 * emulparams/shelf.sh (STACK_ADDR): Don't define.
152 (OTHER_SECTIONS): Define.
153 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
154 (OTHER_SECTIONS): Undef.
155
156 2002-06-26 Alan Modra <amodra@bigpond.net.au>
157
158 * ldmisc.c (demangle): Restore dots stripped from sym name.
159
160 2002-06-25 H.J. Lu <hjl@gnu.org>
161
162 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
163 * Makefile.in: Regenerated.
164
165 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
166
167 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
168 the size of attached object files, to allow make the object files
169 available via FTP or HTTP and to mention that the mail will be
170 sent to a mailing list.
171
172 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
173
174 * ld/configure.host (romp): Drop support.
175
176 2002-06-18 Chris Demetriou <cgd@broadcom.com>
177
178 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
179 section flags for SEC_DATA, rather than for SEC_CODE being unset.
180
181 2002-06-18 Chris Demetriou <cgd@broadcom.com>
182
183 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
184 format specifier used to print BFD name.
185
186 2002-06-18 Dave Brolley <brolley@redhat.com>
187
188 From Catherine Moore, Michael Meissner, Jim Blandy:
189 * emulparams/elf32frv.sh: New file.
190 * configure.tgt: Support frv-*-*.
191 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
192 (eelf32frv.c): New target.
193
194 2002-06-17 Tom Rix <trix@redhat.com>
195
196 * emultempl/elf32.em: gld*_get_script: Check for
197 GENERATE_COMBRELOC_SCRIPT.
198 * scripttempl/elfd10v.sc : Fix STACK and INSN.
199 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
200
201 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
202
203 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
204
205 2002-06-12 H.J. Lu <hjl@gnu.org>
206
207 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
208 false if xvec doesn't match.
209
210 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
211
212 * ldlang.c (lang_size_sections_1): Skip removed output sections.
213
214 2002-06-08 Alan Modra <amodra@bigpond.net.au>
215
216 * ldexp.c: Replace CONST with const.
217 * ldfile.c: Likewise.
218 * ldfile.h: Likewise.
219 * ldlex.l: Likewise.
220 * mri.c: Likewise.
221 * pe-dll.h: Likewise.
222
223 2002-06-07 Alan Modra <amodra@bigpond.net.au>
224
225 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
226
227 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
228
229 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
230 to -1 == implicit enable.
231 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
232 initialize link_info.pei386_auto_import to -1 == implicit
233 enable.
234 (gld_${EMULATION_NAME}_parse_args): When processing
235 --enable-auto-import and --disable-auto-import options, use
236 '1' and '0' instead of 'true' and 'false'.
237 (pe_find_data_imports): Only issue message about auto-import
238 when the feature is implicitly enabled. Downgrade message to
239 informational instead of warning.
240
241 2002-06-07 Alan Modra <amodra@bigpond.net.au>
242
243 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
244
245 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
246
247 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
248 HOSTING_CRT0 and HOSTING_LIBS.
249
250 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
251
252 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
253
254 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
255
256 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
257 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
258
259 2002-06-05 Alan Modra <amodra@bigpond.net.au>
260
261 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
262 SEC_EXCLUDE sections when doing a relocatable link.
263
264 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
265
266 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
267 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
268 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
269 (eshlelf64_nbsd.c): New rules.
270 * Makefile.in: Regenerate.
271 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
272 (sh64-*-netbsd*): New targets.
273 * emulparams/shelf32_nbsd.sh: New file.
274 * emulparams/shelf64_nbsd.sh: New file.
275 * emulparams/shlelf32_nbsd.sh: New file.
276 * emulparams/shlelf64_nbsd.sh: New file.
277
278 2002-06-04 Alan Modra <amodra@bigpond.net.au>
279
280 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
281
282 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
283
284 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
285 C++ constructors/destructors, loosely based on the m68hc11 port.
286
287 2002-05-31 Alan Modra <amodra@bigpond.net.au>
288
289 * Makefile.in: Regenerate.
290 * aclocal.m4: Regenerate.
291 * config.in: Regenerate.
292 * configure: Regenerate.
293
294 2002-05-31 Graeme Peterson <gp@qnx.com>
295
296 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
297 (ei386nto.c): Add rule.
298 * Makefile.in: Regenerate.
299 * configure.tgt: Add i[3456]86-*-nto-qnx*.
300 * emulparams/i386nto.sh: New file.
301
302 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
303
304 * NEWS: Add entry for VAX ELF support.
305
306 2002-05-29 Matt Thomas <matt@3am-software.com>
307 Jason Thorpe <thorpej@wasabisystems.com>
308
309 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
310 (eelf32vax.c)
311 (evaxnbsd.c): New rules.
312 * Makefile.in: Regenerate.
313 * configure.tgt (vax-*-netbsdelf*)
314 (vax-*-netbsdaout*)
315 (vax-*-netbsd*): New targets.
316 * emulparams/elf32vax.sh: New file.
317 * emulparams/vaxnbsd.sh: New file.
318
319 2002-05-29 Adam Nemet <anemet@lnxw.com>
320
321 * emultempl/armelf.em (arm_elf_after_open): Don't determine
322 bfd_for_interwork, instead add glue sections to each input bfd.
323 (bfd_for_interwork): New global.
324 (arm_elf_set_bfd_for_interworking): New function.
325 (arm_elf_before_allocation): Use it.
326
327 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
328
329 * Makefile.am: Add DLX make target.
330 * configure.tgt: Add DLX configuration.
331 * Makefile.in: Regenerate.
332 * emulparams/elf32_dlx.sh: New file
333 * scripttempl/dlx.sc: New file
334
335 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
336
337 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
338 * Makefile.in: Regenerate.
339 * emulparams/elf_chaos.sh: Use elf_chaos script.
340 * scripttempl/elf_chaos.sc: New file.
341
342 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
343
344 * ldlang.c (lang_size_sections_1): Move check for conflicting load
345 addresses and regions from here...
346 (lang_get_regions): ...to this new function.
347 (lang_leave_output_section_statement): Use lang_get_regions.
348 (lang_leave_overlay): Likewise.
349 * mri.c (mri_draw_tree): Pass null as last argument to
350 lang_leave_output_section_statement.
351 * emultempl/elf32.em (gld*_place_orphan): Likewise.
352 * emultempl/mmo.em (mmo_place_orphan): Likewise.
353 * emultempl/pe.em (gld*_place_orphan): Likewise.
354
355 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
356
357 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
358
359 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
360
361 * ldemul.c: Fix formatting.
362 * ldfile.c: Likewise.
363 * pe-dll.c: Likewise.
364 * pe-dll.h: Likewise.
365
366 2002-05-25 Alan Modra <amodra@bigpond.net.au>
367
368 * ldlang.c (lang_process): Formatting, grammar.
369
370 * ldlex.l: Use #include "" instead of <> for local header files.
371
372 2002-05-24 TAMURA Kent <kent@netbsd.org>
373
374 * configure.tgt: Add a target for i386-netbsdpe.
375
376 2002-05-23 Jakub Jelinek <jakub@redhat.com>
377
378 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
379 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
380 output section if necessary. Handle .tbss.
381 (lang_size_sections): Clear _raw_size for .tbss section
382 (it allocates space in PT_TLS segment only).
383 * ldwrite.c (build_link_order): Build link order for .tbss too.
384
385 2002-05-23 Alan Modra <amodra@bigpond.net.au>
386
387 * configure.in: Correct spelling of AC_PREREQ.
388
389 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
390
391 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
392 default.
393 (autofilter_objlist): Add crtbegin.o, crtend.o.
394
395 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
396
397 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
398 (longopts): Add new option --exclude-libs.
399 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
400 (gld_${EMULATION_NAME}_parse_args): Use it.
401 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
402 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
403 from whole archives.
404 (pe_dll_add_excludes): Set excludes->type.
405 (auto_export): Add new variable libname and set to archive basename if
406 abfd. Use it when filtering default and user-specified libarary
407 excludes. Let string "ALL" mean all libs when filtering user-specified
408 libs.
409 * ld.texinfo: Document --exclude-libs.
410
411 2002-05-22 Alan Modra <amodra@bigpond.net.au>
412
413 * ldemul.c (ldemul_new_vers_pattern): New function.
414 * ldemul.h (ldemul_new_vers_pattern): Declare.
415 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
416 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
417 * emultempl/ppc64elf.em (dotsyms): New static var.
418 (gld${EMULATION_NAME}_new_vers_pattern): New function.
419 (LDEMUL_NEW_VERS_PATTERN): Define.
420 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
421 (PARSE_AND_LIST_LONGOPTS): Likewise.
422 (PARSE_AND_LIST_ARGS_CASES): Handle them.
423 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
424 initialiser.
425 * emultempl/armcoff.em: Likewise.
426 * emultempl/armelf_oabi.em: Likewise.
427 * emultempl/beos.em: Likewise.
428 * emultempl/elf32.em: Likewise.
429 * emultempl/generic.em: Likewise.
430 * emultempl/gld960.em: Likewise.
431 * emultempl/gld960c.em: Likewise.
432 * emultempl/linux.em: Likewise.
433 * emultempl/lnk960.em: Likewise.
434 * emultempl/m68kcoff.em: Likewise.
435 * emultempl/mipsecoff.em: Likewise.
436 * emultempl/pe.em: Likewise.
437 * emultempl/sunos.em: Likewise.
438 * emultempl/ticoff.em: Likewise.
439 * emultempl/vanilla.em: Likewise.
440
441 2002-05-22 Alan Modra <amodra@bigpond.net.au>
442
443 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
444 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
445 (LIB_SEARCH_DIRS): No need to use "tr".
446 (COMPILE_IN): Only set for native targets.
447 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
448 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
449 * configure.tgt (powerpc*): Set tdir_*.
450 (powerpcle*): Correct targ_extra_emuls.
451 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
452 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
453
454 2002-05-22 Alan Modra <amodra@bigpond.net.au>
455
456 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
457 calling lang_add_entry.
458
459 2002-05-21 H.J. Lu (hjl@gnu.org)
460
461 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
462 "-z muldefs".
463 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
464
465 * ld.texinfo: Updated for --allow-multiple-definition and
466 "-z muldefs".
467
468 * ldmain.c (main): Initialize the allow_multiple_definition
469 field to false.
470
471 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
472 (ld_options): Add --allow-multiple-definition.
473 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
474
475 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
476
477 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
478 (earmelfb_nbsd.c): New rule.
479 * Makefile.in: Regenerate.
480 * configure.tgt (armeb-*-netbsdelf*): New target.
481 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
482 (arm-*-netbsd*): Likewise.
483 * emulparams/armelfb_nbsd.sh: New file.
484
485 2002-05-18 Tom Rix <trix@redhat.com>
486
487 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
488 support.
489
490 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
491
492 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
493 * Makefile.in: Regenerate.
494 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
495
496 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
497
498 * emulparams/avr1.sh: New file.
499 * emulparams/avr2.sh: New file.
500 * emulparams/avr3.sh: New file.
501 * emulparams/avr4.sh: New file.
502 * emulparams/avr5.sh: New file.
503 * scripttempl/avr.sc: New file.
504
505 2002-05-15 Alan Modra <amodra@bigpond.net.au>
506
507 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
508 (lang_place_orphans): Abort if just_syms_flag.
509
510 2002-05-10 Tom Rix <trix@redhat.com>
511
512 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
513 architecture and machine information in the output bfd.
514 (gld*_before_parse): Remove old arch and machine code.
515 (choose_target): Rename to gld*_choose_target.
516 (rtld): Change type to int.
517 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
518 objects in XCOFF archives.
519 * ldfile.h: Update copyright date.
520
521 2002-05-10 Jakub Jelinek <jakub@redhat.com>
522
523 * ldmain.c (main): Enable -z combreloc by default.
524
525 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
526
527 * Makefile.am: Honour DESTDIR.
528 * Makefile.in: Regenerate.
529
530 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
531
532 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
533 (lang_enter_overlay): Remove the last two parameters.
534 (lang_leave_overlay): Take them here instead.
535 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
536 (section): Pass LMA and crossref flag to lang_leave_overlay rather
537 than lang_enter_overlay.
538 * ldlang.c (lang_memory_region_lookup): Return null for null names.
539 (lang_output_section_statement_lookup): Initialize update_dot_tree.
540 (lang_size_sections_1): Evaluate it.
541 (lang_leave_output_section_statement): Rework LMA lookup.
542 (overlay_lma, overlay_nocrossrefs): Remove.
543 (lang_enter_overlay): Remove LMA and crossref arguments.
544 (lang_enter_overlay_section): Don't set the LMA here.
545 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
546 assignment to the last section's update_dot_tree. Unconditionally
547 use the load and run-time regions specified in the OVERLAY statement.
548 Likewise the first section's LMA. Only set the other sections' LMAs
549 when no load region is given.
550
551 2002-05-06 Nick Clifton <nickc@redhat.com>
552
553 * po/sv.po: New translation.
554
555 2002-05-04 Alan Modra <amodra@bigpond.net.au>
556
557 * emultempl/hppaelf.em (build_section_lists): New function.
558 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
559 and build_section_lists.
560
561 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
562
563 * ld.h: Fix formatting.
564 * ldexp.c: Likewise.
565 * ldfile.c: Likewise.
566 * ldlang.c: Likewise.
567 * ldmain.c: Likewise.
568 * lexsup.c: Likewise.
569 * pe-dll.c: Likewise.
570
571 2002-05-02 Alan Modra <amodra@bigpond.net.au>
572
573 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
574 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
575 (build_section_lists): Do output_section tests here.
576
577 2002-04-30 Tom Rix <trix@redhat.com>
578
579 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
580
581 2002-05-01 Alan Modra <amodra@bigpond.net.au>
582
583 Long branch stubs, multiple stub sections.
584 * emultempl/ppc64elf.em: Include ldctor.h.
585 (stub_file): New var.
586 (group_size): New var.
587 (ppc_create_output_section_statements): New function.
588 (struct hook_stub_info): New.
589 (hook_in_stub): New function.
590 (ppc_add_stub_section): New function.
591 (ppc_layout_sections_again): New function.
592 (build_section_lists): New function.
593 (gld${EMULATION_NAME}_finish): Rewrite.
594 (real_func): New var.
595 (ppc_for_each_input_file_wrapper): New function.
596 (ppc_lang_for_each_input_file): New function.
597 (lang_for_each_input_file): Define.
598 (PARSE_AND_LIST_PROLOGUE): Define.
599 (PARSE_AND_LIST_LONGOPTS): Define.
600 (PARSE_AND_LIST_OPTIONS): Define.
601 (PARSE_AND_LIST_ARGS_CASES): Define.
602 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
603
604 2002-04-30 Tom Rix <trix@redhat.com>
605
606 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
607 -blibpath, -bnolibpath support.
608
609 2002-04-30 Mark Mitchell <mark@codesourcery.com>
610
611 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
612 (eelf32ppcwindiss.c): New target.
613 * Makefile.in: Regenerated.
614 * configure.tgt: Add support for powerpc-*-windiss.
615 * emulparams/elf32ppcwindiss.sh: New file.
616
617 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
618
619 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
620 * ldexp.c (exp_print_token): Add "infix_p" argument.
621 (exp_print_tree): Update accordingly.
622
623 2002-04-28 Alan Modra <amodra@bigpond.net.au>
624
625 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
626 * Makefile.in: Regenerate.
627 * mpw-elfmips.c: Delete.
628 * mpw-eppcmac.c: Delete.
629 * mpw-esh.c: Delete.
630 * mpw-idtmips.c: Delete.
631
632 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
633
634 * emulparams/shelf32.sh (MACHINE): Now sh5.
635
636 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
637
638 * ldgram.y: Fix syntax warning.
639
640 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
641
642 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
643 to prevent "-n" from being taken as an abbreviation for
644 "--no-pipeline-knowledge".
645
646 2002-04-08 Alan Modra <amodra@bigpond.net.au>
647
648 * ldlang.c (lang_size_sections_1): Don't complain about
649 SEC_NEVER_LOAD sections having no memory region specified.
650
651 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
652
653 2002-04-07 matthew green <mrg@redhat.com>
654
655 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
656
657 2002-04-04 Alan Modra <amodra@bigpond.net.au>
658
659 * dep-in.sed: Cope with absolute paths.
660 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
661 Run "make dep-am".
662 * Makefile.in: Regenerate.
663
664 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
665
666 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
667
668 2002-04-03 Jakub Jelinek <jakub@redhat.com>
669
670 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
671 is smaller than maximum, round dot up to common page boundary.
672
673 2002-03-28 Alan Modra <amodra@bigpond.net.au>
674
675 * configure.host: Set up for generic hosts first, then tweak as
676 necessary in more specific targets.
677 (HOSTING_LIBS): Include libgcc_eh.a if found.
678
679 2002-03-23 Andreas Jaeger <aj@suse.de>
680
681 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
682
683 2002-03-21 Alan Modra <amodra@bigpond.net.au>
684
685 * Makefile.am: Run "make dep-am".
686 * Makefile.in: Regenerate.
687
688 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
689
690 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
691
692 2002-03-20 Alan Modra <amodra@bigpond.net.au>
693
694 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
695 add the symbol to the linker hash table immediately.
696 (lang_place_undefineds): Split symbol creation out..
697 (insert_undefined): ..to here.
698
699 2002-03-18 David O'Brien <obrien@FreeBSD.org>
700
701 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
702 the contents of the buffer returned from basename function will are
703 getting overwritten while still being used.
704
705 2002-03-18 Jan Hubicka <jh@suse.cz>
706 Andreas Jaeger <aj@suse.de>
707 Andreas Schwab <schwab@suse.de>
708
709 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
710 * elf_x86_64.sh (ARCH): Set to i386:x86-64
711 set libraries to default to lib64 paths.
712
713 2002-03-18 Tom Rix <trix@redhat.com>
714
715 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
716 * configure.tgt : Same.
717 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
718 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
719 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
720 emulation parameters for better -b32, -b64 support.
721 * emulparms/aixrs6.sh : Same.
722 * emulparms/ppcmacos.sh : Same.
723 * emultempl/aix.em (choose_target) : Use new emulation parameters
724 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
725 * Makefile.in : Regenerate.
726
727 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
728
729 * po/fr.po: Updated version.
730
731 2002-03-18 Alan Modra <amodra@bigpond.net.au>
732
733 * ldmain.c (main): Move .text readonly flag fudges from here..
734 * ldlang.c (lang_process): ..to here.
735
736 2002-03-14 Alan Modra <amodra@bigpond.net.au>
737
738 * ldlang.c (lang_check): Remove the word size check added in last
739 change. Treat emitrelocations case as for relocatable links.
740
741 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
742
743 * po/fr.po: Updated version.
744
745 2002-03-13 Alan Modra <amodra@bigpond.net.au>
746
747 * ldlang.c (lang_check): Do relocatable link checks first, so that
748 warn_mismatch can't override. Check compatible and word size too.
749
750 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
751
752 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
753
754 2002-03-05 Jakub Jelinek <jakub@redhat.com>
755
756 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
757 DATA_SEGMENT_ALIGN.
758
759 2002-03-04 H.J. Lu <hjl@gnu.org>
760
761 * scripttempl/elf.sc: Put .preinit_array, .init_array and
762 .fini_array in the data segment.
763
764 2002-03-04 Alan Modra <amodra@bigpond.net.au>
765
766 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
767
768 2002-03-01 David Mosberger <davidm@hpl.hp.com>
769
770 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
771 .init_array, and .fini_array.
772
773 2002-02-20 Andreas Schwab <schwab@suse.de>
774
775 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
776 .IA64_unwind* in a relocatable link.
777
778 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
779
780 * NEWS: Mark 2.12 branch.
781
782 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
783
784 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
785 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
786
787 2002-02-18 Tom Rix <trix@redhat.com>
788
789 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
790 (gld*_before_allocation): Same.
791 (gld*_create_output_section_statements): Generate
792 __rtinit if run time linking. Add librtl.a to the link.
793 (gld*_read_file): Clean.
794
795 2002-02-18 Alan Modra <amodra@bigpond.net.au>
796
797 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
798
799 2002-02-18 David O'Brien <obrien@FreeBSD.org>
800
801 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
802 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
803 and eelf64alpha_fbsd.
804 * Makefile.in: Regenerate.
805 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
806 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
807 use a FreeBSD-specific emulation rather than the psABI one.
808 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
809 for all FreeBSD ELF systems.
810 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
811 emulation.
812 * emulparams/elf32ppc_fbsd.sh: Likewise.
813 * emulparams/elf64_ia64_fbsd.sh: Likewise.
814 * emulparams/elf64_sparc_fbsd.sh: Likewise.
815 * emulparams/elf64alpha_fbsd.sh: Likewise.
816 * emulparams/elf_i386_fbsd.sh: Likewise.
817 * emulparams/elf_x86_64_fbsd.sh: Likewise.
818
819 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
820
821 * po/tr.po: Updated version.
822
823 2002-02-18 Alan Modra <amodra@bigpond.net.au>
824
825 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
826 (FILL): Likewise.
827
828 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
829
830 * emultempl/mmo.em (mmo_after_open): Don't call
831 _bfd_mmix_check_all_relocs when producing ELF output.
832
833 2002-02-15 Richard Henderson <rth@redhat.com>
834
835 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
836 definition. Emit a unop+nop pair.
837
838 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
839
840 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
841 for presence of .MMIX.reg_contents.linker_allocated before early
842 exit.
843
844 * NEWS: Mention support for MMIX.
845
846 2002-02-15 Alan Modra <amodra@bigpond.net.au>
847
848 Support arbitrary length fill patterns.
849 * ld.texinfo (Output Section Fill): Describe fill expressions.
850 (FILL): Refer to the above.
851 * ldexp.h (etree_value_type): Add "str" field.
852 (union etree_union): Add "str" to "value" struct.
853 (exp_bigintop): Declare.
854 (exp_get_fill): Declare.
855 * ldexp.c: Include "safe-ctype.h".
856 (exp_intop): Set value.str to NULL.
857 (exp_bigintop): New function.
858 (new_rel): Pass in "str", and set new.str from it.
859 (new_rel_from_section): Set new.str to NULL.
860 (fold_name): Adjust calls to new_rel.
861 (exp_fold_tree): Likewise.
862 (exp_get_fill): New function.
863 * ldgram.y (struct big_int bigint, fill_type *fill): New.
864 (INT): Returns a "bigint". Adjust all code handling INTs.
865 (fill_opt): Returns a "fill".
866 (fill_exp): Split out of fill_opt, use for FILL.
867 * ldlang.h (struct _fill_type): New.
868 (fill_type): Move typedef to ldexp.h.
869 (lang_output_section_statement_type): "fill" is now a pointer.
870 (lang_fill_statement_type): Likewise.
871 (lang_padding_statement_type): Likewise.
872 (lang_add_fill): Now takes a "fill_type *" param.
873 (lang_leave_output_section_statement): Likewise.
874 (lang_do_assignments): Likewise.
875 (lang_size_sections): Likewise.
876 (lang_leave_overlay_section): Likewise.
877 (lang_leave_overlay): Likewise.
878 * ldlang.c: Include ldgram.h after ldexp.h.
879 (lang_output_section_statement_lookup): Adjust for fill_type change.
880 (print_fill_statement): Likewise.
881 (print_padding_statement): Likewise.
882 (insert_pad): Now takes a "fill_type *" arg.
883 (size_input_section): Likewise.
884 (lang_size_sections_1): Likewise.
885 (lang_size_sections): Likewise.
886 (lang_do_assignments): Likewise.
887 (lang_add_fill): Likewise.
888 (lang_leave_output_section_statement): Likewise.
889 (lang_leave_overlay_section): Likewise.
890 (lang_leave_overlay): Likewise.
891 Adjust all callers of the above function.
892 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
893 starting with "0X" as well as "0x". Return bigint.str for hex
894 numbers starting with "0x" or "0X", zero bigint.str otherwise.
895 Always use base 16 for numbers starting with "$".
896 * ldmain.c: Include ldgram.h after ldexp.h.
897 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
898 of bfd_fill_link_order.
899 * pe-dll.c: Adjust lang_do_assignments calls.
900 * emultempl/elf32.em: Likewise.
901 * emultempl/hppaelf.em: Likewise.
902 * emultempl/ppc64elf.em: Likewise.
903 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
904 lang_add_assignment call.
905 * emultempl/pe.em: Likewise.
906
907 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
908
909 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
910 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
911 the pattern in question is not a regexp.
912 * ldlang.c: Likewise.
913 * ldlang.h: Likewise.
914 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
915
916 2002-02-12 Jakub Jelinek <jakub@redhat.com>
917
918 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
919 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
920 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
921 * ldexp.c (exp_data_seg): New variable.
922 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
923 (fold_binary): Handle DATA_SEGMENT_ALIGN.
924 (exp_fold_tree): Handle DATA_SEGMENT_END.
925 Pass allocation_done when recursing instead of hardcoding
926 lang_allocating_phase_enum.
927 * ldexp.h (exp_data_seg): New.
928 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
929 (lang_size_sections): New.
930 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
931 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
932 if COMMONPAGESIZE is defined.
933 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
934 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
935 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
936 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
937 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
938 libraries only.
939
940 2002-02-11 Alan Modra <amodra@bigpond.net.au>
941
942 * Makefile.in: Regenerate.
943
944 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
945
946 * lexsup.c: Remove strtoul declaration.
947
948 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
949
950 * ldmain.c: Add prototype for main ().
951 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
952 * emultempl/lnk960.em (lnk960_choose_target): Function should
953 take two arguments.
954
955 2002-02-10 Alan Modra <amodra@bigpond.net.au>
956
957 * ldlang.c (entry_section): New initialised variable.
958 (lang_finish): Use it.
959 * ldlang.h (entry_section): Declare.
960 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
961 entry_section to ".opd".
962
963 2002-02-09 Chris Demetriou <cgd@broadcom.com>
964
965 * ld.texinfo (Options): Add back in -nostdlib documentation,
966 which had been inadvertently removed.
967
968 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
969
970 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
971 register section vma to a sane value after emitting error. Make
972 fatal conditions cause program exit when emitting message.
973
974 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
975
976 * configure.tgt: Add or32-*-rtems target.
977
978 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
979
980 Contribute sh64-elf.
981 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
982 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
983 in OTHER_RELOCATABLE_SECTIONS.
984 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
985 * emulparams/shelf32.sh (STACK_ADDR): Define.
986 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
987 (OTHER_SECTIONS): this. Removed stack settings.
988 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
989 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
990 2001-03-12 DJ Delorie <dj@redhat.com>
991 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
992 relaxing if any shmedia or mixed sections are found.
993 2001-03-07 DJ Delorie <dj@redhat.com>
994 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
995 einfo. Gracefully decline to output to non-elf formats.
996 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
997 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
998 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
999 * emulparams/shelf32.sh: Ditto.
1000 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1001 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1002 comment.
1003 2001-01-10 Ben Elliston <bje@redhat.com>
1004 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1005 non-portable shell constructs. From Hans-Peter Nilsson.
1006 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1007 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1008 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1009 dependencies to the shell script include chain.
1010 * Makefile.in: Regenerate.
1011 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1012 * emultempl/sh64elf.em: Update and tweak comments.
1013 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1014 make a .cranges section SEC_IN_MEMORY.
1015 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1016 * emultempl/sh64elf.em
1017 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1018 .cranges section found to be necessary; continue and set stored
1019 section contents flags for sections with non-mixed contents.
1020 Use a struct sh64_section_data container and sh64_elf_section_data
1021 to store contents-type flags.
1022 Remove unused update of "isec".
1023 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1024 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1025 access contents-type flags. Assert that the associated container
1026 is initialized. Use that container, not elf_gp_size, to hold size
1027 of linker-generated cranges contents.
1028 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1029 * emultempl/sh64elf.em
1030 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1031 there's already a .cranges section. When section flag difference
1032 is found, don't NULL-check cranges a second time. Tweak comments.
1033 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1034 merging, not max size, as size of ld-generated .cranges contents.
1035 Don't set ELF section flags in output section. When checking for
1036 needed .cranges descriptors, don't use a variable; compare
1037 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1038 comments.
1039 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1040 * emultempl/sh64elf.em: New file.
1041 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1042 * Makefile.in: Regenerate.
1043 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1044 (OTHER_RELOCATING_SECTIONS): Ditto.
1045 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1046 * emulparams/shlelf32.sh: Stub out all settings except
1047 OUTPUT_FORMAT. Source shelf32.sh.
1048 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1049 OTHER_RELOCATING_SECTIONS.
1050 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1051 * emulparams/shlelf64.sh: Stub out all settings except
1052 OUTPUT_FORMAT. Source shelf64.sh.
1053 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1054 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1055 .cranges section.
1056 (DATA_START_SYMBOLS): Define, provide ___data.
1057 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1058 for consecutive .data section.
1059 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1060 section after .data section.
1061 * emulparams/shlelf64.sh: Ditto.
1062 * emulparams/shelf32.sh: Ditto.
1063 (ALIGNMENT): Define to 8.
1064 * emulparams/shelf32.sh: Ditto.
1065 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1066 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1067 built-in linker scripts.
1068 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1069 * emulparams/shlelf64.sh: New.
1070 * emulparams/shelf64.sh: New.
1071 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1072 targ_extra_emuls.
1073 * Makefile.am: Add support for shlelf64 and shelf64.
1074 * Makefile.in: Regenerate.
1075 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1076 * configure.tgt (sh64-*-elf*): Add shelf as default.
1077 Add shlelf to targ_extra_emuls.
1078 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1079 * emulparams/shelf32.sh: New file.
1080 * emulparams/shlelf32.sh: New file.
1081 * Makefile.am: Add support for shlelf32 and shelf32.
1082 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1083 * Makefile.in: Regenerate.
1084
1085 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1086
1087 * ldlang.c (lang_reset_memory_regions): Rename from
1088 reset_memory_regions. Change all callers. Make public.
1089 * ldlang.h (lang_reset_memory_regions): Prototype.
1090 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1091 lang_reset_memory_regions before lang_size_sections.
1092 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1093 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1094
1095 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1096
1097 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1098 arithmetic when checking for too many global registers.
1099
1100 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1101
1102 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1103 (ehppanbsd.c): New rule.
1104 * Makefile.in: Regenerate.
1105 * configure.tgt (hppa*-*-netbsd*): New target.
1106 * emulparams/hppalinux.sh: Add comment to check other files
1107 that source this file it is modified, and list which
1108 files that do.
1109 * emulparams/hppanbsd.sh: New file.
1110
1111 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1112
1113 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1114 stack.
1115
1116 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1117
1118 Support on-demand global register allocation from
1119 R_MMIX_BASE_PLUS_OFFSET relocs.
1120 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1121 mmix_set_reg_section_vma. Call
1122 _bfd_mmix_finalize_linker_allocated_gregs.
1123 (mmix_before_allocation): New function.
1124 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1125 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1126 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1127 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1128 before .MMIX.reg_contents.
1129 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1130 (mmo_after_open): New function.
1131 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1132 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1133 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1134
1135 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1136
1137 * emulparams/or32.sh: New file.
1138 * emulparams/or32elf.sh: New file.
1139 * scripttempl/or32.sc: New file.
1140 * configure.tgt : Add support for or32.
1141 * configure: Regenerate
1142 * Makefile.am: Add support for or32.
1143 * Makefile.in: Regenerate.
1144 * NEWS: Mention support for or32.
1145 * po/ld.pot: Regenerate.
1146
1147 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1148 Mitch Lichtenberg <mpl@broadcom.com>
1149
1150 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1151 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1152 reloc creation (ld --embedded-relocs).
1153
1154 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1155
1156 * configure: Regenerated.
1157
1158 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1159
1160 * Makefile.am (install): Depend on install-info.
1161 * Makefile.in: Regenerate.
1162
1163 2002-01-26 Christian Rose <menthos@menthos.com>
1164
1165 * ldmain.c (main): Use full sentences to ease translation.
1166
1167 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1168
1169 * po/fr.po: Updated version.
1170
1171 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1172
1173 * po/es.po: Updated version.
1174
1175 2002-01-25 Andreas Jaeger <aj@suse.de>
1176
1177 * ldlex.l (yy_input): Correct error check.
1178
1179 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1180
1181 * ldmisc.c (demangle): Put back dots when string not demangled.
1182
1183 2002-01-22 Richard Henderson <rth@redhat.com>
1184
1185 * emulparams/elf64alpha.sh (NOP): Use unop.
1186
1187 2002-01-21 Andreas Jaeger <aj@suse.de>
1188
1189 * ldlex.l: Use fread instead of read.
1190
1191 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1192
1193 * configure.tgt (ia64-*-netbsd*): New target.
1194
1195 2002-01-21 H.J. Lu <hjl@gnu.org>
1196
1197 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1198 0.
1199 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1200
1201 2002-01-18 Andreas Jaeger <aj@suse.de>
1202
1203 * ldver.c (ldversion): Update year.
1204
1205 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1206
1207 * po/ld.pot: Regenerate.
1208
1209 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1210
1211 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1212 * Makefile.in: Regenerate.
1213 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1214 * emultempl/ppc64elf.em: New file.
1215
1216 2002-01-15 DJ Delorie <dj@redhat.com>
1217
1218 * scripttempl/pe.sc: Add support for constructor priorities.
1219
1220 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1221
1222 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1223 * emulparams/avr23xx.sh: Likewise.
1224 * emulparams/avr4433.sh: Likewise.
1225 * emulparams/avr44x4.sh: Likewise.
1226 * emulparams/avr85xx.sh: Likewise.
1227 * emulparams/avrmega103.sh: Likewise.
1228 * emulparams/avrmega161.sh: Likewise.
1229 * emulparams/avrmega603.sh: Likewise.
1230 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1231
1232 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1233
1234 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1235 archive is excluded.
1236
1237 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1238
1239 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1240 (eshelf_nbsd.c): New rule.
1241 (eshlelf_nbsd.c): New rule.
1242 * Makefile.in: Regenerate.
1243 * configure.tgt (sh*le-*-netbsdelf*): New target.
1244 (sh*-*-netbsdelf*): New target.
1245 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1246 * ld/emulparams/shelf_nbsd.sh: New emulation.
1247 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1248
1249 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1250
1251 * po/es.po: New file: Spanish translation.
1252 * configure.in (ALL_LINGUAS): Add es.
1253 * configure: Regenerate.
1254
1255 2002-01-06 John Marshall <jmarshall@acm.org>
1256
1257 * ld.texinfo: Note that --emit-relocs is currently only
1258 implemented for ELF.
1259
1260 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1261
1262 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1263 of bfd_section_list_remove and bfd_section_list_insert macros.
1264 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1265 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1266
1267 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1268
1269 * configure.tgt (x86_64-*-netbsd*): New target.
1270
1271 2001-12-21 Tom Rix <trix@redhat.com>
1272
1273 (gld*_create_output_section_statements): New function.
1274 For -binitfini support.
1275 * emultempl/aix.em (gld*_before_parse): Fix comment.
1276 * emultempl/aix.em (gld*_parse_args): Fix comment.
1277
1278 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1279
1280 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1281 mips*el-*-netbsd*.
1282 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1283
1284 * configure.tgt (arm-*-netbsdelf*): Add target.
1285 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1286 * emulparams/armelf_nbsd.sh: Added.
1287 * Makefile.am: Add rules for earmelf_nbsd.
1288 * Makefile.in: Regenerate.
1289
1290 2001-12-19 Andreas Jaeger <aj@suse.de>,
1291 Susanne Oberhauser <froh@suse.de>
1292
1293 * configure.host: Add rules for x86_64-*linux-gnu. Change
1294 s390x-linux entry to use gcc to report configuration, replace gcc
1295 with $CC in s390-linux
1296
1297 2001-12-19 Andreas Jaeger <aj@suse.de>
1298
1299 * ld.texinfo (VERSION): Fix markup.
1300
1301 2001-12-18 matthew green <mrg@eterna.com.au>
1302
1303 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1304 (m68kelfnbsd.c): New rule.
1305 * Makefile.in: Regenerate.
1306 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1307 (m68*-*-netbsd*4k*): .. this.
1308 (m68*-*-netbsdelf*): New target.
1309 (m68*-*-netbsd*): Also include ELF support.
1310 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1311 * emulparams/m68kelfnbsd.sh: New emulation.
1312
1313 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1314
1315 * ldgram.y (vers_node): Support anonymous version tags.
1316 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1317 tag is not defined together with non-anonymous versions.
1318 * ld.texinfo: Document it.
1319
1320 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1321
1322 * po/tr.po: New file: Turkish translation.
1323 * configure.in (ALL_LINGUAS): Add tr.
1324 * configure: Regenerate.
1325
1326 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1327
1328 * Makefile.am: Add rules for eelf64alpha_nbsd.
1329 * Makefile.in: Regenerate.
1330 * configure.tgt (alpha*-*-netbsd*): Set
1331 targ_emul to elf64alpha_nbsd.
1332 * emulparams/elf64alpha_nbsd.sh: Added.
1333
1334 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1335
1336 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1337 section_tail when fiddling with section list.
1338 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1339 broken into separate strings to make translation easier.
1340 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1341 fiddling with section list.
1342 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1343
1344 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1345
1346 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1347
1348 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1349
1350 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1351
1352 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1353
1354 * emultempl/elf32.em (finish): Supply output_bfd
1355 to bfd_elf*_discard_info.
1356 (OPTION_EH_FRAME_HDR): Define.
1357 (longopts): Add --eh-frame-hdr.
1358 (parse_args): Handle it.
1359 (list_options): Add --eh-frame-hdr to help.
1360 * emultempl/hppaelf.em (finish): Supply output_bfd
1361 to bfd_elf*_discard_info.
1362 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1363
1364 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1365
1366 * lexsup.c (parse_args): Don't pass shortopts to second call to
1367 getopt functions. Restore optind rather than decrementing before
1368 second call. Remove errind as it now duplicates last_optind.
1369
1370 2001-12-11 Christopher Faylor <cgf@redhat.com>
1371
1372 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1373
1374 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1375 Richard Henderson <rth@redhat.com>
1376
1377 * Makefile.am: Add support for xstormy16.
1378 * configure.tgt: Add support for xstormy16.
1379 * Makefile.in: Regenerate.
1380 * emulparams/elf32xstormy16.sh: New file.
1381 * scripttempl/xstormy16.sc: New file.
1382
1383 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1384
1385 * Makefile.in (LIB_PATH): Make configurable.
1386 (GENSCRIPTS): Set LIB_PATH in environment.
1387 * configure.in: Substitute LIB_PATH.
1388 * configure: Regenerate.
1389 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1390 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1391
1392 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1393
1394 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1395 describing the -N option so that it is easier to translate into
1396 foreign languages.
1397
1398 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1399
1400 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1401 statements describing a single option with a single, newline
1402 escaped fprintf. This allows better translation into other
1403 languages.
1404
1405 * ldmain.c (add_archive_element): Combine multiple strings
1406 into a single string to permit better translation into other
1407 languages.
1408
1409 2001-12-05 Tom Rix <trix@redhat.com>
1410
1411 * Makefile.am: Remove eaixppc64.
1412 * Makefile.in: Regenerate.
1413
1414 2001-12-04 Tom Rix <trix@redhat.com>
1415
1416 * emultempl/aix.em (choose_target): Change default target to
1417 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1418 warning.
1419 (gld*_read_file): Fix typo.
1420 (change_symbol_mode): Add prototype.
1421 (is_syscall): Same.
1422
1423 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1424 * emulparams/aixrs6.sh : Same.
1425 * emulparams/ppcmacos.sh : Same.
1426 * emulparams/aixppc64.sh : Delete file.
1427 * emultempl/aix.em : Formatting changes.
1428
1429 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1430
1431 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1432 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1433 __Sbss.
1434 (OTHER_END_SYMBOLS): Fix formatting.
1435 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1436 (OTHER_END_SYMBOLS): Fix formatting.
1437
1438 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1439
1440 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1441
1442 2001-12-02 Tom Rix <trix@redhat.com>
1443
1444 * configure.tgt : Remove eaixppc64 emulations.
1445 * Makefile.in : Remove eaixppc64.c
1446 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1447 (ldemul_default_target): Same.
1448 * emultempl/gld960.em (gld960_choose_target): Same.
1449 * emultempl/gld960c.em (gld960_choose_target): Same.
1450 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1451 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1452 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1453 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1454 * emultempl/aix.em (choose_target): New function. Handle emulation of
1455 -b32 and -b64.
1456
1457 2001-11-27 H.J. Lu <hjl@gnu.org>
1458
1459 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1460 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1461 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1462 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1463 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1464 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1465 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1466 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1467
1468 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1469 is not empty.
1470 (SDATA): Likewise.
1471 (REL_SDATA): Likewise.
1472 (REL_SBSS): Likewise.
1473 (REL_SDATA2): Likewise.
1474 (REL_SBSS2): Likewise.
1475 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1476 (SDATA2): Likewise.
1477
1478 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1479
1480 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1481 destructor in rom.
1482 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1483
1484 2001-11-22 H.J. Lu <hjl@gnu.org>
1485
1486 * Makefile.in: Regenerated with automake based on automake
1487 1.4-8 in RedHat 7.1.
1488
1489 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1490
1491 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1492 (config.status): Delete rule.
1493 Add extra dependencies to cover sourced emulparams files.
1494 * Makefile.in: Regenerate.
1495
1496 * scripttempl/elf.sc: Order <section>, <section>.* and
1497 corresponding linkonce sections as seen in input files.
1498 Formatting fixes. Zero vma of all sections if not relocating.
1499 (STACK): Define and insert if STACK_ADDR defined.
1500 (OTHER_RELOCATING_SECTIONS): Delete.
1501 (OTHER_END_SYMBOLS): Define.
1502 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1503 (OTHER_READWRITE_SECTIONS): Likewise.
1504 (OTHER_GOT_SECTIONS): Likewise.
1505 (OTHER_SDATA_SECTIONS): Likewise.
1506 (OTHER_BSS_SECTIONS): Likewise.
1507 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1508 (OTHER_READWRITE_SECTIONS): Likewise.
1509 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1510 (OTHER_READWRITE_SECTIONS): Likewise
1511
1512 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1513 (STACK_ADDR): Define.
1514 * emulparams/armelf_oabi.sh: As for armelf.sh.
1515 * emulparams/elf32mcore.sh: As for armelf.sh.
1516 * emulparams/h8300elf.sh: As for armelf.sh.
1517 * emulparams/mn10200.sh: As for armelf.sh.
1518 * emulparams/shelf.sh: As for armelf.sh.
1519
1520 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1521 (OTHER_END_SYMBOLS): Define.
1522 * emulparams/m32relf.sh: As for elf32fr30.sh.
1523 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1524 * emulparams/h8300self.sh: As for elf32fr30.sh.
1525
1526 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1527 defines with RELOCATING test.
1528 (OTHER_SDATA_SECTIONS): Likewise.
1529 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1530 (OTHER_END_SYMBOLS): ..this.
1531 * emulparams/crislinux.sh: As for criself.sh.
1532
1533 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1534 if not relocating.
1535 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1536 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1537 normal and linkonce sections as seen in input files.
1538 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1539 (TEXT_DYNAMIC): Likewise.
1540 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1541 (OTHER_SDATA_SECTIONS): Likewise.
1542 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1543 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1544 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1545 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1546 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1547 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1548 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1549 sections as seen in input files.
1550 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1551 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1552 if not relocating.
1553 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1554 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1555 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1556 (OTHER_SECTIONS): Instead, use this..
1557 (OTHER_END_SYMBOLS): ..and this.
1558
1559 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1560 * emulparams/elf32bsmip.sh: Likewise.
1561 * emulparams/elf32btsmip.sh: Likewise.
1562 * emulparams/elf32ebmip.sh: Likewise.
1563 * emulparams/elf32lmip.sh: Likewise.
1564 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1565 * emulparams/elf32lsmip.sh: Likewise.
1566 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1567 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1568 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1569 * emulparams/elf64btsmip.sh: Likewise.
1570 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1571 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1572 * emulparams/elf32ppclinux.sh: Likewise.
1573 * emulparams/elf32ppcsim.sh: Likewise.
1574 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1575 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1576 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1577 * emulparams/h8300self.sh: Likewise.
1578 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1579 * emulparams/sh.sh: Comment.
1580 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1581 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1582 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1583
1584 2001-11-21 David Heine <dlheine@tensilica.com>
1585 Alan Modra <amodra@bigpond.net.au>
1586
1587 * ldlang.c (map_input_to_output_sections): Replace "break"
1588 accidentally removed with 2001-08-03 change.
1589 (lang_gc_sections_1): Likewise.
1590
1591 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1592
1593 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1594
1595 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1596
1597 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1598 of false when calling lang_size_sections.
1599 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1600
1601 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1602
1603 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1604 function when LDEMUL_FINISH isn't set to the same name. Don't
1605 call ${LDEMUL_FINISH}.
1606 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1607 * emultempl/armelf.em (arm_elf_finish): Call
1608 gld${EMULATION_NAME}_finish.
1609 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1610 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1611 hppaelf_layout_sections_again if necessary.
1612 (need_laying_out): New var.
1613 (hppaelf_layaout_sections_again): Rename to
1614 hppaelf_layout_sections_again. Clear need_laying_out.
1615 (PARSE_AND_LIST_OPTIONS): Format text.
1616
1617 2001-11-14 H.J. Lu <hjl@gnu.org>
1618
1619 * emultempl/armelf.em (arm_elf_finish): Renamed from
1620 gld${EMULATION_NAME}_finish.
1621 (LDEMUL_FINISH): Set to arm_elf_finish.
1622
1623 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1624
1625 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1626 (struct ld_emulation_xfer_struct): Use it.
1627
1628 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1629
1630 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1631 additional symbols referenced by newer crt0.o files from HP.
1632
1633 2001-11-12 Anthony Green <green@redhat.com>
1634
1635 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1636
1637 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1638
1639 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1640 * Makefile.in: Regenerate.
1641
1642 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1643
1644 * ld.texinfo: Use @command for commands, @option for options.
1645 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1646 the page man title.
1647 * Makefile.in: Rebuild.
1648
1649 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1650
1651 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1652 Add support for targets.
1653
1654 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1655
1656 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1657 * configure: Regernate.
1658 * po/fr.po: New file.
1659 * po/sv.po: New file.
1660
1661 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1662
1663 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1664 as little endian default and to support big endian.
1665
1666 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1667
1668 * ld.texinfo (Options): Document new option, -nostdlib.
1669 * lexsup.c (OPTION_NOSTDLIB): New definition.
1670 (ld_options): Add entry for "nostdlib".
1671 (parse_args): Handle OPTIONS_NOSTDLIB.
1672 * ldfile.c (ldfile_add_library_path): Don't add directories
1673 to the search path if they weren't specified on the command line
1674 and -nostdlib was specified.
1675 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1676
1677 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1678
1679 * lexsup.c (parse_args): Prevent infinite parsing loop when
1680 "-rpath.a" is specified on the command line.
1681 Replace calls to fprintf with calls to einfo.
1682
1683 2001-10-31 John Marshall <jmarshall@acm.org>
1684
1685 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1686 appear only once across all the linker scripts involved in a link
1687 invocation no longer applies. Make the documentation reflect
1688 that.
1689
1690 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1691
1692 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1693 targets.
1694 (sh-*-linux*): Added targ_extra_libpath.
1695
1696 2001-10-31 David Heine <dlheine@tensilica.com>
1697
1698 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1699 for padding statements.
1700
1701 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1702
1703 * configure.tgt (mmix-*-*): New target.
1704 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1705 Add dependencies to match.
1706 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1707 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1708 scripttempl/mmo.sc: New files.
1709 * gen-doc.texi: @set MMIX.
1710 * ld.texinfo: Ditto.
1711 [MMIX] Add MMIX node.
1712 * Makefile.in: Regenerate.
1713
1714 2001-10-29 Kazu Hirata <kazu@hxi.com>
1715
1716 * ldlang.c: Fix a comment typo.
1717
1718 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1719
1720 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1721 entries, and match *-*-linux*.
1722
1723 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1724
1725 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1726 with ldlex_script, ldlex_popstate.
1727 (ifile_p1): Likewise.
1728 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1729 correct slot.
1730 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1731 to 1. Don't BEGIN(SCRIPT).
1732 (lex_redirect): Similarly.
1733 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1734
1735 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1736
1737 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1738 __EH_FRAME_END__ and accept eh frames into data section.
1739 Add ctor and dtor sections.
1740
1741 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1742
1743 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1744 (auto-export): Fix indentation.
1745
1746 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1747
1748 * pe-dll.c (autofilter_objectlist): Add startup objects
1749 for profiling.
1750 (auto-export): Constify char * p.
1751 Extract file basename and use strcmp rather than ststr
1752 for object lookup.
1753
1754 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1755
1756 * ldmain.c (get_emulation): Improve comment about the handling
1757 of -mipsN options.
1758
1759 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1760
1761 * po/POTFILES.in: Regenerate.
1762
1763 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1764
1765 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1766 -z nocopyreloc and -z nocombreloc usage strings.
1767
1768 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1769
1770 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1771 in usage.
1772
1773 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1774
1775 * scripttempl/armaout.sc: Place .bss section after end of aligned
1776 data section to match behaviour of aout code in constructrion of
1777 header.
1778
1779 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1780
1781 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1782 startup files for mingw32 dlls to list.
1783
1784 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1785
1786 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1787
1788 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1789
1790 * configure.tgt (targ): Add arm9e-*-elf.
1791
1792 2001-10-05 H.J. Lu <hjl@gnu.org>
1793
1794 * genscripts.sh: Fix a typo in the last change.
1795
1796 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1797
1798 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1799 -z nocombreloc in usage.
1800
1801 2001-10-03 Jim Blandy <jimb@redhat.com>
1802
1803 * genscripts.sh: Include a comment at the top of each generated
1804 script, explaining its purpose.
1805
1806 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1807
1808 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1809 * NEWS: Mention -z nocopyreloc.
1810 * ld.texinfo (Options): Describe nocopyreloc.
1811
1812 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1813
1814 * configure: Regenerate.
1815
1816 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1817
1818 * ldver.h (ld_program_version): Remove declaration.
1819 * lexsup.c (parse_args): Move printing of copyright message..
1820 * ldver.c (ldversion): .. to here.
1821 Use BFD_VERSION_STRING in place of BFD_VERSION.
1822 (ld_program_version): Remove.
1823 * Makefile.am (Makefile): Depend on bfd/configure.in.
1824 Run "make dep-am".
1825 * Makefile.in: Regenerate.
1826
1827 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1828
1829 * Makefile.am: Update dependencies with "make dep-am".
1830 * Makefile.in: Regenerate.
1831
1832 2001-09-29 John Reiser <jreiser@BitWagon.com>
1833
1834 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1835 * lexsup.c: Add --no-define-common commandline option.
1836 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1837 * ldlex.l: Likewise.
1838 * ld.h: Add command_line.inhibit_common_definition.
1839 * ldmain.c (main): Initialize.
1840 * ld.texinfo: Document.
1841
1842 2001-09-29 Alan Modra <amodra@bigpond.net.au>
1843
1844 * ldlang.c (section_already_linked): Remove assignment to kept_section.
1845
1846 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1847
1848 * ldmisc.c (USE_STDARG): Remove.
1849 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1850 (einfo): Likewise.
1851 (minfo): Likewise.
1852 (lfinfo): Likewise.
1853
1854 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1855 declarations. Update copyright.
1856
1857 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1858
1859 * pe-dll.c: Remove obsoleted declaration of
1860 pe_get_data_import_dll_name.
1861 (pe_create_import_fixup): Fix thinko.
1862
1863 * ld.texinfo(enable-auto-import): Clarify the explanation.
1864
1865 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1866
1867 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1868 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1869 DLL_SUPPORT controlled code.
1870
1871 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1872
1873 * emultempl/pe.em(pe_data_import_dll): Make static.
1874 (pe_get_data_import_dll_name): New accessor function.
1875 * pe-dll.c(pe_create_import_fixup): call
1876 pe_get_data_import_dll_name() from pe.em, instead of
1877 directly accessing pe_data_import_dll variable from pe.em.
1878
1879 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1880
1881 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1882 (def_file_add_directive): Use ISSPACE instead of isspace.
1883 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1884 isdigit/isxdigit/isalpha/isalnum.
1885 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1886 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1887 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1888 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1889 isalnum.
1890 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1891 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1892 isupper/tolower.
1893 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1894 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1895 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1896 (ctor_prio): Use ISDIGIT instead of isdigit.
1897 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1898 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1899 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1900 isupper/tolower.
1901 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1902 (stricpy): Use TOLOWER instead of isupper/tolower.
1903 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1904 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1905 (lex_warn_invalid): Use ISPRINT instead of isprint.
1906 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1907 (main): For gettext, also set the LC_CTYPE locate facet.
1908 (add_keepsyms_file): Use ISSPACE instead of isspace.
1909 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1910 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1911 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1912 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1913 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1914 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1915 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1916 (quoteput): Use ISSPACE instead of isspace.
1917 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1918 instead of isalnum.
1919
1920 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1921
1922 * deffilep.y (def_stash_module): Constify "name" param.
1923
1924 * pe-dll.c: Replace CONST with const throughout.
1925 (quick_symbol): Constify "n1", "n2", "n3" params.
1926 (make_singleton_name_thunk): Constify "import" param. Make
1927 "buffer_len" a size_t.
1928 (make_import_fixup_entry): Constify "name", "fixup_name",
1929 "dll_symname" params.
1930 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1931 (pe_get32): Likewise.
1932 (pe_implied_import_dll): Likewise.
1933
1934 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1935 (sort_by_section_name): Likewise.
1936
1937 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1938 (make_import_fixup): Cast printf arg, rel->address to long rather
1939 than int.
1940 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1941
1942 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1943
1944 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1945 defines BufferSize. Increase buffer size by one.
1946
1947 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1948
1949 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1950
1951 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1952
1953 * configure.tgt: Add arm-openbsd target.
1954
1955 2001-09-12 H.J. Lu <hjl@gnu.org>
1956
1957 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1958 eelf64lppc.o to ...
1959 (ALL_64_EMULATIONS): Here.
1960 * Makefile.in: Regenerated.
1961
1962 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1963
1964 * emultempl/pe.em(make_import_fixup): change signature to
1965 take asection as well as arelec; we need this for proper
1966 error reporting. Only call pe_create_import_fixup() if
1967 there is no attempt to add a constant addend to the reloc;
1968 otherwise, report error condition.
1969 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1970 since final argument is a pointer to make_import_fixup().
1971 Change call to cb() to match make_import_fixup() signature.
1972 (make_import_fixup_mark): make buffer_len unsigned.
1973 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1974
1975 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1976
1977 * ld.texinfo: add verbose documentation for auto-import
1978 direct-addressing workaround, to compliment the terse
1979 error message.
1980
1981 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1982
1983 * scripttempl/v850.sc: Add gcc_except_table sections.
1984
1985 2001-09-11 Jeffrey A Law (law@cygnus.com)
1986
1987 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1988 * emulparams/h8300self.sh: Similarly.
1989
1990 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1991
1992 * ld.texinfo (Options, --stack): Correct default value for stack
1993 reserve.
1994
1995 2001-09-05 Tom Rix <trix@redhat.com>
1996
1997 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1998
1999 2001-09-03 Andreas Jaeger <aj@suse.de>
2000
2001 * emultempl/beos.em: Declare prototypes for comparions functions,
2002 adjust definitions.
2003
2004 2001-09-02 Andreas Jaeger <aj@suse.de>
2005
2006 * emultempl/aix.em: Add missing prototype.
2007 * emultempl/lnk960.em: Likewise.
2008 * emultempl/vanilla.em: Likewise.
2009 * emultempl/armcoff.em: Likewise.
2010 * emultempl/armelf_oabi.em: Likewise.
2011 * emultempl/beos.em: Likewise.
2012 * emultempl/gld960c.em: Likewise.
2013 * emultempl/gld960.em: Likewise.
2014
2015 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2016 for prototype declaration.
2017
2018 2001-08-31 Eric Christopher <echristo@redhat.com>
2019 Jason Eckhardt <jle@redhat.com>
2020
2021 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2022
2023 2001-08-31 Andreas Jaeger <aj@suse.de>
2024
2025 * emultempl/pe.em: Add missing prototypes.
2026 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2027 pe_find_data_imports.
2028 (pr_sym): Add unused attribute.
2029
2030 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2031
2032 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2033 default from coff to elf.
2034
2035 2001-08-29 Jeff Law <law@redhat.com>
2036
2037 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2038 ARCH specification.
2039 * emulparams/h8300self.sh: Similarly.
2040
2041 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2042
2043 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2044 eh8300self.o .
2045 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2046 * configure.tgt (h8300-*-elf*): New case.
2047 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2048 * emulparams/h8300self.sh: New file.
2049 * Makefile.in: Regenerated.
2050
2051 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2052
2053 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2054 with macro name.
2055
2056 2001-08-27 Linus Nordberg <linus@swox.com>
2057 Alan Modra <amodra@bigpond.net.au>
2058
2059 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2060 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2061 Run "make dep-am"
2062 * Makefile.in: Regenerate.
2063 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2064 entries to correct alphabetical position.
2065 * emulparams/elf64ppc.sh: New.
2066 * emulparams/elf64lppc.sh: New.
2067
2068 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2069
2070 * ldmain.c (main): Declare BSIZE as static.
2071
2072 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2073
2074 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2075 into .rel.dyn resp. .rela.dyn if combreloc.
2076 (get_script): If .x linker script is equal to .xn, only put it
2077 once into the binary.
2078 Add .xc and .xsc scripts.
2079 (parse_args): Handle -z combreloc and -z nocombreloc.
2080 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2081 For .xc and .xsc scripts put all .rel* or .rela* input sections
2082 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2083 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2084 is elf.
2085 Strip trailing whitespace from script.
2086 Generate .xc and .xsc scripts if requested.
2087 * ldmain.c (main): Initialize link_info.combreloc and
2088 link_info.spare_dynamic_tags.
2089 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2090 (ld_options): Add --spare-dynamic-tags option.
2091 (parse_args): Likewise.
2092 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2093 * ldint.texinfo: Document .xc and .xsc linker scripts.
2094 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2095
2096 2001-08-22 H.J. Lu <hjl@gnu.org>
2097
2098 * emulparams/elf32fr30.sh: Add a newline.
2099
2100 2001-08-21 Andreas Jaeger <aj@suse.de>
2101
2102 * deffilep.y: Add missing prototypes.
2103 * pe-dll.c: Likewise.
2104
2105 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2106
2107 * ldlang.c (insert_pad): Fix typos in last patch.
2108
2109 * ldlang.c: When traversing lang_statement_union_type lists,
2110 consistently use "header.next" rather than "next".
2111 * mpw-eppcmac.c: Likewise.
2112 * emultempl/beos.em: Likewise.
2113 * emultempl/hppaelf.em: Likewise.
2114 * emultempl/pe.em: Likewise.
2115 * ldlang.h (union lang_statement_union): Remove "next" field.
2116
2117 * ldlang.c (insert_pad): Use offsetof macro.
2118 (lang_size_sections): Always neuter padding statements.
2119 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2120
2121 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2122 passed to lang_size_sections.
2123 (pe_exe_fill_sections): Likewise.
2124 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2125 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2126
2127 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2128
2129 * emultempl/aix.em: Formatting fixes.
2130
2131 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2132
2133 * ldlang.c (insert_pad): Make use of an existing pad statement if
2134 available. Move code calculating alignment, adjusting section
2135 alignment power, and adjusting dot to ..
2136 (size_input_section): .. here. Remove unused relax param.
2137 (lang_size_sections): Change boolean `relax' param to boolean *.
2138 Adjust call to size_input_section. Make use of insert_pad to
2139 place pad after the assignment statement. If relaxing, zap
2140 padding statements.
2141 (reset_memory_regions): Reset output_bfd section sizes too.
2142 (relax_again): Move to..
2143 (lang_process): ..here. Adjust call to lang_size_sections, and
2144 remove duplicated code.
2145 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2146
2147 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2148
2149 * ld.texinfo: Document that fill values now use the four least
2150 significant bytes.
2151 * emulparams/elf32fr30.sh (NOP): Update.
2152 * emulparams/elf32mcore.sh: Likewise.
2153 * emulparams/elf64_s390.sh: Likewise.
2154 * emulparams/elf_i386.sh: Likewise.
2155 * emulparams/elf_i386_be.sh: Likewise.
2156 * emulparams/elf_i386_chaos.sh: Likewise.
2157 * emulparams/elf_i386_ldso.sh: Likewise.
2158 * emulparams/elf_s390.sh: Likewise.
2159 * emulparams/elf_x86_64.sh: Likewise.
2160 * emulparams/i386moss.sh: Likewise.
2161 * emulparams/i386nw.sh: Likewise.
2162 * emulparams/m68kelf.sh: Likewise.
2163 * scripttempl/elf.sc: Update NOP comment.
2164 * scripttempl/elfi370.sc: Likewise.
2165 * scripttempl/elfm68hc11.sc: Likewise.
2166 * scripttempl/elfm68hc12.sc: Likewise.
2167 * scripttempl/nw.sc: Likewise.
2168
2169 2001-08-15 Tom Rix <trix@redhat.com>
2170
2171 * ldgram.y (saved_script_handle): Initialize to NULL.
2172 * ldmain.c (main): Change check on saved_script_handle.
2173
2174 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2175
2176 * emultempl/elf32.em: Formatting fixes.
2177 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2178 looking at sec->owner.
2179 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2180 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2181 unused code, and reorganize orphan section placement code.
2182
2183 * ldlang.c (wild_doit): Rename to lang_add_section.
2184 * ldlang.h: Here too.
2185 * mpw-elfmips.c: And here.
2186 * emultempl/beos.em: And here.
2187 * emultempl/elf32.em: And here.
2188 * emultempl/hppaelf.em: And here.
2189 * emultempl/pe.em: And here.
2190
2191 2001-08-13 Richard Henderson <rth@redhat.com>
2192
2193 * emultempl/needrelax.em: New file.
2194 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2195 * Makefile.am (eelf64_ia64.c): Depend on it.
2196 * Makefile.in: Rebuild.
2197
2198 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2199
2200 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2201 output_section is set non-NULL.
2202
2203 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2204 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2205 needlessly create an output_section_statement. Treat a correctly
2206 named output_section_statement with NULL bfd_section as compatible.
2207
2208 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2209
2210 * emultempl/generic.em: Support EXTRA_EM_FILE.
2211 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2212 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2213 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2214 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2215 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2216 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2217 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2218 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2219 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2220 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2221
2222 2001-08-12 Richard Henderson <rth@redhat.com>
2223
2224 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2225 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2226 scripttempl/v850.sc: Keep .jcr data.
2227
2228 2001-08-12 H.J. Lu <hjl@gnu.org>
2229 Andrew Haley <aph@cambridge.redhat.com>
2230 Nick Clifton <nickc@redhat.com>
2231
2232 * ldgram.y (had_script): Change name to saved_script_handle.
2233 Change type to file handle.
2234 * ld.h (had_script): Rename and retype.
2235 * ldfile.c (ldfile_open_command_file): Save the file handle
2236 used in saved_script_handle.
2237 * lexsup.c (parse_args): Do not allow -c option to alter
2238 saved_script_handle.
2239 * ldmain.c (main): Print out the linker script used if
2240 --verbose is given. Check saved_script_handle to obtain the
2241 external linker script used, or if NULL, dump the builtin
2242 script.
2243 * ld.texinfo: Document that --verbose now dumps the linker
2244 script used, regardless of whether it was an internal or an
2245 external script.
2246
2247 2001-08-10 Andreas Jaeger <aj@suse.de>
2248
2249 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2250 to build warnings.
2251 * configure: Regenerate.
2252
2253 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2254
2255 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2256
2257 * scripttempl/elf.sc: Move non-text .dynamic section before
2258 .plt/.got/.sdata* group.
2259 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2260 (OTHER_SDATA_SECTIONS): Add.
2261 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2262 OTHER_GOT_SECTIONS.
2263 * emulparams/crislinux.sh: Likewise.
2264 * emulparams/elf32b4300.sh: Likewise.
2265 * emulparams/elf32bmip.sh: Likewise.
2266 * emulparams/elf32bmipn32.sh: Likewise.
2267 * emulparams/elf32bsmip.sh: Likewise.
2268 * emulparams/elf32btsmip.sh: Likewise.
2269 * emulparams/elf32ebmip.sh: Likewise.
2270 * emulparams/elf32elmip.sh: Likewise.
2271 * emulparams/elf32l4300.sh: Likewise.
2272 * emulparams/elf32lmip.sh: Likewise.
2273 * emulparams/elf32lsmip.sh: Likewise.
2274 * emulparams/elf32ltsmip.sh: Likewise.
2275 * emulparams/elf64bmip.sh: Likewise.
2276 * emulparams/elf64btsmip.sh: Likewise.
2277 * emulparams/elf64ltsmip.sh: Likewise.
2278
2279 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2280
2281 * genscripts.sh: Source the emulparams script before each output
2282 script is generated so that variables like `RELOCATING' may affect
2283 variables defined in the emulparams script.
2284
2285 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2286
2287 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2288 order.
2289
2290 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2291 ie. iterate over wild_statement.section_list.
2292 (gld${EMULATION_NAME}_place_orphan): Likewise.
2293
2294 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2295
2296 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2297 .fini[0-4] sections used by _exit
2298 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2299 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2300 * scripttempl/elfm68hc11.sc: Likewise.
2301
2302 2001-08-03 H.J. Lu <hjl@gnu.org>
2303
2304 * emultempl/beos.em (init): Add the missing initialization.
2305
2306 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2307
2308 * ld.texinfo (Input Section Basics): Clarify ordering of output
2309 sections.
2310 * ldlang.c (callback_t): Add wildcard_list param.
2311 (walk_wild_section): Remove "section" param. Rewrite for
2312 lang_wild_statement_type change. Remove unique_section_p test.
2313 (walk_wild_file): Remove "section" param.
2314 (walk_wild): Remove "section" and "file" params.
2315 (lang_gc_wild): Likewise.
2316 (wild): Likewise. Modify for lang_wild_statement_type change.
2317 (wild_sort): Likewise. Add "sec" param.
2318 (gc_section_callback): Likewise.
2319 (output_section_callback): Likewise. Do unique_section_p test.
2320 (map_input_to_output_sections): Modify call to wild.
2321 (lang_gc_sections_1): Likewise.
2322 (print_wild_statement): Modify for lang_wild_statement_type
2323 change.
2324 (lang_add_wild): Replace filename, filenames_sorted param with
2325 filespec. Replace section_name, sections_sorted,
2326 exclude_filename_list with section_list.
2327 * ldlang.h (lang_add_wild): Here too.
2328 (lang_wild_statement_type): Replace section_name, sections_sorted,
2329 and exclude_filename_list with section_list.
2330 * ldgram.y (current_file): Delete.
2331 (%union): Add wildcard_list.
2332 (file_NAME_list): Set type to wildcard_list. Build a linked list
2333 rather than calling lang_add_wild for each entry.
2334 (input_section_spec_no_keep): Call lang_add_wild here instead.
2335 * ld.h (struct wildcard_list): Declare.
2336 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2337
2338 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2339
2340 * ldmain.c (main): initialize link_info.pei386_auto_import
2341 * pe-dll.c: new tables for auto-export filtering
2342 (auto_export): change API, pass abfd for contextual filtering.
2343 Loop thru tables of excluded symbols instead of comparing
2344 "by hand".
2345
2346 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2347
2348 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2349 static variable current_sec (static struct sec *). Add
2350 forward declaration for add_bfd_to_link.
2351 (process_def_file): Don't export undefined symbols. Do not
2352 export symbols starting with "_imp__". Call auto_export()
2353 with new API.
2354 (pe_walk_relocs_of_symbol): New function.
2355 (generate_reloc): add optional extra debugging
2356 (pe_dll_generate_def_file): eliminate extraneous initial blank
2357 line in output
2358 (make_one): enlarge symtab to make room for __nm__ symbols
2359 (DATA auto-import support).
2360 (make_singleton_name_thunk): New function.
2361 (make_import_fixup_mark): New function.
2362 (make_import_fixup_entry): New function.
2363 (pe_create_import_fixup): New function.
2364 (add_bfd_to_link): Specify that 'name' argument is a CONST
2365 char *.
2366 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2367 declare new functions pe_walk_relocs_of_symbol and
2368 pe_create_import_fixup.
2369 * emultempl/pe.em: add new options --enable-auto-import,
2370 --disable-auto-import, and --enable-extra-pe-debug.
2371 (make_import_fixup): New function.
2372 (pe_find_data_imports): New function.
2373 (pr_sym): New function.
2374 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2375 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2376 CODE.
2377
2378 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2379
2380 * ld.texinfo: add additional documentation for
2381 --export-all-symbols. Document --out-implib,
2382 --enable-auto-image-base, --disable-auto-image-base,
2383 --dll-search-prefix, --enable-auto-import, and
2384 --disable-auto-import.
2385 * ldint.texinfo: Add detailed documentation on auto-import
2386 implementation.
2387
2388 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2389
2390 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2391 example.
2392
2393 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2394
2395 * Makefile.am: Update dependencies with "make dep-am".
2396 * Makefile.in: Regenerate
2397
2398 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2399
2400 * ldcref.c (check_section_sym_xref): New function.
2401 (check_nocrossrefs): Call it.
2402 (check_nocrossref): Interate over h->refs here instead of..
2403 (check_refs): ..here. Pass in the symbol name, section, and bfd
2404 rather than hash_entry pointers.
2405 (struct check_refs_info): Keep symbol name rather than hash entry.
2406 Remove "same".
2407 (check_reloc_refs): Tweak for above changes in check_refs_info.
2408 Only report references to section syms when symname is NULL to
2409 prevent duplicate messages for the same reloc.
2410
2411 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2412
2413 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2414 available. Do not print NULL trees.
2415 (exp_print_token): Print unknown tokens with values > 126 as
2416 decimal values not ASCII characters.
2417
2418 * ldlang.c (lang_leave_overlay): If a region is specified assign
2419 it to all sections inside the overlay unless they have been
2420 assigned to the own, non-default, memory region.
2421
2422 * README: Add header for consistency with other README files.
2423
2424 2001-07-14 H.J. Lu <hjl@gnu.org>
2425
2426 * emultempl/elf32.em (output_prev_sec_find): Never return
2427 bfd_abs_section_ptr, bfd_com_section_ptr nor
2428 bfd_und_section_ptr.
2429
2430 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2431
2432 * Makefile.am (em32relf.c): Change dependency from generic.em to
2433 elf32.em.
2434 * Makefile.in: Regenerate.
2435
2436 2001-07-14 matthew green <mrg@eterna.com.au>
2437
2438 * configure.tgt (i386-*-netbsdelf*): New target.
2439 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2440
2441 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2442
2443 * emultempl/elf32.em (output_prev_sec_find): New.
2444 (place_orphan): Use it.
2445
2446 2001-07-11 H.J. Lu <hjl@gnu.org>
2447
2448 * ldmain.c (main): Fix typos in the last change.
2449
2450 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2451
2452 * ldmain.c (main): Disallow -F and -f without -shared.
2453
2454 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2455
2456 * emultempl/pe.em (after_open): Check for the output_bfd not
2457 having any coff_data structure allocated to it.
2458
2459 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2460
2461 * emultempl/elf32.em: Do not assuming that contents of the buffer
2462 returned from basename function will remain unchanged accross other
2463 function calls.
2464
2465 2001-07-03 H.J. Lu <hjl@gnu.org>
2466
2467 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2468 2001-07-03. It creates dynamic entries even for static binaries.
2469
2470 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2471
2472 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2473 (DYNAMIC): Use it to reserve few dynamic entries for
2474 post-linking tools.
2475
2476 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2477
2478 * emulparams/hppa64linux.sh: New file.
2479 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2480 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2481 (ehppa64linux.c): Add rule to make it.
2482 Run "make dep-am".
2483 * Makefile.in: Regenerate.
2484
2485 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2486
2487 * ld.texinfo (Options, -r): Mention restrictions when using
2488 different object formats.
2489
2490 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
2491
2492 * ldlang.c (lang_check): Emit fatal error if relocatable link
2493 between different object flavours with relocations in input.
2494
2495 2001-06-19 H.J. Lu <hjl@gnu.org>
2496
2497 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2498 (--version-script): Mention the language support.
2499
2500 2001-06-19 H.J. Lu <hjl@gnu.org>
2501
2502 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2503
2504 2001-06-18 H.J. Lu <hjl@gnu.org>
2505
2506 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2507 (diststuff): Add $(MANS).
2508 * Makefile.in: Regenerated.
2509
2510 * ld.1: Removed.
2511
2512 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2513
2514 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2515 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2516 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2517 * ld.h (args_type): Remove member export_dynamic. All users
2518 changed to use struct bfd_link_info member.
2519
2520 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2521 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2522 * Makefile.in: Regenerate.
2523
2524 2001-06-18 H.J. Lu <hjl@gnu.org>
2525
2526 * ldlang.c (init_os): Add the newline to the einfo call.
2527 (lang_check): Likewise.
2528 (lang_do_version_exports_section): Likewise.
2529
2530 2001-06-15 H.J. Lu <hjl@gnu.org>
2531
2532 * lexsup.c (parse_args); Save optind to report unrecognized
2533 option.
2534
2535 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2536
2537 * ldlang.c (lang_check): Emit fatal error if relocatable link
2538 between different object flavours.
2539
2540 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2541 Set new link_info member export_dynamic.
2542 * ldmain.c (main): Initialize new link_info member export_dynamic.
2543
2544 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2545
2546 * ldlang.c (walk_wild): Only call walk_wild_file if
2547 lookup_name returns something.
2548 (lookup_name): If load_symbols fails, return NULL.
2549 (load_symbols): Change to a boolean function.
2550 (open_input_bfds): If load_symbols fails then do not make the
2551 executable.
2552
2553 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2554
2555 * ldlang.c (record_bfd_errors): Remove.
2556
2557 * emultempl/aix.em: Fix copyright dates.
2558
2559 2001-06-07 Andreas Jaeger <aj@suse.de>
2560
2561 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2562 (TEXT_START_ADDR): Likewise.
2563
2564 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2565
2566 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2567
2568 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2569
2570 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2571
2572 2001-05-31 H.J. Lu <hjl@gnu.org>
2573
2574 * ldlang.c (open_input_bfds): Don't change the bfd error
2575 handler whilst loading symbols.
2576
2577 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2578
2579 * configure.tgt: Remove i370-mvs architecture, it is not currently
2580 supported.
2581
2582 2001-05-25 H.J. Lu <hjl@gnu.org>
2583
2584 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2585 like emulparams/aixppc.sh.
2586
2587 2001-05-25 H.J. Lu <hjl@gnu.org>
2588
2589 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2590 setting of output_filename after bfd_scan_arch.
2591 * emultempl/pe.em: Likewise.
2592
2593 2001-05-25 H.J. Lu <hjl@gnu.org>
2594
2595 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2596 like emulparams/aixppc.sh.
2597
2598 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2599 instead of ${srcdir}/emultempl/stringify.sed.
2600
2601 2001-05-25 Timothy Wall <twall@oculustech.com>
2602
2603 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2604 output.
2605
2606 2001-05-25 Alan Modra <amodra@one.net.au>
2607
2608 * configure.host: Replace linuxoldld with linux*oldld.
2609 * configure.tgt: Likewise.
2610
2611 2001-05-24 H.J. Lu <hjl@gnu.org>
2612
2613 * emultempl/stringify.sed: Removed again.
2614
2615 2001-05-24 H.J. Lu <hjl@gnu.org>
2616
2617 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2618 (gld${EMULATION_NAME}_before_parse): Initialize
2619 ldfile_output_architecture, ldfile_output_machine and
2620 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2621 * emultempl/beos.em: Likewise.
2622 * emultempl/elf32.em: Likewise.
2623 * emultempl/linux.em: Likewise.
2624 * emultempl/mipsecoff.em: Likewise.
2625 * emultempl/pe.em: Likewise.
2626 * emultempl/sunos.em: Likewise.
2627
2628 2001-05-24 Tom Rix <trix@redhat.com>
2629
2630 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2631 udate import file format.
2632 (change_symbol_mode) New, same
2633 (is_syscall) New, same
2634 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2635 * emulparams/aixppc64.sh : same
2636 * emulparams/aixrs6.sh : same
2637 * emulparams/ppcmacos.sh : same
2638 * emultempl/aix.em : use strtoull to parse options
2639 * Makefile.am : add eaixppc64 emulation for xcoff64
2640 * Makefile.in : same
2641 * configure.tgt : same
2642
2643 * scripttempl/aix.sc : default text section offset to 0x10000000
2644 default data section offset to 0x20000000
2645 add .sv3264 and .sv64 pseudo sections
2646 loader and debug sections use the currect section offset.
2647
2648 * emultempl/aix.em : Add xcoff64 support
2649 Add -binitfini support
2650 (gld${EMULATION_NAME}_before_parse) -binitfini
2651 (gld${EMULATION_NAME}_parse_args) same
2652 (gld${EMULATION_NAME}_before_allocation) format change for special
2653 sections
2654
2655 * emulparams/aixppc64.sh : New file for xcoff64 support
2656
2657 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2658
2659 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2660 variable to avoid non-portable shell construct.
2661
2662 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2663
2664 * ldmain.c (get_emulation): Add -mips5 command line argument.
2665
2666 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2667
2668 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2669 (ELF_INTERPRETER_NAME): Define it.
2670 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2671 it.
2672 * configure.tgt (targ_emul, targ_extra_emuls)
2673 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2674 as primary, elf_i386 as extra.
2675 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2676 (eelf_i386_ldso.c): New rule.
2677 * Makefile.in: Rebuilt.
2678
2679 2001-05-22 Nick Clifton <nickc@redhat.com>
2680
2681 * lexsup.c (ld_options): Allow -I to be an alias for
2682 --dynamic-linker. This is for Solaris compatability.
2683 * ld.texinfo: Document that -I can be used.
2684 * ld.1: Regenerate.
2685
2686 2001-05-16 Alan Modra <amodra@one.net.au>
2687
2688 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2689 whether an input section is the first one assigned to an output
2690 section.
2691 Assorted formatting fixes.
2692
2693 2001-05-14 DJ Delorie <dj@delorie.com>
2694
2695 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2696 * Makefile.in: Ditto.
2697
2698 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2699
2700 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2701 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2702 output sections.
2703 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2704
2705 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2706
2707 * ldlang.c (lang_process): Call bfd_merge_sections.
2708
2709 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2710
2711 * ldgram.y: Fix typo.
2712
2713 2001-05-03 H.J. Lu <hjl@gnu.org>
2714
2715 * emultempl/elf32.em: Include "libiberty.h".
2716 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2717 basename of the bfd filename.
2718 (gld${EMULATION_NAME}_stat_needed): Likewise.
2719 (gld${EMULATION_NAME}_try_needed): Likewise.
2720 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2721
2722 2001-05-02 H.J. Lu <hjl@gnu.org>
2723
2724 * emultempl/pe.em: Include <ctype.h>.
2725
2726 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2727
2728 * emulparams/elf32openrisc.sh: New file.
2729
2730 * Makefile.am: Add OpenRISC target.
2731 * Makefile.in: Regenerated.
2732
2733 * configure.tgt: Add openrisc-*-* mapping.
2734
2735 2001-05-02 Nick Clifton <nickc@redhat.com>
2736
2737 * emultempl/aix.em: Replace buystring with xstrdup.
2738 * emultempl/beos.em: Replace buystring with xstrdup.
2739
2740 2001-05-02 H.J. Lu <hjl@gnu.org>
2741
2742 * ldfile.c: Include "libiberty.h".
2743 * ldlex.l: Likewise.
2744
2745 * ldmisc.c (buystring): Removed.
2746 * ldmisc.h: Likewise.
2747
2748 * ldfile.c: Replace buystring with xstrdup.
2749 * ldlang.c: Likewise.
2750 * ldlex.l: Likewise.
2751 * ldmain.c: Likewise.
2752 * ldmisc.c: Likewise.
2753 * lexsup.c: Likewise.
2754 * mpw-eppcmac.c: Likewise.
2755
2756 2001-04-30 Andreas Jaeger <aj@suse.de>
2757
2758 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2759
2760 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2761
2762 * ldlang.c (load_symbols): Give emulation a chance
2763 to process unrecognized file before fatal error is
2764 reported, not after.
2765
2766 2001-04-27 Sean McNeil <sean@mcneil.com>
2767
2768 * configure.tgt: Add arm-vxworks target.
2769 * scripttempl/armcoff.sc: Support .text or .data as a section name
2770 prefix.
2771 Define _etext.
2772
2773 2001-04-13 J.T. Conklin <jtc@redback.com>
2774
2775 * ld.texinfo: Document --fatal-warnings.
2776 * ld.1: Regenerate.
2777
2778 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2779 warnings have been turned into errors.
2780 * lexsup.c (OPTION_WARN_FATAL): Define.
2781 (ld_options): Entry for --fatal-warnings.
2782 (parse_args): Handle OPTION_WARN_FATAL.
2783 * ld.h (ld_config_type): Add fatal_warnings field.
2784
2785 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2786
2787 * ldmain.c (main): Default to discard_sec_merge.
2788 * lexsup.c (OPTION_DISCARD_NONE): Define.
2789 (ld_options): Add --discard-none.
2790 (parse_args): Handle OPTION_DISCARD_NONE.
2791 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2792 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2793 all its input sections match.
2794
2795 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2796
2797 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2798 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2799 (eelf32ltsmip.c): New target.
2800 (eelf64btsmip.c): Likewise.
2801 (eelf64ltsmip.c): Likewise.
2802 * Makefile.in: Regenerated.
2803
2804 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2805 target.
2806 (mips*-*-linux-gnu*): Likewise.
2807
2808 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2809 MIPS taget.
2810 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2811 target.
2812 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2813 endian target.
2814
2815 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2816
2817 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2818 correct value of __Stext here.
2819 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2820 .startup section.
2821
2822 * emulparams/crislinux.sh: Remove FIXME.
2823
2824 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2825
2826 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2827 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2828
2829 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2830
2831 * configure.tgt (cris-*-*): Change default emulation to criself.
2832 (cris-*-*aout*): New rule.
2833
2834 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2835
2836 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2837 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2838
2839 2001-03-26 Andreas Jaeger <aj@suse.de>
2840
2841 * ld.texinfo (Overview): Fix syntax in texi code.
2842
2843 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2844
2845 * ld.texinfo: Put @c man indications to generate the ld man page.
2846 When generating man, define all the variables. Define SEEALSO
2847 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2848 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2849 (ld.1): Generate from ld.texinfo.
2850 * Makefile.in: Regenerate.
2851
2852 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2853
2854 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2855 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2856
2857 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2858
2859 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2860 is an absolute path look only for this file and not along the path.
2861
2862 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2863
2864 * emultempl/elf32.em (OPTION_GROUP): New macro.
2865 Add new option Bgroup to longopts.
2866 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2867 (gld*_list_options): Add -Bgroup and -z defs.
2868 * ld.1: Document -Bgroup and -z defs.
2869 * ld.texinfo: Likewise.
2870
2871 2001-03-07 Michael Meissner <meissner@redhat.com>
2872
2873 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2874 with sections created by -fdata-sections.
2875 (.dynbss,.bss): Ditto.
2876
2877 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2878
2879 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2880 after_allocation_default, not gld..._before_allocation.
2881
2882 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2883
2884 * configure.in (BFD_VERSION): New.
2885 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2886 * configure: Regenerate.
2887 * Makefile.am: Run "make dep-am"
2888 * Makefile.in: Regenerate.
2889
2890 2001-02-26 Timothy Wall <twall@cygnus.com>
2891
2892 * emulparams/elf64_aix.sh: Add additional read-only sections;
2893 uncomment lines which are now required.
2894
2895 2001-02-26 H.J. Lu <hjl@gnu.org>
2896
2897 * ldlang.c (open_input_bfds): Set the bfd error handler so
2898 that problems can be caught whilst loading symbols.
2899 (record_bfd_errors): New function: Report BFD errors and mark
2900 the executable output as being invalid.
2901
2902 2001-02-22 Timothy Wall <twall@cygnus.com>
2903
2904 * configure.host: Add configuration for ia64-*-aix*.
2905 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2906 Add dependencies for eelf64_aix.c.
2907 * Makefile.in: Regenerate.
2908 * configure.tgt: Add ia64-*-aix* mapping.
2909 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2910 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2911 AIX-specific test.
2912
2913 2001-02-20 H.J. Lu <hjl@gnu.org>
2914
2915 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2916 false if we found the file.
2917
2918 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2919
2920 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2921 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2922
2923 2001-02-18 lars brinkhoff <lars@nocrew.org>
2924
2925 * Makefile.am: Add PDP-11 target.
2926 * configure.tgt: Likewise.
2927 * emulparams/pdp11.sh: New file.
2928
2929 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2930
2931 * configure.host: Add a generic FreeBSD configuration entry such that
2932 all [modern] FreeBSD systems on all platforms will look the same.
2933
2934 2001-02-14 H.J. Lu <hjl@gnu.org>
2935
2936 * configure.tgt: Remove mention of earmelf_linux26.
2937
2938 2001-02-13 Richard Henderson <rth@redhat.com>
2939
2940 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2941
2942 2001-02-13 H.J. Lu <hjl@gnu.org>
2943
2944 * ldexp.h (node_type): Add etree_provided.
2945 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2946 type to etree_provided if defined by PROVIDE. Allow updating
2947 for etree_provided.
2948 (exp_print_tree): Handle etree_provided.
2949 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2950 etree_provided.
2951
2952 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2953
2954 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2955 .IA_64.unwind.* pattern to unwind table section and
2956 .IA_64.unwind_info* pattern to unwind info section.
2957
2958 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2959
2960 * Makefile.am: Add linux target for S/390.
2961 * Makefile.in: Likewise.
2962 * configure.host: Likewise.
2963 * configure.tgt: Likewise.
2964 * emulparams/elf64_s390.sh: New file.
2965 * emulparams/elf_s390.sh: New file.
2966
2967 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2968
2969 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2970 targ_extra_libpath.
2971 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2972
2973 2001-02-06 Philip Blundell <philb@gnu.org>
2974
2975 * Makefile.am: Remove mention of earmelf_linux26.
2976 * Makefile.in: Regenerate.
2977
2978 2001-02-04 Philip Blundell <philb@gnu.org>
2979
2980 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2981 * emulparams/armelf_linux26.sh: Delete.
2982 * configure.tgt: Remove mention of armelf_linux26 emulation.
2983
2984 2001-02-01 Nick Clifton <nickc@redhat.com>
2985
2986 * ld.1: Replace occurances of -oformat with --oformat.
2987
2988 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2989
2990 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2991 load_base is specified.
2992
2993 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2994
2995 * emultempl/elf32.em: Correct spelling in comments and listed
2996 options.
2997
2998 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2999
3000 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3001 default for the first section of a group of overlay sections.
3002
3003 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3004
3005 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3006 * Makefile.in: Regenerate.
3007 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3008 Check for null tool_dir.
3009
3010 2001-01-16 Jim Wilson <wilson@redhat.com>
3011
3012 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3013 and IA_64.unwind.info.
3014
3015 2001-01-16 H.J. Lu <hjl@gnu.org>
3016
3017 * ldlang.c (lang_check): Merge the private data only if the
3018 input file has contents.
3019
3020 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3021
3022 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3023
3024 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3025 enabling search for libmilli. On a relocatable link, make .text
3026 sections unique.
3027 (LDEMUL_AFTER_PARSE): Define.
3028 (hppaelf_finish): Correct spelling of relocatable in comments.
3029
3030 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3031 rummage through the script for sections on the unique list.
3032 Correct length of strncmp for ".note".
3033 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3034
3035 * ldlang.c (unique_section_list): New var.
3036 (unique_section_p): New function.
3037 (walk_wild_section): Don't match sections on unique_section_list.
3038 (lang_add_unique): New function.
3039 Correct spelling of relocatable in comments.
3040
3041 * ldlang.h (struct unique_sections): Declare.
3042 (unique_section_list): Declare.
3043 (unique_section_p): Declare.
3044 (lang_add_unique): Declare.
3045
3046 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3047 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3048
3049 * ld.texinfo (--unique): Update.
3050
3051 2001-01-13 Nick Clifton <nickc@redhat.com>
3052
3053 * lexsup.c (parse_args): Remove spurious white space.
3054
3055 2001-01-12 Nick Clifton <nickc@redhat.com>
3056
3057 * lexsup.c (parse_args): Update copyright date.
3058
3059 2001-01-12 Philip Blundell <pb@futuretv.com>
3060
3061 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3062
3063 2001-01-10 Kazu Hirata <kazu@hxi.com>
3064
3065 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3066 * scripttempl/h8300h.sc: Fix formatting.
3067 * scripttempl/h8300s.sc: Likewise.
3068 * scripttempl/h8500.sc: Likewise.
3069 * scripttempl/h8500b.sc: Likewise.
3070 * scripttempl/h8500c.sc: Likewise.
3071 * scripttempl/h8500m.sc: Likewise.
3072 * scripttempl/h8500s.sc: Likewise.
3073
3074 2000-01-07 David O'Brien <obrien@BSDi.com>
3075
3076 * emultempl/elf32.em: Only perform Linux ld hints processing when
3077 targeting Linux.
3078
3079 2001-01-07 Philip Blundell <philb@gnu.org>
3080
3081 * ld.texinfo (Bug Reporting): Update email address for reports.
3082
3083 2000-12-31 Nick Clifton <nickc@redhat.com>
3084
3085 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3086 options by checking for a return value of '?' not -1.
3087
3088 2000-12-28 Nick Clifton <nickc@redhat.com>
3089
3090 * lexsup.c (struct ld_option): Add new enum value:
3091 EXACTLY_TWO_DASHES.
3092 (ld_options[]): Change -omagic, -output and -oformat options
3093 to be EXACTLY_TWO_DASHES.
3094 (OUTPUT_COUNT): Use ARRAY_SIZE.
3095 (parse_args): Change parameter 'argc' to unsigned.
3096 Place EXACTLY_TWO_DASHES options into new really_longopts
3097 array.
3098 If getopt_long_only fails, try calling getopt_long using the
3099 really_longopts array.
3100 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3101 TWO_DASHES options.
3102
3103 * ldlex.h: Fix prototype of parse_args.
3104
3105 * ld.texinfo: Document that long options starting with 'o'
3106 must be preceeded by two dashes. Change example of a single
3107 dashed long option from -oformat to -trace-symbol.
3108
3109 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3110
3111 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3112 (longopts[]): New --no-default-excludes option.
3113 (gld_${EMULATION_NAME}_list_options): Document.
3114 (gld_${EMULATION_NAME}_parse_args): Handle.
3115
3116 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3117
3118 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3119 whitespace, it breaks the K&R C preprocessor.
3120
3121 2000-12-11 DJ Delorie <dj@redhat.com>
3122
3123 * ld.texinfo: Add notes about --whole-archive and gcc.
3124
3125 2000-11-18 Fred Fish <fnf@be.com>
3126
3127 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3128 (ld_options): Entry for --allow-shlib-undefined.
3129 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3130 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3131 to false.
3132 * ld.texinfo: Document new command line switch.
3133
3134 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3135
3136 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3137 .fixup is actually read/write.
3138 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3139 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3140 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3141
3142 2000-12-11 Jan Hubicka <jh@suse.cz>
3143
3144 * NEWS: Add note about x86_64 architecture.
3145
3146 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3147
3148 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3149 Set DWARF2 sections to a VMA of zero.
3150
3151 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3152
3153 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3154 New targets.
3155 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3156 (sparc*-*-rtems*): Switched from a.out to ELF.
3157
3158 2000-11-30 Jan Hubicka <jh@suse.cz>
3159
3160 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3161 (eelf_x86_64.c): New.
3162 * Makefile.in: Regenerate.
3163 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3164 * emulparams/elf_x86_64.sh: New.
3165
3166 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3167
3168 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3169 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3170
3171 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3172 merging non-a.out sections into CONSTRUCTING.
3173
3174 2000-11-28 Nick Clifton <nickc@redhat.com>
3175
3176 * ld.1 (COPYING): Mention that the GNU Free Documentation
3177 License is present in the sources, but not the output, and
3178 also available from the GNU website.
3179 (GNU Free Documentation License): Comment out this section.
3180
3181 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3182
3183 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3184 does not use them.
3185
3186 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3187
3188 * ld.1: Remove old date so it does not give the impression the manpage
3189 is way out of date.
3190
3191 2000-11-24 Nick Clifton <nickc@redhat.com>
3192
3193 * configure.tgt (xscale-coff): Add target.
3194 (xscale-elf): Add target.
3195
3196 2000-11-24 Fred Fish <fnf@be.com>
3197
3198 * ldmain.c (main): Remove redundant init of config.make_executable
3199 to true.
3200
3201 2000-11-15 Richard Henderson <rth@redhat.com>
3202
3203 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3204
3205 2000-11-14 Kazu Hirata <kazu@hxi.com>
3206
3207 * scripttempl/h8300.sc: Fix formatting.
3208 * scripttempl/h8300h.sc: Likewise.
3209 * scripttempl/h8300s.sc: Likewise.
3210
3211 2000-11-14 Denis Chertykov <denisc@overta.ru>
3212
3213 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3214
3215 2000-11-09 Philip Blundell <pb@futuretv.com>
3216
3217 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3218 around orphan sections whose names can be represented in C.
3219
3220 2000-11-07 Jim Wilson <wilson@redhat.com>
3221
3222 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3223 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3224
3225 2000-11-06 Nick Clifton <nickc@redhat.com>
3226
3227 * ld.texinfo: Add GNU Free Documentation License.
3228 * ldint.texinfo: Add GNU Free Documentation License.
3229 * ld.1: Add GNU Free Documentation License.
3230
3231 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3232
3233 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3234 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3235
3236 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3237 Move 2000-11-02 Makefile.in changes to this file.
3238 * Makefile.in: Regenerate.
3239
3240 2000-11-03 Nick Clifton <nickc@redhat.com>
3241
3242 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3243 constructors and destructors.
3244 * scripttempl/h8300h.sc: Ditto.
3245 * scripttempl/h8300s.sc: Ditto.
3246 * scripttempl/h8500.sc: Ditto.
3247 * scripttempl/h8500b.sc: Ditto.
3248 * scripttempl/h8500c.sc: Ditto.
3249 * scripttempl/h8500m.sc: Ditto.
3250 * scripttempl/h8500s.sc: Ditto.
3251 * scripttempl/v850.sc: Ditto.
3252 * scripttempl/w65.sc: Ditto.
3253 * scripttempl/z8000.sc: Ditto.
3254
3255 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3256
3257 * Makefile.in (e_i386_chaos.c): New rule.
3258 (ALL_EMULATIONS): Added e_i386_chaos.o.
3259 * emulparams/elf_i386_chaos.sh: New file.
3260 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3261
3262 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3263
3264 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3265 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3266 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3267 library path suffix.
3268 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3269
3270 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3271
3272 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3273 for consecutive sections.
3274
3275 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3276
3277 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3278 options.
3279 * ld.texinfo: Added notes about this new option.
3280
3281 2000-10-16 Nick Clifton <nickc@redhat.com>
3282
3283 * emultempl/pe.em (_after_open): Add tests of return values from
3284 bfd functions. Emit appropriate error messages if necessary.
3285
3286 2000-10-13 Nick Clifton <nickc@redhat.com>
3287
3288 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3289 local variables - they are not used, but leave in the call to
3290 bfd_canonicalize_symtab.
3291 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3292 pe_dll_search_prefix.
3293
3294 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3295
3296 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3297 (longopts): New --dll-search-prefix option.
3298 (gld_${EMULATION_NAME}_list_options): Document.
3299 (gld_${EMULATION_NAME}_parse_args): Handle.
3300 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3301 dynamically, search for a dll named '<prefix><basename>.dll'
3302 in preference to 'lib<basename>.dll' if --dll-search-prefix
3303 is specified.
3304
3305 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3306
3307 * ldlang.c (section_already_linked): Set kept_section instead of
3308 sec->comdat->sec.
3309
3310 2000-10-10 Kazu Hirata <kazu@hxi.com>
3311
3312 * deffile.h: Fix formatting.
3313 * lexsup.c: Likewise.
3314 * mri.c: Likewise.
3315
3316 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3317
3318 * pe-dll.c (make_one): Do not generate code thunk for DATA
3319 exports.
3320 (process_def_file): deduce DATA flag for auto-export sumbols.
3321
3322 2000-10-09 Kazu Hirata <kazu@hxi.com>
3323
3324 * ld.h: Fix formatting.
3325 * ldcref.c: Likewise.
3326 * ldctor.h: Likewise.
3327 * ldemul.c: Likewise.
3328 * ldemul.h: Likewise.
3329 * ldexp.c: Likewise.
3330 * ldexp.h: Likewise.
3331 * ldfile.c: Likewise.
3332 * ldfile.h: Likewise.
3333 * ldlang.c: Likewise.
3334 * ldlang.h: Likewise.
3335 * ldmain.c: Likewise.
3336 * pe-dll.c: Likewise.
3337
3338 * pe-dll.c: Revert some formatting fixes.
3339
3340 2000-10-08 Kazu Hirata <kazu@hxi.com>
3341
3342 * pe-dll.c: Fix formatting.
3343
3344 2000-10-05 Kazu Hirata <kazu@hxi.com>
3345
3346 * ldlang.c: Fix formatting.
3347
3348 2000-10-03 DJ Delorie <dj@redhat.com>
3349
3350 * pe-dll.c (fill_edata): initialize entire block
3351 (make_one): fill in correct section.
3352
3353 2000-10-03 Kazu Hirata <kazu@hxi.com>
3354
3355 * ldexp.c: Fix formatting.
3356
3357 2000-10-02 DJ Delorie <dj@redhat.com>
3358
3359 * emultempl/pe.em (gld_*_after_open): detect case where there two
3360 import libraries for same dll; rename one to ensure proper link
3361 order.
3362
3363 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3364 typo
3365 (generate_edata): fix typo
3366
3367 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3368
3369 * scripttempl/crisaout.sc (ENTRY): Now __start.
3370 (.text): Add default setting for __start.
3371 Remove CONSTRUCTORS handling.
3372 (/DISCARD/): Add .gnu.warning.*.
3373 * emulparams/crislinux.sh (ENTRY): Now __start.
3374 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3375 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3376 (ENTRY): Now __start.
3377 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3378 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3379
3380 2000-09-29 Kazu Hirata <kazu@hxi.com>
3381
3382 * deffile.h: Fix formatting.
3383 * ld.h: Likewise.
3384 * ldcref.c: Likewise.
3385 * ldctor.c: Likewise.
3386 * ldctor.h: Likewise.
3387 * ldemul.c: Likewise.
3388 * ldemul.h: Likewise.
3389 * ldexp.c: Likewise.
3390 * ldexp.h: Likewise.
3391 * ldfile.c: Likewise.
3392 * ldfile.h: Likewise.
3393 * ldlang.c: Likewise.
3394 * ldlang.h: Likewise.
3395 * lexsup.c: Likewise.
3396 * mri.c: Likewise.
3397 * pe-dll.c: Likewise.
3398
3399 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3400
3401 * pe-dll.c (process_def_file): Uninitialized data wasn't
3402 exported with --export-all-symbols switch.
3403
3404 2000-09-28 DJ Delorie <dj@redhat.com>
3405
3406 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3407 noname work properly.
3408
3409 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3410
3411 * ld.texinfo (HPPA ELF32): New section.
3412
3413 * emultempl/hppaelf.em (group_size): New.
3414 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3415 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3416 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3417 options to prevent abbreviations matching.
3418 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3419 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3420
3421 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3422
3423 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3424 on the m68*-*-elf target. Make it support COFF input objects.
3425
3426 2000-09-21 Kazu Hirata <kazu@hxi.com>
3427
3428 * ldmain.c: Fix formatting.
3429 * ldmisc.c: Likewise.
3430 * ldver.c: Likewise.
3431 * ldwrite.c: Likewise.
3432
3433 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3434
3435 * ldwrite.c (clone_section): Silence gcc warnings.
3436
3437 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3438
3439 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3440 out of memory failure.
3441
3442 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3443 (clone_section): Handle out of memory failures. Rename var to
3444 avoid c++ reserved word.
3445
3446 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3447
3448 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3449 stub_name param to stub_sec_name.
3450 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3451
3452 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3453
3454 * emultempl/m68kelf.em: New file.
3455 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3456 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3457 * Makefile.in: Regenerate.
3458
3459 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3460
3461 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3462 only as needed.
3463
3464 2000-09-13 Nick Clifton <nickc@redhat.com>
3465
3466 * ldmain.c (multiple_definition): Disable relaxation if
3467 multiple symbol definitions are encountered - otherwise the
3468 linker could abort with an assertion failure.
3469
3470 2000-09-10 Nick Clifton <nickc@redhat.com>
3471
3472 * mri.c: Fix formatting.
3473
3474 2000-09-07 H.J. Lu <hjl@gnu.org>
3475
3476 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3477 * configure: Rebuild.
3478
3479 2000-09-07 H.J. Lu <hjl@gnu.org>
3480
3481 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3482 * Makefile.in: Rebuild.
3483
3484 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3485
3486 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3487 broken list handling. Create __start_SECNAME and __stop_SECNAME
3488 when no place-holder. Add some comments. Test both SEC_CODE and
3489 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3490 Handle case where no output section statement created.
3491
3492 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3493
3494 * configure.tgt (sh-*-linux*): Added.
3495 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3496 * Makefile.in: Rebuilt.
3497 * emulparams/shelf_linux.sh: New file.
3498 * emulparams/shlelf_linux.sh: New file.
3499
3500 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3501
3502 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3503 try shuffling sections when the orphan happens to be the place
3504 holder. Keep count of unique section names generated so we speed
3505 the search for a new name.
3506
3507 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3508
3509 * configure: Rebuilt with new libtool.m4.
3510
3511 2000-09-05 Nick Clifton <nickc@redhat.com>
3512
3513 * Makefile.in: Regenerate.
3514 * aclocal.m4: Regenerate.
3515 * configure: Regenerate.
3516 * config.in: Regenerate.
3517 * po/ld.pot: Regenerate.
3518
3519 * ldint.texinfo: Remove CVS revision marker - it foils local
3520 comparisons.
3521
3522 * emultempl/ticoff.em: Remove extraneous comma.
3523
3524 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3525
3526 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3527 to stub section flags.
3528 (hppa_for_each_input_file_wrapper): New.
3529 (hppa_lang_for_each_input_file): New.
3530 (lang_for_each_input_file): Define to call above.
3531 (multi_subspace): New.
3532 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3533 (PARSE_AND_LIST_PROLOGUE): Define.
3534 (PARSE_AND_LIST_LONGOPTS): Define.
3535 (PARSE_AND_LIST_OPTIONS): Define.
3536 (PARSE_AND_LIST_ARGS_CASES): Define.
3537 (hppaelf_finish): Call elf32_hppa_set_gp.
3538 (hppaelf_set_output_arch): Remove.
3539 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3540
3541 * emulparams/hppalinux.sh (ELFSIZE): Define.
3542 (MACHINE): Define.
3543 (OTHER_READONLY_SECTIONS): Define.
3544 (DATA_PLT): Define.
3545 (GENERATE_SHLIB_SCRIPT): Define.
3546
3547 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3548 to const throughout. Change `void *' to `PTR' throughout.
3549 (lang_memory_default): Function is local to file, add `static'.
3550
3551 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3552 (ehppalinux.c): Likewise.
3553 (earmelf.c): Likewise.
3554 (earmelf_linux.c): Likewise.
3555 (earmelf_linux26.c): Likewise.
3556 * Makefile.in: Regenerate.
3557
3558 * ld.h (ld_config_type): Add unique_orphan_sections.
3559 * lexsup.c (OPTION_UNIQUE): Define.
3560 (ld_options): Add "--unique".
3561 (parse_args): Handle it.
3562 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3563 search for an existing output section if unique_orphan_sections is
3564 set. Make use of bfd_get_unique_section_name rather than
3565 duplicating code here.
3566 * ld.texinfo: Describe --unique.
3567
3568 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3569 optional arg to split-by-file.
3570 (parse_args): Handle them.
3571 * ld.texinfo: Update description of these options.
3572 * ldwrite.c (clone_section): Pass in the section name. Replace
3573 local code with bfd_get_unique_section_name.
3574 (split_sections): Tidy code and comments. Use a list traversal
3575 more appropriate to the list construction. Handle cooked section
3576 sizes. Split when split_by_reloc reached rather than exceeded.
3577 Track section size and split when split_by_file reached. Fix
3578 link_order_tail (even though it's not used).
3579 (ldwrite): Modify condition for calling split_sections to suit
3580 changed split_by_reloc and split_by_file.
3581 * ldmain.c (main): Init config.split_by_reloc and
3582 config.split_by_file to -1.
3583 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3584 Change split_by_file to bfd_size_type.
3585
3586 2000-09-02 Nick Clifton <nickc@redhat.com>
3587
3588 * configure.in: Increase version number to 2.10.91.
3589 * NEWS: Mention new ability to support removal of duplicate DWARF2
3590 debug information.
3591 * configure: Regenerate.
3592 * aclocal.m4: Regenerate.
3593 * config.in: Regenerate.
3594
3595 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3596
3597 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3598 sections.
3599 * scripttempl/elf32avr.sc: Ditto.
3600 * scripttempl/elfd10v.sc: Ditto.
3601 * scripttempl/elfd30v.sc: Ditto.
3602 * scripttempl/elfi370.sc: Ditto.
3603 * scripttempl/elfm68hc11.sc: Ditto.
3604 * scripttempl/elfm68hc12.sc: Ditto.
3605 * scripttempl/elfi386beos.sc: Ditto.
3606 * scripttempl/v850.sc: Ditto.
3607
3608 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3609
3610 * acinclude.m4: Include libtool and gettext macros from the
3611 top level.
3612 * aclocal.m4, configure: Rebuilt.
3613
3614 2000-08-25 Nick Clifton <nickc@redhat.com>
3615
3616 * ldlang.c (open_output): When choosing the target for a
3617 particular endianness, do nothing if the target is not
3618 supported.
3619
3620 2000-08-25 H.J. Lu <hjl@gnu.org>
3621
3622 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3623 check -rpath nor LD_RUN_PATH for cross link.
3624 * ld.texinfo: Document the change.
3625
3626 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3627
3628 * NEWS: Mention support for CRIS.
3629
3630 2000-08-23 H.J. Lu <hjl@gnu.org>
3631
3632 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3633 the current runpath list from bfd_elf_get_runpath_list ()
3634 before search.
3635
3636 2000-08-22 H.J. Lu <hjl@gnu.org>
3637
3638 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3639 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3640 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3641 trace_file_tries is non-zero.
3642 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3643 if trace_file_tries is non-zero.
3644
3645 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3646 * NEWS: Mention it.
3647
3648 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3649
3650 * NEWS: Mention i860 support.
3651
3652 2000-08-14 Andreas Schwab <schwab@suse.de>
3653
3654 * scripttempl/elf.sc: Fix last change to use correct comment
3655 syntax.
3656
3657 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3658
3659 * scripttempl/elf.sc: Add a comment giving the correspondence
3660 between sections, per-datum sections, and linkonce sections. Make
3661 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3662 .sbss2.
3663
3664 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3665
3666 * emulparams/elf32_i860.sh: New file.
3667 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3668 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3669 (eelf32_i860.c): New rule.
3670 * Makefile.in: Regenerate.
3671
3672 2000-08-10 Nick Clifton <nickc@cygnus.com>
3673
3674 * emulparams/mipspe.sh (ENTRY): Add definition.
3675
3676 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3677
3678 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3679 in error message.
3680
3681 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3682
3683 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3684 the final size of .bss section.
3685 * scripttempl/elfm68hc12.sc: Likewise.
3686
3687 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3688
3689 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3690 gld${EMULATION_NAME}_parse_args for consistency. Combine
3691 lastoptind and prevoptind vars, and keep track of last optind.
3692 (gld_${EMULATION_NAME}_list_options): Rename to
3693 gld${EMULATION_NAME}_list_options.
3694
3695 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3696
3697 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3698 (i586-sco-sysv5uw7.1.0).
3699
3700 2000-07-27 H.J. Lu <hjl@gnu.org>
3701
3702 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3703 (PARSE_AND_LIST_PROLOGUE): New.
3704 (PARSE_AND_LIST_LONGOPTS): Likewise.
3705 (PARSE_AND_LIST_OPTIONS): Likewise.
3706 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3707 (PARSE_AND_LIST_EPILOGUE): Likewise.
3708
3709 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3710
3711 * emultempl/armelf.em: Elide functions common to elf32.em,
3712 ie. most of the file.
3713 (arm_elf_after_open): New. Do arm specific things then call
3714 gld${EMULATION_NAME}_after_open.
3715 (arm_elf_before_allocation): New. Call
3716 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3717 (PARSE_AND_LIST_PROLOGUE): Define.
3718 (PARSE_AND_LIST_SHORTOPTS): Define.
3719 (PARSE_AND_LIST_LONGOPTS): Define.
3720 (PARSE_AND_LIST_OPTIONS): Define.
3721 (PARSE_AND_LIST_ARGS_CASES): Define.
3722 (LDEMUL_AFTER_OPEN): Define.
3723 (LDEMUL_BEFORE_ALLOCATION): Define.
3724 (LDEMUL_BEFORE_PARSE): Define.
3725 (LDEMUL_FINISH): Define.
3726
3727 * emultempl/hppaelf.em: Similarly zap most of this file.
3728 (hppaelf_add_stub_section): Prototype.
3729 (hppaelf_layaout_sections_again): Prototype.
3730 (hook_in_stub): Prototype.
3731 (LDEMUL_SET_OUTPUT_ARCH): Define.
3732 (LDEMUL_FINISH): Define.
3733 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3734
3735 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3736 (EXTRA_EM_FILE): New.
3737 * emulparams/armelf_linux.sh: Likewise.
3738 * emulparams/armelf_linux26.sh: Likewise.
3739 * emulparams/hppalinux.sh: Likewise.
3740 * emulparams/hppaelf.sh: Likewise.
3741 (NOP): Define.
3742
3743 * emultempl/elf32.em: Fix formatting.
3744 (EXTRA_EM_FILE): Source it.
3745 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3746 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3747 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3748 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3749 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3750 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3751 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3752 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3753 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3754 allow functions in this file to be overridden.
3755 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3756
3757 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3758
3759 * emultempl/elf32.em: Reorganize file.
3760
3761 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3762
3763 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3764 specific option to fit 64-bit executable in the lower
3765 31-bit address range. This is done by changing start
3766 address of .interp (the very first section of executable)
3767 and then setting EF_ALPHA_32BIT elf header flag.
3768
3769 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3770
3771 * emultempl/m68kcoff.em: New file.
3772 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3773 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3774 generic.em.
3775 * Makefile.in: Regenerate.
3776
3777 2000-07-20 H.J. Lu <hjl@gnu.org>
3778
3779 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3780 and "disable-new-dtags" to stop getopt from treating -d/-e as
3781 abbreviations for these options.
3782
3783 2000-07-20 H.J. Lu <hjl@gnu.org>
3784
3785 * ld.texinfo: Add documentation for --disable-new-dtags and
3786 --enable-new-dtags.
3787
3788 * ldmain.c (main): Initialize link_info.new_dtags to false.
3789
3790 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3791 --disable-new-dtags and --enable-new-dtags.
3792 (gld_${EMULATION_NAME}_list_options): Likewise.
3793
3794 2000-07-05 Kenneth Block <krblock@computer.org>
3795
3796 * lexsup.c: Add optional style to demangle switch
3797 * ld.texinfo: Document optional style to demangle switch.
3798
3799 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3800
3801 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3802 ecrislinux.o.
3803 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3804 Regenerate dependencies.
3805 * Makefile.in: Rebuild.
3806 * configure.tgt (cris-*-*): New target.
3807 * emulparams/crisaout.sh, emulparams/criself.sh,
3808 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3809 * po/POTFILES.in, po/ld.pot: Regenerate.
3810
3811 2000-07-20 H.J. Lu <hjl@gnu.org>
3812
3813 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3814 Print out ignored -z options.
3815
3816 2000-07-19 H.J. Lu <hjl@gnu.org>
3817
3818 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3819 (PARSE_AND_LIST_PROLOGUE): New.
3820 (PARSE_AND_LIST_LONGOPTS): Likewise.
3821 (PARSE_AND_LIST_OPTIONS): Likewise.
3822 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3823
3824 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3825
3826 * lexsup.c (ld_options): Comment out 'z'.
3827 (parse_args): Likewise.
3828
3829 * emultempl/elf32.em: Include "elf/common.h".
3830 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3831 options.
3832 (gld_${EMULATION_NAME}_list_options): Likewise.
3833
3834 * ld.texinfo: Add documentation for the recognized -z options.
3835
3836 2000-07-19 H.J. Lu <hjl@gnu.org>
3837
3838 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3839 bfd_elf_set_dt_needed_soname ().
3840
3841 2000-07-18 DJ Delorie <dj@cygnus.com>
3842
3843 * pe-dll.c (pe_dll_id_target): check object target name also
3844
3845 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3846
3847 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3848 ${INIT_END} if relocating.
3849 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3850
3851 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3852
3853 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3854 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3855 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3856 errors introduced by the old dynamic lib search order.
3857
3858 2000-07-17 DJ Delorie <dj@cygnus.com>
3859
3860 * pe-dll.c (process_def_file): auto-export data items also
3861 (pe_process_import_defs): also see if _imp_ form needed
3862
3863 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3864
3865 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3866 for dll import libraries
3867
3868 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3869
3870 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3871 gcc 2.95.2 and later.
3872
3873 2000-07-11 Kazu Hirata <kazu@hxi.com>
3874
3875 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3876 message.
3877
3878 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3879
3880 * ldemul.h (struct lang_input_statement_struct): Remove forward
3881 declaration.
3882 (struct search_dirs): Likewise.
3883 * ldfile.h (struct lang_input_statement_struct): Likewise.
3884 Protect file from multiple inclusion.
3885 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3886 declaration from macro to file scope.
3887
3888 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3889 * ldgram.y: Likewise here.
3890 * ldlang.c: And here.
3891 * ldmain.c: And here.
3892 * mpw-elfmips.c: And here.
3893 * mpw-eppcmac.c: And here.
3894 * emultempl/aix.em: And here.
3895 * emultempl/armcoff.em: And here.
3896 * emultempl/armelf.em: And here.
3897 * emultempl/armelf_oabi.em: And here.
3898 * emultempl/beos.em: And here.
3899 * emultempl/elf32.em: And here.
3900 * emultempl/hppaelf.em: And here.
3901 * emultempl/linux.em: And here.
3902 * emultempl/lnk960.em: And here.
3903 * emultempl/pe.em: And here.
3904 * emultempl/sunos.em: And here.
3905 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3906 * mpw-idtmips.c: Ditto.
3907 * emultempl/generic.em: Ditto.
3908 * emultempl/gld960.em: Ditto.
3909 * emultempl/gld960c.em: Ditto.
3910 * emultempl/mipsecoff.em: Ditto.
3911 * emultempl/ticoff.em: Ditto.
3912 * emultempl/vanilla.em: Ditto.
3913
3914 * pe-dll.c: Include ldfile.h
3915 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3916
3917 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3918 arguments to bfd_elf32_size_dynamic_sections call.
3919 (gldelf32ebmip_place_orphan): Add missing arguments to
3920 lang_leave_output_section_statement call.
3921
3922 2000-07-10 H.J. Lu <hjl@gnu.org>
3923
3924 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3925 DLL_SUPPORT.
3926 (strhash): Likewise.
3927 (compute_dll_image_base): Likewise.
3928 (pe_undef_found_sym): Likewise.
3929 (pe_undef_cdecl_match): Likewise.
3930 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3931 argument "arch" with ATTRIBUTE_UNUSED.
3932
3933 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3934
3935 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3936
3937 From Ryan Bradetich <rbradetich@uswest.net>
3938 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3939
3940 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3941
3942 Changes to create multiple linker stubs, positioned immediately
3943 before the section where they are required.
3944 * emultempl/hppaelf.em: Include elf32-hppa.h.
3945 (stub_sec, file_chain): Delete.
3946 (hppaelf_create_output_section_statements): Don't make a stub
3947 section here.
3948 (hook_stub_info): New struct.
3949 (hook_in_stub): New function.
3950 (hppaelf_add_stub_section): New function.
3951 (hppaelf_finish): Do nothing for relocateable links. Modify the
3952 call to elf32_hppa_size_stubs. Move code for updating section
3953 layout from here...
3954 (hppaelf_layaout_sections_again): ..to here, a new function.
3955
3956 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3957 broken list handling. Pass in a pointer to the list.
3958 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3959 for above changes.
3960 (hppaelf_before_parse): Prototype.
3961 (hppaelf_set_output_arch): Prototype.
3962 (hppaelf_create_output_section_statements): Prototype.
3963 (hppaelf_delete_padding_statements): Prototype.
3964 (hppaelf_finish): Prototype.
3965
3966 Merge from elf32.em
3967 * emultempl/hppaelf.em: Include ctype.h.
3968 (struct orphan_save): New.
3969 (gld${EMULATION_NAME}_place_orphan): New.
3970 (output_rel_find): New.
3971 (hppaelf_get_script): Update from elf32.em.
3972 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3973 Change emulation_name field to "${EMULATION_NAME}". Add
3974 gld${EMULATION_NAME}_place_orphan.
3975
3976 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3977 ehppalinux.o, sort it. Regenerate dependencies.
3978 (ehppalinux.c): Depend on hppaelf.em
3979 * Makefile.in: Regenerate.
3980
3981 * configure.tgt: targ_emul=hppalinux for hppa*linux
3982
3983 * emulparams/hppalinux.sh: New.
3984 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3985
3986 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3987
3988 * lexsup.c (parse_args): Copy section name.
3989
3990 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3991
3992 * emultempl/pe.em: institute the following search order for
3993 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3994 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3995 static lib (libfoo.a) if none of the above are found.
3996
3997 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3998
3999 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4000 (longopts): New --{enable,disable}-auto-image-base options.
4001 (gld_${EMULATION_NAME}_list_options): Document.
4002 (gld_${EMULATION_NAME}_parse): Handle.
4003 (strhash): New static function.
4004 (compute_dll_image_base): New static function.
4005 (gld_${EMULATION_NAME}_set_symbols): Use.
4006
4007 2000-07-05 DJ Delorie <dj@redhat.com>
4008
4009 * MAINTAINERS: new
4010
4011 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4012
4013 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4014 * emulparams/elf32btsmip.sh: New file.
4015 * Makefile.am: Add traditional mips target.
4016 * Makefile.in: Rebuild.
4017
4018 2000-07-01 H.J. Lu <hjl@gnu.org>
4019
4020 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4021 automake to use YLWRAP.
4022 * Makefile.in: Rebuild.
4023
4024 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4025
4026 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4027 (CLEANFILES): Add DEPA.
4028 * Makefile.in: Regenerate.
4029
4030 2000-06-30 Timothy Wall <twall@ppc>
4031
4032 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4033 the page in the upper octet of the address.
4034
4035 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4036
4037 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4038
4039 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4040
4041 * NEWS: arm-elf does --gc-sections too.
4042
4043 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4044
4045 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4046 find one.
4047 * Makefile.in: Regenerate.
4048
4049 2000-06-21 H.J. Lu <hjl@gnu.org>
4050
4051 * Makefile.am: Rebuild dependency.
4052 * Makefile.in: Rebuild.
4053
4054 2000-06-20 H.J. Lu <hjl@gnu.org>
4055
4056 * Makefile.am: Rebuild dependency.
4057 * Makefile.in: Rebuild.
4058
4059 2000-06-20 Timothy Wall <twall@cygnus.com>
4060
4061 * scripttempl/tic54xcoff.sc: New.
4062 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4063 * gen-doc.texi: Add flag for TI COFF.
4064 * ld.texinfo: Add documentation for TI COFF handling switches.
4065 * emultempl/ticoff.em: New. TI COFF handling.
4066 * configure.tgt: Add tic54x target.
4067 * Makefile.am: Add tic54x target.
4068 * Makefile.in: Ditto.
4069
4070 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4071
4072 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4073 checking for backslashes.
4074
4075 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4076
4077 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4078
4079 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4080
4081 * NEWS: Update list of targets supporting --gc-sections.
4082
4083 * scripttempl/elf.sc: KEEP .eh_frame contents.
4084 * scripttempl/elfd30v.sc: Same here.
4085
4086 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4087
4088 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4089 and m68hc11 (elf).
4090 * Makefile.in: Rebuild.
4091 * configure.tgt: Recognize m68hc12 and m68hc11.
4092 * scripttempl/elfm68hc12.sc: New file.
4093 * emulparams/m68hc12elfb: New emulation.
4094 * emulparams/m68hc12elf: New emulation.
4095 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4096 (includes a memory.x script to define the ROM and RAM banks).
4097 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4098 New configuration files for support of Motorola 68hc11
4099
4100 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4101
4102 * ldmain.c (main): Only change SEC_READONLY for final link.
4103
4104 2000-06-13 H.J. Lu <hjl@gnu.org>
4105
4106 * configure: Regenerate.
4107
4108 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4109
4110 * configure.in (VERSION): Update to show this is the CVS mainline.
4111
4112 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4113
4114 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4115 input objects to be ECOFF.
4116 (check_sections): einfo takes %B, not %P, to print a BFD name.
4117
4118 2000-06-05 Michael Matz <matz@ifh.de>
4119
4120 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4121 version scripts.
4122
4123 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4124
4125 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4126
4127 * emulparams/avr1200.sh (STACK): Define as 0.
4128 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4129 * emulparams/avr4433.sh (STACK): Likewise.
4130 * emulparams/avr44x4.sh (STACK): Likewise.
4131 * emulparams/avr85xx.sh (STACK): Likewise.
4132 * emulparams/avrmega103.sh (STACK): Likewise.
4133 * emulparams/avrmega161.sh (STACK): Likewise.
4134 * emulparams/avrmega603.sh (STACK): Likewise.
4135 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4136 (__stack): Define from ${STACK} for main().
4137
4138 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4139
4140 * Makefile.am: Update dependencies with "make dep-am"
4141 * Makefile.in: Regenerate.
4142
4143 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4144
4145 * ldmain.c: Include filenames.h.
4146 (set_scripts_dir): Support backslashes in program name.
4147
4148 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4149
4150 * ldmain.c (main): When deciding if ".text" section should be
4151 read-only, don't forget to reset SEC_READONLY because it
4152 could be already set.
4153
4154 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4155
4156 * ld.1: Add documentation for new command line option:
4157 --section-start <sectionname>=<sectionorg>
4158 This is a generic version of -Ttext etc. which accepts
4159 any section name as a parameter instead of just text/data/
4160 bss.
4161 * ld.texinfo: More docs.
4162 * NEWS: More docs.
4163 * lexsup.c: (parse_args): Recognize new command line option.
4164 (ld_options): Add new option.
4165
4166 2000-05-18 H.J. Lu <hjl@gnu.org>
4167
4168 * lexsup.c (parse_args): `i' == `r', not `q'.
4169
4170 2000-05-18 Jeffrey A Law (law@cygnus.com)
4171
4172 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4173
4174 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4175 Rick Gorton <gorton@scrugs.lkg.dec.com>
4176
4177 Add support for '-q' == '--emit-relocs' switch.
4178 * ldmain.c (main): Default to false.
4179 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4180 * NEWS: Describe the emitrelocations switch.
4181 * ld.texinfo: Describe the emitrelocations switch.
4182
4183 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4184
4185 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4186 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4187 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4188 link options.
4189
4190 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4191
4192 * lexsup.c (parse_args): Update the year in the copyright notice.
4193
4194 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4195
4196 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4197 Replace defines with those from intl/libgettext.h to quieten gcc
4198 warnings.
4199
4200 2000-05-10 H.J. Lu <hjl@gnu.org>
4201
4202 * ldlang.c (open_input_bfds): Don't load the same file within
4203 a group again if the whole archive has been loaded already.
4204
4205 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4206
4207 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4208 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4209 strtoul.
4210
4211 2000-05-01 Jim Wilson <wilson@cygnus.com>
4212
4213 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4214
4215 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4216 host "ia64-*-linux-gnu*".
4217
4218 2000-04-29 Andreas Jaeger <aj@suse.de>
4219
4220 * ld.h: Correctly check GCC version.
4221
4222 2000-04-25 Jeffrey A Law (law@cygnus.com)
4223
4224 * Makefile.am: Add PA64 support. Add missing dependencies for
4225 PA32 elf support.
4226 * Makefile.in: Rebuilt.
4227 * configure.tgt: Add PA64 support (currently disabled).
4228
4229 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4230
4231 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4232 (output_rel_find): New function.
4233 (hold_section, hold_use): Delete.
4234 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4235 hold_interp): Make local to place_orphan.
4236 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4237 rather than place_section to find possible previous use of orphan.
4238 Similarly find the place-holder output sections. Use returned
4239 value from lang_enter_output_section_statement rather than calling
4240 lang_output_section_statement_lookup.
4241 * emultempl/armelf.em: Same here.
4242 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4243
4244 * ldlang.c (lang_enter_output_section_statement): Return output
4245 section statement.
4246 * ldlang.h (lang_enter_output_section_statement): Change
4247 declaration too.
4248
4249 * ldlang.h (lang_output_section_statement): Export it.
4250 * ldlang.c (lang_output_section_statement): Ditto.
4251
4252 2000-04-24 Nick Clifton <nickc@cygnus.com>
4253
4254 * ld.texinfo (Output Section Data): Add note that section data
4255 commands cannot appear outside of section directives.
4256
4257 2000-04-2 Matthew Green <mrg@cygnus.com>
4258
4259 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4260
4261 2000-04-21 Richard Henderson <rth@cygnus.com>
4262 David Mosberger <davidm@hpl.hp.com>
4263
4264 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4265 (eelf64_ia64.c): New rule.
4266 * Makefile.in: Rebuild.
4267 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4268 * emulparams/elf64_ia64.sh: New file.
4269
4270 2000-04-21 Richard Henderson <rth@cygnus.com>
4271
4272 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4273
4274 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4275
4276 * dep-in.sed: Match space at start of file name, not at end.
4277
4278 2000-04-18 H.J. Lu <hjl@gnu.org>
4279
4280 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4281 lang_leave_output_section_statement () after calling
4282 lang_enter_output_section_statement ().
4283 * emultempl/armelf.em: Likewise.
4284
4285 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4286
4287 * emultempl/elf32.em (struct orphan_save): Add section field.
4288 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4289 better order, and place first orphan section as we did before the
4290 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4291 Don't call make_bfd_section here, let wild_doit do the job for us.
4292 Don't build a statement list when we'll only throw it away.
4293 * emultempl/armelf.em: Ditto.
4294 * emultempl/pe.em: Similarly.
4295
4296 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4297
4298 * scripttempl/elfppc.sc: Remove.
4299 * emulparams/elf32ppc.sh: Use elf.sc.
4300 * emulparams/elf32lppc.sh: Use elf.sc.
4301 * emulparams/elf32ppclinux.sh: Use elf.sc.
4302 * emulparams/elf32ppcsim.sh: New file.
4303 * emulparams/elf32lppcsim.sh: New file.
4304 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4305 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4306 * Makefile.in: Regenerate.
4307 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4308
4309 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4310
4311 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4312 ~SEC_ALLOC sections too. Init start address of debug sections.
4313 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4314 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4315 Also set all relocateable section start addresses.
4316
4317 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4318
4319 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4320 Add new BSS_PLT variable for when .plt need not be contained in
4321 the file. Move _etext so that it is also after .fini, and provide
4322 both etext and _etext with a leading underscore. Mark the start
4323 and end of .sbss.
4324
4325 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4326
4327 * emultempl/elf32.em (struct orphan_save): New.
4328 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4329 hold_interp): Make them struct orphan_save.
4330 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4331 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4332 the end of the relevant section list. Also add associated section
4333 statements to the end of any previous orphan statements.
4334 * emultempl/armelf.em: Similarly.
4335 * emultempl/pe.em: Similarly.
4336
4337 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4338
4339 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4340
4341 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4342
4343 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4344 --enable-build-warnings option.
4345 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4346 * Makefile.in, configure: Re-generate.
4347
4348 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4349
4350 * po/ld.pot: Regenerate.
4351
4352 * lexsup.c (help): Restore translated part of bug string.
4353
4354 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4355 (DEP): Quote when passing vars to sub-make. Add warning message
4356 to end.
4357 (DEP1): Rewrite for "gcc -MM".
4358 (CLEANFILES): Add DEP2.
4359 Update dependencies.
4360 * Makefile.in: Regenerate.
4361
4362 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4363
4364 * ld.h: #include "bin-bugs.h"
4365 * lexsup.c (help): Use REPORT_BUGS_TO.
4366
4367 2000-03-27 Denis Chertykov <denisc@overta.ru>
4368
4369 * configure.tgt (avr-*-*): New target support.
4370 * Makefile.am: Likewise.
4371 * scripttempl/elf32avr.sc: New script file.
4372 * emulparams/avr1200.sh: New file.
4373 * emulparams/avr23xx.sh: New file.
4374 * emulparams/avr4433.sh New file.
4375 * emulparams/avr44x4.sh New file.
4376 * emulparams/avr85xx.sh New file.
4377 * emulparams/avrmega103.sh New file.
4378 * emulparams/avrmega161.sh New file.
4379 * emulparams/avrmega603.sh New file.
4380 * Makefile.in: Regenerate.
4381
4382 2000-03-09 Andreas Jaeger <aj@suse.de>
4383
4384 * Makefile.am (check-DEJAGNU): Also unset LANG.
4385 * Makefile.in: Rebuild.
4386
4387 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4388
4389 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4390 archive.
4391
4392 2000-03-02 H.J. Lu <hjl@gnu.org>
4393
4394 * emulparams/elf32mcore.sh: Include "getopt.h".
4395
4396 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4397
4398 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4399
4400 2000-03-01 H.J. Lu <hjl@gnu.org>
4401
4402 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4403 * emulparams/shpe.sh: Likewise.
4404
4405 2000-03-01 Nick Clifton <nickc@cygnus.com>
4406
4407 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4408 to unused parameters.
4409
4410 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4411 functions only used by DLL code.
4412 (_place_orphan): Initialise 'dollar'.
4413
4414 2000-03-01 H.J. Lu <hjl@gnu.org>
4415
4416 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4417 indicate if the undefined symbol is a fatal error or not.
4418 Don't delete the output file if "fatal" is false.
4419
4420 2000-02-29 H.J. Lu <hjl@gnu.org>
4421
4422 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4423 Set LC_COLLATE and LC_ALL to null and export them. It is for
4424 sort which expects the C locale.
4425 Add $(LIBS) to all $(HOSTING_LIBS).
4426 * Makefile.in: Rebuild.
4427
4428 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4429
4430 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4431 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4432 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4433 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4434 find_potential_libraries.
4435
4436 2000-02-28 Jim Blandy <jimb@redhat.com>
4437
4438 * ldgram.y (exclude_name_list): Don't require a comma to separate
4439 list entries; the lexer considers commas to be valid part of a
4440 filename, so in something like `foo, bar' the comma is considered
4441 part of the first filename, `foo,'.
4442 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4443
4444 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4445
4446 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4447 host "i[3456]86-*-freebsdelf*".
4448
4449 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4450
4451 * scripttempl/i386go32.sc: Move misplaced semicolons.
4452
4453 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4454
4455 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4456 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4457 (eelf64hppa.c, ehppaelf.c): Remove targets.
4458 * Makefile.in: Rebuild.
4459
4460 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4461
4462 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4463 GNU/Linux/sparc, but keep the default as 32.
4464
4465 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4466 it default if sparcv9 or sparc64.
4467
4468 2000-02-24 Nick Clifton <nickc@cygnus.com>
4469
4470 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4471 * Makefile.in: Regenerate.
4472 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4473
4474 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4475 find_potential_libraries.
4476 * ldemul.c (ldemul_find_potential_libraries): New function.
4477
4478 * ldfile.c (ldfile_open_file_search): Allow function to be
4479 exported.
4480 (ldfile_open_file): Call ldemul_find_potential_libraries.
4481 * ldfile.h: Add prototype for ldfile_open_file_search.
4482
4483 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4484
4485 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4486 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4487
4488 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4489 (gld_X_find_potential_libraries): New function. Search for
4490 libraries called "*.lib".
4491
4492 * scripttempl/pe.sc: Add .pdata section.
4493
4494 2000-02-23 Richard Henderson <rth@cygnus.com>
4495
4496 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4497 Add and use memory regions.
4498
4499 2000-02-23 Linas Vepstas (linas@linas.org)
4500
4501 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4502
4503 * Makefile.am: Add support for Linux/IBM 370.
4504 * configure.tgt: Likewise.
4505
4506 * Makefile.in: Regenerate.
4507
4508 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4509
4510 * ldlang.c (print_input_section, print_data_statement,
4511 print_reloc_statement, print_padding_statement, insert_pad,
4512 size_input_section, lang_check_section_addresses,
4513 lang_size_sections, lang_do_assignments, lang_set_startof,
4514 lang_one_common): Change `opb' to unsigned.
4515 (lang_do_assignments): Also change `size' to unsigned.
4516
4517 2000-02-16 Richard Henderson <rth@cygnus.com>
4518
4519 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4520
4521 2000-02-16 Timothy Wall <twall@cygnus.com>
4522
4523 * mri.c (mri_draw_tree): Add default LMA region argument to call
4524 to lang_leave_output_section_statement.
4525 * ldlang.h: Update prototypes with LMA region arguments.
4526 * ldlang.c (lang_size_sections): Encapsulate region bounds
4527 checking in os_check_region call.
4528 (os_check_region): New function.
4529 (lang_output_section_statement_lookup): Initialize lma_region.
4530 (lang_leave_output_section_statement): Add LMA region argument.
4531 (lang_leave_overlay): Ditto.
4532 * ldgram.y: Handle LMA region syntax.
4533 * ld.texinfo (Output Section Description): Describe LMA region usage.
4534 * emultempl/armelf.em (gld$place_orphan): Add default value for
4535 lma region in call to lang_leave_output_section_statement.
4536 * emultempl/elf32.em (gld$place_orphan): Add default value for
4537 lma region in call to lang_leave_output_section_statement.
4538 * emultempl/pe.em (gld$place_orphan): Add default value for
4539 lma region in call to lang_leave_output_section_statement.
4540
4541
4542 2000-02-04 Timothy Wall <twall@redhat.com>
4543
4544 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4545 octets when calculating section end addresses.
4546
4547 2000-02-04 Timothy Wall <twall@redhat.com>
4548
4549 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4550
4551 2000-02-03 Timothy Wall <twall@redhat.com>
4552
4553 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4554 octet count.
4555 * ldlang.c (print_input_section, print_data_statement,
4556 print_reloc_statement, print_padding_statement): Print target
4557 address values and section sizes as bytes, not octets.
4558 (insert_pad) Calculate padding size in octets, and adjust "dot"
4559 by bytes.
4560 (size_input_section) Always adjust "dot" by bytes, not octets.
4561 (lang_check_section_addresses, lang_do_assignments) Adjust
4562 "dot" by bytes, not octets. Use the larger of the directive size
4563 or octets_per_byte for the number of octets actually allocated in
4564 the output section.
4565 (lang_set_startof) Make sure STARTOF returns a target address.
4566 (lang_one_common) Record size changes in octets.
4567 (lang_abs_symbol_at_end_of) Section end symbol's value is
4568 recorded in target bytes.
4569 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4570 to be clear about behavior when an octet is smaller than one byte.
4571
4572 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4573
4574 * ldcref.c (output_cref): Don't pass message strings to printf
4575 as format arg.
4576 Update copyright.
4577
4578 * ldmisc.c (vfinfo): Same here.
4579 Update copyright.
4580
4581 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4582
4583 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4584 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4585 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4586 Add missing NULL initialisers, and comments.
4587
4588 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4589
4590 2000-01-21 Nick Clifton <nickc@cygnus.com>
4591
4592 * ldlang.c (lang_size_sections): Fix typo in comment.
4593
4594 2000-01-18 H.J. Lu <hjl@gnu.org>
4595
4596 * ldlang.c (lang_size_sections): Also update the current
4597 address of a region if the SEC_NEVER_LOAD bit is not set.
4598
4599 2000-01-10 Philip Blundell <pb@futuretv.com>
4600
4601 * configure.tgt (arm*-*-conix*): New target.
4602
4603 2000-01-07 Nick Clifton <nickc@cygnus.com>
4604
4605 * ld.texinfo (Options): Remind users to preceed linker command
4606 line switches with -Wl, (or whatever is appropriate) if it is
4607 being invoked by a comnpiler driver program.
4608 Fix description of the behaviour of the -n command line switch.
4609
4610 2000-01-05 Catherine Moore <clm@cygnus.com>
4611
4612 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4613 (name_list): New.
4614 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4615 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4616 (exclude_name_list): New.
4617 ldlang.c (walk_wild_section): Support list of excluded files.
4618 (print_wild_statement): Likewise.
4619 (lang_add_wild): Likewise.
4620 * ldlang.h (lang_wild_statement_type): Likewise.
4621 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4622
4623 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4624
4625 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4626 (process_def_file): Use.
4627 (pe_dll_compat_implib): New variable.
4628 (make_one): Use.
4629
4630 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4631 pe_dll_compat_implib.
4632
4633 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4634 compat-implib options.
4635 (gld_${EMULATION_NAME}_list_options): List new options.
4636 (gld_${EMULATION_NAME}_parse_args): Handle.
4637
4638 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4639 dll.
4640
4641 * deffilep.y (opt_name): Allow "." in name.
4642
4643 For older changes see ChangeLog-9899
4644 \f
4645 Local Variables:
4646 mode: change-log
4647 left-margin: 8
4648 fill-column: 74
4649 version-control: never
4650 End:
This page took 0.122003 seconds and 5 git commands to generate.