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