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