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