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