Add 'n' in order to prevent "-n" from being taken as an abbreviation for
[platform/upstream/binutils.git] / ld / ChangeLog
1 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
2
3         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
4         to prevent "-n" from being taken as an abbreviation for
5         "--no-pipeline-knowledge".
6
7 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
8
9         * ldlang.c (lang_size_sections_1): Don't complain about
10         SEC_NEVER_LOAD sections having no memory region specified.
11
12         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
13
14 2002-04-07  matthew green  <mrg@redhat.com>
15
16         * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
17
18 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
19
20         * dep-in.sed: Cope with absolute paths.
21         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
22         Run "make dep-am".
23         * Makefile.in: Regenerate.
24
25 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
26
27         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
28
29 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
30
31         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
32         is smaller than maximum, round dot up to common page boundary.
33
34 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
35
36         * configure.host: Set up for generic hosts first, then tweak as
37         necessary in more specific targets.
38         (HOSTING_LIBS): Include libgcc_eh.a if found.
39
40 2002-03-23  Andreas Jaeger  <aj@suse.de>
41
42         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
43
44 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
45
46         * Makefile.am: Run "make dep-am".
47         * Makefile.in: Regenerate.
48
49 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
50
51         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
52
53 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
54
55         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
56         add the symbol to the linker hash table immediately.
57         (lang_place_undefineds): Split symbol creation out..
58         (insert_undefined): ..to here.
59
60 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
61
62         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
63         the contents of the buffer returned from basename function will are
64         getting overwritten while still being used.
65
66 Mon Mar 18 17:38:39 CET 2002  Jan Hubicka  <jh@suse.cz>
67                               Andreas Jaeger  <aj@suse.de>
68                               Andreas Schwab  <schwab@suse.de>
69
70         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
71         * elf_x86_64.sh (ARCH): Set to i386:x86-64
72         set libraries to default to lib64 paths.
73
74 2002-03-18  Tom Rix  <trix@redhat.com>
75
76         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
77         * configure.tgt : Same.
78         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
79         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
80         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
81         emulation parameters for better -b32, -b64 support.
82         * emulparms/aixrs6.sh : Same.
83         * emulparms/ppcmacos.sh : Same.
84         * emultempl/aix.em (choose_target) : Use new emulation parameters
85         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
86         * Makefile.in : Regenerate.
87
88 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
89
90         * po/fr.po: Updated version.
91
92 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
93
94         * ldmain.c (main): Move .text readonly flag fudges from here..
95         * ldlang.c (lang_process): ..to here.
96
97 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
98
99         * ldlang.c (lang_check): Remove the word size check added in last
100         change.  Treat emitrelocations case as for relocatable links.
101
102 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
103
104         * po/fr.po: Updated version.
105
106 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
107
108         * ldlang.c (lang_check): Do relocatable link checks first, so that
109         warn_mismatch can't override.  Check compatible and word size too.
110
111 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
112
113         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
114
115 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
116
117         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
118         DATA_SEGMENT_ALIGN.
119
120 2002-03-04  H.J. Lu <hjl@gnu.org>
121
122         * scripttempl/elf.sc: Put .preinit_array, .init_array and
123         .fini_array in the data segment.
124
125 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
126
127         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
128
129 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
130
131         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
132         .init_array, and .fini_array.
133
134 2002-02-20  Andreas Schwab  <schwab@suse.de>
135
136         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
137         .IA64_unwind* in a relocatable link.
138
139 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
140
141         * NEWS: Mark 2.12 branch.
142
143 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
144
145         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
146         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
147
148 2002-02-18  Tom Rix  <trix@redhat.com>
149
150         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
151         (gld*_before_allocation): Same.
152         (gld*_create_output_section_statements): Generate
153         __rtinit if run time linking.  Add librtl.a to the link.
154         (gld*_read_file): Clean.
155
156 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
157
158         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
159
160 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
161
162         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
163         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
164         and eelf64alpha_fbsd.
165         * Makefile.in: Regenerate.
166         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
167         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
168         use a FreeBSD-specific emulation rather than the psABI one.
169         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
170         for all FreeBSD ELF systems.
171         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
172         emulation.
173         * emulparams/elf32ppc_fbsd.sh: Likewise.
174         * emulparams/elf64_ia64_fbsd.sh: Likewise.
175         * emulparams/elf64_sparc_fbsd.sh: Likewise.
176         * emulparams/elf64alpha_fbsd.sh: Likewise.
177         * emulparams/elf_i386_fbsd.sh: Likewise.
178         * emulparams/elf_x86_64_fbsd.sh: Likewise.
179
180 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
181
182         * po/tr.po: Updated version.
183
184 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
185
186         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
187         (FILL): Likewise.
188
189 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
190
191         * emultempl/mmo.em (mmo_after_open): Don't call
192         _bfd_mmix_check_all_relocs when producing ELF output.
193
194 2002-02-15  Richard Henderson  <rth@redhat.com>
195
196         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
197         definition.  Emit a unop+nop pair.
198
199 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
200
201         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
202         for presence of .MMIX.reg_contents.linker_allocated before early
203         exit.
204
205         * NEWS: Mention support for MMIX.
206
207 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
208
209         Support arbitrary length fill patterns.
210         * ld.texinfo (Output Section Fill): Describe fill expressions.
211         (FILL): Refer to the above.
212         * ldexp.h (etree_value_type): Add "str" field.
213         (union etree_union): Add "str" to "value" struct.
214         (exp_bigintop): Declare.
215         (exp_get_fill): Declare.
216         * ldexp.c: Include "safe-ctype.h".
217         (exp_intop): Set value.str to NULL.
218         (exp_bigintop): New function.
219         (new_rel): Pass in "str", and set new.str from it.
220         (new_rel_from_section): Set new.str to NULL.
221         (fold_name): Adjust calls to new_rel.
222         (exp_fold_tree): Likewise.
223         (exp_get_fill): New function.
224         * ldgram.y (struct big_int bigint, fill_type *fill): New.
225         (INT): Returns a "bigint".  Adjust all code handling INTs.
226         (fill_opt): Returns a "fill".
227         (fill_exp): Split out of fill_opt, use for FILL.
228         * ldlang.h (struct _fill_type): New.
229         (fill_type): Move typedef to ldexp.h.
230         (lang_output_section_statement_type): "fill" is now a pointer.
231         (lang_fill_statement_type): Likewise.
232         (lang_padding_statement_type): Likewise.
233         (lang_add_fill): Now takes a "fill_type *" param.
234         (lang_leave_output_section_statement): Likewise.
235         (lang_do_assignments): Likewise.
236         (lang_size_sections): Likewise.
237         (lang_leave_overlay_section): Likewise.
238         (lang_leave_overlay): Likewise.
239         * ldlang.c: Include ldgram.h after ldexp.h.
240         (lang_output_section_statement_lookup): Adjust for fill_type change.
241         (print_fill_statement): Likewise.
242         (print_padding_statement): Likewise.
243         (insert_pad): Now takes a "fill_type *" arg.
244         (size_input_section): Likewise.
245         (lang_size_sections_1): Likewise.
246         (lang_size_sections): Likewise.
247         (lang_do_assignments): Likewise.
248         (lang_add_fill): Likewise.
249         (lang_leave_output_section_statement): Likewise.
250         (lang_leave_overlay_section): Likewise.
251         (lang_leave_overlay): Likewise.
252         Adjust all callers of the above function.
253         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
254         starting with "0X" as well as "0x".  Return bigint.str for hex
255         numbers starting with "0x" or "0X", zero bigint.str otherwise.
256         Always use base 16 for numbers starting with "$".
257         * ldmain.c: Include ldgram.h after ldexp.h.
258         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
259         of bfd_fill_link_order.
260         * pe-dll.c: Adjust lang_do_assignments calls.
261         * emultempl/elf32.em: Likewise.
262         * emultempl/hppaelf.em: Likewise.
263         * emultempl/ppc64elf.em: Likewise.
264         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
265         lang_add_assignment call.
266         * emultempl/pe.em: Likewise.
267
268 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
269
270         * ld.texinfo (VERSION scripts):  Symbol names are globbing patterns.
271         * ldgram.y (lang_new_vers_regex):  Rename to lang_new_vers_pattern;
272         the pattern in question is not a regexp.
273         * ldlang.c:  Likewise.
274         * ldlang.h:  Likewise.
275         * ldlex.l (V_IDENTIFIER):  Allow '[', ']', '-', '!', and '^' also.
276
277 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
278
279         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
280         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
281         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
282         * ldexp.c (exp_data_seg): New variable.
283         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
284         (fold_binary): Handle DATA_SEGMENT_ALIGN.
285         (exp_fold_tree): Handle DATA_SEGMENT_END.
286         Pass allocation_done when recursing instead of hardcoding
287         lang_allocating_phase_enum.
288         * ldexp.h (exp_data_seg): New.
289         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
290         (lang_size_sections): New.
291         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
292         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
293         if COMMONPAGESIZE is defined.
294         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
295         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
296         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
297         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
298         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
299         libraries only.
300
301 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
302
303         * Makefile.in: Regenerate.
304
305 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
306
307         * lexsup.c: Remove strtoul declaration.
308
309 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
310
311         * ldmain.c: Add prototype for main ().
312         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
313         * emultempl/lnk960.em (lnk960_choose_target): Function should
314         take two arguments.
315
316 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
317
318         * ldlang.c (entry_section): New initialised variable.
319         (lang_finish): Use it.
320         * ldlang.h (entry_section): Declare.
321         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
322         entry_section to ".opd".
323
324 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
325
326         * ld.texinfo (Options): Add back in -nostdlib documentation,
327         which had been inadvertently removed.
328
329 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
330
331         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
332         register section vma to a sane value after emitting error.  Make
333         fatal conditions cause program exit when emitting message.
334
335 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
336
337         * configure.tgt: Add or32-*-rtems target.
338
339 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
340
341         Contribute sh64-elf.
342         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
343         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
344         in OTHER_RELOCATABLE_SECTIONS.
345         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
346         * emulparams/shelf32.sh (STACK_ADDR): Define.
347         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
348         (OTHER_SECTIONS): this.  Removed stack settings.
349         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
350         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
351         2001-03-12  DJ Delorie  <dj@redhat.com>
352         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
353         relaxing if any shmedia or mixed sections are found.
354         2001-03-07  DJ Delorie  <dj@redhat.com>
355         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
356         einfo.  Gracefully decline to output to non-elf formats.
357         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
358         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
359         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
360         * emulparams/shelf32.sh: Ditto.
361         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
362         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
363         comment.
364         2001-01-10  Ben Elliston  <bje@redhat.com>
365         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
366         non-portable shell constructs. From Hans-Peter Nilsson.
367         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
368         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
369         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
370         dependencies to the shell script include chain.
371         * Makefile.in: Regenerate.
372         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
373         * emultempl/sh64elf.em: Update and tweak comments.
374         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
375         make a .cranges section SEC_IN_MEMORY.
376         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
377         * emultempl/sh64elf.em
378         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
379         .cranges section found to be necessary; continue and set stored
380         section contents flags for sections with non-mixed contents.
381         Use a struct sh64_section_data container and sh64_elf_section_data
382         to store contents-type flags.
383         Remove unused update of "isec".
384         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
385         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
386         access contents-type flags.  Assert that the associated container
387         is initialized.  Use that container, not elf_gp_size, to hold size
388         of linker-generated cranges contents.
389         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
390         * emultempl/sh64elf.em
391         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
392         there's already a .cranges section.  When section flag difference
393         is found, don't NULL-check cranges a second time.  Tweak comments.
394         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
395         merging, not max size, as size of ld-generated .cranges contents.
396         Don't set ELF section flags in output section.  When checking for
397         needed .cranges descriptors, don't use a variable; compare
398         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
399         comments.
400         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
401         * emultempl/sh64elf.em: New file.
402         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
403         * Makefile.in: Regenerate.
404         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
405         (OTHER_RELOCATING_SECTIONS): Ditto.
406         (EXTRA_EM_FILE): New, set to sh64elf if not set.
407         * emulparams/shlelf32.sh: Stub out all settings except
408         OUTPUT_FORMAT.  Source shelf32.sh.
409         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
410         OTHER_RELOCATING_SECTIONS.
411         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
412         * emulparams/shlelf64.sh: Stub out all settings except
413         OUTPUT_FORMAT.  Source shelf64.sh.
414         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
415         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
416         .cranges section.
417         (DATA_START_SYMBOLS): Define, provide ___data.
418         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
419         for consecutive .data section.
420         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
421         section after .data section.
422         * emulparams/shlelf64.sh: Ditto.
423         * emulparams/shelf32.sh: Ditto.
424         (ALIGNMENT): Define to 8.
425         * emulparams/shelf32.sh: Ditto.
426         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
427         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
428         built-in linker scripts.
429         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
430         * emulparams/shlelf64.sh: New.
431         * emulparams/shelf64.sh: New.
432         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
433         targ_extra_emuls.
434         * Makefile.am: Add support for shlelf64 and shelf64.
435         * Makefile.in: Regenerate.
436         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
437         * configure.tgt (sh64-*-elf*): Add shelf as default.
438         Add shlelf to targ_extra_emuls.
439         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
440         * emulparams/shelf32.sh: New file.
441         * emulparams/shlelf32.sh: New file.
442         * Makefile.am: Add support for shlelf32 and shelf32.
443         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
444         * Makefile.in: Regenerate.
445
446 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
447
448         * ldlang.c (lang_reset_memory_regions): Rename from
449         reset_memory_regions.  Change all callers.  Make public.
450         * ldlang.h (lang_reset_memory_regions): Prototype.
451         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
452         lang_reset_memory_regions before lang_size_sections.
453         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
454         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
455
456 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
457
458         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
459         arithmetic when checking for too many global registers.
460
461 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
462
463         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
464         (ehppanbsd.c): New rule.
465         * Makefile.in: Regenerate.
466         * configure.tgt (hppa*-*-netbsd*): New target.
467         * emulparams/hppalinux.sh: Add comment to check other files
468         that source this file it is modified, and list which
469         files that do.
470         * emulparams/hppanbsd.sh: New file.
471
472 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
473
474         * scripttempl/xstormy16.sc: Don't allocate extra space for the
475         stack.
476
477 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
478
479         Support on-demand global register allocation from
480         R_MMIX_BASE_PLUS_OFFSET relocs.
481         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
482         mmix_set_reg_section_vma.  Call
483         _bfd_mmix_finalize_linker_allocated_gregs.
484         (mmix_before_allocation): New function.
485         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
486         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
487         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
488         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
489         before .MMIX.reg_contents.
490         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
491         (mmo_after_open): New function.
492         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
493         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
494         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
495
496 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
497
498         * emulparams/or32.sh: New file.
499         * emulparams/or32elf.sh: New file.
500         * scripttempl/or32.sc: New file.
501         * configure.tgt : Add support for or32.
502         * configure: Regenerate
503         * Makefile.am: Add support for or32.
504         * Makefile.in: Regenerate.
505         * NEWS: Mention support for or32.
506         * po/ld.pot: Regenerate.
507
508 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
509             Mitch Lichtenberg  <mpl@broadcom.com>
510
511         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
512         * emultempl/mipself.em: New file to handle MIPS ELF embedded
513         reloc creation (ld --embedded-relocs).
514
515 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
516
517         * configure: Regenerated.
518
519 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
520
521         * Makefile.am (install): Depend on install-info.
522         * Makefile.in: Regenerate.
523
524 2002-01-26  Christian Rose  <menthos@menthos.com>
525
526         * ldmain.c (main): Use full sentences to ease translation.
527
528 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
529
530         * po/fr.po: Updated version.
531
532 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
533
534         * po/es.po: Updated version.
535
536 2002-01-25  Andreas Jaeger  <aj@suse.de>
537
538         * ldlex.l (yy_input): Correct error check.
539
540 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
541
542         * ldmisc.c (demangle): Put back dots when string not demangled.
543
544 2002-01-22  Richard Henderson  <rth@redhat.com>
545
546         * emulparams/elf64alpha.sh (NOP): Use unop.
547
548 2002-01-21  Andreas Jaeger  <aj@suse.de>
549
550         * ldlex.l: Use fread instead of read.
551
552 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
553
554         * configure.tgt (ia64-*-netbsd*): New target.
555
556 2002-01-21  H.J. Lu <hjl@gnu.org>
557
558         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
559         0.
560         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
561
562 2002-01-18  Andreas Jaeger  <aj@suse.de>
563
564         * ldver.c (ldversion): Update year.
565
566 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
567
568         * po/ld.pot: Regenerate.
569
570 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
571
572         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
573         * Makefile.in: Regenerate.
574         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
575         * emultempl/ppc64elf.em: New file.
576
577 2002-01-15  DJ Delorie  <dj@redhat.com>
578
579         * scripttempl/pe.sc: Add support for constructor priorities.
580
581 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
582
583         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
584         * emulparams/avr23xx.sh: Likewise.
585         * emulparams/avr4433.sh: Likewise.
586         * emulparams/avr44x4.sh: Likewise.
587         * emulparams/avr85xx.sh: Likewise.
588         * emulparams/avrmega103.sh: Likewise.
589         * emulparams/avrmega161.sh: Likewise.
590         * emulparams/avrmega603.sh: Likewise.
591         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
592
593 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
594
595         * ldlang.c (walk_wild_section): Exclude object file if enclosing
596         archive is excluded.
597
598 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
599
600         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
601         (eshelf_nbsd.c): New rule.
602         (eshlelf_nbsd.c): New rule.
603         * Makefile.in: Regenerate.
604         * configure.tgt (sh*le-*-netbsdelf*): New target.
605         (sh*-*-netbsdelf*): New target.
606         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
607         * ld/emulparams/shelf_nbsd.sh: New emulation.
608         * ld/emulparams/shlelf_nbsd.sh: New emulation.
609
610 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
611
612         * po/es.po: New file: Spanish translation.
613         * configure.in (ALL_LINGUAS): Add es.
614         * configure: Regenerate.
615
616 2002-01-06  John Marshall  <jmarshall@acm.org>
617
618         * ld.texinfo: Note that --emit-relocs is currently only
619         implemented for ELF.
620
621 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
622
623         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
624         of bfd_section_list_remove and bfd_section_list_insert macros.
625         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
626         * emultempl/mmo.em (mmo_place_orphan): Likewise.
627
628 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
629
630         * configure.tgt (x86_64-*-netbsd*): New target.
631
632 2001-12-21  Tom Rix  <trix@redhat.com>
633
634         (gld*_create_output_section_statements): New function.
635         For -binitfini support.
636         * emultempl/aix.em (gld*_before_parse): Fix comment.
637         * emultempl/aix.em (gld*_parse_args): Fix comment.
638
639 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
640
641         * configure.tgt (mips*-dec-netbsd*): Delete alias for
642         mips*el-*-netbsd*.
643         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
644
645         * configure.tgt (arm-*-netbsdelf*): Add target.
646         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
647         * emulparams/armelf_nbsd.sh: Added.
648         * Makefile.am: Add rules for earmelf_nbsd.
649         * Makefile.in: Regenerate.
650
651 2001-12-19  Andreas Jaeger  <aj@suse.de>,
652             Susanne Oberhauser <froh@suse.de>
653
654         * configure.host: Add rules for x86_64-*linux-gnu.  Change
655         s390x-linux entry to use gcc to report configuration, replace gcc
656         with $CC in s390-linux
657
658 2001-12-19  Andreas Jaeger  <aj@suse.de>
659
660         * ld.texinfo (VERSION): Fix markup.
661
662 2001-12-18  matthew green  <mrg@eterna.com.au>
663
664         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
665         (m68kelfnbsd.c): New rule.
666         * Makefile.in: Regenerate.
667         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
668         (m68*-*-netbsd*4k*): .. this.
669         (m68*-*-netbsdelf*): New target.
670         (m68*-*-netbsd*): Also include ELF support.
671         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
672         * emulparams/m68kelfnbsd.sh: New emulation.
673
674 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
675
676         * ldgram.y (vers_node): Support anonymous version tags.
677         * ldlang.c (lang_register_vers_node): Ensure anonymous version
678         tag is not defined together with non-anonymous versions.
679         * ld.texinfo: Document it.
680
681 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
682
683         * po/tr.po: New file: Turkish translation.
684         * configure.in (ALL_LINGUAS): Add tr.
685         * configure: Regenerate.
686
687 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
688
689         * Makefile.am: Add rules for eelf64alpha_nbsd.
690         * Makefile.in: Regenerate.
691         * configure.tgt (alpha*-*-netbsd*): Set
692         targ_emul to elf64alpha_nbsd.
693         * emulparams/elf64alpha_nbsd.sh: Added.
694
695 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
696
697         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
698         section_tail when fiddling with section list.
699         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
700         broken into separate strings to make translation easier.
701         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
702         fiddling with section list.
703         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
704
705 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
706
707         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
708
709 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
710
711         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
712
713 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
714
715         * emultempl/elf32.em (finish): Supply output_bfd
716         to bfd_elf*_discard_info.
717         (OPTION_EH_FRAME_HDR): Define.
718         (longopts): Add --eh-frame-hdr.
719         (parse_args): Handle it.
720         (list_options): Add --eh-frame-hdr to help.
721         * emultempl/hppaelf.em (finish): Supply output_bfd
722         to bfd_elf*_discard_info.
723         * scripttempl/elf.sc (.eh_frame_hdr): Add.
724
725 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
726
727         * lexsup.c (parse_args): Don't pass shortopts to second call to
728         getopt functions.  Restore optind rather than decrementing before
729         second call.  Remove errind as it now duplicates last_optind.
730
731 2001-12-11  Christopher Faylor  <cgf@redhat.com>
732
733         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
734
735 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
736             Richard Henderson  <rth@redhat.com>
737
738         * Makefile.am: Add support for xstormy16.
739         * configure.tgt: Add support for xstormy16.
740         * Makefile.in: Regenerate.
741         * emulparams/elf32xstormy16.sh: New file.
742         * scripttempl/xstormy16.sc: New file.
743
744 2001-10-01  Christopher Faylor <cgf@cygnus.com>
745
746         * Makefile.in (LIB_PATH): Make configurable.
747         (GENSCRIPTS): Set LIB_PATH in environment.
748         * configure.in: Substitute LIB_PATH.
749         * configure: Regenerate.
750         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
751         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
752
753 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
754
755         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
756         describing the -N option so that it is easier to translate into
757         foreign languages.
758
759 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
760
761         * emultempl/pe.em (..._list_options): Replace multiple fprintf
762         statements describing a single option with a single, newline
763         escaped fprintf.  This allows better translation into other
764         languages.
765
766         * ldmain.c (add_archive_element): Combine multiple strings
767         into a single string to permit better translation into other
768         languages.
769
770 2001-12-05  Tom Rix  <trix@redhat.com>
771
772         * Makefile.am: Remove eaixppc64.
773         * Makefile.in: Regenerate.
774
775 2001-12-04  Tom Rix  <trix@redhat.com>
776
777         * emultempl/aix.em (choose_target): Change default target to
778         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
779         warning.
780         (gld*_read_file):  Fix typo.
781         (change_symbol_mode): Add prototype.
782         (is_syscall): Same.
783
784         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
785         * emulparams/aixrs6.sh : Same.
786         * emulparams/ppcmacos.sh : Same.
787         * emulparams/aixppc64.sh : Delete file.
788         * emultempl/aix.em : Formatting changes.
789
790 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
791
792         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
793         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
794         __Sbss.
795         (OTHER_END_SYMBOLS): Fix formatting.
796         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
797         (OTHER_END_SYMBOLS): Fix formatting.
798
799 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
800
801         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
802
803 2001-12-02  Tom Rix  <trix@redhat.com>
804
805         * configure.tgt : Remove eaixppc64 emulations.
806         * Makefile.in : Remove eaixppc64.c
807         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
808         (ldemul_default_target): Same.
809         * emultempl/gld960.em (gld960_choose_target):  Same.
810         * emultempl/gld960c.em (gld960_choose_target):  Same.
811         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
812         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
813         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
814         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
815         * emultempl/aix.em (choose_target): New function.  Handle emulation of
816         -b32 and -b64.
817
818 2001-11-27  H.J. Lu <hjl@gnu.org>
819
820         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
821         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
822         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
823         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
824         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
825         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
826         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
827         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
828
829         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
830         is not empty.
831         (SDATA): Likewise.
832         (REL_SDATA): Likewise.
833         (REL_SBSS): Likewise.
834         (REL_SDATA2): Likewise.
835         (REL_SBSS2): Likewise.
836         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
837         (SDATA2): Likewise.
838
839 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
840
841         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
842         destructor in rom.
843         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
844
845 2001-11-22  H.J. Lu  <hjl@gnu.org>
846
847         * Makefile.in: Regenerated with automake based on automake
848         1.4-8 in RedHat 7.1.
849
850 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
851
852         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
853         (config.status): Delete rule.
854         Add extra dependencies to cover sourced emulparams files.
855         * Makefile.in: Regenerate.
856
857         * scripttempl/elf.sc: Order <section>, <section>.* and
858         corresponding linkonce sections as seen in input files.
859         Formatting fixes.  Zero vma of all sections if not relocating.
860         (STACK): Define and insert if STACK_ADDR defined.
861         (OTHER_RELOCATING_SECTIONS): Delete.
862         (OTHER_END_SYMBOLS): Define.
863         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
864         (OTHER_READWRITE_SECTIONS): Likewise.
865         (OTHER_GOT_SECTIONS): Likewise.
866         (OTHER_SDATA_SECTIONS): Likewise.
867         (OTHER_BSS_SECTIONS): Likewise.
868         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
869         (OTHER_READWRITE_SECTIONS): Likewise.
870         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
871         (OTHER_READWRITE_SECTIONS): Likewise
872
873         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
874         (STACK_ADDR): Define.
875         * emulparams/armelf_oabi.sh: As for armelf.sh.
876         * emulparams/elf32mcore.sh: As for armelf.sh.
877         * emulparams/h8300elf.sh: As for armelf.sh.
878         * emulparams/mn10200.sh: As for armelf.sh.
879         * emulparams/shelf.sh: As for armelf.sh.
880
881         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
882         (OTHER_END_SYMBOLS): Define.
883         * emulparams/m32relf.sh: As for elf32fr30.sh.
884         * emulparams/h8300helf.sh: As for elf32fr30.sh.
885         * emulparams/h8300self.sh: As for elf32fr30.sh.
886
887         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
888         defines with RELOCATING test.
889         (OTHER_SDATA_SECTIONS): Likewise.
890         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
891         (OTHER_END_SYMBOLS): ..this.
892         * emulparams/crislinux.sh: As for criself.sh.
893
894         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
895         if not relocating.
896         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
897         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
898         normal and linkonce sections as seen in input files.
899         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
900         (TEXT_DYNAMIC): Likewise.
901         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
902         (OTHER_SDATA_SECTIONS): Likewise.
903         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
904         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
905         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
906         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
907         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
908         (OTHER_PLT_RELOC_SECTIONS): Likewise.
909         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
910         sections as seen in input files.
911         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
912         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
913         if not relocating.
914         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
915         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
916         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
917         (OTHER_SECTIONS): Instead, use this..
918         (OTHER_END_SYMBOLS): ..and this.
919
920         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
921         * emulparams/elf32bsmip.sh: Likewise.
922         * emulparams/elf32btsmip.sh: Likewise.
923         * emulparams/elf32ebmip.sh: Likewise.
924         * emulparams/elf32lmip.sh: Likewise.
925         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
926         * emulparams/elf32lsmip.sh: Likewise.
927         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
928         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
929         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
930         * emulparams/elf64btsmip.sh: Likewise.
931         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
932         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
933         * emulparams/elf32ppclinux.sh: Likewise.
934         * emulparams/elf32ppcsim.sh: Likewise.
935         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
936         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
937         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
938         * emulparams/h8300self.sh: Likewise.
939         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
940         * emulparams/sh.sh: Comment.
941         * emulparams/shl.sh: Source sh.sh, remove duplicates.
942         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
943         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
944
945 2001-11-21  David Heine <dlheine@tensilica.com>
946             Alan Modra  <amodra@bigpond.net.au>
947
948         * ldlang.c (map_input_to_output_sections): Replace "break"
949         accidentally removed with 2001-08-03 change.
950         (lang_gc_sections_1): Likewise.
951
952 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
953
954         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
955
956 2001-11-20  Angela Marie Thomas <angela@redhat.com>
957
958         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
959         of false when calling lang_size_sections.
960         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
961
962 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
963
964         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
965         function when LDEMUL_FINISH isn't set to the same name.  Don't
966         call ${LDEMUL_FINISH}.
967         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
968         * emultempl/armelf.em (arm_elf_finish): Call
969         gld${EMULATION_NAME}_finish.
970         * emultempl/hppaelf.em (hppaelf_finish): Rename to
971         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
972         hppaelf_layout_sections_again if necessary.
973         (need_laying_out): New var.
974         (hppaelf_layaout_sections_again): Rename to
975         hppaelf_layout_sections_again.  Clear need_laying_out.
976         (PARSE_AND_LIST_OPTIONS): Format text.
977
978 2001-11-14  H.J. Lu  <hjl@gnu.org>
979
980         * emultempl/armelf.em (arm_elf_finish): Renamed from
981         gld${EMULATION_NAME}_finish.
982         (LDEMUL_FINISH): Set to arm_elf_finish.
983
984 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
985
986         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
987         (struct ld_emulation_xfer_struct): Use it.
988
989 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
990
991         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
992         additional symbols referenced by newer crt0.o files from HP.
993
994 2001-11-12  Anthony Green  <green@redhat.com>
995
996         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
997
998 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
999
1000         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1001         * Makefile.in: Regenerate.
1002
1003 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1004
1005         * ld.texinfo: Use @command for commands, @option for options.
1006         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1007         the page man title.
1008         * Makefile.in: Rebuild.
1009
1010 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
1011
1012         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1013         Add support for targets.
1014
1015 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
1016
1017         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1018         * configure: Regernate.
1019         * po/fr.po: New file.
1020         * po/sv.po: New file.
1021
1022 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
1023
1024         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1025         as little endian default and to support big endian.
1026
1027 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
1028
1029         * ld.texinfo (Options): Document new option, -nostdlib.
1030         * lexsup.c (OPTION_NOSTDLIB): New definition.
1031         (ld_options): Add entry for "nostdlib".
1032         (parse_args): Handle OPTIONS_NOSTDLIB.
1033         * ldfile.c (ldfile_add_library_path): Don't add directories
1034         to the search path if they weren't specified on the command line
1035         and -nostdlib was specified.
1036         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1037
1038 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
1039
1040         * lexsup.c (parse_args): Prevent infinite parsing loop when
1041         "-rpath.a" is specified on the command line.
1042         Replace calls to fprintf with calls to einfo.
1043
1044 2001-10-31  John Marshall  <jmarshall@acm.org>
1045
1046         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1047         appear only once across all the linker scripts involved in a link
1048         invocation no longer applies.  Make the documentation reflect
1049         that.
1050
1051 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
1052
1053         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1054         targets.
1055         (sh-*-linux*): Added targ_extra_libpath.
1056
1057 2001-10-31  David Heine  <dlheine@tensilica.com>
1058
1059         * ldlang.c (lang_size_sections): Keep a valid output_offset field
1060         for padding statements.
1061
1062 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
1063
1064         * configure.tgt (mmix-*-*): New target.
1065         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1066         Add dependencies to match.
1067         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1068         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1069         scripttempl/mmo.sc: New files.
1070         * gen-doc.texi: @set MMIX.
1071         * ld.texinfo: Ditto.
1072         [MMIX] Add MMIX node.
1073         * Makefile.in: Regenerate.
1074
1075 2001-10-29  Kazu Hirata  <kazu@hxi.com>
1076
1077         * ldlang.c: Fix a comment typo.
1078
1079 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
1080
1081         * configure.host: Move alpha*-*-linux-gnu* entry to generic
1082         entries, and match *-*-linux*.
1083
1084 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
1085
1086         * ldgram.y (mri_script_command): Surround processing of INCLUDE
1087         with ldlex_script, ldlex_popstate.
1088         (ifile_p1): Likewise.
1089         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
1090         correct slot.
1091         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
1092         to 1.  Don't BEGIN(SCRIPT).
1093         (lex_redirect): Similarly.
1094         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1095
1096 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
1097
1098         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1099         __EH_FRAME_END__ and accept eh frames into data section.
1100         Add ctor and dtor sections.
1101
1102 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1103
1104         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1105         (auto-export): Fix indentation.
1106
1107 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1108
1109         * pe-dll.c (autofilter_objectlist):  Add startup objects
1110         for profiling.
1111         (auto-export): Constify char * p.
1112         Extract file basename and use strcmp rather than ststr
1113         for object lookup.
1114
1115 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
1116
1117         * ldmain.c (get_emulation): Improve comment about the handling
1118         of -mipsN options.
1119
1120 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
1121
1122         * po/POTFILES.in: Regenerate.
1123
1124 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
1125
1126         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1127         -z nocopyreloc and -z nocombreloc usage strings.
1128
1129 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
1130
1131         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1132         in usage.
1133
1134 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
1135
1136         * scripttempl/armaout.sc: Place .bss section after end of aligned
1137         data section to match behaviour of aout code in constructrion of
1138         header.
1139
1140 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1141
1142         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1143         startup files for mingw32 dlls to list.
1144
1145 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
1146
1147         * emultempl/elf32.em: Fix shell 'if' usage for portability.
1148
1149 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
1150
1151         * configure.tgt (targ): Add arm9e-*-elf.
1152
1153 2001-10-05  H.J. Lu  <hjl@gnu.org>
1154
1155         * genscripts.sh: Fix a typo in the last change.
1156
1157 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
1158
1159         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1160         -z nocombreloc in usage.
1161
1162 2001-10-03  Jim Blandy  <jimb@redhat.com>
1163
1164         * genscripts.sh: Include a comment at the top of each generated
1165         script, explaining its purpose.
1166
1167 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
1168
1169         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1170         * NEWS: Mention -z nocopyreloc.
1171         * ld.texinfo (Options): Describe nocopyreloc.
1172
1173 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
1174
1175         * configure: Regenerate.
1176
1177 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
1178
1179         * ldver.h (ld_program_version): Remove declaration.
1180         * lexsup.c (parse_args): Move printing of copyright message..
1181         * ldver.c (ldversion): .. to here.
1182         Use BFD_VERSION_STRING in place of BFD_VERSION.
1183         (ld_program_version): Remove.
1184         * Makefile.am (Makefile): Depend on bfd/configure.in.
1185         Run "make dep-am".
1186         * Makefile.in: Regenerate.
1187
1188 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
1189
1190         * Makefile.am: Update dependencies with "make dep-am".
1191         * Makefile.in: Regenerate.
1192
1193 2001-09-29  John Reiser  <jreiser@BitWagon.com>
1194
1195         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1196         * lexsup.c: Add --no-define-common commandline option.
1197         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1198         * ldlex.l: Likewise.
1199         * ld.h: Add command_line.inhibit_common_definition.
1200         * ldmain.c (main): Initialize.
1201         * ld.texinfo: Document.
1202
1203 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
1204
1205         * ldmisc.c (USE_STDARG): Remove.
1206         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1207         (einfo): Likewise.
1208         (minfo): Likewise.
1209         (lfinfo): Likewise.
1210
1211         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1212         declarations.  Update copyright.
1213
1214 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
1215
1216         * pe-dll.c: Remove obsoleted declaration of
1217         pe_get_data_import_dll_name.
1218         (pe_create_import_fixup): Fix thinko.
1219
1220         * ld.texinfo(enable-auto-import): Clarify the explanation.
1221
1222 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
1223
1224         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1225         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1226         DLL_SUPPORT controlled code.
1227
1228 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
1229
1230         * emultempl/pe.em(pe_data_import_dll): Make static.
1231         (pe_get_data_import_dll_name): New accessor function.
1232         * pe-dll.c(pe_create_import_fixup): call
1233         pe_get_data_import_dll_name() from pe.em, instead of
1234         directly accessing pe_data_import_dll variable from pe.em.
1235
1236 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
1237
1238         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1239         (def_file_add_directive): Use ISSPACE instead of isspace.
1240         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1241         isdigit/isxdigit/isalpha/isalnum.
1242         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1243         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1244         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1245         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1246         isalnum.
1247         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1248         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1249         isupper/tolower.
1250         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1251         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1252         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1253         (ctor_prio): Use ISDIGIT instead of isdigit.
1254         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1255         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1256         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1257         isupper/tolower.
1258         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1259         (stricpy): Use TOLOWER instead of isupper/tolower.
1260         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1261         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1262         (lex_warn_invalid): Use ISPRINT instead of isprint.
1263         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1264         (main): For gettext, also set the LC_CTYPE locate facet.
1265         (add_keepsyms_file): Use ISSPACE instead of isspace.
1266         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1267         (is_num, parse_args): Use ISDIGIT instead of isdigit.
1268         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1269         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1270         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1271         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1272         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1273         (quoteput): Use ISSPACE instead of isspace.
1274         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1275         instead of isalnum.
1276
1277 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
1278
1279         * deffilep.y (def_stash_module): Constify "name" param.
1280
1281         * pe-dll.c: Replace CONST with const throughout.
1282         (quick_symbol): Constify "n1", "n2", "n3" params.
1283         (make_singleton_name_thunk): Constify "import" param.  Make
1284         "buffer_len" a size_t.
1285         (make_import_fixup_entry): Constify "name", "fixup_name",
1286         "dll_symname" params.
1287         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
1288         (pe_get32): Likewise.
1289         (pe_implied_import_dll): Likewise.
1290
1291         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1292         (sort_by_section_name): Likewise.
1293
1294         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1295         (make_import_fixup): Cast printf arg, rel->address to long rather
1296         than int.
1297         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1298
1299 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
1300
1301         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1302         defines BufferSize.  Increase buffer size by one.
1303
1304 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
1305
1306         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1307
1308 2001-09-14  Kevin Lo <kevlo@openbsd.org>
1309
1310         * configure.tgt: Add arm-openbsd target.
1311
1312 2001-09-12  H.J. Lu  <hjl@gnu.org>
1313
1314         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1315         eelf64lppc.o to ...
1316         (ALL_64_EMULATIONS): Here.
1317         * Makefile.in: Regenerated.
1318
1319 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
1320
1321         * emultempl/pe.em(make_import_fixup): change signature to
1322         take asection as well as arelec; we need this for proper
1323         error reporting.  Only call pe_create_import_fixup() if
1324         there is no attempt to add a constant addend to the reloc;
1325         otherwise, report error condition.
1326         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1327         since final argument is a pointer to make_import_fixup().
1328         Change call to cb() to match make_import_fixup() signature.
1329         (make_import_fixup_mark): make buffer_len unsigned.
1330         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1331
1332 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
1333
1334         * ld.texinfo: add verbose documentation for auto-import
1335         direct-addressing workaround, to compliment the terse
1336         error message.
1337
1338 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
1339
1340         * scripttempl/v850.sc: Add gcc_except_table sections.
1341
1342 2001-09-11  Jeffrey A Law  (law@cygnus.com)
1343
1344         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1345         * emulparams/h8300self.sh: Similarly.
1346
1347 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1348
1349         * ld.texinfo (Options, --stack): Correct default value for stack
1350         reserve.
1351
1352 2001-09-05  Tom Rix <trix@redhat.com>
1353
1354         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1355
1356 2001-09-03  Andreas Jaeger  <aj@suse.de>
1357
1358         * emultempl/beos.em: Declare prototypes for comparions functions,
1359         adjust definitions.
1360
1361 2001-09-02  Andreas Jaeger  <aj@suse.de>
1362
1363         * emultempl/aix.em: Add missing prototype.
1364         * emultempl/lnk960.em: Likewise.
1365         * emultempl/vanilla.em: Likewise.
1366         * emultempl/armcoff.em: Likewise.
1367         * emultempl/armelf_oabi.em: Likewise.
1368         * emultempl/beos.em: Likewise.
1369         * emultempl/gld960c.em: Likewise.
1370         * emultempl/gld960.em: Likewise.
1371
1372         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1373         for prototype declaration.
1374
1375 2001-08-31  Eric Christopher  <echristo@redhat.com>
1376             Jason Eckhardt  <jle@redhat.com>
1377
1378         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1379
1380 2001-08-31  Andreas Jaeger  <aj@suse.de>
1381
1382         * emultempl/pe.em: Add missing prototypes.
1383         (gld_${EMULATION_NAME}_after_open): Remove extra args to
1384         pe_find_data_imports.
1385         (pr_sym): Add unused attribute.
1386
1387 2001-08-29  Joel Sherrill <joel@OARcorp.com>
1388
1389         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1390         default from coff to elf.
1391
1392 2001-08-29  Jeff Law <law@redhat.com>
1393
1394         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
1395         ARCH specification.
1396         * emulparams/h8300self.sh: Similarly.
1397
1398 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
1399
1400         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1401         eh8300self.o .
1402         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1403         * configure.tgt (h8300-*-elf*): New case.
1404         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1405         * emulparams/h8300self.sh: New file.
1406         * Makefile.in: Regenerated.
1407
1408 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
1409
1410         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1411         with macro name.
1412
1413 2001-08-27  Linus Nordberg  <linus@swox.com>
1414             Alan Modra  <amodra@bigpond.net.au>
1415
1416         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1417         (eelf64ppc.c, eelf64lppc.c): Add make targets.
1418         Run "make dep-am"
1419         * Makefile.in: Regenerate.
1420         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
1421         entries to correct alphabetical position.
1422         * emulparams/elf64ppc.sh: New.
1423         * emulparams/elf64lppc.sh: New.
1424
1425 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
1426
1427         * ldmain.c (main): Declare BSIZE as static.
1428
1429 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
1430
1431         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1432         into .rel.dyn resp. .rela.dyn if combreloc.
1433         (get_script): If .x linker script is equal to .xn, only put it
1434         once into the binary.
1435         Add .xc and .xsc scripts.
1436         (parse_args): Handle -z combreloc and -z nocombreloc.
1437         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1438         For .xc and .xsc scripts put all .rel* or .rela* input sections
1439         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1440         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1441         is elf.
1442         Strip trailing whitespace from script.
1443         Generate .xc and .xsc scripts if requested.
1444         * ldmain.c (main): Initialize link_info.combreloc and
1445         link_info.spare_dynamic_tags.
1446         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1447         (ld_options): Add --spare-dynamic-tags option.
1448         (parse_args): Likewise.
1449         * ld.texinfo: Document -z combreloc and -z nocombreloc.
1450         * ldint.texinfo: Document .xc and .xsc linker scripts.
1451         * NEWS: Add notes about -z combreloc and SHF_MERGE.
1452
1453 2001-08-22  H.J. Lu  <hjl@gnu.org>
1454
1455         * emulparams/elf32fr30.sh: Add a newline.
1456
1457 2001-08-21  Andreas Jaeger  <aj@suse.de>
1458
1459         * deffilep.y: Add missing prototypes.
1460         * pe-dll.c: Likewise.
1461
1462 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
1463
1464         * ldlang.c (insert_pad): Fix typos in last patch.
1465
1466         * ldlang.c: When traversing lang_statement_union_type lists,
1467         consistently use "header.next" rather than "next".
1468         * mpw-eppcmac.c: Likewise.
1469         * emultempl/beos.em: Likewise.
1470         * emultempl/hppaelf.em: Likewise.
1471         * emultempl/pe.em: Likewise.
1472         * ldlang.h (union lang_statement_union): Remove "next" field.
1473
1474         * ldlang.c (insert_pad): Use offsetof macro.
1475         (lang_size_sections): Always neuter padding statements.
1476         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1477
1478         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1479         passed to lang_size_sections.
1480         (pe_exe_fill_sections): Likewise.
1481         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1482         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1483
1484 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
1485
1486         * emultempl/aix.em: Formatting fixes.
1487
1488 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
1489
1490         * ldlang.c (insert_pad): Make use of an existing pad statement if
1491         available.  Move code calculating alignment, adjusting section
1492         alignment power, and adjusting dot to ..
1493         (size_input_section): .. here.  Remove unused relax param.
1494         (lang_size_sections): Change boolean `relax' param to boolean *.
1495         Adjust call to size_input_section.  Make use of insert_pad to
1496         place pad after the assignment statement.  If relaxing, zap
1497         padding statements.
1498         (reset_memory_regions): Reset output_bfd section sizes too.
1499         (relax_again): Move to..
1500         (lang_process): ..here.  Adjust call to lang_size_sections, and
1501         remove duplicated code.
1502         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1503
1504 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
1505
1506         * ld.texinfo: Document that fill values now use the four least
1507         significant bytes.
1508         * emulparams/elf32fr30.sh (NOP): Update.
1509         * emulparams/elf32mcore.sh: Likewise.
1510         * emulparams/elf64_s390.sh: Likewise.
1511         * emulparams/elf_i386.sh: Likewise.
1512         * emulparams/elf_i386_be.sh: Likewise.
1513         * emulparams/elf_i386_chaos.sh: Likewise.
1514         * emulparams/elf_i386_ldso.sh: Likewise.
1515         * emulparams/elf_s390.sh: Likewise.
1516         * emulparams/elf_x86_64.sh: Likewise.
1517         * emulparams/i386moss.sh: Likewise.
1518         * emulparams/i386nw.sh: Likewise.
1519         * emulparams/m68kelf.sh: Likewise.
1520         * scripttempl/elf.sc: Update NOP comment.
1521         * scripttempl/elfi370.sc: Likewise.
1522         * scripttempl/elfm68hc11.sc: Likewise.
1523         * scripttempl/elfm68hc12.sc: Likewise.
1524         * scripttempl/nw.sc: Likewise.
1525
1526 2001-08-15  Tom Rix <trix@redhat.com>
1527
1528         * ldgram.y (saved_script_handle): Initialize to NULL.
1529         * ldmain.c (main): Change check on saved_script_handle.
1530
1531 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
1532
1533         * emultempl/elf32.em: Formatting fixes.
1534         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
1535         looking at sec->owner.
1536         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1537         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
1538         unused code, and reorganize orphan section placement code.
1539
1540         * ldlang.c (wild_doit): Rename to lang_add_section.
1541         * ldlang.h: Here too.
1542         * mpw-elfmips.c: And here.
1543         * emultempl/beos.em: And here.
1544         * emultempl/elf32.em: And here.
1545         * emultempl/hppaelf.em: And here.
1546         * emultempl/pe.em: And here.
1547
1548 2001-08-13  Richard Henderson  <rth@redhat.com>
1549
1550         * emultempl/needrelax.em: New file.
1551         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1552         * Makefile.am (eelf64_ia64.c): Depend on it.
1553         * Makefile.in: Rebuild.
1554
1555 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
1556
1557         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1558         output_section is set non-NULL.
1559
1560         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1561         `true' for SEC_EXCLUDE sections so that the generic code doesn't
1562         needlessly create an output_section_statement.  Treat a correctly
1563         named output_section_statement with NULL bfd_section as compatible.
1564
1565 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
1566
1567         * emultempl/generic.em: Support EXTRA_EM_FILE.
1568         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1569         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1570         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1571         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1572         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1573         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1574         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1575         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1576         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1577         LDEMUL_FIND_POTENTIAL_LIBRARIES.
1578
1579 2001-08-12  Richard Henderson  <rth@redhat.com>
1580
1581         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1582         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1583         scripttempl/v850.sc: Keep .jcr data.
1584
1585 2001-08-12  H.J. Lu  <hjl@gnu.org>
1586             Andrew Haley  <aph@cambridge.redhat.com>
1587             Nick Clifton  <nickc@redhat.com>
1588
1589         * ldgram.y (had_script): Change name to saved_script_handle.
1590         Change type to file handle.
1591         * ld.h (had_script): Rename and retype.
1592         * ldfile.c (ldfile_open_command_file): Save the file handle
1593         used in saved_script_handle.
1594         * lexsup.c (parse_args): Do not allow -c option to alter
1595         saved_script_handle.
1596         * ldmain.c (main): Print out the linker script used if
1597         --verbose is given.  Check saved_script_handle to obtain the
1598         external linker script used, or if NULL, dump the builtin
1599         script.
1600         * ld.texinfo: Document that --verbose now dumps the linker
1601         script used, regardless of whether it was an internal or an
1602         external script.
1603
1604 2001-08-10  Andreas Jaeger  <aj@suse.de>
1605
1606         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1607         to build warnings.
1608         * configure: Regenerate.
1609
1610 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
1611
1612         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1613
1614         * scripttempl/elf.sc: Move non-text .dynamic section before
1615         .plt/.got/.sdata* group.
1616         (OTHER_GOT_SECTIONS): Move to immediately after .got.
1617         (OTHER_SDATA_SECTIONS): Add.
1618         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1619         OTHER_GOT_SECTIONS.
1620         * emulparams/crislinux.sh: Likewise.
1621         * emulparams/elf32b4300.sh: Likewise.
1622         * emulparams/elf32bmip.sh: Likewise.
1623         * emulparams/elf32bmipn32.sh: Likewise.
1624         * emulparams/elf32bsmip.sh: Likewise.
1625         * emulparams/elf32btsmip.sh: Likewise.
1626         * emulparams/elf32ebmip.sh: Likewise.
1627         * emulparams/elf32elmip.sh: Likewise.
1628         * emulparams/elf32l4300.sh: Likewise.
1629         * emulparams/elf32lmip.sh: Likewise.
1630         * emulparams/elf32lsmip.sh: Likewise.
1631         * emulparams/elf32ltsmip.sh: Likewise.
1632         * emulparams/elf64bmip.sh: Likewise.
1633         * emulparams/elf64btsmip.sh: Likewise.
1634         * emulparams/elf64ltsmip.sh: Likewise.
1635
1636 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
1637
1638         * genscripts.sh: Source the emulparams script before each output
1639         script is generated so that variables like `RELOCATING' may affect
1640         variables defined in the emulparams script.
1641
1642 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
1643
1644         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1645         order.
1646
1647         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1648         ie. iterate over wild_statement.section_list.
1649         (gld${EMULATION_NAME}_place_orphan): Likewise.
1650
1651 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1652
1653         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1654         .fini[0-4] sections used by _exit
1655         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1656         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1657         * scripttempl/elfm68hc11.sc: Likewise.
1658
1659 2001-08-03  H.J. Lu  <hjl@gnu.org>
1660
1661         * emultempl/beos.em (init): Add the missing initialization.
1662
1663 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
1664
1665         * ld.texinfo (Input Section Basics): Clarify ordering of output
1666         sections.
1667         * ldlang.c (callback_t): Add wildcard_list param.
1668         (walk_wild_section): Remove "section" param.  Rewrite for
1669         lang_wild_statement_type change.  Remove unique_section_p test.
1670         (walk_wild_file): Remove "section" param.
1671         (walk_wild): Remove "section" and "file" params.
1672         (lang_gc_wild): Likewise.
1673         (wild): Likewise.  Modify for lang_wild_statement_type change.
1674         (wild_sort): Likewise.  Add "sec" param.
1675         (gc_section_callback): Likewise.
1676         (output_section_callback): Likewise.  Do unique_section_p test.
1677         (map_input_to_output_sections): Modify call to wild.
1678         (lang_gc_sections_1): Likewise.
1679         (print_wild_statement): Modify for lang_wild_statement_type
1680         change.
1681         (lang_add_wild): Replace filename, filenames_sorted param with
1682         filespec.  Replace section_name, sections_sorted,
1683         exclude_filename_list with section_list.
1684         * ldlang.h (lang_add_wild): Here too.
1685         (lang_wild_statement_type): Replace section_name, sections_sorted,
1686         and exclude_filename_list with section_list.
1687         * ldgram.y (current_file): Delete.
1688         (%union): Add wildcard_list.
1689         (file_NAME_list): Set type to wildcard_list.  Build a linked list
1690         rather than calling lang_add_wild for each entry.
1691         (input_section_spec_no_keep): Call lang_add_wild here instead.
1692         * ld.h (struct wildcard_list): Declare.
1693         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1694
1695 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
1696
1697         * ldmain.c (main): initialize link_info.pei386_auto_import
1698         * pe-dll.c: new tables for auto-export filtering
1699         (auto_export): change API, pass abfd for contextual filtering.
1700         Loop thru tables of excluded symbols instead of comparing
1701         "by hand".
1702
1703 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
1704
1705         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1706         static variable current_sec (static struct sec *). Add
1707         forward declaration for add_bfd_to_link.
1708         (process_def_file): Don't export undefined symbols. Do not
1709         export symbols starting with  "_imp__".  Call auto_export()
1710         with new API.
1711         (pe_walk_relocs_of_symbol): New function.
1712         (generate_reloc): add optional extra debugging
1713         (pe_dll_generate_def_file): eliminate extraneous initial blank
1714         line in output
1715         (make_one): enlarge symtab to make room for __nm__ symbols
1716         (DATA auto-import support).
1717         (make_singleton_name_thunk): New function.
1718         (make_import_fixup_mark): New function.
1719         (make_import_fixup_entry): New function.
1720         (pe_create_import_fixup): New function.
1721         (add_bfd_to_link): Specify that 'name' argument is a CONST
1722         char *.
1723         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1724         declare new functions pe_walk_relocs_of_symbol and
1725         pe_create_import_fixup.
1726         * emultempl/pe.em: add new options --enable-auto-import,
1727         --disable-auto-import, and --enable-extra-pe-debug.
1728         (make_import_fixup): New function.
1729         (pe_find_data_imports): New function.
1730         (pr_sym): New function.
1731         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1732         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
1733         CODE.
1734
1735 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
1736
1737         * ld.texinfo: add additional documentation for
1738         --export-all-symbols.  Document --out-implib,
1739         --enable-auto-image-base, --disable-auto-image-base,
1740         --dll-search-prefix, --enable-auto-import, and
1741         --disable-auto-import.
1742         * ldint.texinfo: Add detailed documentation on auto-import
1743         implementation.
1744
1745 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
1746
1747         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1748         example.
1749
1750 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
1751
1752         * Makefile.am: Update dependencies with "make dep-am".
1753         * Makefile.in: Regenerate
1754
1755 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
1756
1757         * ldcref.c (check_section_sym_xref): New function.
1758         (check_nocrossrefs): Call it.
1759         (check_nocrossref): Interate over h->refs here instead of..
1760         (check_refs): ..here.  Pass in the symbol name, section, and bfd
1761         rather than hash_entry pointers.
1762         (struct check_refs_info): Keep symbol name rather than hash entry.
1763         Remove "same".
1764         (check_reloc_refs): Tweak for above changes in check_refs_info.
1765         Only report references to section syms when symname is NULL to
1766         prevent duplicate messages for the same reloc.
1767
1768 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
1769
1770         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1771         available.  Do not print NULL trees.
1772         (exp_print_token): Print unknown tokens with values > 126 as
1773         decimal values not ASCII characters.
1774
1775         * ldlang.c (lang_leave_overlay): If a region is specified assign
1776         it to all sections inside the overlay unless they have been
1777         assigned to the own, non-default, memory region.
1778
1779         * README: Add header for consistency with other README files.
1780
1781 2001-07-14  H.J. Lu  <hjl@gnu.org>
1782
1783         * emultempl/elf32.em (output_prev_sec_find): Never return
1784         bfd_abs_section_ptr, bfd_com_section_ptr nor
1785         bfd_und_section_ptr.
1786
1787 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
1788
1789         * Makefile.am (em32relf.c): Change dependency from generic.em to
1790         elf32.em.
1791         * Makefile.in: Regenerate.
1792
1793 2001-07-14  matthew green  <mrg@eterna.com.au>
1794
1795         * configure.tgt (i386-*-netbsdelf*): New target.
1796         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1797
1798 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
1799
1800         * emultempl/elf32.em (output_prev_sec_find): New.
1801         (place_orphan): Use it.
1802
1803 2001-07-11  H.J. Lu  <hjl@gnu.org>
1804
1805         * ldmain.c (main): Fix typos in the last change.
1806
1807 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
1808
1809         * ldmain.c (main): Disallow -F and -f without -shared.
1810
1811 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
1812
1813         * emultempl/pe.em (after_open): Check for the output_bfd not
1814         having any coff_data structure allocated to it.
1815
1816 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
1817
1818         * emultempl/elf32.em: Do not assuming that contents of the buffer
1819         returned from basename function will remain unchanged accross other
1820         function calls.
1821
1822 2001-07-03  H.J. Lu  <hjl@gnu.org>
1823
1824         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1825         2001-07-03. It creates dynamic entries even for static binaries.
1826
1827 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
1828
1829         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1830         (DYNAMIC): Use it to reserve few dynamic entries for
1831         post-linking tools.
1832
1833 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
1834
1835         * emulparams/hppa64linux.sh: New file.
1836         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1837         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1838         (ehppa64linux.c): Add rule to make it.
1839         Run "make dep-am".
1840         * Makefile.in: Regenerate.
1841
1842 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
1843
1844         * ld.texinfo (Options, -r): Mention restrictions when using
1845         different object formats.
1846
1847 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
1848
1849         * ldlang.c (lang_check): Emit fatal error if relocatable link
1850         between different object flavours with relocations in input.
1851
1852 2001-06-19  H.J. Lu  <hjl@gnu.org>
1853
1854         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1855         (--version-script): Mention the language support.
1856
1857 2001-06-19  H.J. Lu <hjl@gnu.org>
1858
1859         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1860
1861 2001-06-18  H.J. Lu <hjl@gnu.org>
1862
1863         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1864         (diststuff): Add $(MANS).
1865         * Makefile.in: Regenerated.
1866
1867         * ld.1: Removed.
1868
1869 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
1870
1871         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1872         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1873         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1874         * ld.h (args_type): Remove member export_dynamic.  All users
1875         changed to use struct bfd_link_info member.
1876
1877         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1878         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1879         * Makefile.in: Regenerate.
1880
1881 2001-06-18  H.J. Lu  <hjl@gnu.org>
1882
1883         * ldlang.c (init_os): Add the newline to the einfo call.
1884         (lang_check): Likewise.
1885         (lang_do_version_exports_section): Likewise.
1886
1887 2001-06-15  H.J. Lu  <hjl@gnu.org>
1888
1889         * lexsup.c (parse_args); Save optind to report unrecognized
1890         option.
1891
1892 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
1893
1894         * ldlang.c (lang_check): Emit fatal error if relocatable link
1895         between different object flavours.
1896
1897         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1898         Set new link_info member export_dynamic.
1899         * ldmain.c (main): Initialize new link_info member export_dynamic.
1900
1901 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
1902
1903         * ldlang.c (walk_wild): Only call walk_wild_file if
1904         lookup_name returns something.
1905         (lookup_name): If load_symbols fails, return NULL.
1906         (load_symbols): Change to a boolean function.
1907         (open_input_bfds): If load_symbols fails then do not make the
1908         executable.
1909
1910 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
1911
1912         * ldlang.c (record_bfd_errors): Remove.
1913
1914         * emultempl/aix.em: Fix copyright dates.
1915
1916 2001-06-07  Andreas Jaeger  <aj@suse.de>
1917
1918         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1919         (TEXT_START_ADDR): Likewise.
1920
1921 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
1922
1923         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1924
1925 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1926
1927         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1928
1929 2001-05-31  H.J. Lu  <hjl@gnu.org>
1930
1931         * ldlang.c (open_input_bfds): Don't change the bfd error
1932         handler whilst loading symbols.
1933
1934 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
1935
1936         * configure.tgt: Remove i370-mvs architecture, it is not currently
1937         supported.
1938
1939 2001-05-25  H.J. Lu  <hjl@gnu.org>
1940
1941         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1942         like emulparams/aixppc.sh.
1943
1944 2001-05-25  H.J. Lu  <hjl@gnu.org>
1945
1946         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
1947         setting of output_filename after bfd_scan_arch.
1948         * emultempl/pe.em: Likewise.
1949
1950 2001-05-25  H.J. Lu  <hjl@gnu.org>
1951
1952         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1953         like emulparams/aixppc.sh.
1954
1955         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
1956         instead of ${srcdir}/emultempl/stringify.sed.
1957
1958 2001-05-25  Timothy Wall  <twall@oculustech.com>
1959
1960         * emulparams/elf64_aix.sh: Change settings to match IBM linker
1961         output.
1962
1963 2001-05-25  Alan Modra  <amodra@one.net.au>
1964
1965         * configure.host: Replace linuxoldld with linux*oldld.
1966         * configure.tgt: Likewise.
1967
1968 2001-05-24  H.J. Lu  <hjl@gnu.org>
1969
1970         * emultempl/stringify.sed: Removed again.
1971
1972 2001-05-24  H.J. Lu  <hjl@gnu.org>
1973
1974         * emultempl/aix.em (OUTPUT_ARCH): Defined.
1975         (gld${EMULATION_NAME}_before_parse): Initialize
1976         ldfile_output_architecture, ldfile_output_machine and
1977         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
1978         * emultempl/beos.em: Likewise.
1979         * emultempl/elf32.em: Likewise.
1980         * emultempl/linux.em: Likewise.
1981         * emultempl/mipsecoff.em: Likewise.
1982         * emultempl/pe.em: Likewise.
1983         * emultempl/sunos.em: Likewise.
1984
1985 2001-05-24 Tom Rix <trix@redhat.com>
1986
1987         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
1988         udate import file format.
1989         (change_symbol_mode) New, same
1990         (is_syscall) New, same
1991         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
1992         * emulparams/aixppc64.sh : same
1993         * emulparams/aixrs6.sh : same
1994         * emulparams/ppcmacos.sh : same
1995         * emultempl/aix.em : use strtoull to parse options
1996         * Makefile.am : add eaixppc64 emulation for xcoff64
1997         * Makefile.in : same
1998         * configure.tgt : same
1999
2000         * scripttempl/aix.sc : default text section offset to 0x10000000
2001         default data section offset to 0x20000000
2002         add .sv3264 and .sv64 pseudo sections
2003         loader and debug sections use the currect section offset.
2004
2005         * emultempl/aix.em : Add xcoff64 support
2006         Add -binitfini support
2007         (gld${EMULATION_NAME}_before_parse) -binitfini
2008         (gld${EMULATION_NAME}_parse_args) same
2009         (gld${EMULATION_NAME}_before_allocation) format change for special
2010         sections
2011
2012         * emulparams/aixppc64.sh : New file for xcoff64 support
2013
2014 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
2015
2016         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2017         variable to avoid non-portable shell construct.
2018
2019 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2020
2021         * ldmain.c (get_emulation): Add -mips5 command line argument.
2022
2023 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
2024
2025         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2026         (ELF_INTERPRETER_NAME): Define it.
2027         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2028         it.
2029         * configure.tgt (targ_emul, targ_extra_emuls)
2030         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2031         as primary, elf_i386 as extra.
2032         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2033         (eelf_i386_ldso.c): New rule.
2034         * Makefile.in: Rebuilt.
2035
2036 2001-05-22  Nick Clifton  <nickc@redhat.com>
2037
2038         * lexsup.c (ld_options):  Allow -I to be an alias for
2039         --dynamic-linker.  This is for Solaris compatability.
2040         * ld.texinfo: Document that -I can be used.
2041         * ld.1: Regenerate.
2042
2043 2001-05-16  Alan Modra  <amodra@one.net.au>
2044
2045         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2046         whether an input section is the first one assigned to an output
2047         section.
2048         Assorted formatting fixes.
2049
2050 2001-05-14  DJ Delorie  <dj@delorie.com>
2051
2052         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2053         * Makefile.in: Ditto.
2054
2055 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
2056
2057         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2058         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2059         output sections.
2060         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2061
2062 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
2063
2064         * ldlang.c (lang_process): Call bfd_merge_sections.
2065
2066 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2067
2068         * ldgram.y: Fix typo.
2069
2070 2001-05-03  H.J. Lu  <hjl@gnu.org>
2071
2072         * emultempl/elf32.em: Include "libiberty.h".
2073         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2074         basename of the bfd filename.
2075         (gld${EMULATION_NAME}_stat_needed): Likewise.
2076         (gld${EMULATION_NAME}_try_needed): Likewise.
2077         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2078
2079 2001-05-02  H.J. Lu  <hjl@gnu.org>
2080
2081         * emultempl/pe.em: Include <ctype.h>.
2082
2083 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
2084
2085         * emulparams/elf32openrisc.sh: New file.
2086
2087         * Makefile.am: Add OpenRISC target.
2088         * Makefile.in: Regenerated.
2089
2090         * configure.tgt: Add openrisc-*-* mapping.
2091
2092 2001-05-02  Nick Clifton  <nickc@redhat.com>
2093
2094         * emultempl/aix.em: Replace buystring with xstrdup.
2095         * emultempl/beos.em: Replace buystring with xstrdup.
2096
2097 2001-05-02  H.J. Lu  <hjl@gnu.org>
2098
2099         * ldfile.c: Include "libiberty.h".
2100         * ldlex.l: Likewise.
2101
2102         * ldmisc.c (buystring): Removed.
2103         * ldmisc.h: Likewise.
2104
2105         * ldfile.c: Replace buystring with xstrdup.
2106         * ldlang.c: Likewise.
2107         * ldlex.l: Likewise.
2108         * ldmain.c: Likewise.
2109         * ldmisc.c: Likewise.
2110         * lexsup.c: Likewise.
2111         * mpw-eppcmac.c: Likewise.
2112
2113 2001-04-30  Andreas Jaeger  <aj@suse.de>
2114
2115         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2116
2117 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2118
2119         * ldlang.c (load_symbols): Give emulation a chance
2120         to process unrecognized file before fatal error is
2121         reported, not after.
2122
2123 2001-04-27  Sean McNeil <sean@mcneil.com>
2124
2125         * configure.tgt: Add arm-vxworks target.
2126         * scripttempl/armcoff.sc: Support .text or .data as a section name
2127         prefix.
2128         Define _etext.
2129
2130 2001-04-13  J.T. Conklin  <jtc@redback.com>
2131
2132         * ld.texinfo: Document --fatal-warnings.
2133         * ld.1: Regenerate.
2134
2135         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2136         warnings have been turned into errors.
2137         * lexsup.c (OPTION_WARN_FATAL): Define.
2138         (ld_options): Entry for --fatal-warnings.
2139         (parse_args): Handle OPTION_WARN_FATAL.
2140         * ld.h (ld_config_type): Add fatal_warnings field.
2141
2142 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
2143
2144         * ldmain.c (main): Default to discard_sec_merge.
2145         * lexsup.c (OPTION_DISCARD_NONE): Define.
2146         (ld_options): Add --discard-none.
2147         (parse_args): Handle OPTION_DISCARD_NONE.
2148         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2149         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2150         all its input sections match.
2151
2152 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
2153
2154         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2155         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2156         (eelf32ltsmip.c): New target.
2157         (eelf64btsmip.c): Likewise.
2158         (eelf64ltsmip.c): Likewise.
2159         * Makefile.in: Regenerated.
2160
2161         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2162         target.
2163         (mips*-*-linux-gnu*): Likewise.
2164
2165         * emulparams/elf32ltsmip.sh: New. Traditional little endian
2166         MIPS taget.
2167         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2168         target.
2169         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2170         endian target.
2171
2172 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
2173
2174         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2175         correct value of __Stext here.
2176         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2177         .startup section.
2178
2179         * emulparams/crislinux.sh: Remove FIXME.
2180
2181 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
2182
2183         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2184         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2185
2186 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
2187
2188         * configure.tgt (cris-*-*): Change default emulation to criself.
2189         (cris-*-*aout*): New rule.
2190
2191 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
2192
2193         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2194         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2195
2196 2001-03-26  Andreas Jaeger  <aj@suse.de>
2197
2198         * ld.texinfo (Overview): Fix syntax in texi code.
2199
2200 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2201
2202         * ld.texinfo: Put @c man indications to generate the ld man page.
2203         When generating man, define all the variables.  Define SEEALSO
2204         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
2205         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2206         (ld.1): Generate from ld.texinfo.
2207         * Makefile.in: Regenerate.
2208
2209 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
2210
2211         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2212         and '-fdata-sections'. Set the VMA of STABS sections to zero.
2213
2214 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
2215
2216         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2217         is an absolute path look only for this file and not along the path.
2218
2219 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
2220
2221         * emultempl/elf32.em (OPTION_GROUP): New macro.
2222         Add new option Bgroup to longopts.
2223         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2224         (gld*_list_options): Add -Bgroup and -z defs.
2225         * ld.1: Document -Bgroup and -z defs.
2226         * ld.texinfo: Likewise.
2227
2228 2001-03-07  Michael Meissner  <meissner@redhat.com>
2229
2230         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2231         with sections created by -fdata-sections.
2232         (.dynbss,.bss): Ditto.
2233
2234 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
2235
2236         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2237         after_allocation_default, not gld..._before_allocation.
2238
2239 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
2240
2241         * configure.in (BFD_VERSION): New.
2242         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2243         * configure: Regenerate.
2244         * Makefile.am: Run "make dep-am"
2245         * Makefile.in: Regenerate.
2246
2247 2001-02-26  Timothy Wall  <twall@cygnus.com>
2248
2249         * emulparams/elf64_aix.sh: Add additional read-only sections;
2250         uncomment lines which are now required.
2251
2252 2001-02-26  H.J. Lu  <hjl@gnu.org>
2253
2254         * ldlang.c (open_input_bfds): Set the bfd error handler so
2255         that problems can be caught whilst loading symbols.
2256         (record_bfd_errors): New function: Report BFD errors and mark
2257         the executable output as being invalid.
2258
2259 2001-02-22  Timothy Wall  <twall@cygnus.com>
2260
2261         * configure.host: Add configuration for ia64-*-aix*.
2262         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2263         Add dependencies for eelf64_aix.c.
2264         * Makefile.in: Regenerate.
2265         * configure.tgt: Add ia64-*-aix* mapping.
2266         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2267         * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2268         AIX-specific test.
2269
2270 2001-02-20  H.J. Lu  <hjl@gnu.org>
2271
2272         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2273         false if we found the file.
2274
2275 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
2276
2277         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2278         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2279
2280 2001-02-18  lars brinkhoff  <lars@nocrew.org>
2281
2282         * Makefile.am: Add PDP-11 target.
2283         * configure.tgt: Likewise.
2284         * emulparams/pdp11.sh: New file.
2285
2286 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
2287
2288         * configure.host: Add a generic FreeBSD configuration entry such that
2289         all [modern] FreeBSD systems on all platforms will look the same.
2290
2291 2001-02-14  H.J. Lu  <hjl@gnu.org>
2292
2293         * configure.tgt: Remove mention of earmelf_linux26.
2294
2295 2001-02-13  Richard Henderson  <rth@redhat.com>
2296
2297         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2298
2299 2001-02-13  H.J. Lu  <hjl@gnu.org>
2300
2301         * ldexp.h (node_type): Add etree_provided.
2302         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2303         type to etree_provided if defined by PROVIDE. Allow updating
2304         for etree_provided.
2305         (exp_print_tree): Handle etree_provided.
2306         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2307         etree_provided.
2308
2309 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
2310
2311         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2312         .IA_64.unwind.* pattern to unwind table section and
2313         .IA_64.unwind_info* pattern to unwind info section.
2314
2315 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2316
2317         * Makefile.am: Add linux target for S/390.
2318         * Makefile.in: Likewise.
2319         * configure.host: Likewise.
2320         * configure.tgt: Likewise.
2321         * emulparams/elf64_s390.sh: New file.
2322         * emulparams/elf_s390.sh: New file.
2323
2324 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
2325
2326         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2327         targ_extra_libpath.
2328         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2329
2330 2001-02-06  Philip Blundell  <philb@gnu.org>
2331
2332         * Makefile.am: Remove mention of earmelf_linux26.
2333         * Makefile.in: Regenerate.
2334
2335 2001-02-04  Philip Blundell  <philb@gnu.org>
2336
2337         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2338         * emulparams/armelf_linux26.sh: Delete.
2339         * configure.tgt: Remove mention of armelf_linux26 emulation.
2340
2341 2001-02-01  Nick Clifton  <nickc@redhat.com>
2342
2343         * ld.1: Replace occurances of -oformat with --oformat.
2344
2345 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
2346
2347         * ldlang.c (lang_leave_overlay): Don't set lma_region when
2348         load_base is specified.
2349
2350 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
2351
2352         * emultempl/elf32.em: Correct spelling in comments and listed
2353         options.
2354
2355 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
2356
2357         * ldlang.c (lang_leave_overlay): Only set lma_region from the
2358         default for the first section of a group of overlay sections.
2359
2360 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
2361
2362         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2363         * Makefile.in: Regenerate.
2364         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2365         Check for null tool_dir.
2366
2367 2001-01-16  Jim Wilson  <wilson@redhat.com>
2368
2369         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2370         and IA_64.unwind.info.
2371
2372 2001-01-16  H.J. Lu  <hjl@gnu.org>
2373
2374         * ldlang.c (lang_check): Merge the private data only if the
2375         input file has contents.
2376
2377 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
2378
2379         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2380
2381         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2382         enabling search for libmilli.  On a relocatable link, make .text
2383         sections unique.
2384         (LDEMUL_AFTER_PARSE): Define.
2385         (hppaelf_finish): Correct spelling of relocatable in comments.
2386
2387         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2388         rummage through the script for sections on the unique list.
2389         Correct length of strncmp for ".note".
2390         (gld${EMULATION_NAME}_check_needed): Rearrange function.
2391
2392         * ldlang.c (unique_section_list): New var.
2393         (unique_section_p): New function.
2394         (walk_wild_section): Don't match sections on unique_section_list.
2395         (lang_add_unique): New function.
2396         Correct spelling of relocatable in comments.
2397
2398         * ldlang.h (struct unique_sections): Declare.
2399         (unique_section_list): Declare.
2400         (unique_section_p): Declare.
2401         (lang_add_unique): Declare.
2402
2403         * lexsup.c (ld_options): Allow --unique to take an optional arg.
2404         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2405
2406         * ld.texinfo (--unique): Update.
2407
2408 2001-01-13  Nick Clifton  <nickc@redhat.com>
2409
2410         * lexsup.c (parse_args): Remove spurious white space.
2411
2412 2001-01-12  Nick Clifton  <nickc@redhat.com>
2413
2414         * lexsup.c (parse_args): Update copyright date.
2415
2416 2001-01-12  Philip Blundell  <pb@futuretv.com>
2417
2418         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2419
2420 2001-01-10  Kazu Hirata  <kazu@hxi.com>
2421
2422         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
2423         * scripttempl/h8300h.sc: Fix formatting.
2424         * scripttempl/h8300s.sc: Likewise.
2425         * scripttempl/h8500.sc: Likewise.
2426         * scripttempl/h8500b.sc: Likewise.
2427         * scripttempl/h8500c.sc: Likewise.
2428         * scripttempl/h8500m.sc: Likewise.
2429         * scripttempl/h8500s.sc: Likewise.
2430
2431 2000-01-07  David O'Brien  <obrien@BSDi.com>
2432
2433         * emultempl/elf32.em: Only perform Linux ld hints processing when
2434         targeting Linux.
2435
2436 2001-01-07  Philip Blundell  <philb@gnu.org>
2437
2438         * ld.texinfo (Bug Reporting): Update email address for reports.
2439
2440 2000-12-31  Nick Clifton  <nickc@redhat.com>
2441
2442         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2443         options by checking for a return value of '?' not -1.
2444
2445 2000-12-28  Nick Clifton  <nickc@redhat.com>
2446
2447         * lexsup.c (struct ld_option): Add new enum value:
2448         EXACTLY_TWO_DASHES.
2449         (ld_options[]): Change -omagic, -output and -oformat options
2450         to be EXACTLY_TWO_DASHES.
2451         (OUTPUT_COUNT): Use ARRAY_SIZE.
2452         (parse_args): Change parameter 'argc' to unsigned.
2453         Place EXACTLY_TWO_DASHES options into new really_longopts
2454         array.
2455         If getopt_long_only fails, try calling getopt_long using the
2456         really_longopts array.
2457         (help): Print a double dash for both EXACTLY_TWO_DASHES and
2458         TWO_DASHES options.
2459
2460         * ldlex.h: Fix prototype of parse_args.
2461
2462         * ld.texinfo: Document that long options starting with 'o'
2463         must be preceeded by two dashes.  Change example of a single
2464         dashed long option from -oformat to -trace-symbol.
2465
2466 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2467
2468         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2469         (longopts[]): New --no-default-excludes option.
2470         (gld_${EMULATION_NAME}_list_options): Document.
2471         (gld_${EMULATION_NAME}_parse_args): Handle.
2472
2473 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2474
2475         * ldlang.c (new_stat): Revert the last beautification with "innocent"
2476         whitespace, it breaks the K&R C preprocessor.
2477
2478 2000-12-11  DJ Delorie  <dj@redhat.com>
2479
2480         * ld.texinfo: Add notes about --whole-archive and gcc.
2481
2482 2000-11-18  Fred Fish  <fnf@be.com>
2483
2484         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2485         (ld_options): Entry for --allow-shlib-undefined.
2486         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2487         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2488         to false.
2489         * ld.texinfo: Document new command line switch.
2490
2491 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
2492
2493         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2494         .fixup is actually read/write.
2495         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2496         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2497         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2498
2499 2000-12-11  Jan Hubicka  <jh@suse.cz>
2500
2501         * NEWS: Add note about x86_64 architecture.
2502
2503 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
2504
2505         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2506         Set DWARF2 sections to a VMA of zero.
2507
2508 2000-12-01      Joel Sherrill <joel@OARcorp.com>
2509
2510         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2511         New targets.
2512         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2513         (sparc*-*-rtems*): Switched from a.out to ELF.
2514
2515 2000-11-30  Jan Hubicka  <jh@suse.cz>
2516
2517         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2518         (eelf_x86_64.c): New.
2519         * Makefile.in: Regenerate.
2520         * configure.tgt: Add support for x86_64-*-linux-gnu*.
2521         * emulparams/elf_x86_64.sh: New.
2522
2523 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
2524
2525         * emulparams/crislinux.sh (ENTRY): Change back to _start.
2526         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2527
2528         * scripttempl/crisaout.sc: Change all RELOCATING not related to
2529         merging non-a.out sections into CONSTRUCTING.
2530
2531 2000-11-28  Nick Clifton  <nickc@redhat.com>
2532
2533         * ld.1 (COPYING): Mention that the GNU Free Documentation
2534         License is present in the sources, but not the output, and
2535         also available from the GNU website.
2536         (GNU Free Documentation License): Comment out this section.
2537
2538 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
2539
2540         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2541         does not use them.
2542
2543 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
2544
2545         * ld.1: Remove old date so it does not give the impression the manpage
2546         is way out of date.
2547
2548 2000-11-24  Nick Clifton  <nickc@redhat.com>
2549
2550         * configure.tgt (xscale-coff): Add target.
2551         (xscale-elf): Add target.
2552
2553 2000-11-24  Fred Fish  <fnf@be.com>
2554
2555         * ldmain.c (main): Remove redundant init of config.make_executable
2556         to true.
2557
2558 2000-11-15  Richard Henderson  <rth@redhat.com>
2559
2560         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2561
2562 2000-11-14  Kazu Hirata  <kazu@hxi.com>
2563
2564         * scripttempl/h8300.sc: Fix formatting.
2565         * scripttempl/h8300h.sc: Likewise.
2566         * scripttempl/h8300s.sc: Likewise.
2567
2568 2000-11-14  Denis Chertykov  <denisc@overta.ru>
2569
2570         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2571
2572 2000-11-09  Philip Blundell  <pb@futuretv.com>
2573
2574         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2575         around orphan sections whose names can be represented in C.
2576
2577 2000-11-07  Jim Wilson  <wilson@redhat.com>
2578
2579         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2580         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
2581
2582 2000-11-06  Nick Clifton  <nickc@redhat.com>
2583
2584         * ld.texinfo: Add GNU Free Documentation License.
2585         * ldint.texinfo: Add GNU Free Documentation License.
2586         * ld.1: Add GNU Free Documentation License.
2587
2588 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
2589
2590         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2591         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2592
2593         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2594         Move 2000-11-02 Makefile.in changes to this file.
2595         * Makefile.in: Regenerate.
2596
2597 2000-11-03  Nick Clifton  <nickc@redhat.com>
2598
2599         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2600         constructors and destructors.
2601         * scripttempl/h8300h.sc: Ditto.
2602         * scripttempl/h8300s.sc: Ditto.
2603         * scripttempl/h8500.sc: Ditto.
2604         * scripttempl/h8500b.sc: Ditto.
2605         * scripttempl/h8500c.sc: Ditto.
2606         * scripttempl/h8500m.sc: Ditto.
2607         * scripttempl/h8500s.sc: Ditto.
2608         * scripttempl/v850.sc: Ditto.
2609         * scripttempl/w65.sc: Ditto.
2610         * scripttempl/z8000.sc: Ditto.
2611
2612 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
2613
2614         * Makefile.in (e_i386_chaos.c): New rule.
2615         (ALL_EMULATIONS): Added e_i386_chaos.o.
2616         * emulparams/elf_i386_chaos.sh: New file.
2617         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2618
2619 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
2620
2621         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2622         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2623         Fix sed invocation, so that it coped with '/' in Solaris 64bit
2624         library path suffix.
2625         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2626
2627 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
2628
2629         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2630         for consecutive sections.
2631
2632 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
2633
2634         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2635         options.
2636         * ld.texinfo: Added notes about this new option.
2637
2638 2000-10-16  Nick Clifton  <nickc@redhat.com>
2639
2640         * emultempl/pe.em (_after_open): Add tests of return values from
2641         bfd functions.  Emit appropriate error messages if necessary.
2642
2643 2000-10-13  Nick Clifton  <nickc@redhat.com>
2644
2645         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2646         local variables - they are not used, but leave in the call to
2647         bfd_canonicalize_symtab.
2648         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2649         pe_dll_search_prefix.
2650
2651 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
2652
2653         * emultempl/pe.em (pe_dll_search_prefix): New variable,
2654         (longopts): New --dll-search-prefix option.
2655         (gld_${EMULATION_NAME}_list_options): Document.
2656         (gld_${EMULATION_NAME}_parse_args): Handle.
2657         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2658         dynamically, search for a dll named '<prefix><basename>.dll'
2659         in preference to 'lib<basename>.dll' if --dll-search-prefix
2660         is specified.
2661
2662 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
2663
2664         * ldlang.c (section_already_linked): Set kept_section instead of
2665         sec->comdat->sec.
2666
2667 2000-10-10  Kazu Hirata  <kazu@hxi.com>
2668
2669         * deffile.h: Fix formatting.
2670         * lexsup.c: Likewise.
2671         * mri.c: Likewise.
2672
2673 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2674
2675         * pe-dll.c (make_one): Do not generate code thunk for DATA
2676         exports.
2677         (process_def_file): deduce DATA flag for auto-export sumbols.
2678
2679 2000-10-09  Kazu Hirata  <kazu@hxi.com>
2680
2681         * ld.h: Fix formatting.
2682         * ldcref.c: Likewise.
2683         * ldctor.h: Likewise.
2684         * ldemul.c: Likewise.
2685         * ldemul.h: Likewise.
2686         * ldexp.c: Likewise.
2687         * ldexp.h: Likewise.
2688         * ldfile.c: Likewise.
2689         * ldfile.h: Likewise.
2690         * ldlang.c: Likewise.
2691         * ldlang.h: Likewise.
2692         * ldmain.c: Likewise.
2693         * pe-dll.c: Likewise.
2694
2695         * pe-dll.c: Revert some formatting fixes.
2696
2697 2000-10-08  Kazu Hirata  <kazu@hxi.com>
2698
2699         * pe-dll.c: Fix formatting.
2700
2701 2000-10-05  Kazu Hirata  <kazu@hxi.com>
2702
2703         * ldlang.c: Fix formatting.
2704
2705 2000-10-03  DJ Delorie  <dj@redhat.com>
2706
2707         * pe-dll.c (fill_edata): initialize entire block
2708         (make_one): fill in correct section.
2709
2710 2000-10-03  Kazu Hirata  <kazu@hxi.com>
2711
2712         * ldexp.c: Fix formatting.
2713
2714 2000-10-02  DJ Delorie  <dj@redhat.com>
2715
2716         * emultempl/pe.em (gld_*_after_open): detect case where there two
2717         import libraries for same dll; rename one to ensure proper link
2718         order.
2719
2720         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2721         typo
2722         (generate_edata): fix typo
2723
2724 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
2725
2726         * scripttempl/crisaout.sc (ENTRY): Now __start.
2727         (.text): Add default setting for __start.
2728         Remove CONSTRUCTORS handling.
2729         (/DISCARD/): Add .gnu.warning.*.
2730         * emulparams/crislinux.sh (ENTRY): Now __start.
2731         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2732         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2733         (ENTRY): Now __start.
2734         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2735         (EXECUTABLE_SYMBOLS): Add default setting for __start.
2736
2737 2000-09-29  Kazu Hirata  <kazu@hxi.com>
2738
2739         * deffile.h: Fix formatting.
2740         * ld.h: Likewise.
2741         * ldcref.c: Likewise.
2742         * ldctor.c: Likewise.
2743         * ldctor.h: Likewise.
2744         * ldemul.c: Likewise.
2745         * ldemul.h: Likewise.
2746         * ldexp.c: Likewise.
2747         * ldexp.h: Likewise.
2748         * ldfile.c: Likewise.
2749         * ldfile.h: Likewise.
2750         * ldlang.c: Likewise.
2751         * ldlang.h: Likewise.
2752         * lexsup.c: Likewise.
2753         * mri.c: Likewise.
2754         * pe-dll.c: Likewise.
2755
2756 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2757
2758         * pe-dll.c (process_def_file): Uninitialized data wasn't
2759         exported with --export-all-symbols switch.
2760
2761 2000-09-28  DJ Delorie  <dj@redhat.com>
2762
2763         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2764         noname work properly.
2765
2766 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
2767
2768         * ld.texinfo (HPPA ELF32): New section.
2769
2770         * emultempl/hppaelf.em (group_size): New.
2771         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2772         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2773         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
2774         options to prevent abbreviations matching.
2775         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
2776         (PARSE_AND_LIST_ARGS_CASES): Handle it.
2777
2778 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2779
2780         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2781         on the m68*-*-elf target.  Make it support COFF input objects.
2782
2783 2000-09-21  Kazu Hirata  <kazu@hxi.com>
2784
2785         * ldmain.c: Fix formatting.
2786         * ldmisc.c: Likewise.
2787         * ldver.c: Likewise.
2788         * ldwrite.c: Likewise.
2789
2790 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
2791
2792         * ldwrite.c (clone_section): Silence gcc warnings.
2793
2794 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
2795
2796         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2797         out of memory failure.
2798
2799         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2800         (clone_section): Handle out of memory failures.  Rename var to
2801         avoid c++ reserved word.
2802
2803 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
2804
2805         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2806         stub_name param to stub_sec_name.
2807         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2808
2809 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2810
2811         * emultempl/m68kelf.em: New file.
2812         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2813         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2814         * Makefile.in: Regenerate.
2815
2816 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
2817
2818         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2819         only as needed.
2820
2821 2000-09-13  Nick Clifton  <nickc@redhat.com>
2822
2823         * ldmain.c (multiple_definition): Disable relaxation if
2824         multiple symbol definitions are encountered - otherwise the
2825         linker could abort with an assertion failure.
2826
2827 2000-09-10  Nick Clifton  <nickc@redhat.com>
2828
2829         * mri.c: Fix formatting.
2830
2831 2000-09-07  H.J. Lu  <hjl@gnu.org>
2832
2833         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2834         * configure: Rebuild.
2835
2836 2000-09-07  H.J. Lu  <hjl@gnu.org>
2837
2838         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2839         * Makefile.in: Rebuild.
2840
2841 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
2842
2843         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2844         broken list handling.  Create __start_SECNAME and __stop_SECNAME
2845         when no place-holder.  Add some comments.  Test both SEC_CODE and
2846         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2847         Handle case where no output section statement created.
2848
2849 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
2850
2851         * configure.tgt (sh-*-linux*): Added.
2852         * Makefile.am: Added eshelf_linux and eshlelf_linux.
2853         * Makefile.in: Rebuilt.
2854         * emulparams/shelf_linux.sh: New file.
2855         * emulparams/shlelf_linux.sh: New file.
2856
2857 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
2858
2859         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2860         try shuffling sections when the orphan happens to be the place
2861         holder.  Keep count of unique section names generated so we speed
2862         the search for a new name.
2863
2864 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
2865
2866         * configure: Rebuilt with new libtool.m4.
2867
2868 2000-09-05  Nick Clifton  <nickc@redhat.com>
2869
2870         * Makefile.in: Regenerate.
2871         * aclocal.m4: Regenerate.
2872         * configure: Regenerate.
2873         * config.in: Regenerate.
2874         * po/ld.pot: Regenerate.
2875
2876         * ldint.texinfo: Remove CVS revision marker - it foils local
2877         comparisons.
2878
2879         * emultempl/ticoff.em: Remove extraneous comma.
2880
2881 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
2882
2883         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2884         to stub section flags.
2885         (hppa_for_each_input_file_wrapper): New.
2886         (hppa_lang_for_each_input_file): New.
2887         (lang_for_each_input_file): Define to call above.
2888         (multi_subspace): New.
2889         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2890         (PARSE_AND_LIST_PROLOGUE): Define.
2891         (PARSE_AND_LIST_LONGOPTS): Define.
2892         (PARSE_AND_LIST_OPTIONS): Define.
2893         (PARSE_AND_LIST_ARGS_CASES): Define.
2894         (hppaelf_finish): Call elf32_hppa_set_gp.
2895         (hppaelf_set_output_arch): Remove.
2896         (LDEMUL_SET_OUTPUT_ARCH): Remove.
2897
2898         * emulparams/hppalinux.sh (ELFSIZE): Define.
2899         (MACHINE): Define.
2900         (OTHER_READONLY_SECTIONS): Define.
2901         (DATA_PLT): Define.
2902         (GENERATE_SHLIB_SCRIPT): Define.
2903
2904         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
2905         to const throughout.  Change `void *' to `PTR' throughout.
2906         (lang_memory_default): Function is local to file, add `static'.
2907
2908         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2909         (ehppalinux.c): Likewise.
2910         (earmelf.c): Likewise.
2911         (earmelf_linux.c): Likewise.
2912         (earmelf_linux26.c): Likewise.
2913         * Makefile.in: Regenerate.
2914
2915         * ld.h (ld_config_type): Add unique_orphan_sections.
2916         * lexsup.c (OPTION_UNIQUE): Define.
2917         (ld_options): Add "--unique".
2918         (parse_args): Handle it.
2919         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2920         search for an existing output section if unique_orphan_sections is
2921         set.  Make use of bfd_get_unique_section_name rather than
2922         duplicating code here.
2923         * ld.texinfo: Describe --unique.
2924
2925         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2926         optional arg to split-by-file.
2927         (parse_args): Handle them.
2928         * ld.texinfo: Update description of these options.
2929         * ldwrite.c (clone_section): Pass in the section name.  Replace
2930         local code with bfd_get_unique_section_name.
2931         (split_sections): Tidy code and comments.  Use a list traversal
2932         more appropriate to the list construction.  Handle cooked section
2933         sizes.  Split when split_by_reloc reached rather than exceeded.
2934         Track section size and split when split_by_file reached.  Fix
2935         link_order_tail (even though it's not used).
2936         (ldwrite): Modify condition for calling split_sections to suit
2937         changed split_by_reloc and split_by_file.
2938         * ldmain.c (main): Init config.split_by_reloc and
2939         config.split_by_file to -1.
2940         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
2941         Change split_by_file to bfd_size_type.
2942
2943 2000-09-02  Nick Clifton  <nickc@redhat.com>
2944
2945         * configure.in: Increase version number to 2.10.91.
2946         * NEWS: Mention new ability to support removal of duplicate DWARF2
2947         debug information.
2948         * configure: Regenerate.
2949         * aclocal.m4: Regenerate.
2950         * config.in: Regenerate.
2951
2952 2000-09-02  Daniel Berlin <dberlin@redhat.com>
2953
2954         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
2955         sections.
2956         * scripttempl/elf32avr.sc: Ditto.
2957         * scripttempl/elfd10v.sc: Ditto.
2958         * scripttempl/elfd30v.sc: Ditto.
2959         * scripttempl/elfi370.sc: Ditto.
2960         * scripttempl/elfm68hc11.sc: Ditto.
2961         * scripttempl/elfm68hc12.sc: Ditto.
2962         * scripttempl/elfi386beos.sc: Ditto.
2963         * scripttempl/v850.sc: Ditto.
2964
2965 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
2966
2967         * acinclude.m4: Include libtool and gettext macros from the
2968         top level.
2969         * aclocal.m4, configure: Rebuilt.
2970
2971 2000-08-25  Nick Clifton  <nickc@redhat.com>
2972
2973         * ldlang.c (open_output): When choosing the target for a
2974         particular endianness, do nothing if the target is not
2975         supported.
2976
2977 2000-08-25  H.J. Lu  <hjl@gnu.org>
2978
2979         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2980         check -rpath nor LD_RUN_PATH for cross link.
2981         * ld.texinfo: Document the change.
2982
2983 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
2984
2985         * NEWS: Mention support for CRIS.
2986
2987 2000-08-23  H.J. Lu  <hjl@gnu.org>
2988
2989         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
2990         the current runpath list from bfd_elf_get_runpath_list ()
2991         before search.
2992
2993 2000-08-22  H.J. Lu  <hjl@gnu.org>
2994
2995         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
2996         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
2997         LD_LIBRARY_PATH for native linker. Display the needed DSO if
2998         trace_file_tries is non-zero.
2999         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3000         if trace_file_tries is non-zero.
3001
3002         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3003         * NEWS: Mention it.
3004
3005 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
3006
3007         * NEWS: Mention i860 support.
3008
3009 2000-08-14  Andreas Schwab  <schwab@suse.de>
3010
3011         * scripttempl/elf.sc: Fix last change to use correct comment
3012         syntax.
3013
3014 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
3015
3016         * scripttempl/elf.sc: Add a comment giving the correspondence
3017         between sections, per-datum sections, and linkonce sections.  Make
3018         the comment true even for .bss, .sdata, .sdata2, .sbss, and
3019         .sbss2.
3020
3021 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
3022
3023         * emulparams/elf32_i860.sh: New file.
3024         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3025         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3026         (eelf32_i860.c): New rule.
3027         * Makefile.in: Regenerate.
3028
3029 2000-08-10  Nick Clifton  <nickc@cygnus.com>
3030
3031         * emulparams/mipspe.sh (ENTRY): Add definition.
3032
3033 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
3034
3035         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3036         in error message.
3037
3038 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3039
3040         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3041         the final size of .bss section.
3042         * scripttempl/elfm68hc12.sc: Likewise.
3043
3044 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
3045
3046         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3047         gld${EMULATION_NAME}_parse_args for consistency.  Combine
3048         lastoptind and prevoptind vars, and keep track of last optind.
3049         (gld_${EMULATION_NAME}_list_options): Rename to
3050         gld${EMULATION_NAME}_list_options.
3051
3052 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
3053
3054         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3055         (i586-sco-sysv5uw7.1.0).
3056
3057 2000-07-27  H.J. Lu  <hjl@gnu.org>
3058
3059         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3060         (PARSE_AND_LIST_PROLOGUE): New.
3061         (PARSE_AND_LIST_LONGOPTS): Likewise.
3062         (PARSE_AND_LIST_OPTIONS): Likewise.
3063         (PARSE_AND_LIST_ARGS_CASES): Likewise.
3064         (PARSE_AND_LIST_EPILOGUE): Likewise.
3065
3066 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
3067
3068         * emultempl/armelf.em: Elide functions common to elf32.em,
3069         ie. most of the file.
3070         (arm_elf_after_open): New.  Do arm specific things then call
3071         gld${EMULATION_NAME}_after_open.
3072         (arm_elf_before_allocation): New.  Call
3073         gld${EMULATION_NAME}_before_allocation then do arm specifics.
3074         (PARSE_AND_LIST_PROLOGUE): Define.
3075         (PARSE_AND_LIST_SHORTOPTS): Define.
3076         (PARSE_AND_LIST_LONGOPTS): Define.
3077         (PARSE_AND_LIST_OPTIONS): Define.
3078         (PARSE_AND_LIST_ARGS_CASES): Define.
3079         (LDEMUL_AFTER_OPEN): Define.
3080         (LDEMUL_BEFORE_ALLOCATION): Define.
3081         (LDEMUL_BEFORE_PARSE): Define.
3082         (LDEMUL_FINISH): Define.
3083
3084         * emultempl/hppaelf.em: Similarly zap most of this file.
3085         (hppaelf_add_stub_section): Prototype.
3086         (hppaelf_layaout_sections_again): Prototype.
3087         (hook_in_stub): Prototype.
3088         (LDEMUL_SET_OUTPUT_ARCH): Define.
3089         (LDEMUL_FINISH): Define.
3090         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3091
3092         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3093         (EXTRA_EM_FILE): New.
3094         * emulparams/armelf_linux.sh: Likewise.
3095         * emulparams/armelf_linux26.sh: Likewise.
3096         * emulparams/hppalinux.sh: Likewise.
3097         * emulparams/hppaelf.sh: Likewise.
3098         (NOP): Define.
3099
3100         * emultempl/elf32.em: Fix formatting.
3101         (EXTRA_EM_FILE): Source it.
3102         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3103         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3104         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3105         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3106         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3107         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3108         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3109         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3110         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
3111         allow functions in this file to be overridden.
3112         (PARSE_AND_LIST_SHORTOPTS): Handle it.
3113
3114         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3115
3116         * emultempl/elf32.em: Reorganize file.
3117
3118 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
3119
3120         * emulparams/elf64alpha.sh: Implement "-taso" emulation
3121         specific option to fit 64-bit executable in the lower
3122         31-bit address range.  This is done by changing start
3123         address of .interp (the very first section of executable)
3124         and then setting EF_ALPHA_32BIT elf header flag.
3125
3126 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3127
3128         * emultempl/m68kcoff.em: New file.
3129         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3130         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3131         generic.em.
3132         * Makefile.in: Regenerate.
3133
3134 2000-07-20  H.J. Lu  <hjl@gnu.org>
3135
3136         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3137         and "disable-new-dtags" to stop getopt from treating -d/-e as
3138         abbreviations for these options.
3139
3140 2000-07-20  H.J. Lu  <hjl@gnu.org>
3141
3142         * ld.texinfo: Add documentation for --disable-new-dtags and
3143         --enable-new-dtags.
3144
3145         * ldmain.c (main): Initialize link_info.new_dtags to false.
3146
3147         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3148         --disable-new-dtags and --enable-new-dtags.
3149         (gld_${EMULATION_NAME}_list_options): Likewise.
3150
3151 2000-07-05  Kenneth Block  <krblock@computer.org>
3152
3153         * lexsup.c: Add optional style to demangle switch
3154         * ld.texinfo: Document optional style to demangle switch.
3155
3156 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
3157
3158         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3159         ecrislinux.o.
3160         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3161         Regenerate dependencies.
3162         * Makefile.in: Rebuild.
3163         * configure.tgt (cris-*-*): New target.
3164         * emulparams/crisaout.sh, emulparams/criself.sh,
3165         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3166         * po/POTFILES.in, po/ld.pot: Regenerate.
3167
3168 2000-07-20  H.J. Lu  <hjl@gnu.org>
3169
3170         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3171         Print out ignored -z options.
3172
3173 2000-07-19  H.J. Lu  <hjl@gnu.org>
3174
3175         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3176         (PARSE_AND_LIST_PROLOGUE): New.
3177         (PARSE_AND_LIST_LONGOPTS): Likewise.
3178         (PARSE_AND_LIST_OPTIONS): Likewise.
3179         (PARSE_AND_LIST_ARGS_CASES): Likewise.
3180
3181         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3182
3183         * lexsup.c (ld_options): Comment out 'z'.
3184         (parse_args): Likewise.
3185
3186         * emultempl/elf32.em: Include "elf/common.h".
3187         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3188         options.
3189         (gld_${EMULATION_NAME}_list_options): Likewise.
3190
3191         * ld.texinfo: Add documentation for the recognized -z options.
3192
3193 2000-07-19  H.J. Lu  <hjl@gnu.org>
3194
3195         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3196         bfd_elf_set_dt_needed_soname ().
3197
3198 2000-07-18  DJ Delorie  <dj@cygnus.com>
3199
3200         * pe-dll.c (pe_dll_id_target): check object target name also
3201
3202 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
3203
3204         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3205         ${INIT_END} if relocating.
3206         (.fini): Likewise ${FINI_START} and ${FINI_END}.
3207
3208 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
3209
3210         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3211         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3212         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3213         errors introduced by the old dynamic lib search order.
3214
3215 2000-07-17  DJ Delorie  <dj@cygnus.com>
3216
3217         * pe-dll.c (process_def_file): auto-export data items also
3218         (pe_process_import_defs): also see if _imp_ form needed
3219
3220 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
3221
3222         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3223         for dll import libraries
3224
3225 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
3226
3227         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3228         gcc 2.95.2 and later.
3229
3230 2000-07-11  Kazu Hirata  <kazu@hxi.com>
3231
3232         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3233         message.
3234
3235 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
3236
3237         * ldemul.h (struct lang_input_statement_struct): Remove forward
3238         declaration.
3239         (struct search_dirs): Likewise.
3240         * ldfile.h (struct lang_input_statement_struct): Likewise.
3241         Protect file from multiple inclusion.
3242         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3243         declaration from macro to file scope.
3244
3245         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3246         * ldgram.y: Likewise here.
3247         * ldlang.c: And here.
3248         * ldmain.c: And here.
3249         * mpw-elfmips.c: And here.
3250         * mpw-eppcmac.c: And here.
3251         * emultempl/aix.em: And here.
3252         * emultempl/armcoff.em: And here.
3253         * emultempl/armelf.em: And here.
3254         * emultempl/armelf_oabi.em: And here.
3255         * emultempl/beos.em: And here.
3256         * emultempl/elf32.em: And here.
3257         * emultempl/hppaelf.em: And here.
3258         * emultempl/linux.em: And here.
3259         * emultempl/lnk960.em: And here.
3260         * emultempl/pe.em: And here.
3261         * emultempl/sunos.em: And here.
3262         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3263         * mpw-idtmips.c: Ditto.
3264         * emultempl/generic.em: Ditto.
3265         * emultempl/gld960.em: Ditto.
3266         * emultempl/gld960c.em: Ditto.
3267         * emultempl/mipsecoff.em: Ditto.
3268         * emultempl/ticoff.em: Ditto.
3269         * emultempl/vanilla.em: Ditto.
3270
3271         * pe-dll.c: Include ldfile.h
3272         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3273
3274         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3275         arguments to bfd_elf32_size_dynamic_sections call.
3276         (gldelf32ebmip_place_orphan): Add missing arguments to
3277         lang_leave_output_section_statement call.
3278
3279 2000-07-10  H.J. Lu  <hjl@gnu.org>
3280
3281         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3282         DLL_SUPPORT.
3283         (strhash): Likewise.
3284         (compute_dll_image_base): Likewise.
3285         (pe_undef_found_sym): Likewise.
3286         (pe_undef_cdecl_match): Likewise.
3287         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3288         argument "arch" with ATTRIBUTE_UNUSED.
3289
3290 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
3291
3292         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3293
3294         From  Ryan Bradetich  <rbradetich@uswest.net>
3295         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3296
3297 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
3298
3299         Changes to create multiple linker stubs, positioned immediately
3300         before the section where they are required.
3301         * emultempl/hppaelf.em: Include elf32-hppa.h.
3302         (stub_sec, file_chain): Delete.
3303         (hppaelf_create_output_section_statements): Don't make a stub
3304         section here.
3305         (hook_stub_info): New struct.
3306         (hook_in_stub): New function.
3307         (hppaelf_add_stub_section): New function.
3308         (hppaelf_finish): Do nothing for relocateable links.  Modify the
3309         call to elf32_hppa_size_stubs.  Move code for updating section
3310         layout from here...
3311         (hppaelf_layaout_sections_again): ..to here, a new function.
3312
3313         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3314         broken list handling.  Pass in a pointer to the list.
3315         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3316         for above changes.
3317         (hppaelf_before_parse): Prototype.
3318         (hppaelf_set_output_arch): Prototype.
3319         (hppaelf_create_output_section_statements): Prototype.
3320         (hppaelf_delete_padding_statements): Prototype.
3321         (hppaelf_finish): Prototype.
3322
3323         Merge from elf32.em
3324         * emultempl/hppaelf.em: Include ctype.h.
3325         (struct orphan_save): New.
3326         (gld${EMULATION_NAME}_place_orphan): New.
3327         (output_rel_find): New.
3328         (hppaelf_get_script): Update from elf32.em.
3329         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3330         Change emulation_name field to "${EMULATION_NAME}".  Add
3331         gld${EMULATION_NAME}_place_orphan.
3332
3333         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
3334         ehppalinux.o, sort it.  Regenerate dependencies.
3335         (ehppalinux.c): Depend on hppaelf.em
3336         * Makefile.in: Regenerate.
3337
3338         * configure.tgt: targ_emul=hppalinux for hppa*linux
3339
3340         * emulparams/hppalinux.sh: New.
3341         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3342
3343 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
3344
3345         * lexsup.c (parse_args): Copy section name.
3346
3347 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
3348
3349         * emultempl/pe.em: institute the following search order for
3350         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3351         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
3352         static lib (libfoo.a) if none of the above are found.
3353
3354 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
3355
3356         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3357         (longopts): New --{enable,disable}-auto-image-base options.
3358         (gld_${EMULATION_NAME}_list_options): Document.
3359         (gld_${EMULATION_NAME}_parse): Handle.
3360         (strhash): New static function.
3361         (compute_dll_image_base): New static function.
3362         (gld_${EMULATION_NAME}_set_symbols): Use.
3363
3364 2000-07-05  DJ Delorie  <dj@redhat.com>
3365
3366         * MAINTAINERS: new
3367
3368 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
3369
3370         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3371         * emulparams/elf32btsmip.sh: New file.
3372         * Makefile.am: Add traditional mips target.
3373         * Makefile.in: Rebuild.
3374
3375 2000-07-01  H.J. Lu  <hjl@gnu.org>
3376
3377         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3378         automake to use YLWRAP.
3379         * Makefile.in: Rebuild.
3380
3381 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
3382
3383         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
3384         (CLEANFILES): Add DEPA.
3385         * Makefile.in: Regenerate.
3386
3387 2000-06-30  Timothy Wall  <twall@ppc>
3388
3389         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3390         the page in the upper octet of the address.
3391
3392 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
3393
3394         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3395
3396 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
3397
3398         * NEWS: arm-elf does --gc-sections too.
3399
3400 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
3401
3402         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3403         find one.
3404         * Makefile.in: Regenerate.
3405
3406 2000-06-21  H.J. Lu  <hjl@gnu.org>
3407
3408         * Makefile.am: Rebuild dependency.
3409         * Makefile.in: Rebuild.
3410
3411 2000-06-20  H.J. Lu  <hjl@gnu.org>
3412
3413         * Makefile.am: Rebuild dependency.
3414         * Makefile.in: Rebuild.
3415
3416 2000-06-20  Timothy Wall  <twall@cygnus.com>
3417
3418         * scripttempl/tic54xcoff.sc: New.
3419         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3420         * gen-doc.texi: Add flag for TI COFF.
3421         * ld.texinfo: Add documentation for TI COFF handling switches.
3422         * emultempl/ticoff.em: New. TI COFF handling.
3423         * configure.tgt: Add tic54x target.
3424         * Makefile.am: Add tic54x target.
3425         * Makefile.in: Ditto.
3426
3427 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
3428
3429         * ldmain.c (set_scripts_dir): Correct pointer comparison when
3430         checking for backslashes.
3431
3432 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
3433
3434         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3435
3436 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
3437
3438         * NEWS: Update list of targets supporting --gc-sections.
3439
3440         * scripttempl/elf.sc: KEEP .eh_frame contents.
3441         * scripttempl/elfd30v.sc: Same here.
3442
3443 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
3444
3445         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3446         and m68hc11 (elf).
3447         * Makefile.in: Rebuild.
3448         * configure.tgt: Recognize m68hc12 and m68hc11.
3449         * scripttempl/elfm68hc12.sc: New file.
3450         * emulparams/m68hc12elfb: New emulation.
3451         * emulparams/m68hc12elf: New emulation.
3452         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
3453         (includes a memory.x script to define the ROM and RAM banks).
3454         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3455         New configuration files for support of Motorola 68hc11
3456
3457 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
3458
3459         * ldmain.c (main): Only change SEC_READONLY for final link.
3460
3461 2000-06-13  H.J. Lu  <hjl@gnu.org>
3462
3463         * configure: Regenerate.
3464
3465 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
3466
3467         * configure.in (VERSION): Update to show this is the CVS mainline.
3468
3469 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3470
3471         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3472         input objects to be ECOFF.
3473         (check_sections): einfo takes %B, not %P, to print a BFD name.
3474
3475 2000-06-05  Michael Matz <matz@ifh.de>
3476
3477         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3478         version scripts.
3479
3480         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3481
3482 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
3483
3484         * emulparams/avr1200.sh (STACK): Define as 0.
3485         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3486         * emulparams/avr4433.sh (STACK): Likewise.
3487         * emulparams/avr44x4.sh (STACK): Likewise.
3488         * emulparams/avr85xx.sh (STACK): Likewise.
3489         * emulparams/avrmega103.sh (STACK): Likewise.
3490         * emulparams/avrmega161.sh (STACK): Likewise.
3491         * emulparams/avrmega603.sh (STACK): Likewise.
3492         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3493         (__stack): Define from ${STACK} for main().
3494
3495 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
3496
3497         * Makefile.am: Update dependencies with "make dep-am"
3498         * Makefile.in: Regenerate.
3499
3500 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
3501
3502         * ldmain.c: Include filenames.h.
3503         (set_scripts_dir): Support backslashes in program name.
3504
3505 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
3506
3507         * ldmain.c (main): When deciding if ".text" section should be
3508         read-only, don't forget to reset SEC_READONLY because it
3509         could be already set.
3510
3511 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
3512
3513         * ld.1: Add documentation for new command line option:
3514                 --section-start <sectionname>=<sectionorg>
3515         This is a generic version of -Ttext etc. which accepts
3516         any section name as a parameter instead of just text/data/
3517         bss.
3518         * ld.texinfo: More docs.
3519         * NEWS: More docs.
3520         * lexsup.c: (parse_args): Recognize new command line option.
3521         (ld_options): Add new option.
3522
3523 2000-05-18  H.J. Lu  <hjl@gnu.org>
3524
3525         * lexsup.c (parse_args): `i' == `r', not `q'.
3526
3527 2000-05-18  Jeffrey A Law  (law@cygnus.com)
3528
3529         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3530
3531 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
3532               Rick Gorton          <gorton@scrugs.lkg.dec.com>
3533
3534         Add support for '-q' == '--emit-relocs' switch.
3535         * ldmain.c (main): Default to false.
3536         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3537         * NEWS: Describe the emitrelocations switch.
3538         * ld.texinfo: Describe the emitrelocations switch.
3539
3540 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
3541
3542         * emultempl/pe.em (_open_dynamic_archive): New function: Search
3543         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3544         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3545         link options.
3546
3547 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
3548
3549         * lexsup.c (parse_args): Update the year in the copyright notice.
3550
3551 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
3552
3553         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3554         Replace defines with those from intl/libgettext.h to quieten gcc
3555         warnings.
3556
3557 2000-05-10  H.J. Lu  <hjl@gnu.org>
3558
3559         * ldlang.c (open_input_bfds): Don't load the same file within
3560         a group again if the whole archive has been loaded already.
3561
3562 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
3563
3564         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3565         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3566         strtoul.
3567
3568 2000-05-01  Jim Wilson  <wilson@cygnus.com>
3569
3570         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3571
3572         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3573         host "ia64-*-linux-gnu*".
3574
3575 2000-04-29  Andreas Jaeger  <aj@suse.de>
3576
3577         * ld.h: Correctly check GCC version.
3578
3579 2000-04-25  Jeffrey A Law  (law@cygnus.com)
3580
3581         * Makefile.am: Add PA64 support.  Add missing dependencies for
3582         PA32 elf support.
3583         * Makefile.in: Rebuilt.
3584         * configure.tgt: Add PA64 support (currently disabled).
3585
3586 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
3587
3588         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3589         (output_rel_find): New function.
3590         (hold_section, hold_use): Delete.
3591         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3592         hold_interp): Make local to place_orphan.
3593         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3594         rather than place_section to find possible previous use of orphan.
3595         Similarly find the place-holder output sections.  Use returned
3596         value from lang_enter_output_section_statement rather than calling
3597         lang_output_section_statement_lookup.
3598         * emultempl/armelf.em: Same here.
3599         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3600
3601         * ldlang.c (lang_enter_output_section_statement): Return output
3602         section statement.
3603         * ldlang.h (lang_enter_output_section_statement): Change
3604         declaration too.
3605
3606         * ldlang.h (lang_output_section_statement): Export it.
3607         * ldlang.c (lang_output_section_statement): Ditto.
3608
3609 2000-04-24  Nick Clifton  <nickc@cygnus.com>
3610
3611         * ld.texinfo (Output Section Data): Add note that section data
3612         commands cannot appear outside of section directives.
3613
3614 2000-04-2  Matthew Green  <mrg@cygnus.com>
3615
3616         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3617
3618 2000-04-21  Richard Henderson  <rth@cygnus.com>
3619             David Mosberger  <davidm@hpl.hp.com>
3620
3621         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3622         (eelf64_ia64.c): New rule.
3623         * Makefile.in: Rebuild.
3624         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3625         * emulparams/elf64_ia64.sh: New file.
3626
3627 2000-04-21  Richard Henderson  <rth@cygnus.com>
3628
3629         * scripttempl/elfd30v.sc: Place .gcc_except_table.
3630
3631 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
3632
3633         * dep-in.sed: Match space at start of file name, not at end.
3634
3635 2000-04-18  H.J. Lu  <hjl@gnu.org>
3636
3637         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3638         lang_leave_output_section_statement () after calling
3639         lang_enter_output_section_statement ().
3640         * emultempl/armelf.em: Likewise.
3641
3642 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
3643
3644         * emultempl/elf32.em (struct orphan_save): Add section field.
3645         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3646         better order, and place first orphan section as we did before the
3647         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
3648         Don't call make_bfd_section here, let wild_doit do the job for us.
3649         Don't build a statement list when we'll only throw it away.
3650         * emultempl/armelf.em: Ditto.
3651         * emultempl/pe.em: Similarly.
3652
3653 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
3654
3655         * scripttempl/elfppc.sc: Remove.
3656         * emulparams/elf32ppc.sh: Use elf.sc.
3657         * emulparams/elf32lppc.sh: Use elf.sc.
3658         * emulparams/elf32ppclinux.sh: Use elf.sc.
3659         * emulparams/elf32ppcsim.sh: New file.
3660         * emulparams/elf32lppcsim.sh: New file.
3661         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
3662         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3663         * Makefile.in: Regenerate.
3664         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3665
3666 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
3667
3668         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3669         ~SEC_ALLOC sections too.  Init start address of debug sections.
3670         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3671         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3672         Also set all relocateable section start addresses.
3673
3674 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
3675
3676         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3677         Add new BSS_PLT variable for when .plt need not be contained in
3678         the file.  Move _etext so that it is also after .fini, and provide
3679         both etext and _etext with a leading underscore.  Mark the start
3680         and end of .sbss.
3681
3682 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
3683
3684         * emultempl/elf32.em (struct orphan_save): New.
3685         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3686         hold_interp): Make them struct orphan_save.
3687         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3688         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3689         the end of the relevant section list.  Also add associated section
3690         statements to the end of any previous orphan statements.
3691         * emultempl/armelf.em: Similarly.
3692         * emultempl/pe.em: Similarly.
3693
3694 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
3695
3696         * ld.texinfo (Simple Example): Remove extraneous paragraph.
3697
3698 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
3699
3700         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
3701         --enable-build-warnings option.
3702         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3703         * Makefile.in, configure: Re-generate.
3704
3705 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
3706
3707         * po/ld.pot: Regenerate.
3708
3709         * lexsup.c (help): Restore translated part of bug string.
3710
3711         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3712         (DEP): Quote when passing vars to sub-make.  Add warning message
3713         to end.
3714         (DEP1): Rewrite for "gcc -MM".
3715         (CLEANFILES): Add DEP2.
3716         Update dependencies.
3717         * Makefile.in: Regenerate.
3718
3719 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
3720
3721         * ld.h: #include "bin-bugs.h"
3722         * lexsup.c (help): Use REPORT_BUGS_TO.
3723
3724 2000-03-27  Denis Chertykov  <denisc@overta.ru>
3725
3726         * configure.tgt (avr-*-*): New target support.
3727         * Makefile.am: Likewise.
3728         * scripttempl/elf32avr.sc: New script file.
3729         * emulparams/avr1200.sh: New file.
3730         * emulparams/avr23xx.sh: New file.
3731         * emulparams/avr4433.sh New file.
3732         * emulparams/avr44x4.sh New file.
3733         * emulparams/avr85xx.sh New file.
3734         * emulparams/avrmega103.sh New file.
3735         * emulparams/avrmega161.sh New file.
3736         * emulparams/avrmega603.sh New file.
3737         * Makefile.in: Regenerate.
3738
3739 2000-03-09  Andreas Jaeger  <aj@suse.de>
3740
3741         * Makefile.am (check-DEJAGNU): Also unset LANG.
3742         * Makefile.in: Rebuild.
3743
3744 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
3745
3746         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3747         archive.
3748
3749 2000-03-02  H.J. Lu  <hjl@gnu.org>
3750
3751         * emulparams/elf32mcore.sh: Include "getopt.h".
3752
3753 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
3754
3755         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3756
3757 2000-03-01  H.J. Lu  <hjl@gnu.org>
3758
3759         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3760         * emulparams/shpe.sh: Likewise.
3761
3762 2000-03-01  Nick Clifton  <nickc@cygnus.com>
3763
3764         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3765         to unused parameters.
3766
3767         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3768         functions only used by DLL code.
3769         (_place_orphan): Initialise 'dollar'.
3770
3771 2000-03-01  H.J. Lu  <hjl@gnu.org>
3772
3773         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3774         indicate if the undefined symbol is a fatal error or not.
3775         Don't delete the output file if "fatal" is false.
3776
3777 2000-02-29  H.J. Lu  <hjl@gnu.org>
3778
3779         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3780         Set LC_COLLATE and LC_ALL to null and export them. It is for
3781         sort which expects the C locale.
3782         Add $(LIBS) to all $(HOSTING_LIBS).
3783         * Makefile.in: Rebuild.
3784
3785 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
3786
3787         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3788         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3789         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3790         (ld_emulation_xfer_struct): Add missing NULL initialiser for
3791         find_potential_libraries.
3792
3793 2000-02-28  Jim Blandy  <jimb@redhat.com>
3794
3795         * ldgram.y (exclude_name_list): Don't require a comma to separate
3796         list entries; the lexer considers commas to be valid part of a
3797         filename, so in something like `foo, bar' the comma is considered
3798         part of the first filename, `foo,'.
3799         * ld.texinfo: Update section on EXCLUDE_FILE lists.
3800
3801 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
3802
3803         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3804         host "i[3456]86-*-freebsdelf*".
3805
3806 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
3807
3808         * scripttempl/i386go32.sc: Move misplaced semicolons.
3809
3810 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
3811
3812         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3813         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3814         (eelf64hppa.c, ehppaelf.c): Remove targets.
3815         * Makefile.in: Rebuild.
3816
3817 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
3818
3819         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3820         GNU/Linux/sparc, but keep the default as 32.
3821
3822         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
3823         it default if sparcv9 or sparc64.
3824
3825 2000-02-24  Nick Clifton  <nickc@cygnus.com>
3826
3827         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3828         * Makefile.in: Regenerate.
3829         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3830
3831         * ldemul.h (ld_emulation_xfer_struct): Add new field:
3832         find_potential_libraries.
3833         * ldemul.c (ldemul_find_potential_libraries): New function.
3834
3835         * ldfile.c (ldfile_open_file_search): Allow function to be
3836         exported.
3837         (ldfile_open_file): Call ldemul_find_potential_libraries.
3838         * ldfile.h: Add prototype for ldfile_open_file_search.
3839
3840         * pe-dll.c: Add support for ARM, MIPS and SH targets.
3841
3842         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
3843         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
3844
3845         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3846         (gld_X_find_potential_libraries): New function.  Search for
3847         libraries called "*.lib".
3848
3849         * scripttempl/pe.sc: Add .pdata section.
3850
3851 2000-02-23  Richard Henderson  <rth@cygnus.com>
3852
3853         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3854         Add and use memory regions.
3855
3856 2000-02-23  Linas Vepstas (linas@linas.org)
3857
3858         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3859
3860         * Makefile.am: Add support for Linux/IBM 370.
3861         * configure.tgt: Likewise.
3862
3863         * Makefile.in: Regenerate.
3864
3865 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
3866
3867         * ldlang.c (print_input_section, print_data_statement,
3868         print_reloc_statement, print_padding_statement, insert_pad,
3869         size_input_section, lang_check_section_addresses,
3870         lang_size_sections, lang_do_assignments, lang_set_startof,
3871         lang_one_common): Change `opb' to unsigned.
3872         (lang_do_assignments): Also change `size' to unsigned.
3873
3874 2000-02-16  Richard Henderson  <rth@cygnus.com>
3875
3876         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3877
3878 2000-02-16  Timothy Wall  <twall@cygnus.com>
3879
3880         * mri.c (mri_draw_tree): Add default LMA region argument to call
3881         to lang_leave_output_section_statement.
3882         * ldlang.h: Update prototypes with LMA region arguments.
3883         * ldlang.c (lang_size_sections): Encapsulate region bounds
3884         checking in os_check_region call.
3885         (os_check_region): New function.
3886         (lang_output_section_statement_lookup): Initialize lma_region.
3887         (lang_leave_output_section_statement): Add LMA region argument.
3888         (lang_leave_overlay): Ditto.
3889         * ldgram.y: Handle LMA region syntax.
3890         * ld.texinfo (Output Section Description): Describe LMA region usage.
3891         * emultempl/armelf.em (gld$place_orphan): Add default value for
3892         lma region in call to lang_leave_output_section_statement.
3893         * emultempl/elf32.em (gld$place_orphan): Add default value for
3894         lma region in call to lang_leave_output_section_statement.
3895         * emultempl/pe.em (gld$place_orphan): Add default value for
3896         lma region in call to lang_leave_output_section_statement.
3897
3898
3899 2000-02-04  Timothy Wall  <twall@redhat.com>
3900
3901         * ldlang.c (lang_check_section_addresses): Use bytes instead of
3902         octets when calculating section end addresses.
3903
3904 2000-02-04  Timothy Wall  <twall@redhat.com>
3905
3906         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3907
3908 2000-02-03  Timothy Wall <twall@redhat.com>
3909
3910         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
3911         octet count.
3912         * ldlang.c (print_input_section, print_data_statement,
3913         print_reloc_statement, print_padding_statement): Print target
3914         address values and section sizes as bytes, not octets.
3915         (insert_pad) Calculate padding size in octets, and adjust "dot"
3916         by bytes.
3917         (size_input_section) Always adjust "dot" by bytes, not octets.
3918         (lang_check_section_addresses, lang_do_assignments) Adjust
3919         "dot" by bytes, not octets.  Use the larger of the directive size
3920         or octets_per_byte for the number of octets actually allocated in
3921         the output section.
3922         (lang_set_startof) Make sure STARTOF returns a target address.
3923         (lang_one_common) Record size changes in octets.
3924         (lang_abs_symbol_at_end_of) Section end symbol's value is
3925         recorded in target bytes.
3926         * ld.texinfo:   Updated description of BYTE, SHORT, LONG, etc.
3927         to be clear about behavior when an octet is smaller than one byte.
3928
3929 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
3930
3931         * ldcref.c (output_cref): Don't pass message strings to printf
3932         as format arg.
3933         Update copyright.
3934
3935         * ldmisc.c (vfinfo): Same here.
3936         Update copyright.
3937
3938 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
3939
3940         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
3941         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
3942         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
3943         Add missing NULL initialisers, and comments.
3944
3945         * testsuite/ld-srec/sr3.cc (__rethrow): New.
3946
3947 2000-01-21  Nick Clifton  <nickc@cygnus.com>
3948
3949         * ldlang.c (lang_size_sections): Fix typo in comment.
3950
3951 2000-01-18  H.J. Lu  <hjl@gnu.org>
3952
3953         * ldlang.c (lang_size_sections): Also update the current
3954         address of a region if the SEC_NEVER_LOAD bit is not set.
3955
3956 2000-01-10  Philip Blundell  <pb@futuretv.com>
3957
3958         * configure.tgt (arm*-*-conix*): New target.
3959
3960 2000-01-07  Nick Clifton  <nickc@cygnus.com>
3961
3962         * ld.texinfo (Options): Remind users to preceed linker command
3963         line switches with -Wl, (or whatever is appropriate) if it is
3964         being invoked by a comnpiler driver program.
3965         Fix description of the behaviour of the -n command line switch.
3966
3967 2000-01-05  Catherine Moore  <clm@cygnus.com>
3968
3969         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
3970         (name_list): New.
3971         * ld.texinfo (EXCLUDE_FILE): Update documentation.
3972         * ldgram.y (wildcard_spec): Support a list of excluded_files.
3973         (exclude_name_list): New.
3974         ldlang.c (walk_wild_section): Support list of excluded files.
3975         (print_wild_statement): Likewise.
3976         (lang_add_wild): Likewise.
3977         * ldlang.h (lang_wild_statement_type): Likewise.
3978         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
3979
3980 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
3981
3982         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
3983         (process_def_file): Use.
3984         (pe_dll_compat_implib): New variable.
3985         (make_one): Use.
3986
3987         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
3988         pe_dll_compat_implib.
3989
3990         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
3991         compat-implib options.
3992         (gld_${EMULATION_NAME}_list_options): List new options.
3993         (gld_${EMULATION_NAME}_parse_args): Handle.
3994
3995         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
3996         dll.
3997
3998         * deffilep.y (opt_name): Allow "." in name.
3999
4000 For older changes see ChangeLog-9899
4001 \f
4002 Local Variables:
4003 mode: change-log
4004 left-margin: 8
4005 fill-column: 74
4006 version-control: never
4007 End: