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