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