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