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