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