OSDN Git Service

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