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