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