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