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