source: trunk/src/binutils/ld/ChangeLog@ 1036

Last change on this file since 1036 was 610, checked in by bird, 22 years ago

This commit was generated by cvs2svn to compensate for changes in r609,
which included commits to RCS files with non-trunk default branches.

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