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