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