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