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