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