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