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