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