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