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