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