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