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