fix date typo
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
2d20f7bf
JJ
12002-02-12 Jakub Jelinek <jakub@redhat.com>
2
3 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
4 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
5 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
6 * ldexp.c (exp_data_seg): New variable.
7 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
8 (fold_binary): Handle DATA_SEGMENT_ALIGN.
9 (exp_fold_tree): Handle DATA_SEGMENT_END.
10 Pass allocation_done when recursing instead of hardcoding
11 lang_allocating_phase_enum.
12 * ldexp.h (exp_data_seg): New.
13 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
14 (lang_size_sections): New.
15 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
16 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
17 if COMMONPAGESIZE is defined.
18 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
19 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
20 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
21 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
22 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
23 libraries only.
24
06880219
AM
252002-02-11 Alan Modra <amodra@bigpond.net.au>
26
27 * Makefile.in: Regenerate.
28
37b0ac0f
DJ
292002-02-10 Daniel Jacobowitz <drow@mvista.com>
30
31 * lexsup.c: Remove strtoul declaration.
32
4e5bae56
DJ
332002-02-10 Daniel Jacobowitz <drow@mvista.com>
34
35 * ldmain.c: Add prototype for main ().
36 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
37 * emultempl/lnk960.em (lnk960_choose_target): Function should
38 take two arguments.
39
1e281515
AM
402002-02-10 Alan Modra <amodra@bigpond.net.au>
41
42 * ldlang.c (entry_section): New initialised variable.
43 (lang_finish): Use it.
44 * ldlang.h (entry_section): Declare.
45 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
46 entry_section to ".opd".
47
f92d92ff 482002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
49
50 * ld.texinfo (Options): Add back in -nostdlib documentation,
51 which had been inadvertently removed.
52
74c44237
HPN
532002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
54
55 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
56 register section vma to a sane value after emitting error. Make
57 fatal conditions cause program exit when emitting message.
58
5e37cc46
NC
592002-02-08 Ivan Guzvinec <ivang@opencores.org>
60
61 * configure.tgt: Add or32-*-rtems target.
62
2d92cb7d
AO
632002-02-08 Alexandre Oliva <aoliva@redhat.com>
64
65 Contribute sh64-elf.
66 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
67 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
68 in OTHER_RELOCATABLE_SECTIONS.
69 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
70 * emulparams/shelf32.sh (STACK_ADDR): Define.
71 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
72 (OTHER_SECTIONS): this. Removed stack settings.
73 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
74 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
75 2001-03-12 DJ Delorie <dj@redhat.com>
76 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
77 relaxing if any shmedia or mixed sections are found.
78 2001-03-07 DJ Delorie <dj@redhat.com>
79 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
80 einfo. Gracefully decline to output to non-elf formats.
81 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
82 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
83 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
84 * emulparams/shelf32.sh: Ditto.
85 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
86 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
87 comment.
88 2001-01-10 Ben Elliston <bje@redhat.com>
89 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
90 non-portable shell constructs. From Hans-Peter Nilsson.
91 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
92 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
93 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
94 dependencies to the shell script include chain.
95 * Makefile.in: Regenerate.
96 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
97 * emultempl/sh64elf.em: Update and tweak comments.
98 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
99 make a .cranges section SEC_IN_MEMORY.
100 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
101 * emultempl/sh64elf.em
102 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
103 .cranges section found to be necessary; continue and set stored
104 section contents flags for sections with non-mixed contents.
105 Use a struct sh64_section_data container and sh64_elf_section_data
106 to store contents-type flags.
107 Remove unused update of "isec".
108 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
109 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
110 access contents-type flags. Assert that the associated container
111 is initialized. Use that container, not elf_gp_size, to hold size
112 of linker-generated cranges contents.
113 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
114 * emultempl/sh64elf.em
115 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
116 there's already a .cranges section. When section flag difference
117 is found, don't NULL-check cranges a second time. Tweak comments.
118 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
119 merging, not max size, as size of ld-generated .cranges contents.
120 Don't set ELF section flags in output section. When checking for
121 needed .cranges descriptors, don't use a variable; compare
122 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
123 comments.
124 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
125 * emultempl/sh64elf.em: New file.
126 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
127 * Makefile.in: Regenerate.
128 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
129 (OTHER_RELOCATING_SECTIONS): Ditto.
130 (EXTRA_EM_FILE): New, set to sh64elf if not set.
131 * emulparams/shlelf32.sh: Stub out all settings except
132 OUTPUT_FORMAT. Source shelf32.sh.
133 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
134 OTHER_RELOCATING_SECTIONS.
135 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
136 * emulparams/shlelf64.sh: Stub out all settings except
137 OUTPUT_FORMAT. Source shelf64.sh.
138 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
139 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
140 .cranges section.
141 (DATA_START_SYMBOLS): Define, provide ___data.
142 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
143 for consecutive .data section.
144 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
145 section after .data section.
146 * emulparams/shlelf64.sh: Ditto.
147 * emulparams/shelf32.sh: Ditto.
148 (ALIGNMENT): Define to 8.
149 * emulparams/shelf32.sh: Ditto.
150 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
151 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
152 built-in linker scripts.
153 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
154 * emulparams/shlelf64.sh: New.
155 * emulparams/shelf64.sh: New.
156 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
157 targ_extra_emuls.
158 * Makefile.am: Add support for shlelf64 and shelf64.
159 * Makefile.in: Regenerate.
160 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
161 * configure.tgt (sh64-*-elf*): Add shelf as default.
162 Add shlelf to targ_extra_emuls.
163 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
164 * emulparams/shelf32.sh: New file.
165 * emulparams/shlelf32.sh: New file.
166 * Makefile.am: Add support for shlelf32 and shelf32.
167 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
168 * Makefile.in: Regenerate.
169
e3dc8847
HPN
1702002-02-05 Hans-Peter Nilsson <hp@axis.com>
171
172 * ldlang.c (lang_reset_memory_regions): Rename from
173 reset_memory_regions. Change all callers. Make public.
174 * ldlang.h (lang_reset_memory_regions): Prototype.
175 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
176 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
177 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
178 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 179
8017dbcb
HPN
1802002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
181
182 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
183 arithmetic when checking for too many global registers.
184
006336b8
JT
1852002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
186
187 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
188 (ehppanbsd.c): New rule.
189 * Makefile.in: Regenerate.
190 * configure.tgt (hppa*-*-netbsd*): New target.
191 * emulparams/hppalinux.sh: Add comment to check other files
192 that source this file it is modified, and list which
193 files that do.
194 * emulparams/hppanbsd.sh: New file.
195
da1f2fec
GK
1962002-02-01 Geoffrey Keating <geoffk@redhat.com>
197
198 * scripttempl/xstormy16.sc: Don't allocate extra space for the
199 stack.
200
48fa4a5d
HPN
2012002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
202
203 Support on-demand global register allocation from
204 R_MMIX_BASE_PLUS_OFFSET relocs.
205 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
206 mmix_set_reg_section_vma. Call
207 _bfd_mmix_finalize_linker_allocated_gregs.
208 (mmix_before_allocation): New function.
209 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
210 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
211 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
212 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
213 before .MMIX.reg_contents.
214 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
215 (mmo_after_open): New function.
216 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
217 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
218 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
219
3b16e843
NC
2202002-01-31 Ivan Guzvinec <ivang@opencores.org>
221
222 * emulparams/or32.sh: New file.
223 * emulparams/or32elf.sh: New file.
224 * scripttempl/or32.sc: New file.
225 * configure.tgt : Add support for or32.
226 * configure: Regenerate
227 * Makefile.am: Add support for or32.
228 * Makefile.in: Regenerate.
229 * NEWS: Mention support for or32.
230 * po/ld.pot: Regenerate.
231
f744d540
CD
2322002-01-29 Chris Demetriou <cgd@broadcom.com>
233 Mitch Lichtenberg <mpl@broadcom.com>
234
235 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
236 * emultempl/mipself.em: New file to handle MIPS ELF embedded
237 reloc creation (ld --embedded-relocs).
238
4867be41
DJ
2392002-01-27 Daniel Jacobowitz <drow@mvista.com>
240
241 * configure: Regenerated.
242
cd8e197b
HPN
2432002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
244
245 * Makefile.am (install): Depend on install-info.
246 * Makefile.in: Regenerate.
247
9cb61eab
AM
2482002-01-26 Christian Rose <menthos@menthos.com>
249
250 * ldmain.c (main): Use full sentences to ease translation.
251
1caa7b23
NC
2522002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
253
254 * po/fr.po: Updated version.
255
1ddbd152
NC
2562002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
257
258 * po/es.po: Updated version.
259
1e84433f
AJ
2602002-01-25 Andreas Jaeger <aj@suse.de>
261
262 * ldlex.l (yy_input): Correct error check.
263
6d39955e
AM
2642002-01-25 Alan Modra <amodra@bigpond.net.au>
265
266 * ldmisc.c (demangle): Put back dots when string not demangled.
267
a9ed1e1b
RH
2682002-01-22 Richard Henderson <rth@redhat.com>
269
270 * emulparams/elf64alpha.sh (NOP): Use unop.
271
968ec2b9
AJ
2722002-01-21 Andreas Jaeger <aj@suse.de>
273
274 * ldlex.l: Use fread instead of read.
275
9596feea
JT
2762002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
277
278 * configure.tgt (ia64-*-netbsd*): New target.
279
493a6d47
L
2802002-01-21 H.J. Lu <hjl@gnu.org>
281
282 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
283 0.
284 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
285
2a538ba5
AJ
2862002-01-18 Andreas Jaeger <aj@suse.de>
287
288 * ldver.c (ldversion): Update year.
289
328577ad
NC
2902002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
291
292 * po/ld.pot: Regenerate.
293
1f808cd5
AM
2942002-01-16 Alan Modra <amodra@bigpond.net.au>
295
296 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
297 * Makefile.in: Regenerate.
298 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
299 * emultempl/ppc64elf.em: New file.
300
335c5610
DD
3012002-01-15 DJ Delorie <dj@redhat.com>
302
303 * scripttempl/pe.sc: Add support for constructor priorities.
304
c40bbade
DC
3052002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
306
307 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
308 * emulparams/avr23xx.sh: Likewise.
309 * emulparams/avr4433.sh: Likewise.
310 * emulparams/avr44x4.sh: Likewise.
311 * emulparams/avr85xx.sh: Likewise.
312 * emulparams/avrmega103.sh: Likewise.
313 * emulparams/avrmega161.sh: Likewise.
314 * emulparams/avrmega603.sh: Likewise.
315 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
316
34efb449
AO
3172002-01-08 Alexandre Oliva <aoliva@redhat.com>
318
319 * ldlang.c (walk_wild_section): Exclude object file if enclosing
320 archive is excluded.
321
8d05742f
JT
3222002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
323
324 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 325 (eshelf_nbsd.c): New rule.
8d05742f
JT
326 (eshlelf_nbsd.c): New rule.
327 * Makefile.in: Regenerate.
328 * configure.tgt (sh*le-*-netbsdelf*): New target.
329 (sh*-*-netbsdelf*): New target.
330 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
331 * ld/emulparams/shelf_nbsd.sh: New emulation.
332 * ld/emulparams/shlelf_nbsd.sh: New emulation.
333
be2d1673
NC
3342002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
335
336 * po/es.po: New file: Spanish translation.
337 * configure.in (ALL_LINGUAS): Add es.
338 * configure: Regenerate.
339
dbab7a7b
NC
3402002-01-06 John Marshall <jmarshall@acm.org>
341
342 * ld.texinfo: Note that --emit-relocs is currently only
343 implemented for ELF.
344
3dfe7a8c
AM
3452002-01-05 Alan Modra <amodra@bigpond.net.au>
346
347 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
348 of bfd_section_list_remove and bfd_section_list_insert macros.
349 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
350 * emultempl/mmo.em (mmo_place_orphan): Likewise.
351
8a8b2d4b
AJ
3522002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
353
354 * configure.tgt (x86_64-*-netbsd*): New target.
355
9a4c7f16
TR
3562001-12-21 Tom Rix <trix@redhat.com>
357
8a8b2d4b 358 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
359 For -binitfini support.
360 * emultempl/aix.em (gld*_before_parse): Fix comment.
361 * emultempl/aix.em (gld*_parse_args): Fix comment.
362
3695c299
AM
3632001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
364
cf86e6df
AM
365 * configure.tgt (mips*-dec-netbsd*): Delete alias for
366 mips*el-*-netbsd*.
367 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
368
3695c299
AM
369 * configure.tgt (arm-*-netbsdelf*): Add target.
370 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
371 * emulparams/armelf_nbsd.sh: Added.
372 * Makefile.am: Add rules for earmelf_nbsd.
373 * Makefile.in: Regenerate.
374
97cb79ae
AJ
3752001-12-19 Andreas Jaeger <aj@suse.de>,
376 Susanne Oberhauser <froh@suse.de>
377
378 * configure.host: Add rules for x86_64-*linux-gnu. Change
379 s390x-linux entry to use gcc to report configuration, replace gcc
380 with $CC in s390-linux
381
9d201f2f
AJ
3822001-12-19 Andreas Jaeger <aj@suse.de>
383
384 * ld.texinfo (VERSION): Fix markup.
385
0b69cd08
MG
3862001-12-18 matthew green <mrg@eterna.com.au>
387
388 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
389 (m68kelfnbsd.c): New rule.
390 * Makefile.in: Regenerate.
391 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
392 (m68*-*-netbsd*4k*): .. this.
393 (m68*-*-netbsdelf*): New target.
394 (m68*-*-netbsd*): Also include ELF support.
395 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
396 * emulparams/m68kelfnbsd.sh: New emulation.
397
6b9b879a
JJ
3982001-12-18 Jakub Jelinek <jakub@redhat.com>
399
400 * ldgram.y (vers_node): Support anonymous version tags.
401 * ldlang.c (lang_register_vers_node): Ensure anonymous version
402 tag is not defined together with non-anonymous versions.
403 * ld.texinfo: Document it.
404
9fc877ed
NC
4052001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
406
407 * po/tr.po: New file: Turkish translation.
408 * configure.in (ALL_LINGUAS): Add tr.
409 * configure: Regenerate.
410
fc18a3f3
RH
4112001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
412
413 * Makefile.am: Add rules for eelf64alpha_nbsd.
414 * Makefile.in: Regenerate.
415 * configure.tgt (alpha*-*-netbsd*): Set
416 targ_emul to elf64alpha_nbsd.
417 * emulparams/elf64alpha_nbsd.sh: Added.
418
76f63e91
AM
4192001-12-17 Alan Modra <amodra@bigpond.net.au>
420
421 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
422 section_tail when fiddling with section list.
423 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
424 broken into separate strings to make translation easier.
425 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
426 fiddling with section list.
427 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
428
d03b89bd
HPN
4292001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
430
431 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
432
320fec9a
AM
4332001-12-15 Alan Modra <amodra@bigpond.net.au>
434
435 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
436
65765700
JJ
4372001-12-13 Jakub Jelinek <jakub@redhat.com>
438
439 * emultempl/elf32.em (finish): Supply output_bfd
440 to bfd_elf*_discard_info.
441 (OPTION_EH_FRAME_HDR): Define.
442 (longopts): Add --eh-frame-hdr.
443 (parse_args): Handle it.
444 (list_options): Add --eh-frame-hdr to help.
445 * emultempl/hppaelf.em (finish): Supply output_bfd
446 to bfd_elf*_discard_info.
447 * scripttempl/elf.sc (.eh_frame_hdr): Add.
448
89894c62
AM
4492001-12-13 Alan Modra <amodra@bigpond.net.au>
450
451 * lexsup.c (parse_args): Don't pass shortopts to second call to
452 getopt functions. Restore optind rather than decrementing before
453 second call. Remove errind as it now duplicates last_optind.
454
583f1926
CF
4552001-12-11 Christopher Faylor <cgf@redhat.com>
456
457 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
458
93fbbb04
GK
4592001-12-07 Geoffrey Keating <geoffk@redhat.com>
460 Richard Henderson <rth@redhat.com>
461
462 * Makefile.am: Add support for xstormy16.
463 * configure.tgt: Add support for xstormy16.
464 * Makefile.in: Regenerate.
465 * emulparams/elf32xstormy16.sh: New file.
466 * scripttempl/xstormy16.sc: New file.
467
583f1926
CF
4682001-10-01 Christopher Faylor <cgf@cygnus.com>
469
fc18a3f3
RH
470 * Makefile.in (LIB_PATH): Make configurable.
471 (GENSCRIPTS): Set LIB_PATH in environment.
472 * configure.in: Substitute LIB_PATH.
473 * configure: Regenerate.
474 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
475 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 476
ff291a48
NC
4772001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
478
479 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
480 describing the -N option so that it is easier to translate into
481 foreign languages.
482
e3c8793a
NC
4832001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
484
485 * emultempl/pe.em (..._list_options): Replace multiple fprintf
486 statements describing a single option with a single, newline
487 escaped fprintf. This allows better translation into other
488 languages.
9d201f2f 489
fc18a3f3
RH
490 * ldmain.c (add_archive_element): Combine multiple strings
491 into a single string to permit better translation into other
492 languages.
e3c8793a 493
f2eab0af
TR
4942001-12-05 Tom Rix <trix@redhat.com>
495
496 * Makefile.am: Remove eaixppc64.
9d201f2f 497 * Makefile.in: Regenerate.
f2eab0af 498
249172c3
TR
4992001-12-04 Tom Rix <trix@redhat.com>
500
9d201f2f 501 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
502 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
503 warning.
504 (gld*_read_file): Fix typo.
505 (change_symbol_mode): Add prototype.
506 (is_syscall): Same.
9d201f2f 507
249172c3
TR
508 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
509 * emulparams/aixrs6.sh : Same.
510 * emulparams/ppcmacos.sh : Same.
511 * emulparams/aixppc64.sh : Delete file.
512 * emultempl/aix.em : Formatting changes.
513
5b5cd1b0
HPN
5142001-12-04 Hans-Peter Nilsson <hp@axis.com>
515
516 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
517 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
518 __Sbss.
519 (OTHER_END_SYMBOLS): Fix formatting.
520 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
521 (OTHER_END_SYMBOLS): Fix formatting.
522
7cecdbff
AM
5232001-12-04 Alan Modra <amodra@bigpond.net.au>
524
525 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
526
742aeb63 5272001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 528
742aeb63 529 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 530 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
531 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
532 (ldemul_default_target): Same.
533 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
534 * emultempl/gld960c.em (gld960_choose_target): Same.
535 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
536 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
537 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
538 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 539 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
540 -b32 and -b64.
541
48459341
L
5422001-11-27 H.J. Lu <hjl@gnu.org>
543
544 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
545 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
546 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
547 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
548 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
549 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
550 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
551 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
552
7cecdbff 553 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
554 is not empty.
555 (SDATA): Likewise.
556 (REL_SDATA): Likewise.
557 (REL_SBSS): Likewise.
558 (REL_SDATA2): Likewise.
559 (REL_SBSS2): Likewise.
560 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
561 (SDATA2): Likewise.
562
ecfdd20c
SC
5632001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
564
565 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
566 destructor in rom.
7cecdbff 567 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 568
da54c6eb
L
5692001-11-22 H.J. Lu <hjl@gnu.org>
570
571 * Makefile.in: Regenerated with automake based on automake
572 1.4-8 in RedHat 7.1.
573
465bc359
AM
5742001-11-22 Alan Modra <amodra@bigpond.net.au>
575
576 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
577 (config.status): Delete rule.
578 Add extra dependencies to cover sourced emulparams files.
579 * Makefile.in: Regenerate.
580
581 * scripttempl/elf.sc: Order <section>, <section>.* and
582 corresponding linkonce sections as seen in input files.
583 Formatting fixes. Zero vma of all sections if not relocating.
584 (STACK): Define and insert if STACK_ADDR defined.
585 (OTHER_RELOCATING_SECTIONS): Delete.
586 (OTHER_END_SYMBOLS): Define.
587 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
588 (OTHER_READWRITE_SECTIONS): Likewise.
589 (OTHER_GOT_SECTIONS): Likewise.
590 (OTHER_SDATA_SECTIONS): Likewise.
591 (OTHER_BSS_SECTIONS): Likewise.
592 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
593 (OTHER_READWRITE_SECTIONS): Likewise.
594 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
595 (OTHER_READWRITE_SECTIONS): Likewise
596
597 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
598 (STACK_ADDR): Define.
599 * emulparams/armelf_oabi.sh: As for armelf.sh.
600 * emulparams/elf32mcore.sh: As for armelf.sh.
601 * emulparams/h8300elf.sh: As for armelf.sh.
602 * emulparams/mn10200.sh: As for armelf.sh.
603 * emulparams/shelf.sh: As for armelf.sh.
604
605 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
606 (OTHER_END_SYMBOLS): Define.
607 * emulparams/m32relf.sh: As for elf32fr30.sh.
608 * emulparams/h8300helf.sh: As for elf32fr30.sh.
609 * emulparams/h8300self.sh: As for elf32fr30.sh.
610
611 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
612 defines with RELOCATING test.
613 (OTHER_SDATA_SECTIONS): Likewise.
614 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
615 (OTHER_END_SYMBOLS): ..this.
616 * emulparams/crislinux.sh: As for criself.sh.
617
618 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
619 if not relocating.
620 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
621 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
622 normal and linkonce sections as seen in input files.
623 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
624 (TEXT_DYNAMIC): Likewise.
625 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
626 (OTHER_SDATA_SECTIONS): Likewise.
627 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
628 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
629 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
630 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
631 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
632 (OTHER_PLT_RELOC_SECTIONS): Likewise.
633 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
634 sections as seen in input files.
635 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
636 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
637 if not relocating.
638 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
639 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
640 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
641 (OTHER_SECTIONS): Instead, use this..
642 (OTHER_END_SYMBOLS): ..and this.
643
644 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
645 * emulparams/elf32bsmip.sh: Likewise.
646 * emulparams/elf32btsmip.sh: Likewise.
647 * emulparams/elf32ebmip.sh: Likewise.
648 * emulparams/elf32lmip.sh: Likewise.
649 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
650 * emulparams/elf32lsmip.sh: Likewise.
651 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
652 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
653 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
654 * emulparams/elf64btsmip.sh: Likewise.
655 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
656 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
657 * emulparams/elf32ppclinux.sh: Likewise.
658 * emulparams/elf32ppcsim.sh: Likewise.
659 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
660 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
661 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
662 * emulparams/h8300self.sh: Likewise.
663 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
664 * emulparams/sh.sh: Comment.
665 * emulparams/shl.sh: Source sh.sh, remove duplicates.
666 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
667 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
668
abc6ab0a
AM
6692001-11-21 David Heine <dlheine@tensilica.com>
670 Alan Modra <amodra@bigpond.net.au>
671
672 * ldlang.c (map_input_to_output_sections): Replace "break"
673 accidentally removed with 2001-08-03 change.
674 (lang_gc_sections_1): Likewise.
675
2181f54f
AM
6762001-11-21 Alan Modra <amodra@bigpond.net.au>
677
678 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
679
ca0b5847
AM
6802001-11-20 Angela Marie Thomas <angela@redhat.com>
681
682 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
683 of false when calling lang_size_sections.
684 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 685
c56feb2b
AM
6862001-11-15 Alan Modra <amodra@bigpond.net.au>
687
688 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
689 function when LDEMUL_FINISH isn't set to the same name. Don't
690 call ${LDEMUL_FINISH}.
691 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
692 * emultempl/armelf.em (arm_elf_finish): Call
693 gld${EMULATION_NAME}_finish.
694 * emultempl/hppaelf.em (hppaelf_finish): Rename to
695 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
696 hppaelf_layout_sections_again if necessary.
697 (need_laying_out): New var.
698 (hppaelf_layaout_sections_again): Rename to
699 hppaelf_layout_sections_again. Clear need_laying_out.
700 (PARSE_AND_LIST_OPTIONS): Format text.
701
a48ca7f2
L
7022001-11-14 H.J. Lu <hjl@gnu.org>
703
704 * emultempl/armelf.em (arm_elf_finish): Renamed from
705 gld${EMULATION_NAME}_finish.
706 (LDEMUL_FINISH): Set to arm_elf_finish.
707
73d074b4
DJ
7082001-11-14 Daniel Jacobowitz <drow@mvista.com>
709
710 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
711 (struct ld_emulation_xfer_struct): Use it.
712
3b16e843 7132001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 714
465bc359 715 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
716 additional symbols referenced by newer crt0.o files from HP.
717
f11b7027
NC
7182001-11-12 Anthony Green <green@redhat.com>
719
720 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
721
3bf2994f
AM
7222001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
723
724 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
725 * Makefile.in: Regenerate.
726
ff5dcc92
SC
7272001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
728
729 * ld.texinfo: Use @command for commands, @option for options.
730 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
731 the page man title.
732 * Makefile.in: Rebuild.
733
9fb9af6e
CD
7342001-11-04 Chris Demetriou <cgd@broadcom.com>
735
736 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
737 Add support for targets.
2181f54f 738
3c62831e
NC
7392001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
740
741 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
742 * configure: Regernate.
743 * po/fr.po: New file.
744 * po/sv.po: New file.
745
3a9091c4
NC
7462001-11-01 NIIBE Yutaka <gniibe@m17n.org>
747
748 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
749 as little endian default and to support big endian.
2181f54f 750
361b220e
CD
7512001-11-01 Chris Demetriou <cgd@broadcom.com>
752
753 * ld.texinfo (Options): Document new option, -nostdlib.
754 * lexsup.c (OPTION_NOSTDLIB): New definition.
755 (ld_options): Add entry for "nostdlib".
756 (parse_args): Handle OPTIONS_NOSTDLIB.
757 * ldfile.c (ldfile_add_library_path): Don't add directories
758 to the search path if they weren't specified on the command line
759 and -nostdlib was specified.
760 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
761
210a7bd1
NC
7622001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
763
764 * lexsup.c (parse_args): Prevent infinite parsing loop when
765 "-rpath.a" is specified on the command line.
766 Replace calls to fprintf with calls to einfo.
767
114283d8
NC
7682001-10-31 John Marshall <jmarshall@acm.org>
769
770 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
771 appear only once across all the linker scripts involved in a link
772 invocation no longer applies. Make the documentation reflect
773 that.
774
7649aa50
NC
7752001-10-31 NIIBE Yutaka <gniibe@m17n.org>
776
777 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
778 targets.
779 (sh-*-linux*): Added targ_extra_libpath.
780
6e814ff8
AM
7812001-10-31 David Heine <dlheine@tensilica.com>
782
783 * ldlang.c (lang_size_sections): Keep a valid output_offset field
784 for padding statements.
785
3c3bdf30
NC
7862001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
787
788 * configure.tgt (mmix-*-*): New target.
789 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
790 Add dependencies to match.
791 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
792 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
793 scripttempl/mmo.sc: New files.
794 * gen-doc.texi: @set MMIX.
795 * ld.texinfo: Ditto.
6e814ff8 796 [MMIX] Add MMIX node.
3c3bdf30
NC
797 * Makefile.in: Regenerate.
798
ca0c1d3e
KH
7992001-10-29 Kazu Hirata <kazu@hxi.com>
800
801 * ldlang.c: Fix a comment typo.
802
1a3d33ce
AM
8032001-10-23 Alan Modra <amodra@bigpond.net.au>
804
805 * configure.host: Move alpha*-*-linux-gnu* entry to generic
806 entries, and match *-*-linux*.
807
b47c4208
AM
8082001-10-20 Alan Modra <amodra@bigpond.net.au>
809
810 * ldgram.y (mri_script_command): Surround processing of INCLUDE
811 with ldlex_script, ldlex_popstate.
812 (ifile_p1): Likewise.
813 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
814 correct slot.
815 (lex_push_file): Save current lineno to lineno_stack. Set lineno
816 to 1. Don't BEGIN(SCRIPT).
817 (lex_redirect): Similarly.
818 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
819
fd521b47
NC
8202001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
821
822 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
823 __EH_FRAME_END__ and accept eh frames into data section.
824 Add ctor and dtor sections.
825
59d28a94
DD
8262001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
827
828 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
829 (auto-export): Fix indentation.
830
663dd378
DD
8312001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
832
833 * pe-dll.c (autofilter_objectlist): Add startup objects
834 for profiling.
835 (auto-export): Constify char * p.
6e814ff8 836 Extract file basename and use strcmp rather than ststr
663dd378
DD
837 for object lookup.
838
31d677f9
CD
8392001-10-18 Chris Demetriou <cgd@broadcom.com>
840
841 * ldmain.c (get_emulation): Improve comment about the handling
842 of -mipsN options.
843
aa200fe8
AM
8442001-10-17 Alan Modra <amodra@bigpond.net.au>
845
846 * po/POTFILES.in: Regenerate.
847
146e7110
AM
8482001-10-16 Vassili Karpov <malc@pulsesoft.com>
849
850 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
851 -z nocopyreloc and -z nocombreloc usage strings.
852
b4330e85
NC
8532001-10-12 Vassili Karpov <malc@pulsesoft.com>
854
146e7110 855 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
856 in usage.
857
5af8a2fb
NC
8582001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
859
860 * scripttempl/armaout.sc: Place .bss section after end of aligned
861 data section to match behaviour of aout code in constructrion of
862 header.
863
5b784096
DD
8642001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
865
866 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
867 startup files for mingw32 dlls to list.
868
61585df2
CD
8692001-10-10 Chris Demetriou <cgd@broadcom.com>
870
871 * emultempl/elf32.em: Fix shell 'if' usage for portability.
872
45cf6f3e
AH
8732001-10-08 Aldy Hernandez <aldyh@redhat.com>
874
875 * configure.tgt (targ): Add arm9e-*-elf.
876
e24d7c12
L
8772001-10-05 H.J. Lu <hjl@gnu.org>
878
879 * genscripts.sh: Fix a typo in the last change.
880
ec38dd05
JJ
8812001-10-05 Jakub Jelinek <jakub@redhat.com>
882
883 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
884 -z nocombreloc in usage.
885
cedd6b0d
JB
8862001-10-03 Jim Blandy <jimb@redhat.com>
887
888 * genscripts.sh: Include a comment at the top of each generated
889 script, explaining its purpose.
890
8bd621d8
AM
8912001-10-03 Vassili Karpov <malc@pulsesoft.com>
892
893 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
894 * NEWS: Mention -z nocopyreloc.
895 * ld.texinfo (Options): Describe nocopyreloc.
896
fcd8210c
AM
8972001-10-03 Alan Modra <amodra@bigpond.net.au>
898
899 * configure: Regenerate.
900
d32820f2
AM
9012001-10-02 Alan Modra <amodra@bigpond.net.au>
902
903 * ldver.h (ld_program_version): Remove declaration.
904 * lexsup.c (parse_args): Move printing of copyright message..
905 * ldver.c (ldversion): .. to here.
906 Use BFD_VERSION_STRING in place of BFD_VERSION.
907 (ld_program_version): Remove.
908 * Makefile.am (Makefile): Depend on bfd/configure.in.
909 Run "make dep-am".
910 * Makefile.in: Regenerate.
911
af46bcdc
HPN
9122001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
913
914 * Makefile.am: Update dependencies with "make dep-am".
915 * Makefile.in: Regenerate.
916
4818e05f 9172001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 918
4818e05f
AM
919 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
920 * lexsup.c: Add --no-define-common commandline option.
921 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
922 * ldlex.l: Likewise.
923 * ld.h: Add command_line.inhibit_common_definition.
924 * ldmain.c (main): Initialize.
925 * ld.texinfo: Document.
862517b6 926
d5e0ebeb
AM
9272001-09-26 Alan Modra <amodra@bigpond.net.au>
928
929 * ldmisc.c (USE_STDARG): Remove.
930 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
931 (einfo): Likewise.
932 (minfo): Likewise.
933 (lfinfo): Likewise.
934
935 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
936 declarations. Update copyright.
937
2f8d8971
NC
9382001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
939
85c77458
NC
940 * pe-dll.c: Remove obsoleted declaration of
941 pe_get_data_import_dll_name.
942 (pe_create_import_fixup): Fix thinko.
943
2f8d8971
NC
944 * ld.texinfo(enable-auto-import): Clarify the explanation.
945
9462001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
947
948 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
949 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
950 DLL_SUPPORT controlled code.
951
72358f65 9522001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 953
72358f65
NC
954 * emultempl/pe.em(pe_data_import_dll): Make static.
955 (pe_get_data_import_dll_name): New accessor function.
146e7110 956 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
957 pe_get_data_import_dll_name() from pe.em, instead of
958 directly accessing pe_data_import_dll variable from pe.em.
959
3882b010
L
9602001-09-18 Bruno Haible <haible@clisp.cons.org>
961
962 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
963 (def_file_add_directive): Use ISSPACE instead of isspace.
964 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
965 isdigit/isxdigit/isalpha/isalnum.
966 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
967 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
968 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
969 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
970 isalnum.
971 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
972 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
973 isupper/tolower.
974 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
975 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
976 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
977 (ctor_prio): Use ISDIGIT instead of isdigit.
978 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
979 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
980 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
981 isupper/tolower.
982 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
983 (stricpy): Use TOLOWER instead of isupper/tolower.
984 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
985 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
986 (lex_warn_invalid): Use ISPRINT instead of isprint.
987 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
988 (main): For gettext, also set the LC_CTYPE locate facet.
989 (add_keepsyms_file): Use ISSPACE instead of isspace.
990 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
991 (is_num, parse_args): Use ISDIGIT instead of isdigit.
992 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
993 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
994 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
995 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
996 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
997 (quoteput): Use ISSPACE instead of isspace.
998 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
999 instead of isalnum.
1000
db09f25b
AM
10012001-09-18 Alan Modra <amodra@bigpond.net.au>
1002
1003 * deffilep.y (def_stash_module): Constify "name" param.
1004
1005 * pe-dll.c: Replace CONST with const throughout.
1006 (quick_symbol): Constify "n1", "n2", "n3" params.
1007 (make_singleton_name_thunk): Constify "import" param. Make
1008 "buffer_len" a size_t.
1009 (make_import_fixup_entry): Constify "name", "fixup_name",
1010 "dll_symname" params.
1011 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1012 (pe_get32): Likewise.
1013 (pe_implied_import_dll): Likewise.
1014
1015 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1016 (sort_by_section_name): Likewise.
1017
1018 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1019 (make_import_fixup): Cast printf arg, rel->address to long rather
1020 than int.
1021 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1022
74699268
AM
10232001-09-15 Alan Modra <amodra@bigpond.net.au>
1024
1025 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1026 defines BufferSize. Increase buffer size by one.
1027
775cabad
NC
10282001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1029
1030 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1031
056a1d49
NC
10322001-09-14 Kevin Lo <kevlo@openbsd.org>
1033
1034 * configure.tgt: Add arm-openbsd target.
1035
a7d792bb
L
10362001-09-12 H.J. Lu <hjl@gnu.org>
1037
1038 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1039 eelf64lppc.o to ...
1040 (ALL_64_EMULATIONS): Here.
1041 * Makefile.in: Regenerated.
1042
0d888aac
CW
10432001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1044
1045 * emultempl/pe.em(make_import_fixup): change signature to
1046 take asection as well as arelec; we need this for proper
146e7110 1047 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
1048 there is no attempt to add a constant addend to the reloc;
1049 otherwise, report error condition.
1050 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1051 since final argument is a pointer to make_import_fixup().
1052 Change call to cb() to match make_import_fixup() signature.
1053 (make_import_fixup_mark): make buffer_len unsigned.
1054 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1055
10562001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1057
1058 * ld.texinfo: add verbose documentation for auto-import
146e7110 1059 direct-addressing workaround, to compliment the terse
0d888aac
CW
1060 error message.
1061
cedacdc0
CM
10622001-09-12 Andrew MacLeod <amacleod@redhat.com>
1063
146e7110 1064 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 1065
3b16e843 10662001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
1067
1068 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1069 * emulparams/h8300self.sh: Similarly.
1070
559e4713
NC
10712001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1072
1073 * ld.texinfo (Options, --stack): Correct default value for stack
1074 reserve.
1075
1fdf0249
TR
10762001-09-05 Tom Rix <trix@redhat.com>
1077
1078 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 1079
9b5799b8
AJ
10802001-09-03 Andreas Jaeger <aj@suse.de>
1081
1082 * emultempl/beos.em: Declare prototypes for comparions functions,
1083 adjust definitions.
1084
48f6162b
AJ
10852001-09-02 Andreas Jaeger <aj@suse.de>
1086
1087 * emultempl/aix.em: Add missing prototype.
1088 * emultempl/lnk960.em: Likewise.
1089 * emultempl/vanilla.em: Likewise.
1090 * emultempl/armcoff.em: Likewise.
1091 * emultempl/armelf_oabi.em: Likewise.
1092 * emultempl/beos.em: Likewise.
1093 * emultempl/gld960c.em: Likewise.
1094 * emultempl/gld960.em: Likewise.
1095
1096 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1097 for prototype declaration.
1098
39e5585e
EC
10992001-08-31 Eric Christopher <echristo@redhat.com>
1100 Jason Eckhardt <jle@redhat.com>
1101
1102 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1103
3fc90ddb
AJ
11042001-08-31 Andreas Jaeger <aj@suse.de>
1105
1106 * emultempl/pe.em: Add missing prototypes.
1107 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1108 pe_find_data_imports.
1109 (pr_sym): Add unused attribute.
1110
d43ded80
PB
11112001-08-29 Joel Sherrill <joel@OARcorp.com>
1112
39e5585e 1113 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
1114 default from coff to elf.
1115
3946dd2f
JL
11162001-08-29 Jeff Law <law@redhat.com>
1117
1118 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1119 ARCH specification.
1120 * emulparams/h8300self.sh: Similarly.
1121
3b16e843 11222001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
1123
1124 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1125 eh8300self.o .
1126 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1127 * configure.tgt (h8300-*-elf*): New case.
1128 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1129 * emulparams/h8300self.sh: New file.
1130 * Makefile.in: Regenerated.
1131
70d0c6e9
NC
11322001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1133
1134 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1135 with macro name.
1136
5c67d4bb
AM
11372001-08-27 Linus Nordberg <linus@swox.com>
1138 Alan Modra <amodra@bigpond.net.au>
1139
1140 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1141 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1142 Run "make dep-am"
1143 * Makefile.in: Regenerate.
1144 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1145 entries to correct alphabetical position.
1146 * emulparams/elf64ppc.sh: New.
1147 * emulparams/elf64lppc.sh: New.
1148
08131015
NC
11492001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1150
1151 * ldmain.c (main): Declare BSIZE as static.
1152
db6751f2
JJ
11532001-08-23 Jakub Jelinek <jakub@redhat.com>
1154
1155 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1156 into .rel.dyn resp. .rela.dyn if combreloc.
1157 (get_script): If .x linker script is equal to .xn, only put it
1158 once into the binary.
1159 Add .xc and .xsc scripts.
1160 (parse_args): Handle -z combreloc and -z nocombreloc.
1161 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1162 For .xc and .xsc scripts put all .rel* or .rela* input sections
1163 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1164 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1165 is elf.
1166 Strip trailing whitespace from script.
1167 Generate .xc and .xsc scripts if requested.
1168 * ldmain.c (main): Initialize link_info.combreloc and
1169 link_info.spare_dynamic_tags.
1170 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1171 (ld_options): Add --spare-dynamic-tags option.
1172 (parse_args): Likewise.
1173 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1174 * ldint.texinfo: Document .xc and .xsc linker scripts.
1175 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1176
63d069c0
L
11772001-08-22 H.J. Lu <hjl@gnu.org>
1178
1179 * emulparams/elf32fr30.sh: Add a newline.
1180
948f9114
AJ
11812001-08-21 Andreas Jaeger <aj@suse.de>
1182
1183 * deffilep.y: Add missing prototypes.
1184 * pe-dll.c: Likewise.
1185
ae7fb08f
AM
11862001-08-20 Alan Modra <amodra@bigpond.net.au>
1187
2af02257
AM
1188 * ldlang.c (insert_pad): Fix typos in last patch.
1189
1190 * ldlang.c: When traversing lang_statement_union_type lists,
1191 consistently use "header.next" rather than "next".
1192 * mpw-eppcmac.c: Likewise.
1193 * emultempl/beos.em: Likewise.
1194 * emultempl/hppaelf.em: Likewise.
1195 * emultempl/pe.em: Likewise.
1196 * ldlang.h (union lang_statement_union): Remove "next" field.
1197
c0c330a7
AM
1198 * ldlang.c (insert_pad): Use offsetof macro.
1199 (lang_size_sections): Always neuter padding statements.
1200 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1201
ae7fb08f
AM
1202 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1203 passed to lang_size_sections.
1204 (pe_exe_fill_sections): Likewise.
1205 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1206 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1207
fab80407
AM
12082001-08-18 Alan Modra <amodra@bigpond.net.au>
1209
1210 * emultempl/aix.em: Formatting fixes.
1211
b3327aad
AM
12122001-08-18 Alan Modra <amodra@bigpond.net.au>
1213
1214 * ldlang.c (insert_pad): Make use of an existing pad statement if
1215 available. Move code calculating alignment, adjusting section
1216 alignment power, and adjusting dot to ..
1217 (size_input_section): .. here. Remove unused relax param.
1218 (lang_size_sections): Change boolean `relax' param to boolean *.
1219 Adjust call to size_input_section. Make use of insert_pad to
1220 place pad after the assignment statement. If relaxing, zap
1221 padding statements.
1222 (reset_memory_regions): Reset output_bfd section sizes too.
1223 (relax_again): Move to..
1224 (lang_process): ..here. Adjust call to lang_size_sections, and
1225 remove duplicated code.
1226 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1227
563e308f
AM
12282001-08-17 Alan Modra <amodra@bigpond.net.au>
1229
1230 * ld.texinfo: Document that fill values now use the four least
1231 significant bytes.
1232 * emulparams/elf32fr30.sh (NOP): Update.
1233 * emulparams/elf32mcore.sh: Likewise.
1234 * emulparams/elf64_s390.sh: Likewise.
1235 * emulparams/elf_i386.sh: Likewise.
1236 * emulparams/elf_i386_be.sh: Likewise.
1237 * emulparams/elf_i386_chaos.sh: Likewise.
1238 * emulparams/elf_i386_ldso.sh: Likewise.
1239 * emulparams/elf_s390.sh: Likewise.
1240 * emulparams/elf_x86_64.sh: Likewise.
1241 * emulparams/i386moss.sh: Likewise.
1242 * emulparams/i386nw.sh: Likewise.
1243 * emulparams/m68kelf.sh: Likewise.
1244 * scripttempl/elf.sc: Update NOP comment.
1245 * scripttempl/elfi370.sc: Likewise.
1246 * scripttempl/elfm68hc11.sc: Likewise.
1247 * scripttempl/elfm68hc12.sc: Likewise.
1248 * scripttempl/nw.sc: Likewise.
1249
b90e1c6f
TR
12502001-08-15 Tom Rix <trix@redhat.com>
1251
1252 * ldgram.y (saved_script_handle): Initialize to NULL.
1253 * ldmain.c (main): Change check on saved_script_handle.
948f9114 1254
39dcfe18
AM
12552001-08-14 Alan Modra <amodra@bigpond.net.au>
1256
cde43e70
AM
1257 * emultempl/elf32.em: Formatting fixes.
1258 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1259 looking at sec->owner.
1260 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1261 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1262 unused code, and reorganize orphan section placement code.
1263
39dcfe18
AM
1264 * ldlang.c (wild_doit): Rename to lang_add_section.
1265 * ldlang.h: Here too.
1266 * mpw-elfmips.c: And here.
1267 * emultempl/beos.em: And here.
1268 * emultempl/elf32.em: And here.
1269 * emultempl/hppaelf.em: And here.
1270 * emultempl/pe.em: And here.
1271
908d20b3
RH
12722001-08-13 Richard Henderson <rth@redhat.com>
1273
1274 * emultempl/needrelax.em: New file.
1275 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1276 * Makefile.am (eelf64_ia64.c): Depend on it.
1277 * Makefile.in: Rebuild.
1278
0f33d40b
AM
12792001-08-13 Alan Modra <amodra@bigpond.net.au>
1280
22af9fd3
AM
1281 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1282 output_section is set non-NULL.
1283
0f33d40b
AM
1284 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1285 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1286 needlessly create an output_section_statement. Treat a correctly
1287 named output_section_statement with NULL bfd_section as compatible.
1288
55ab6103
HPN
12892001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1290
1291 * emultempl/generic.em: Support EXTRA_EM_FILE.
1292 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1293 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1294 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1295 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1296 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1297 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1298 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1299 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1300 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1301 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1302
24098abb
RH
13032001-08-12 Richard Henderson <rth@redhat.com>
1304
1305 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1306 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1307 scripttempl/v850.sc: Keep .jcr data.
1308
b9a8de1e 13092001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
1310 Andrew Haley <aph@cambridge.redhat.com>
1311 Nick Clifton <nickc@redhat.com>
b9a8de1e 1312
146e7110 1313 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
1314 Change type to file handle.
1315 * ld.h (had_script): Rename and retype.
1316 * ldfile.c (ldfile_open_command_file): Save the file handle
1317 used in saved_script_handle.
1318 * lexsup.c (parse_args): Do not allow -c option to alter
1319 saved_script_handle.
1320 * ldmain.c (main): Print out the linker script used if
1321 --verbose is given. Check saved_script_handle to obtain the
1322 external linker script used, or if NULL, dump the builtin
1323 script.
1324 * ld.texinfo: Document that --verbose now dumps the linker
1325 script used, regardless of whether it was an internal or an
1326 external script.
1327
0218d1e4
AJ
13282001-08-10 Andreas Jaeger <aj@suse.de>
1329
1330 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1331 to build warnings.
1332 * configure: Regenerate.
1333
5253f23b
AM
13342001-08-09 Alan Modra <amodra@bigpond.net.au>
1335
73810896
AM
1336 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1337
5253f23b
AM
1338 * scripttempl/elf.sc: Move non-text .dynamic section before
1339 .plt/.got/.sdata* group.
1340 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1341 (OTHER_SDATA_SECTIONS): Add.
1342 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1343 OTHER_GOT_SECTIONS.
1344 * emulparams/crislinux.sh: Likewise.
1345 * emulparams/elf32b4300.sh: Likewise.
1346 * emulparams/elf32bmip.sh: Likewise.
1347 * emulparams/elf32bmipn32.sh: Likewise.
1348 * emulparams/elf32bsmip.sh: Likewise.
1349 * emulparams/elf32btsmip.sh: Likewise.
1350 * emulparams/elf32ebmip.sh: Likewise.
1351 * emulparams/elf32elmip.sh: Likewise.
1352 * emulparams/elf32l4300.sh: Likewise.
1353 * emulparams/elf32lmip.sh: Likewise.
1354 * emulparams/elf32lsmip.sh: Likewise.
1355 * emulparams/elf32ltsmip.sh: Likewise.
1356 * emulparams/elf64bmip.sh: Likewise.
1357 * emulparams/elf64btsmip.sh: Likewise.
1358 * emulparams/elf64ltsmip.sh: Likewise.
1359
179c732c
AM
13602001-08-08 Alan Modra <amodra@bigpond.net.au>
1361
1362 * genscripts.sh: Source the emulparams script before each output
1363 script is generated so that variables like `RELOCATING' may affect
1364 variables defined in the emulparams script.
1365
3fd36710
AM
13662001-08-04 Alan Modra <amodra@bigpond.net.au>
1367
20713691
AM
1368 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1369 order.
1370
3fd36710
AM
1371 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1372 ie. iterate over wild_statement.section_list.
1373 (gld${EMULATION_NAME}_place_orphan): Likewise.
1374
de0b1853
SC
13752001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1376
1377 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1378 .fini[0-4] sections used by _exit
1379 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1380 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1381 * scripttempl/elfm68hc11.sc: Likewise.
1382
ff7e6f88
L
13832001-08-03 H.J. Lu <hjl@gnu.org>
1384
1385 * emultempl/beos.em (init): Add the missing initialization.
1386
b6bf44ba
AM
13872001-08-03 Alan Modra <amodra@bigpond.net.au>
1388
1389 * ld.texinfo (Input Section Basics): Clarify ordering of output
1390 sections.
1391 * ldlang.c (callback_t): Add wildcard_list param.
1392 (walk_wild_section): Remove "section" param. Rewrite for
1393 lang_wild_statement_type change. Remove unique_section_p test.
1394 (walk_wild_file): Remove "section" param.
1395 (walk_wild): Remove "section" and "file" params.
1396 (lang_gc_wild): Likewise.
1397 (wild): Likewise. Modify for lang_wild_statement_type change.
1398 (wild_sort): Likewise. Add "sec" param.
1399 (gc_section_callback): Likewise.
1400 (output_section_callback): Likewise. Do unique_section_p test.
1401 (map_input_to_output_sections): Modify call to wild.
1402 (lang_gc_sections_1): Likewise.
1403 (print_wild_statement): Modify for lang_wild_statement_type
1404 change.
1405 (lang_add_wild): Replace filename, filenames_sorted param with
1406 filespec. Replace section_name, sections_sorted,
1407 exclude_filename_list with section_list.
1408 * ldlang.h (lang_add_wild): Here too.
1409 (lang_wild_statement_type): Replace section_name, sections_sorted,
1410 and exclude_filename_list with section_list.
1411 * ldgram.y (current_file): Delete.
1412 (%union): Add wildcard_list.
1413 (file_NAME_list): Set type to wildcard_list. Build a linked list
1414 rather than calling lang_add_wild for each entry.
1415 (input_section_spec_no_keep): Call lang_add_wild here instead.
1416 * ld.h (struct wildcard_list): Declare.
1417 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1418
b044cda1
CW
14192001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1420
1421 * ldmain.c (main): initialize link_info.pei386_auto_import
1422 * pe-dll.c: new tables for auto-export filtering
1423 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 1424 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
1425 "by hand".
1426
14272001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1428
b6bf44ba
AM
1429 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1430 static variable current_sec (static struct sec *). Add
b044cda1 1431 forward declaration for add_bfd_to_link.
b6bf44ba
AM
1432 (process_def_file): Don't export undefined symbols. Do not
1433 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
1434 with new API.
1435 (pe_walk_relocs_of_symbol): New function.
1436 (generate_reloc): add optional extra debugging
b6bf44ba 1437 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 1438 line in output
b6bf44ba 1439 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
1440 (DATA auto-import support).
1441 (make_singleton_name_thunk): New function.
1442 (make_import_fixup_mark): New function.
1443 (make_import_fixup_entry): New function.
1444 (pe_create_import_fixup): New function.
b6bf44ba 1445 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 1446 char *.
b6bf44ba
AM
1447 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1448 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
1449 pe_create_import_fixup.
1450 * emultempl/pe.em: add new options --enable-auto-import,
1451 --disable-auto-import, and --enable-extra-pe-debug.
1452 (make_import_fixup): New function.
1453 (pe_find_data_imports): New function.
1454 (pr_sym): New function.
b6bf44ba 1455 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
1456 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1457 CODE.
1458
14592001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 1460
b044cda1
CW
1461 * ld.texinfo: add additional documentation for
1462 --export-all-symbols. Document --out-implib,
1463 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
1464 --dll-search-prefix, --enable-auto-import, and
1465 --disable-auto-import.
b044cda1
CW
1466 * ldint.texinfo: Add detailed documentation on auto-import
1467 implementation.
1468
156e34dd
NC
14692001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1470
1471 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1472 example.
1473
d6231427
AM
14742001-07-24 Alan Modra <amodra@bigpond.net.au>
1475
1476 * Makefile.am: Update dependencies with "make dep-am".
1477 * Makefile.in: Regenerate
1478
e14ec88b
AM
14792001-07-23 Alan Modra <amodra@bigpond.net.au>
1480
1481 * ldcref.c (check_section_sym_xref): New function.
1482 (check_nocrossrefs): Call it.
1483 (check_nocrossref): Interate over h->refs here instead of..
1484 (check_refs): ..here. Pass in the symbol name, section, and bfd
1485 rather than hash_entry pointers.
1486 (struct check_refs_info): Keep symbol name rather than hash entry.
1487 Remove "same".
1488 (check_reloc_refs): Tweak for above changes in check_refs_info.
1489 Only report references to section syms when symname is NULL to
1490 prevent duplicate messages for the same reloc.
1491
1b577b00
NC
14922001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1493
c7d701b0
NC
1494 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1495 available. Do not print NULL trees.
1496 (exp_print_token): Print unknown tokens with values > 126 as
1497 decimal values not ASCII characters.
1498
1545243b
NC
1499 * ldlang.c (lang_leave_overlay): If a region is specified assign
1500 it to all sections inside the overlay unless they have been
1501 assigned to the own, non-default, memory region.
1502
1b577b00
NC
1503 * README: Add header for consistency with other README files.
1504
5030876b
L
15052001-07-14 H.J. Lu <hjl@gnu.org>
1506
1507 * emultempl/elf32.em (output_prev_sec_find): Never return
1508 bfd_abs_section_ptr, bfd_com_section_ptr nor
1509 bfd_und_section_ptr.
1510
18c7a9a5
NC
15112001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1512
22af9fd3 1513 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
1514 elf32.em.
1515 * Makefile.in: Regenerate.
1516
9ffecff1
MG
15172001-07-14 matthew green <mrg@eterna.com.au>
1518
1519 * configure.tgt (i386-*-netbsdelf*): New target.
1520 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1521
95500e1c
JJ
15222001-07-13 Jakub Jelinek <jakub@redhat.com>
1523
1524 * emultempl/elf32.em (output_prev_sec_find): New.
1525 (place_orphan): Use it.
1526
e97cb84f
L
15272001-07-11 H.J. Lu <hjl@gnu.org>
1528
1529 * ldmain.c (main): Fix typos in the last change.
1530
7333607e
JJ
15312001-07-11 Jakub Jelinek <jakub@redhat.com>
1532
1533 * ldmain.c (main): Disallow -F and -f without -shared.
1534
d29d80f2
NC
15352001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1536
1537 * emultempl/pe.em (after_open): Check for the output_bfd not
1538 having any coff_data structure allocated to it.
1539
c2a1a436
DB
15402001-07-09 David O'Brien <obrien@FreeBSD.org>
1541
1542 * emultempl/elf32.em: Do not assuming that contents of the buffer
1543 returned from basename function will remain unchanged accross other
1544 function calls.
1545
63653551
L
15462001-07-03 H.J. Lu <hjl@gnu.org>
1547
1548 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1549 2001-07-03. It creates dynamic entries even for static binaries.
1550
d303a449
L
15512001-07-03 Jakub Jelinek <jakub@redhat.com>
1552
1553 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1554 (DYNAMIC): Use it to reserve few dynamic entries for
1555 post-linking tools.
1556
9f22353f
AM
15572001-06-27 Alan Modra <amodra@bigpond.net.au>
1558
1559 * emulparams/hppa64linux.sh: New file.
1560 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1561 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1562 (ehppa64linux.c): Add rule to make it.
1563 Run "make dep-am".
1564 * Makefile.in: Regenerate.
1565
62bf86b4
HPN
15662001-06-21 Hans-Peter Nilsson <hp@axis.com>
1567
1568 * ld.texinfo (Options, -r): Mention restrictions when using
1569 different object formats.
1570
429d935d
HPN
15712001-06-19 Hans-Peter Nilsson <hp@axis.com>
1572
1573 * ldlang.c (lang_check): Emit fatal error if relocatable link
1574 between different object flavours with relocations in input.
1575
cb840a31
L
15762001-06-19 H.J. Lu <hjl@gnu.org>
1577
1578 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1579 (--version-script): Mention the language support.
1580
9bf03acc
L
15812001-06-19 H.J. Lu <hjl@gnu.org>
1582
1583 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1584
c45021f2
NC
15852001-06-18 H.J. Lu <hjl@gnu.org>
1586
b6bf44ba
AM
1587 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1588 (diststuff): Add $(MANS).
1589 * Makefile.in: Regenerated.
c45021f2 1590
b6bf44ba 1591 * ld.1: Removed.
c45021f2 1592
6caa99ab
HPN
15932001-06-18 Hans-Peter Nilsson <hp@axis.com>
1594
605d9b3a
HPN
1595 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1596 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1597 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1598 * ld.h (args_type): Remove member export_dynamic. All users
1599 changed to use struct bfd_link_info member.
1600
6caa99ab
HPN
1601 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1602 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1603 * Makefile.in: Regenerate.
1604
6f9efd97
L
16052001-06-18 H.J. Lu <hjl@gnu.org>
1606
1607 * ldlang.c (init_os): Add the newline to the einfo call.
1608 (lang_check): Likewise.
1609 (lang_do_version_exports_section): Likewise.
1610
5af9fd8b
L
16112001-06-15 H.J. Lu <hjl@gnu.org>
1612
1613 * lexsup.c (parse_args); Save optind to report unrecognized
1614 option.
1615
2a096f04
HPN
16162001-06-15 Hans-Peter Nilsson <hp@axis.com>
1617
7e66c3f5
HPN
1618 * ldlang.c (lang_check): Emit fatal error if relocatable link
1619 between different object flavours.
1620
2a096f04
HPN
1621 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1622 Set new link_info member export_dynamic.
1623 * ldmain.c (main): Initialize new link_info member export_dynamic.
1624
6770ec8c
NC
16252001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1626
1627 * ldlang.c (walk_wild): Only call walk_wild_file if
1628 lookup_name returns something.
b6bf44ba 1629 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 1630 (load_symbols): Change to a boolean function.
b6bf44ba 1631 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
1632 executable.
1633
8529105a
AM
16342001-06-08 Alan Modra <amodra@bigpond.net.au>
1635
1636 * ldlang.c (record_bfd_errors): Remove.
1637
1638 * emultempl/aix.em: Fix copyright dates.
1639
8f3aa7a0
AJ
16402001-06-07 Andreas Jaeger <aj@suse.de>
1641
1642 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1643 (TEXT_START_ADDR): Likewise.
1644
3277f888
AM
16452001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1646
1647 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1648
3763134d
DD
16492001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1650
1651 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1652
5929ebc0
L
16532001-05-31 H.J. Lu <hjl@gnu.org>
1654
1655 * ldlang.c (open_input_bfds): Don't change the bfd error
1656 handler whilst loading symbols.
1657
c04a062d
NC
16582001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1659
1660 * configure.tgt: Remove i370-mvs architecture, it is not currently
1661 supported.
1662
96fcab3e
L
16632001-05-25 H.J. Lu <hjl@gnu.org>
1664
1665 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1666 like emulparams/aixppc.sh.
1667
db8d4f23
L
16682001-05-25 H.J. Lu <hjl@gnu.org>
1669
1670 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
1671 setting of output_filename after bfd_scan_arch.
1672 * emultempl/pe.em: Likewise.
1673
5f642101
L
16742001-05-25 H.J. Lu <hjl@gnu.org>
1675
1676 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1677 like emulparams/aixppc.sh.
1678
1679 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
1680 instead of ${srcdir}/emultempl/stringify.sed.
1681
64e9ece0
TW
16822001-05-25 Timothy Wall <twall@oculustech.com>
1683
1684 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 1685 output.
64e9ece0 1686
c709b096
AM
16872001-05-25 Alan Modra <amodra@one.net.au>
1688
1689 * configure.host: Replace linuxoldld with linux*oldld.
1690 * configure.tgt: Likewise.
1691
6cbdcc6f
L
16922001-05-24 H.J. Lu <hjl@gnu.org>
1693
1694 * emultempl/stringify.sed: Removed again.
1695
86af25fe
L
16962001-05-24 H.J. Lu <hjl@gnu.org>
1697
1698 * emultempl/aix.em (OUTPUT_ARCH): Defined.
1699 (gld${EMULATION_NAME}_before_parse): Initialize
1700 ldfile_output_architecture, ldfile_output_machine and
1701 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
1702 * emultempl/beos.em: Likewise.
1703 * emultempl/elf32.em: Likewise.
1704 * emultempl/linux.em: Likewise.
1705 * emultempl/mipsecoff.em: Likewise.
1706 * emultempl/pe.em: Likewise.
1707 * emultempl/sunos.em: Likewise.
1708
3b1b01cf
TR
17092001-05-24 Tom Rix <trix@redhat.com>
1710
8f3aa7a0 1711 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
1712 udate import file format.
1713 (change_symbol_mode) New, same
1714 (is_syscall) New, same
1715 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
1716 * emulparams/aixppc64.sh : same
1717 * emulparams/aixrs6.sh : same
1718 * emulparams/ppcmacos.sh : same
1719 * emultempl/aix.em : use strtoull to parse options
1720 * Makefile.am : add eaixppc64 emulation for xcoff64
1721 * Makefile.in : same
1722 * configure.tgt : same
1723
1724 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 1725 default data section offset to 0x20000000
3b1b01cf 1726 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 1727 loader and debug sections use the currect section offset.
3b1b01cf
TR
1728
1729 * emultempl/aix.em : Add xcoff64 support
1730 Add -binitfini support
8f3aa7a0 1731 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 1732 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 1733 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
1734 sections
1735
1736 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 1737
57e6abd2
AO
17382001-05-23 Alexandre Oliva <aoliva@redhat.com>
1739
1740 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
1741 variable to avoid non-portable shell construct.
1742
d1cf510e
NC
17432001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1744
1745 * ldmain.c (get_emulation): Add -mips5 command line argument.
1746
506eee22
NC
17472001-05-22 Alexandre Oliva <aoliva@redhat.com>
1748
1749 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
1750 (ELF_INTERPRETER_NAME): Define it.
1751 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
1752 it.
1753 * configure.tgt (targ_emul, targ_extra_emuls)
1754 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
1755 as primary, elf_i386 as extra.
1756 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
1757 (eelf_i386_ldso.c): New rule.
1758 * Makefile.in: Rebuilt.
1759
17602001-05-22 Nick Clifton <nickc@redhat.com>
1761
1762 * lexsup.c (ld_options): Allow -I to be an alias for
1763 --dynamic-linker. This is for Solaris compatability.
1764 * ld.texinfo: Document that -I can be used.
1765 * ld.1: Regenerate.
1766
d1778b88
AM
17672001-05-16 Alan Modra <amodra@one.net.au>
1768
1769 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
1770 whether an input section is the first one assigned to an output
1771 section.
1772 Assorted formatting fixes.
1773
02649152
DD
17742001-05-14 DJ Delorie <dj@delorie.com>
1775
1776 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
1777 * Makefile.in: Ditto.
1778
579f31ac
JJ
17792001-05-11 Jakub Jelinek <jakub@redhat.com>
1780
1781 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
1782 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
1783 output sections.
1784 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
1785
8550eb6e
JJ
17862001-05-11 Jakub Jelinek <jakub@redhat.com>
1787
1788 * ldlang.c (lang_process): Call bfd_merge_sections.
1789
8e5a525c
AM
17902001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1791
1792 * ldgram.y: Fix typo.
1793
1c9acd94
L
17942001-05-03 H.J. Lu <hjl@gnu.org>
1795
1796 * emultempl/elf32.em: Include "libiberty.h".
1797 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
1798 basename of the bfd filename.
1799 (gld${EMULATION_NAME}_stat_needed): Likewise.
1800 (gld${EMULATION_NAME}_try_needed): Likewise.
1801 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
1802
14fe918e
L
18032001-05-02 H.J. Lu <hjl@gnu.org>
1804
1805 * emultempl/pe.em: Include <ctype.h>.
1806
c7e40348
NC
18072001-05-02 Johan Rydberg <jrydberg@opencores.org>
1808
b6bf44ba 1809 * emulparams/elf32openrisc.sh: New file.
c7e40348 1810
b6bf44ba
AM
1811 * Makefile.am: Add OpenRISC target.
1812 * Makefile.in: Regenerated.
c7e40348 1813
b6bf44ba 1814 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
1815
18162001-05-02 Nick Clifton <nickc@redhat.com>
1817
1818 * emultempl/aix.em: Replace buystring with xstrdup.
1819 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 1820
d1b2b2dc
L
18212001-05-02 H.J. Lu <hjl@gnu.org>
1822
1823 * ldfile.c: Include "libiberty.h".
1824 * ldlex.l: Likewise.
1825
1826 * ldmisc.c (buystring): Removed.
1827 * ldmisc.h: Likewise.
1828
1829 * ldfile.c: Replace buystring with xstrdup.
1830 * ldlang.c: Likewise.
1831 * ldlex.l: Likewise.
1832 * ldmain.c: Likewise.
1833 * ldmisc.c: Likewise.
1834 * lexsup.c: Likewise.
1835 * mpw-eppcmac.c: Likewise.
1836
35714f2a
AJ
18372001-04-30 Andreas Jaeger <aj@suse.de>
1838
1839 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
1840
884fb58e
NC
18412001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1842
b6bf44ba
AM
1843 * ldlang.c (load_symbols): Give emulation a chance
1844 to process unrecognized file before fatal error is
1845 reported, not after.
884fb58e 1846
87748b32
NC
18472001-04-27 Sean McNeil <sean@mcneil.com>
1848
1849 * configure.tgt: Add arm-vxworks target.
1850 * scripttempl/armcoff.sc: Support .text or .data as a section name
1851 prefix.
1852 Define _etext.
35714f2a 1853
7ce691ae
C
18542001-04-13 J.T. Conklin <jtc@redback.com>
1855
1856 * ld.texinfo: Document --fatal-warnings.
1857 * ld.1: Regenerate.
1858
1859 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 1860 warnings have been turned into errors.
7ce691ae
C
1861 * lexsup.c (OPTION_WARN_FATAL): Define.
1862 (ld_options): Entry for --fatal-warnings.
1863 (parse_args): Handle OPTION_WARN_FATAL.
1864 * ld.h (ld_config_type): Add fatal_warnings field.
1865
f5fa8ca2
JJ
18662001-04-13 Jakub Jelinek <jakub@redhat.com>
1867
1868 * ldmain.c (main): Default to discard_sec_merge.
1869 * lexsup.c (OPTION_DISCARD_NONE): Define.
1870 (ld_options): Add --discard-none.
1871 (parse_args): Handle OPTION_DISCARD_NONE.
1872 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
1873 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
1874 all its input sections match.
1875
fdec3cfc
L
18762001-04-05 Steven J. Hill <sjhill@cotw.com>
1877
1878 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
1879 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
1880 (eelf32ltsmip.c): New target.
1881 (eelf64btsmip.c): Likewise.
1882 (eelf64ltsmip.c): Likewise.
1883 * Makefile.in: Regenerated.
1884
1885 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
1886 target.
1887 (mips*-*-linux-gnu*): Likewise.
1888
1889 * emulparams/elf32ltsmip.sh: New. Traditional little endian
1890 MIPS taget.
35714f2a 1891 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
1892 target.
1893 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
1894 endian target.
1895
589bad82
HPN
18962001-04-05 Hans-Peter Nilsson <hp@axis.com>
1897
1898 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
1899 correct value of __Stext here.
1900 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
1901 .startup section.
1902
1903 * emulparams/crislinux.sh: Remove FIXME.
1904
94202e16
AM
19052001-04-02 Alan Modra <alan@linuxcare.com.au>
1906
1907 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
1908 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
1909
1268a053
HPN
19102001-03-27 Hans-Peter Nilsson <hp@axis.com>
1911
1912 * configure.tgt (cris-*-*): Change default emulation to criself.
1913 (cris-*-*aout*): New rule.
1914
d85e9ff7
AM
19152001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
1916
1917 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
1918 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
1919
0879a67a
AJ
19202001-03-26 Andreas Jaeger <aj@suse.de>
1921
1922 * ld.texinfo (Overview): Fix syntax in texi code.
1923
0285c67d
NC
19242001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1925
1926 * ld.texinfo: Put @c man indications to generate the ld man page.
1927 When generating man, define all the variables. Define SEEALSO
1928 and SYNOPSIS. Re-organize some lines to avoid the cross references.
1929 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
1930 (ld.1): Generate from ld.texinfo.
1931 * Makefile.in: Regenerate.
1932
c20ec07b
NC
19332001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
1934
1935 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 1936 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 1937
cc5ce052
UD
19382001-03-17 Ulrich Drepper <drepper@redhat.com>
1939
1940 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
1941 is an absolute path look only for this file and not along the path.
1942
a1ab1d2a
UD
19432001-03-17 Ulrich Drepper <drepper@redhat.com>
1944
1945 * emultempl/elf32.em (OPTION_GROUP): New macro.
1946 Add new option Bgroup to longopts.
1947 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
1948 (gld*_list_options): Add -Bgroup and -z defs.
1949 * ld.1: Document -Bgroup and -z defs.
1950 * ld.texinfo: Likewise.
1951
788fca5a
MM
19522001-03-07 Michael Meissner <meissner@redhat.com>
1953
1954 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
1955 with sections created by -fdata-sections.
1956 (.dynbss,.bss): Ditto.
1957
1c7566d1
AM
19582001-03-05 Alan Modra <alan@linuxcare.com.au>
1959
1960 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
1961 after_allocation_default, not gld..._before_allocation.
1962
27b7e12d
AM
19632001-02-27 Alan Modra <alan@linuxcare.com.au>
1964
1965 * configure.in (BFD_VERSION): New.
1966 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
1967 * configure: Regenerate.
1968 * Makefile.am: Run "make dep-am"
1969 * Makefile.in: Regenerate.
1970
2bc551c7
TW
19712001-02-26 Timothy Wall <twall@cygnus.com>
1972
1973 * emulparams/elf64_aix.sh: Add additional read-only sections;
1974 uncomment lines which are now required.
1975
1276aefa
NC
19762001-02-26 H.J. Lu <hjl@gnu.org>
1977
1978 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
1979 that problems can be caught whilst loading symbols.
1980 (record_bfd_errors): New function: Report BFD errors and mark
1981 the executable output as being invalid.
1276aefa 1982
41c49998
TW
19832001-02-22 Timothy Wall <twall@cygnus.com>
1984
1985 * configure.host: Add configuration for ia64-*-aix*.
1986 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
1987 Add dependencies for eelf64_aix.c.
1988 * Makefile.in: Regenerate.
1989 * configure.tgt: Add ia64-*-aix* mapping.
1990 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 1991 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
1992 AIX-specific test.
1993
78f85fd7
L
19942001-02-20 H.J. Lu <hjl@gnu.org>
1995
1996 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
1997 false if we found the file.
1998
1ac7e077 19992001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
2000
2001 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2002 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2003
e135f41b
NC
20042001-02-18 lars brinkhoff <lars@nocrew.org>
2005
2006 * Makefile.am: Add PDP-11 target.
2007 * configure.tgt: Likewise.
2008 * emulparams/pdp11.sh: New file.
2009
a842aceb
DB
20102001-02-17 David O'Brien <obrien@FreeBSD.org>
2011
2012 * configure.host: Add a generic FreeBSD configuration entry such that
2013 all [modern] FreeBSD systems on all platforms will look the same.
2014
24174db0
L
20152001-02-14 H.J. Lu <hjl@gnu.org>
2016
2017 * configure.tgt: Remove mention of earmelf_linux26.
2018
30c3c13a
RH
20192001-02-13 Richard Henderson <rth@redhat.com>
2020
2021 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2022
b46a87b1
L
20232001-02-13 H.J. Lu <hjl@gnu.org>
2024
2025 * ldexp.h (node_type): Add etree_provided.
2026 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2027 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 2028 for etree_provided.
b46a87b1
L
2029 (exp_print_tree): Handle etree_provided.
2030 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2031 etree_provided.
2032
f3988fd9
RH
20332001-02-09 David Mosberger <davidm@hpl.hp.com>
2034
2035 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2036 .IA_64.unwind.* pattern to unwind table section and
2037 .IA_64.unwind_info* pattern to unwind info section.
2038
a85d7ed0
NC
20392001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2040
2041 * Makefile.am: Add linux target for S/390.
2042 * Makefile.in: Likewise.
2043 * configure.host: Likewise.
2044 * configure.tgt: Likewise.
2045 * emulparams/elf64_s390.sh: New file.
2046 * emulparams/elf_s390.sh: New file.
2047
780248c4
JJ
20482001-02-09 Jakub Jelinek <jakub@redhat.com>
2049
2050 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2051 targ_extra_libpath.
2052 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2053
0e2534bd
PB
20542001-02-06 Philip Blundell <philb@gnu.org>
2055
2056 * Makefile.am: Remove mention of earmelf_linux26.
2057 * Makefile.in: Regenerate.
2058
46c1ea57
PB
20592001-02-04 Philip Blundell <philb@gnu.org>
2060
2061 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2062 * emulparams/armelf_linux26.sh: Delete.
2063 * configure.tgt: Remove mention of armelf_linux26 emulation.
2064
0088edd2
NC
20652001-02-01 Nick Clifton <nickc@redhat.com>
2066
2067 * ld.1: Replace occurances of -oformat with --oformat.
2068
02aa14fb
AM
20692001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2070
2071 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2072 load_base is specified.
2073
f813923c
HPN
20742001-01-24 Hans-Peter Nilsson <hp@axis.com>
2075
2076 * emultempl/elf32.em: Correct spelling in comments and listed
2077 options.
2078
c1eb1488
AM
20792001-01-23 Alan Modra <alan@linuxcare.com.au>
2080
2081 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2082 default for the first section of a group of overlay sections.
2083
d9fc3714
AM
20842001-01-22 Alan Modra <alan@linuxcare.com.au>
2085
2086 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2087 * Makefile.in: Regenerate.
2088 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2089 Check for null tool_dir.
2090
6be0ca94
JW
20912001-01-16 Jim Wilson <wilson@redhat.com>
2092
2093 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2094 and IA_64.unwind.info.
2095
b9247304
L
20962001-01-16 H.J. Lu <hjl@gnu.org>
2097
2098 * ldlang.c (lang_check): Merge the private data only if the
2099 input file has contents.
2100
577a0623
AM
21012001-01-14 Alan Modra <alan@linuxcare.com.au>
2102
d952f17a
AM
2103 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2104
ffd6e9de
AM
2105 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2106 enabling search for libmilli. On a relocatable link, make .text
2107 sections unique.
2108 (LDEMUL_AFTER_PARSE): Define.
2109 (hppaelf_finish): Correct spelling of relocatable in comments.
2110
577a0623
AM
2111 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2112 rummage through the script for sections on the unique list.
2113 Correct length of strncmp for ".note".
2114 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2115
2116 * ldlang.c (unique_section_list): New var.
2117 (unique_section_p): New function.
2118 (walk_wild_section): Don't match sections on unique_section_list.
2119 (lang_add_unique): New function.
ffd6e9de 2120 Correct spelling of relocatable in comments.
577a0623
AM
2121
2122 * ldlang.h (struct unique_sections): Declare.
2123 (unique_section_list): Declare.
2124 (unique_section_p): Declare.
2125 (lang_add_unique): Declare.
2126
2127 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2128 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2129
2130 * ld.texinfo (--unique): Update.
2131
b7ed8fad
NC
21322001-01-13 Nick Clifton <nickc@redhat.com>
2133
2134 * lexsup.c (parse_args): Remove spurious white space.
2135
d0398d6a
NC
21362001-01-12 Nick Clifton <nickc@redhat.com>
2137
2138 * lexsup.c (parse_args): Update copyright date.
2139
350fdb00
PB
21402001-01-12 Philip Blundell <pb@futuretv.com>
2141
2142 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2143
60c6797e
KH
21442001-01-10 Kazu Hirata <kazu@hxi.com>
2145
2146 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2147 * scripttempl/h8300h.sc: Fix formatting.
2148 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
2149 * scripttempl/h8500.sc: Likewise.
2150 * scripttempl/h8500b.sc: Likewise.
2151 * scripttempl/h8500c.sc: Likewise.
2152 * scripttempl/h8500m.sc: Likewise.
2153 * scripttempl/h8500s.sc: Likewise.
60c6797e 2154
482e8b32
DB
21552000-01-07 David O'Brien <obrien@BSDi.com>
2156
2157 * emultempl/elf32.em: Only perform Linux ld hints processing when
2158 targeting Linux.
2159
d7ed7ca6
PB
21602001-01-07 Philip Blundell <philb@gnu.org>
2161
2162 * ld.texinfo (Bug Reporting): Update email address for reports.
2163
0fc3347a
NC
21642000-12-31 Nick Clifton <nickc@redhat.com>
2165
2166 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2167 options by checking for a return value of '?' not -1.
2168
e4897a32
NC
21692000-12-28 Nick Clifton <nickc@redhat.com>
2170
2171 * lexsup.c (struct ld_option): Add new enum value:
2172 EXACTLY_TWO_DASHES.
2173 (ld_options[]): Change -omagic, -output and -oformat options
2174 to be EXACTLY_TWO_DASHES.
2175 (OUTPUT_COUNT): Use ARRAY_SIZE.
2176 (parse_args): Change parameter 'argc' to unsigned.
2177 Place EXACTLY_TWO_DASHES options into new really_longopts
2178 array.
2179 If getopt_long_only fails, try calling getopt_long using the
2180 really_longopts array.
2181 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2182 TWO_DASHES options.
2183
2184 * ldlex.h: Fix prototype of parse_args.
2185
2186 * ld.texinfo: Document that long options starting with 'o'
2187 must be preceeded by two dashes. Change example of a single
2188 dashed long option from -oformat to -trace-symbol.
2189
1122a5fc
NC
21902000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2191
2192 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2193 (longopts[]): New --no-default-excludes option.
2194 (gld_${EMULATION_NAME}_list_options): Document.
2195 (gld_${EMULATION_NAME}_parse_args): Handle.
2196
037849a9
NC
21972000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2198
2199 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2200 whitespace, it breaks the K&R C preprocessor.
2201
7ec229ce
DD
22022000-12-11 DJ Delorie <dj@redhat.com>
2203
2204 * ld.texinfo: Add notes about --whole-archive and gcc.
2205
b79e8c78
NC
22062000-11-18 Fred Fish <fnf@be.com>
2207
2208 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2209 (ld_options): Entry for --allow-shlib-undefined.
2210 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2211 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2212 to false.
2213 * ld.texinfo: Document new command line switch.
d952f17a 2214
9a8e2505
GK
22152000-12-12 Geoffrey Keating <geoffk@redhat.com>
2216
2217 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2218 .fixup is actually read/write.
2219 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2220 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2221 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2222
3b16e843 22232000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
2224
2225 * NEWS: Add note about x86_64 architecture.
2226
93b63cd3
DD
22272000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2228
2229 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2230 Set DWARF2 sections to a VMA of zero.
2231
24f6971a
NC
22322000-12-01 Joel Sherrill <joel@OARcorp.com>
2233
d952f17a 2234 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
2235 New targets.
2236 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2237 (sparc*-*-rtems*): Switched from a.out to ELF.
2238
2be3aa03
NC
22392000-11-30 Jan Hubicka <jh@suse.cz>
2240
2241 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2242 (eelf_x86_64.c): New.
2243 * Makefile.in: Regenerate.
2244 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2245 * emulparams/elf_x86_64.sh: New.
2246
8c899858
HPN
22472000-11-30 Hans-Peter Nilsson <hp@axis.com>
2248
2249 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2250 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2251
2252 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2253 merging non-a.out sections into CONSTRUCTING.
2254
e47b9e39
NC
22552000-11-28 Nick Clifton <nickc@redhat.com>
2256
2257 * ld.1 (COPYING): Mention that the GNU Free Documentation
2258 License is present in the sources, but not the output, and
2259 also available from the GNU website.
2260 (GNU Free Documentation License): Comment out this section.
2261
ad95f82a
DB
22622000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2263
2264 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2265 does not use them.
2266
fd89e65f
DB
22672000-11-25 David O'Brien <obrien@FreeBSD.org>
2268
2269 * ld.1: Remove old date so it does not give the impression the manpage
2270 is way out of date.
2271
077b8428
NC
22722000-11-24 Nick Clifton <nickc@redhat.com>
2273
2274 * configure.tgt (xscale-coff): Add target.
2275 (xscale-elf): Add target.
2276
49425d28
NC
22772000-11-24 Fred Fish <fnf@be.com>
2278
d952f17a
AM
2279 * ldmain.c (main): Remove redundant init of config.make_executable
2280 to true.
49425d28 2281
d3480244
RH
22822000-11-15 Richard Henderson <rth@redhat.com>
2283
2284 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2285
1ce7de8b
KH
22862000-11-14 Kazu Hirata <kazu@hxi.com>
2287
2288 * scripttempl/h8300.sc: Fix formatting.
2289 * scripttempl/h8300h.sc: Likewise.
2290 * scripttempl/h8300s.sc: Likewise.
2291
3b16e843 22922000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
2293
2294 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2295
2e418547
PB
22962000-11-09 Philip Blundell <pb@futuretv.com>
2297
2298 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2299 around orphan sections whose names can be represented in C.
2300
c940e6fc
JW
23012000-11-07 Jim Wilson <wilson@redhat.com>
2302
2303 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2304 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2305
704c465c
NC
23062000-11-06 Nick Clifton <nickc@redhat.com>
2307
2308 * ld.texinfo: Add GNU Free Documentation License.
2309 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 2310 * ld.1: Add GNU Free Documentation License.
704c465c 2311
dca7760f
AM
23122000-11-05 Alan Modra <alan@linuxcare.com.au>
2313
2314 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2315 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2316
2317 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2318 Move 2000-11-02 Makefile.in changes to this file.
2319 * Makefile.in: Regenerate.
2320
40a633d5
NC
23212000-11-03 Nick Clifton <nickc@redhat.com>
2322
2323 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2324 constructors and destructors.
2325 * scripttempl/h8300h.sc: Ditto.
2326 * scripttempl/h8300s.sc: Ditto.
2327 * scripttempl/h8500.sc: Ditto.
2328 * scripttempl/h8500b.sc: Ditto.
2329 * scripttempl/h8500c.sc: Ditto.
2330 * scripttempl/h8500m.sc: Ditto.
2331 * scripttempl/h8500s.sc: Ditto.
2332 * scripttempl/v850.sc: Ditto.
2333 * scripttempl/w65.sc: Ditto.
2334 * scripttempl/z8000.sc: Ditto.
2335
59ff2774
NC
23362000-11-02 Per Lundberg <plundis@chaosdev.org>
2337
2338 * Makefile.in (e_i386_chaos.c): New rule.
2339 (ALL_EMULATIONS): Added e_i386_chaos.o.
2340 * emulparams/elf_i386_chaos.sh: New file.
2341 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2342
645571e1
JJ
23432000-10-20 Jakub Jelinek <jakub@redhat.com>
2344
2345 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2346 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2347 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2348 library path suffix.
2349 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2350
c5975a45
HPN
23512000-10-18 Hans-Peter Nilsson <hp@axis.com>
2352
2353 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2354 for consecutive sections.
2355
ea20a7da
CC
23562000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2357
d952f17a
AM
2358 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2359 options.
2360 * ld.texinfo: Added notes about this new option.
ea20a7da 2361
6e45556a
NC
23622000-10-16 Nick Clifton <nickc@redhat.com>
2363
2364 * emultempl/pe.em (_after_open): Add tests of return values from
2365 bfd functions. Emit appropriate error messages if necessary.
2366
b9a69188
NC
23672000-10-13 Nick Clifton <nickc@redhat.com>
2368
2369 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
2370 local variables - they are not used, but leave in the call to
2371 bfd_canonicalize_symtab.
b9a69188
NC
2372 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2373 pe_dll_search_prefix.
2374
627427de 23752000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 2376
627427de
DD
2377 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2378 (longopts): New --dll-search-prefix option.
2379 (gld_${EMULATION_NAME}_list_options): Document.
2380 (gld_${EMULATION_NAME}_parse_args): Handle.
2381 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2382 dynamically, search for a dll named '<prefix><basename>.dll'
2383 in preference to 'lib<basename>.dll' if --dll-search-prefix
2384 is specified.
2385
24376d1b
AM
23862000-10-12 Alan Modra <alan@linuxcare.com.au>
2387
2388 * ldlang.c (section_already_linked): Set kept_section instead of
2389 sec->comdat->sec.
2390
e47d05ad
KH
23912000-10-10 Kazu Hirata <kazu@hxi.com>
2392
2393 * deffile.h: Fix formatting.
2394 * lexsup.c: Likewise.
2395 * mri.c: Likewise.
2396
23a87948
DD
23972000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2398
2399 * pe-dll.c (make_one): Do not generate code thunk for DATA
2400 exports.
2401 (process_def_file): deduce DATA flag for auto-export sumbols.
2402
86b1cc60
KH
24032000-10-09 Kazu Hirata <kazu@hxi.com>
2404
89cdebba
KH
2405 * ld.h: Fix formatting.
2406 * ldcref.c: Likewise.
2407 * ldctor.h: Likewise.
2408 * ldemul.c: Likewise.
2409 * ldemul.h: Likewise.
2410 * ldexp.c: Likewise.
2411 * ldexp.h: Likewise.
2412 * ldfile.c: Likewise.
2413 * ldfile.h: Likewise.
2414 * ldlang.c: Likewise.
2415 * ldlang.h: Likewise.
2416 * ldmain.c: Likewise.
7bfd51a3
KH
2417 * pe-dll.c: Likewise.
2418
2419 * pe-dll.c: Revert some formatting fixes.
86b1cc60 2420
d643799d
KH
24212000-10-08 Kazu Hirata <kazu@hxi.com>
2422
2423 * pe-dll.c: Fix formatting.
2424
08da4cac
KH
24252000-10-05 Kazu Hirata <kazu@hxi.com>
2426
2427 * ldlang.c: Fix formatting.
2428
c2a94a7a
DD
24292000-10-03 DJ Delorie <dj@redhat.com>
2430
2431 * pe-dll.c (fill_edata): initialize entire block
2432 (make_one): fill in correct section.
2433
8c95a62e
KH
24342000-10-03 Kazu Hirata <kazu@hxi.com>
2435
2436 * ldexp.c: Fix formatting.
2437
486e80e2
DD
24382000-10-02 DJ Delorie <dj@redhat.com>
2439
2440 * emultempl/pe.em (gld_*_after_open): detect case where there two
2441 import libraries for same dll; rename one to ensure proper link
2442 order.
2443
2444 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2445 typo
2446 (generate_edata): fix typo
2447
24dd9f75
HPN
24482000-09-29 Hans-Peter Nilsson <hp@axis.com>
2449
2450 * scripttempl/crisaout.sc (ENTRY): Now __start.
2451 (.text): Add default setting for __start.
2452 Remove CONSTRUCTORS handling.
2453 (/DISCARD/): Add .gnu.warning.*.
2454 * emulparams/crislinux.sh (ENTRY): Now __start.
2455 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2456 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2457 (ENTRY): Now __start.
2458 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2459 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2460
4de2d33d
KH
24612000-09-29 Kazu Hirata <kazu@hxi.com>
2462
5cc18311
KH
2463 * deffile.h: Fix formatting.
2464 * ld.h: Likewise.
2465 * ldcref.c: Likewise.
4de2d33d 2466 * ldctor.c: Likewise.
5cc18311 2467 * ldctor.h: Likewise.
4de2d33d 2468 * ldemul.c: Likewise.
5cc18311 2469 * ldemul.h: Likewise.
4de2d33d 2470 * ldexp.c: Likewise.
5cc18311 2471 * ldexp.h: Likewise.
4de2d33d 2472 * ldfile.c: Likewise.
5cc18311 2473 * ldfile.h: Likewise.
4de2d33d 2474 * ldlang.c: Likewise.
5cc18311
KH
2475 * ldlang.h: Likewise.
2476 * lexsup.c: Likewise.
2477 * mri.c: Likewise.
2478 * pe-dll.c: Likewise.
4de2d33d 2479
45b1f63c
DD
24802000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2481
2482 * pe-dll.c (process_def_file): Uninitialized data wasn't
2483 exported with --export-all-symbols switch.
d952f17a 2484
45b1f63c
DD
24852000-09-28 DJ Delorie <dj@redhat.com>
2486
2487 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2488 noname work properly.
2489
47d89dba
AM
24902000-09-28 Alan Modra <alan@linuxcare.com.au>
2491
2492 * ld.texinfo (HPPA ELF32): New section.
2493
2494 * emultempl/hppaelf.em (group_size): New.
2495 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2496 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2497 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2498 options to prevent abbreviations matching.
2499 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2500 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2501
36bdbeec
NC
25022000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2503
2504 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2505 on the m68*-*-elf target. Make it support COFF input objects.
2506
6d5e62f8
KH
25072000-09-21 Kazu Hirata <kazu@hxi.com>
2508
2509 * ldmain.c: Fix formatting.
2510 * ldmisc.c: Likewise.
2511 * ldver.c: Likewise.
2512 * ldwrite.c: Likewise.
2513
e2eb67d9
AM
25142000-09-21 Alan Modra <alan@linuxcare.com.au>
2515
2516 * ldwrite.c (clone_section): Silence gcc warnings.
2517
b3ea3584
AM
25182000-09-20 Alan Modra <alan@linuxcare.com.au>
2519
2520 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2521 out of memory failure.
2522
2523 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2524 (clone_section): Handle out of memory failures. Rename var to
2525 avoid c++ reserved word.
2526
25f72752
AM
25272000-09-18 Alan Modra <alan@linuxcare.com.au>
2528
2529 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2530 stub_name param to stub_sec_name.
2531 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2532
0752970e
NC
25332000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2534
2535 * emultempl/m68kelf.em: New file.
2536 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2537 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2538 * Makefile.in: Regenerate.
2539
92b7e9d8
AM
25402000-09-15 Alan Modra <alan@linuxcare.com.au>
2541
2542 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2543 only as needed.
2544
9b14b192
NC
25452000-09-13 Nick Clifton <nickc@redhat.com>
2546
2547 * ldmain.c (multiple_definition): Disable relaxation if
2548 multiple symbol definitions are encountered - otherwise the
2549 linker could abort with an assertion failure.
2550
891fa266
NC
25512000-09-10 Nick Clifton <nickc@redhat.com>
2552
2553 * mri.c: Fix formatting.
2554
5d64ca4e
L
25552000-09-07 H.J. Lu <hjl@gnu.org>
2556
2557 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2558 * configure: Rebuild.
2559
dd94604f
L
25602000-09-07 H.J. Lu <hjl@gnu.org>
2561
2562 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2563 * Makefile.in: Rebuild.
2564
71bfc0ae
AM
25652000-09-07 Alan Modra <alan@linuxcare.com.au>
2566
2567 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2568 broken list handling. Create __start_SECNAME and __stop_SECNAME
2569 when no place-holder. Add some comments. Test both SEC_CODE and
2570 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 2571 Handle case where no output section statement created.
71bfc0ae 2572
4a428502
AO
25732000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2574
2575 * configure.tgt (sh-*-linux*): Added.
2576 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2577 * Makefile.in: Rebuilt.
2578 * emulparams/shelf_linux.sh: New file.
2579 * emulparams/shlelf_linux.sh: New file.
2580
f9989030
AM
25812000-09-06 Alan Modra <alan@linuxcare.com.au>
2582
2583 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2584 try shuffling sections when the orphan happens to be the place
2585 holder. Keep count of unique section names generated so we speed
2586 the search for a new name.
2587
58cccadb
AO
25882000-09-06 Alexandre Oliva <aoliva@redhat.com>
2589
2590 * configure: Rebuilt with new libtool.m4.
2591
5b343f5a
NC
25922000-09-05 Nick Clifton <nickc@redhat.com>
2593
2594 * Makefile.in: Regenerate.
2595 * aclocal.m4: Regenerate.
2596 * configure: Regenerate.
2597 * config.in: Regenerate.
2598 * po/ld.pot: Regenerate.
2599
2600 * ldint.texinfo: Remove CVS revision marker - it foils local
2601 comparisons.
2602
2603 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 2604
a854a4a7
AM
26052000-09-05 Alan Modra <alan@linuxcare.com.au>
2606
3231d22e
AM
2607 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2608 to stub section flags.
2609 (hppa_for_each_input_file_wrapper): New.
2610 (hppa_lang_for_each_input_file): New.
2611 (lang_for_each_input_file): Define to call above.
2612 (multi_subspace): New.
2613 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2614 (PARSE_AND_LIST_PROLOGUE): Define.
2615 (PARSE_AND_LIST_LONGOPTS): Define.
2616 (PARSE_AND_LIST_OPTIONS): Define.
2617 (PARSE_AND_LIST_ARGS_CASES): Define.
2618 (hppaelf_finish): Call elf32_hppa_set_gp.
2619 (hppaelf_set_output_arch): Remove.
2620 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2621
2622 * emulparams/hppalinux.sh (ELFSIZE): Define.
2623 (MACHINE): Define.
2624 (OTHER_READONLY_SECTIONS): Define.
2625 (DATA_PLT): Define.
2626 (GENERATE_SHLIB_SCRIPT): Define.
2627
5f992e62
AM
2628 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2629 to const throughout. Change `void *' to `PTR' throughout.
2630 (lang_memory_default): Function is local to file, add `static'.
2631
2632 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2633 (ehppalinux.c): Likewise.
2634 (earmelf.c): Likewise.
2635 (earmelf_linux.c): Likewise.
2636 (earmelf_linux26.c): Likewise.
2637 * Makefile.in: Regenerate.
2638
a854a4a7
AM
2639 * ld.h (ld_config_type): Add unique_orphan_sections.
2640 * lexsup.c (OPTION_UNIQUE): Define.
2641 (ld_options): Add "--unique".
2642 (parse_args): Handle it.
2643 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2644 search for an existing output section if unique_orphan_sections is
2645 set. Make use of bfd_get_unique_section_name rather than
2646 duplicating code here.
2647 * ld.texinfo: Describe --unique.
2648
2649 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2650 optional arg to split-by-file.
2651 (parse_args): Handle them.
2652 * ld.texinfo: Update description of these options.
2653 * ldwrite.c (clone_section): Pass in the section name. Replace
2654 local code with bfd_get_unique_section_name.
2655 (split_sections): Tidy code and comments. Use a list traversal
2656 more appropriate to the list construction. Handle cooked section
2657 sizes. Split when split_by_reloc reached rather than exceeded.
2658 Track section size and split when split_by_file reached. Fix
2659 link_order_tail (even though it's not used).
2660 (ldwrite): Modify condition for calling split_sections to suit
2661 changed split_by_reloc and split_by_file.
2662 * ldmain.c (main): Init config.split_by_reloc and
2663 config.split_by_file to -1.
2664 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
2665 Change split_by_file to bfd_size_type.
2666
18e03609
NC
26672000-09-02 Nick Clifton <nickc@redhat.com>
2668
2669 * configure.in: Increase version number to 2.10.91.
2670 * NEWS: Mention new ability to support removal of duplicate DWARF2
2671 debug information.
2672 * configure: Regenerate.
2673 * aclocal.m4: Regenerate.
2674 * config.in: Regenerate.
2675
3a9d486c
NC
26762000-09-02 Daniel Berlin <dberlin@redhat.com>
2677
2678 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
2679 sections.
a2b64bed 2680 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
2681 * scripttempl/elfd10v.sc: Ditto.
2682 * scripttempl/elfd30v.sc: Ditto.
2683 * scripttempl/elfi370.sc: Ditto.
2684 * scripttempl/elfm68hc11.sc: Ditto.
2685 * scripttempl/elfm68hc12.sc: Ditto.
2686 * scripttempl/elfi386beos.sc: Ditto.
2687 * scripttempl/v850.sc: Ditto.
50bbae35 2688
ac48eca1
AO
26892000-08-31 Alexandre Oliva <aoliva@redhat.com>
2690
2691 * acinclude.m4: Include libtool and gettext macros from the
2692 top level.
2693 * aclocal.m4, configure: Rebuilt.
2694
c13b1b77
NC
26952000-08-25 Nick Clifton <nickc@redhat.com>
2696
2697 * ldlang.c (open_output): When choosing the target for a
2698 particular endianness, do nothing if the target is not
2699 supported.
2700
dcb0bd0e
L
27012000-08-25 H.J. Lu <hjl@gnu.org>
2702
2703 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2704 check -rpath nor LD_RUN_PATH for cross link.
2705 * ld.texinfo: Document the change.
2706
5bcac8a4
HPN
27072000-08-24 Hans-Peter Nilsson <hp@axis.com>
2708
2709 * NEWS: Mention support for CRIS.
2710
6dd8c765
L
27112000-08-23 H.J. Lu <hjl@gnu.org>
2712
2713 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
2714 the current runpath list from bfd_elf_get_runpath_list ()
2715 before search.
2716
ec4eb78a
L
27172000-08-22 H.J. Lu <hjl@gnu.org>
2718
2719 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
2720 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
2721 LD_LIBRARY_PATH for native linker. Display the needed DSO if
2722 trace_file_tries is non-zero.
2723 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
2724 if trace_file_tries is non-zero.
2725
2726 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 2727 * NEWS: Mention it.
ec4eb78a 2728
22b36938
JE
27292000-08-14 Jason Eckhardt <jle@cygnus.com>
2730
2731 * NEWS: Mention i860 support.
2732
d73e9da0
AS
27332000-08-14 Andreas Schwab <schwab@suse.de>
2734
2735 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 2736 syntax.
d73e9da0 2737
9ac4db9c
GK
27382000-08-10 Geoff Keating <geoffk@cygnus.com>
2739
2740 * scripttempl/elf.sc: Add a comment giving the correspondence
2741 between sections, per-datum sections, and linkonce sections. Make
2742 the comment true even for .bss, .sdata, .sdata2, .sbss, and
2743 .sbss2.
2744
165589e4
JE
27452000-08-10 Jason Eckhardt <jle@cygnus.com>
2746
2747 * emulparams/elf32_i860.sh: New file.
2748 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
2749 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
2750 (eelf32_i860.c): New rule.
2751 * Makefile.in: Regenerate.
2752
345a835d
NC
27532000-08-10 Nick Clifton <nickc@cygnus.com>
2754
2755 * emulparams/mipspe.sh (ENTRY): Add definition.
2756
e374f1d9
NC
27572000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
2758
2759 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
2760 in error message.
2761
236d5abf
NC
27622000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2763
2764 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
2765 the final size of .bss section.
2766 * scripttempl/elfm68hc12.sc: Likewise.
2767
4b209b22
AM
27682000-08-04 Alan Modra <alan@linuxcare.com.au>
2769
2770 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
2771 gld${EMULATION_NAME}_parse_args for consistency. Combine
2772 lastoptind and prevoptind vars, and keep track of last optind.
2773 (gld_${EMULATION_NAME}_list_options): Rename to
2774 gld${EMULATION_NAME}_list_options.
2775
28423a68
AM
27762000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
2777
2778 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
2779 (i586-sco-sysv5uw7.1.0).
2780
b2009ff7
L
27812000-07-27 H.J. Lu <hjl@gnu.org>
2782
2783 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
2784 (PARSE_AND_LIST_PROLOGUE): New.
2785 (PARSE_AND_LIST_LONGOPTS): Likewise.
2786 (PARSE_AND_LIST_OPTIONS): Likewise.
2787 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2788 (PARSE_AND_LIST_EPILOGUE): Likewise.
2789
04925e1e
AM
27902000-07-28 Alan Modra <alan@linuxcare.com.au>
2791
41392f03
AM
2792 * emultempl/armelf.em: Elide functions common to elf32.em,
2793 ie. most of the file.
2794 (arm_elf_after_open): New. Do arm specific things then call
2795 gld${EMULATION_NAME}_after_open.
2796 (arm_elf_before_allocation): New. Call
2797 gld${EMULATION_NAME}_before_allocation then do arm specifics.
2798 (PARSE_AND_LIST_PROLOGUE): Define.
2799 (PARSE_AND_LIST_SHORTOPTS): Define.
2800 (PARSE_AND_LIST_LONGOPTS): Define.
2801 (PARSE_AND_LIST_OPTIONS): Define.
2802 (PARSE_AND_LIST_ARGS_CASES): Define.
2803 (LDEMUL_AFTER_OPEN): Define.
2804 (LDEMUL_BEFORE_ALLOCATION): Define.
2805 (LDEMUL_BEFORE_PARSE): Define.
2806 (LDEMUL_FINISH): Define.
2807
2808 * emultempl/hppaelf.em: Similarly zap most of this file.
2809 (hppaelf_add_stub_section): Prototype.
2810 (hppaelf_layaout_sections_again): Prototype.
2811 (hook_in_stub): Prototype.
2812 (LDEMUL_SET_OUTPUT_ARCH): Define.
2813 (LDEMUL_FINISH): Define.
2814 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2815
2816 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
2817 (EXTRA_EM_FILE): New.
2818 * emulparams/armelf_linux.sh: Likewise.
2819 * emulparams/armelf_linux26.sh: Likewise.
2820 * emulparams/hppalinux.sh: Likewise.
2821 * emulparams/hppaelf.sh: Likewise.
2822 (NOP): Define.
2823
2824 * emultempl/elf32.em: Fix formatting.
2825 (EXTRA_EM_FILE): Source it.
2826 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2827 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2828 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2829 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2830 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2831 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2832 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2833 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2834 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
2835 allow functions in this file to be overridden.
2836 (PARSE_AND_LIST_SHORTOPTS): Handle it.
2837
2838 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
2839
04925e1e
AM
2840 * emultempl/elf32.em: Reorganize file.
2841
88cdf297
NC
28422000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
2843
2844 * emulparams/elf64alpha.sh: Implement "-taso" emulation
2845 specific option to fit 64-bit executable in the lower
2846 31-bit address range. This is done by changing start
2847 address of .interp (the very first section of executable)
2848 and then setting EF_ALPHA_32BIT elf header flag.
2849
20bccb34
NC
28502000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2851
2852 * emultempl/m68kcoff.em: New file.
2853 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
2854 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
2855 generic.em.
2856 * Makefile.in: Regenerate.
2857
699845ef
L
28582000-07-20 H.J. Lu <hjl@gnu.org>
2859
2860 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
2861 and "disable-new-dtags" to stop getopt from treating -d/-e as
2862 abbreviations for these options.
2863
6c1439be
L
28642000-07-20 H.J. Lu <hjl@gnu.org>
2865
2866 * ld.texinfo: Add documentation for --disable-new-dtags and
2867 --enable-new-dtags.
2868
2869 * ldmain.c (main): Initialize link_info.new_dtags to false.
2870
2871 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
2872 --disable-new-dtags and --enable-new-dtags.
2873 (gld_${EMULATION_NAME}_list_options): Likewise.
2874
28c309a2
NC
28752000-07-05 Kenneth Block <krblock@computer.org>
2876
a2b64bed
NC
2877 * lexsup.c: Add optional style to demangle switch
2878 * ld.texinfo: Document optional style to demangle switch.
50bbae35 2879
9d06555c
HPN
28802000-07-20 Hans-Peter Nilsson <hp@axis.com>
2881
2882 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
2883 ecrislinux.o.
2884 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
2885 Regenerate dependencies.
2886 * Makefile.in: Rebuild.
2887 * configure.tgt (cris-*-*): New target.
2888 * emulparams/crisaout.sh, emulparams/criself.sh,
2889 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
2890 * po/POTFILES.in, po/ld.pot: Regenerate.
2891
19e3be22
L
28922000-07-20 H.J. Lu <hjl@gnu.org>
2893
2894 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
2895 Print out ignored -z options.
2896
e0ee487b
L
28972000-07-19 H.J. Lu <hjl@gnu.org>
2898
19e3be22
L
2899 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
2900 (PARSE_AND_LIST_PROLOGUE): New.
2901 (PARSE_AND_LIST_LONGOPTS): Likewise.
2902 (PARSE_AND_LIST_OPTIONS): Likewise.
2903 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2904
2905 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
2906
2907 * lexsup.c (ld_options): Comment out 'z'.
2908 (parse_args): Likewise.
2909
2910 * emultempl/elf32.em: Include "elf/common.h".
2911 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
2912 options.
2913 (gld_${EMULATION_NAME}_list_options): Likewise.
2914
2915 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 2916
49e56c49
L
29172000-07-19 H.J. Lu <hjl@gnu.org>
2918
2919 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
2920 bfd_elf_set_dt_needed_soname ().
2921
9d68bc82
DD
29222000-07-18 DJ Delorie <dj@cygnus.com>
2923
2924 * pe-dll.c (pe_dll_id_target): check object target name also
2925
53db15ed
HPN
29262000-07-18 Hans-Peter Nilsson <hp@axis.com>
2927
2928 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
2929 ${INIT_END} if relocating.
2930 (.fini): Likewise ${FINI_START} and ${FINI_END}.
2931
0ad8cf4c
DD
29322000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
2933
a2b64bed 2934 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
2935 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
2936 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
2937 errors introduced by the old dynamic lib search order.
2938
874c8c99
DD
29392000-07-17 DJ Delorie <dj@cygnus.com>
2940
2941 * pe-dll.c (process_def_file): auto-export data items also
2942 (pe_process_import_defs): also see if _imp_ form needed
2943
5b4cf3f4
DD
29442000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2945
2946 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
2947 for dll import libraries
2948
062739d1
NC
29492000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
2950
2951 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 2952 gcc 2.95.2 and later.
062739d1 2953
1c64c4ed
NC
29542000-07-11 Kazu Hirata <kazu@hxi.com>
2955
50bbae35
AM
2956 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
2957 message.
1c64c4ed 2958
b71e2778
AM
29592000-07-10 Alan Modra <alan@linuxcare.com.au>
2960
2961 * ldemul.h (struct lang_input_statement_struct): Remove forward
2962 declaration.
2963 (struct search_dirs): Likewise.
2964 * ldfile.h (struct lang_input_statement_struct): Likewise.
2965 Protect file from multiple inclusion.
2966 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
2967 declaration from macro to file scope.
2968
2969 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
2970 * ldgram.y: Likewise here.
2971 * ldlang.c: And here.
2972 * ldmain.c: And here.
2973 * mpw-elfmips.c: And here.
2974 * mpw-eppcmac.c: And here.
2975 * emultempl/aix.em: And here.
2976 * emultempl/armcoff.em: And here.
2977 * emultempl/armelf.em: And here.
2978 * emultempl/armelf_oabi.em: And here.
2979 * emultempl/beos.em: And here.
2980 * emultempl/elf32.em: And here.
2981 * emultempl/hppaelf.em: And here.
2982 * emultempl/linux.em: And here.
2983 * emultempl/lnk960.em: And here.
2984 * emultempl/pe.em: And here.
2985 * emultempl/sunos.em: And here.
2986 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
2987 * mpw-idtmips.c: Ditto.
2988 * emultempl/generic.em: Ditto.
2989 * emultempl/gld960.em: Ditto.
2990 * emultempl/gld960c.em: Ditto.
2991 * emultempl/mipsecoff.em: Ditto.
2992 * emultempl/ticoff.em: Ditto.
2993 * emultempl/vanilla.em: Ditto.
2994
2995 * pe-dll.c: Include ldfile.h
2996 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
2997
2998 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
2999 arguments to bfd_elf32_size_dynamic_sections call.
3000 (gldelf32ebmip_place_orphan): Add missing arguments to
3001 lang_leave_output_section_statement call.
3002
2ef53d66
L
30032000-07-10 H.J. Lu <hjl@gnu.org>
3004
3005 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3006 DLL_SUPPORT.
3007 (strhash): Likewise.
3008 (compute_dll_image_base): Likewise.
3009 (pe_undef_found_sym): Likewise.
3010 (pe_undef_cdecl_match): Likewise.
3011 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3012 argument "arch" with ATTRIBUTE_UNUSED.
3013
9a8cbb09
AM
30142000-07-10 Alan Modra <alan@linuxcare.com.au>
3015
3016 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3017
3018 From Ryan Bradetich <rbradetich@uswest.net>
3019 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 3020
4900fc06
AM
30212000-07-09 Alan Modra <alan@linuxcare.com.au>
3022
3023 Changes to create multiple linker stubs, positioned immediately
3024 before the section where they are required.
3025 * emultempl/hppaelf.em: Include elf32-hppa.h.
3026 (stub_sec, file_chain): Delete.
3027 (hppaelf_create_output_section_statements): Don't make a stub
3028 section here.
3029 (hook_stub_info): New struct.
3030 (hook_in_stub): New function.
3031 (hppaelf_add_stub_section): New function.
3032 (hppaelf_finish): Do nothing for relocateable links. Modify the
3033 call to elf32_hppa_size_stubs. Move code for updating section
3034 layout from here...
3035 (hppaelf_layaout_sections_again): ..to here, a new function.
3036
3037 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3038 broken list handling. Pass in a pointer to the list.
3039 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3040 for above changes.
3041 (hppaelf_before_parse): Prototype.
3042 (hppaelf_set_output_arch): Prototype.
3043 (hppaelf_create_output_section_statements): Prototype.
3044 (hppaelf_delete_padding_statements): Prototype.
3045 (hppaelf_finish): Prototype.
3046
3047 Merge from elf32.em
3048 * emultempl/hppaelf.em: Include ctype.h.
3049 (struct orphan_save): New.
3050 (gld${EMULATION_NAME}_place_orphan): New.
3051 (output_rel_find): New.
3052 (hppaelf_get_script): Update from elf32.em.
3053 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3054 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 3055 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
3056
3057 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3058 ehppalinux.o, sort it. Regenerate dependencies.
3059 (ehppalinux.c): Depend on hppaelf.em
3060 * Makefile.in: Regenerate.
3061
3062 * configure.tgt: targ_emul=hppalinux for hppa*linux
3063
3064 * emulparams/hppalinux.sh: New.
3065 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3066
227aeb07
AM
30672000-07-08 Alan Modra <alan@linuxcare.com.au>
3068
3069 * lexsup.c (parse_args): Copy section name.
3070
28609fd4 30712000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 3072
2ef53d66 3073 * emultempl/pe.em: institute the following search order for
602e90d3
DD
3074 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3075 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3076 static lib (libfoo.a) if none of the above are found.
3077
5f577f7d
DD
30782000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3079
50bbae35 3080 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 3081 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 3082 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
3083 (gld_${EMULATION_NAME}_parse): Handle.
3084 (strhash): New static function.
50bbae35 3085 (compute_dll_image_base): New static function.
5f577f7d
DD
3086 (gld_${EMULATION_NAME}_set_symbols): Use.
3087
9a8cbb09 30882000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
3089
3090 * MAINTAINERS: new
3091
3548145d 30922000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
3093
3094 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3095 * emulparams/elf32btsmip.sh: New file.
3096 * Makefile.am: Add traditional mips target.
3097 * Makefile.in: Rebuild.
3098
67798033
L
30992000-07-01 H.J. Lu <hjl@gnu.org>
3100
3101 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3102 automake to use YLWRAP.
3103 * Makefile.in: Rebuild.
3104
0bdaf48b
AM
31052000-07-01 Alan Modra <alan@linuxcare.com.au>
3106
3107 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3108 (CLEANFILES): Add DEPA.
3109 * Makefile.in: Regenerate.
3110
c9e769c2
TW
31112000-06-30 Timothy Wall <twall@ppc>
3112
3113 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3114 the page in the upper octet of the address.
3115
65aa24b6
NC
31162000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3117
3118 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3119
4667035e
AM
31202000-06-24 Alan Modra <alan@linuxcare.com.au>
3121
3122 * NEWS: arm-elf does --gc-sections too.
3123
1581f8c9
AM
31242000-06-22 Alan Modra <alan@linuxcare.com.au>
3125
3126 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3127 find one.
3128 * Makefile.in: Regenerate.
3129
01580992
L
31302000-06-21 H.J. Lu <hjl@gnu.org>
3131
3132 * Makefile.am: Rebuild dependency.
3133 * Makefile.in: Rebuild.
3134
bbeb2e03
L
31352000-06-20 H.J. Lu <hjl@gnu.org>
3136
3137 * Makefile.am: Rebuild dependency.
3138 * Makefile.in: Rebuild.
3139
74459f0e
TW
31402000-06-20 Timothy Wall <twall@cygnus.com>
3141
3142 * scripttempl/tic54xcoff.sc: New.
3143 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3144 * gen-doc.texi: Add flag for TI COFF.
3145 * ld.texinfo: Add documentation for TI COFF handling switches.
3146 * emultempl/ticoff.em: New. TI COFF handling.
3147 * configure.tgt: Add tic54x target.
3148 * Makefile.am: Add tic54x target.
3149 * Makefile.in: Ditto.
3150
2ab47eed
AM
31512000-06-20 Alan Modra <alan@linuxcare.com.au>
3152
3153 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3154 checking for backslashes.
3155
919e4093
AM
31562000-06-19 Alan Modra <alan@linuxcare.com.au>
3157
3158 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3159
987fd5b4
AM
31602000-06-18 Alan Modra <alan@linuxcare.com.au>
3161
3162 * NEWS: Update list of targets supporting --gc-sections.
3163
3164 * scripttempl/elf.sc: KEEP .eh_frame contents.
3165 * scripttempl/elfd30v.sc: Same here.
3166
60bcf0fa
NC
31672000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3168
3169 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3170 and m68hc11 (elf).
3171 * Makefile.in: Rebuild.
3172 * configure.tgt: Recognize m68hc12 and m68hc11.
3173 * scripttempl/elfm68hc12.sc: New file.
3174 * emulparams/m68hc12elfb: New emulation.
3175 * emulparams/m68hc12elf: New emulation.
3176 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3177 (includes a memory.x script to define the ROM and RAM banks).
3178 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3179 New configuration files for support of Motorola 68hc11
3180
c7c54483
AM
31812000-06-15 Alan Modra <alan@linuxcare.com.au>
3182
3183 * ldmain.c (main): Only change SEC_READONLY for final link.
3184
bcef29e6
L
31852000-06-13 H.J. Lu <hjl@gnu.org>
3186
3187 * configure: Regenerate.
3188
946efd95
DB
31892000-06-08 David O'Brien <obrien@FreeBSD.org>
3190
3191 * configure.in (VERSION): Update to show this is the CVS mainline.
3192
57a6fd07
DB
31932000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3194
3195 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3196 input objects to be ECOFF.
3197 (check_sections): einfo takes %B, not %P, to print a BFD name.
3198
e06cae36
L
31992000-06-05 Michael Matz <matz@ifh.de>
3200
3201 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 3202 version scripts.
e06cae36 3203
d952f17a 3204 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 3205
2f0b56c0
DC
32062000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3207
3208 * emulparams/avr1200.sh (STACK): Define as 0.
3209 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3210 * emulparams/avr4433.sh (STACK): Likewise.
3211 * emulparams/avr44x4.sh (STACK): Likewise.
3212 * emulparams/avr85xx.sh (STACK): Likewise.
3213 * emulparams/avrmega103.sh (STACK): Likewise.
3214 * emulparams/avrmega161.sh (STACK): Likewise.
3215 * emulparams/avrmega603.sh (STACK): Likewise.
3216 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3217 (__stack): Define from ${STACK} for main().
3218
2114f57b
AM
32192000-05-26 Alan Modra <alan@linuxcare.com.au>
3220
3221 * Makefile.am: Update dependencies with "make dep-am"
3222 * Makefile.in: Regenerate.
3223
5af11cab
AM
32242000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3225
3226 * ldmain.c: Include filenames.h.
3227 (set_scripts_dir): Support backslashes in program name.
3228
1f0df59a
NC
32292000-05-22 Igor Shevlyakov <igor@windriver.com>
3230
3231 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
3232 read-only, don't forget to reset SEC_READONLY because it
3233 could be already set.
1f0df59a 3234
176355da
NC
32352000-05-22 Thomas de Lellis <tdel@windriver.com>
3236
50bbae35
AM
3237 * ld.1: Add documentation for new command line option:
3238 --section-start <sectionname>=<sectionorg>
3239 This is a generic version of -Ttext etc. which accepts
3240 any section name as a parameter instead of just text/data/
3241 bss.
3242 * ld.texinfo: More docs.
3243 * NEWS: More docs.
3244 * lexsup.c: (parse_args): Recognize new command line option.
176355da 3245 (ld_options): Add new option.
50bbae35 3246
8c5ff972
L
32472000-05-18 H.J. Lu <hjl@gnu.org>
3248
3249 * lexsup.c (parse_args): `i' == `r', not `q'.
3250
3b16e843 32512000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
3252
3253 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3254
a712da20
NC
32552000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3256 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 3257
a712da20
NC
3258 Add support for '-q' == '--emit-relocs' switch.
3259 * ldmain.c (main): Default to false.
3260 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3261 * NEWS: Describe the emitrelocations switch.
3262 * ld.texinfo: Describe the emitrelocations switch.
3263
690a460e
NC
32642000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3265
a2b64bed 3266 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
3267 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3268 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3269 link options.
50bbae35 3270
c2f1343c
AM
32712000-05-15 David O'Brien <obrien@FreeBSD.org>
3272
3273 * lexsup.c (parse_args): Update the year in the copyright notice.
3274
897083bd
AM
32752000-05-13 Alan Modra <alan@linuxcare.com.au>
3276
3277 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3278 Replace defines with those from intl/libgettext.h to quieten gcc
3279 warnings.
3280
cd4c806a
L
32812000-05-10 H.J. Lu <hjl@gnu.org>
3282
3283 * ldlang.c (open_input_bfds): Don't load the same file within
3284 a group again if the whole archive has been loaded already.
3285
93697284
AM
32862000-05-03 Alan Modra <alan@linuxcare.com.au>
3287
3288 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3289 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3290 strtoul.
3291
3b16e843 32922000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 3293
99a4150f 3294 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 3295
ebd6fc29
JW
3296 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3297 host "ia64-*-linux-gnu*".
3298
a1934524
AM
32992000-04-29 Andreas Jaeger <aj@suse.de>
3300
3301 * ld.h: Correctly check GCC version.
3302
3b16e843 33032000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
3304
3305 * Makefile.am: Add PA64 support. Add missing dependencies for
3306 PA32 elf support.
3307 * Makefile.in: Rebuilt.
3308 * configure.tgt: Add PA64 support (currently disabled).
3309
aea4bd9d
AM
33102000-04-25 Alan Modra <alan@linuxcare.com.au>
3311
3312 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3313 (output_rel_find): New function.
3314 (hold_section, hold_use): Delete.
3315 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3316 hold_interp): Make local to place_orphan.
3317 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3318 rather than place_section to find possible previous use of orphan.
3319 Similarly find the place-holder output sections. Use returned
3320 value from lang_enter_output_section_statement rather than calling
3321 lang_output_section_statement_lookup.
3322 * emultempl/armelf.em: Same here.
3323 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3324
3325 * ldlang.c (lang_enter_output_section_statement): Return output
3326 section statement.
3327 * ldlang.h (lang_enter_output_section_statement): Change
3328 declaration too.
3329
3330 * ldlang.h (lang_output_section_statement): Export it.
3331 * ldlang.c (lang_output_section_statement): Ditto.
3332
2b5fc1f5
NC
33332000-04-24 Nick Clifton <nickc@cygnus.com>
3334
3335 * ld.texinfo (Output Section Data): Add note that section data
3336 commands cannot appear outside of section directives.
3337
d8475ff6
JL
33382000-04-2 Matthew Green <mrg@cygnus.com>
3339
3340 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3341
3b16e843
NC
33422000-04-21 Richard Henderson <rth@cygnus.com>
3343 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
3344
3345 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3346 (eelf64_ia64.c): New rule.
3347 * Makefile.in: Rebuild.
3348 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3349 * emulparams/elf64_ia64.sh: New file.
50bbae35 3350
c9637625
RH
33512000-04-21 Richard Henderson <rth@cygnus.com>
3352
3353 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3354
28ea9521
AM
33552000-04-19 Alan Modra <alan@linuxcare.com.au>
3356
3357 * dep-in.sed: Match space at start of file name, not at end.
3358
20d04697
L
33592000-04-18 H.J. Lu <hjl@gnu.org>
3360
3361 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3362 lang_leave_output_section_statement () after calling
3363 lang_enter_output_section_statement ().
3364 * emultempl/armelf.em: Likewise.
3365
5ba47421
AM
33662000-04-18 Alan Modra <alan@linuxcare.com.au>
3367
3368 * emultempl/elf32.em (struct orphan_save): Add section field.
3369 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3370 better order, and place first orphan section as we did before the
3371 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3372 Don't call make_bfd_section here, let wild_doit do the job for us.
3373 Don't build a statement list when we'll only throw it away.
3374 * emultempl/armelf.em: Ditto.
3375 * emultempl/pe.em: Similarly.
3376
bdbe5705
GK
33772000-04-14 Geoff Keating <geoffk@cygnus.com>
3378
3379 * scripttempl/elfppc.sc: Remove.
3380 * emulparams/elf32ppc.sh: Use elf.sc.
3381 * emulparams/elf32lppc.sh: Use elf.sc.
3382 * emulparams/elf32ppclinux.sh: Use elf.sc.
3383 * emulparams/elf32ppcsim.sh: New file.
3384 * emulparams/elf32lppcsim.sh: New file.
3385 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3386 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3387 * Makefile.in: Regenerate.
3388 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3389
01cc8ff8
AM
33902000-04-14 Alan Modra <alan@linuxcare.com.au>
3391
5ba47421 3392 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 3393 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
3394 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3395 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
3396 Also set all relocateable section start addresses.
3397
6c86c541
GK
33982000-04-13 Geoff Keating <geoffk@cygnus.com>
3399
3400 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3401 Add new BSS_PLT variable for when .plt need not be contained in
3402 the file. Move _etext so that it is also after .fini, and provide
3403 both etext and _etext with a leading underscore. Mark the start
3404 and end of .sbss.
3405
6a345e87
AM
34062000-04-12 Alan Modra <alan@linuxcare.com.au>
3407
3408 * emultempl/elf32.em (struct orphan_save): New.
3409 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3410 hold_interp): Make them struct orphan_save.
3411 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3412 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3413 the end of the relevant section list. Also add associated section
3414 statements to the end of any previous orphan statements.
3415 * emultempl/armelf.em: Similarly.
3416 * emultempl/pe.em: Similarly.
3417
8be86746
AM
34182000-04-11 Alan Modra <alan@linuxcare.com.au>
3419
3420 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3421
3b16e843 34222000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 3423
a2d91340 3424 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 3425 --enable-build-warnings option.
a2d91340
AC
3426 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3427 * Makefile.in, configure: Re-generate.
3428
41b49281
AM
34292000-04-04 Alan Modra <alan@linuxcare.com.au>
3430
8ad3436c
AM
3431 * po/ld.pot: Regenerate.
3432
3433 * lexsup.c (help): Restore translated part of bug string.
3434
41b49281
AM
3435 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3436 (DEP): Quote when passing vars to sub-make. Add warning message
3437 to end.
3438 (DEP1): Rewrite for "gcc -MM".
3439 (CLEANFILES): Add DEP2.
3440 Update dependencies.
3441 * Makefile.in: Regenerate.
3442
c20f4f8c
AM
34432000-04-03 Alan Modra <alan@linuxcare.com.au>
3444
3445 * ld.h: #include "bin-bugs.h"
3446 * lexsup.c (help): Use REPORT_BUGS_TO.
3447
adde6300
AM
34482000-03-27 Denis Chertykov <denisc@overta.ru>
3449
3450 * configure.tgt (avr-*-*): New target support.
3451 * Makefile.am: Likewise.
3452 * scripttempl/elf32avr.sc: New script file.
3453 * emulparams/avr1200.sh: New file.
3454 * emulparams/avr23xx.sh: New file.
3455 * emulparams/avr4433.sh New file.
3456 * emulparams/avr44x4.sh New file.
3457 * emulparams/avr85xx.sh New file.
3458 * emulparams/avrmega103.sh New file.
3459 * emulparams/avrmega161.sh New file.
3460 * emulparams/avrmega603.sh New file.
3461 * Makefile.in: Regenerate.
3462
9282ff41
L
34632000-03-09 Andreas Jaeger <aj@suse.de>
3464
3465 * Makefile.am (check-DEJAGNU): Also unset LANG.
3466 * Makefile.in: Rebuild.
3467
a9998805
ILT
34682000-03-06 Ian Lance Taylor <ian@zembu.com>
3469
3470 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3471 archive.
3472
f9bc20e7
NC
34732000-03-02 H.J. Lu <hjl@gnu.org>
3474
3475 * emulparams/elf32mcore.sh: Include "getopt.h".
3476
4e277b38
ILT
34772000-03-01 Ian Lance Taylor <ian@zembu.com>
3478
3479 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3480
f0c87f88
NC
34812000-03-01 H.J. Lu <hjl@gnu.org>
3482
3483 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3484 * emulparams/shpe.sh: Likewise.
3485
34862000-03-01 Nick Clifton <nickc@cygnus.com>
3487
3488 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3489 to unused parameters.
3490
3491 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3492 functions only used by DLL code.
3493 (_place_orphan): Initialise 'dollar'.
3494
b6f29aaa
L
34952000-03-01 H.J. Lu <hjl@gnu.org>
3496
3497 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3498 indicate if the undefined symbol is a fatal error or not.
3499 Don't delete the output file if "fatal" is false.
3500
af28fce3
L
35012000-02-29 H.J. Lu <hjl@gnu.org>
3502
50bbae35 3503 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
3504 Set LC_COLLATE and LC_ALL to null and export them. It is for
3505 sort which expects the C locale.
3506 Add $(LIBS) to all $(HOSTING_LIBS).
3507 * Makefile.in: Rebuild.
3508
40d109bf
AM
35092000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3510
3511 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3512 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3513 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3514 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3515 find_potential_libraries.
3516
db5be682
JB
35172000-02-28 Jim Blandy <jimb@redhat.com>
3518
3519 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 3520 list entries; the lexer considers commas to be valid part of a
db5be682
JB
3521 filename, so in something like `foo, bar' the comma is considered
3522 part of the first filename, `foo,'.
3523 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3524
3558ff4c
ILT
35252000-02-27 Loren J. Rittle <ljrittle@acm.org>
3526
3527 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3528 host "i[3456]86-*-freebsdelf*".
3529
4eee2681
ILT
35302000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3531
3532 * scripttempl/i386go32.sc: Move misplaced semicolons.
3533
8d75d12d
ILT
35342000-02-25 Ian Lance Taylor <ian@zembu.com>
3535
3536 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3537 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3538 (eelf64hppa.c, ehppaelf.c): Remove targets.
3539 * Makefile.in: Rebuild.
3540
a1836d49
AO
35412000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3542
ad51fb57
AO
3543 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3544 GNU/Linux/sparc, but keep the default as 32.
3545
a1836d49
AO
3546 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3547 it default if sparcv9 or sparc64.
3548
344a211f
NC
35492000-02-24 Nick Clifton <nickc@cygnus.com>
3550
3551 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3552 * Makefile.in: Regenerate.
3553 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3554
3555 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3556 find_potential_libraries.
3557 * ldemul.c (ldemul_find_potential_libraries): New function.
3558
3559 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 3560 exported.
344a211f
NC
3561 (ldfile_open_file): Call ldemul_find_potential_libraries.
3562 * ldfile.h: Add prototype for ldfile_open_file_search.
3563
3564 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3565
3566 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3567 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3568
3569 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3570 (gld_X_find_potential_libraries): New function. Search for
3571 libraries called "*.lib".
3572
a2b64bed 3573 * scripttempl/pe.sc: Add .pdata section.
344a211f 3574
eaba1dd3
RH
35752000-02-23 Richard Henderson <rth@cygnus.com>
3576
3577 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3578 Add and use memory regions.
3579
5b93d8bb
AM
35802000-02-23 Linas Vepstas (linas@linas.org)
3581
3582 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3583
3584 * Makefile.am: Add support for Linux/IBM 370.
3585 * configure.tgt: Likewise.
3586
3587 * Makefile.in: Regenerate.
3588
f6af82bd
AM
35892000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3590
3591 * ldlang.c (print_input_section, print_data_statement,
3592 print_reloc_statement, print_padding_statement, insert_pad,
3593 size_input_section, lang_check_section_addresses,
3594 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 3595 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
3596 (lang_do_assignments): Also change `size' to unsigned.
3597
9e673ad1
RH
35982000-02-16 Richard Henderson <rth@cygnus.com>
3599
3600 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3601
562d3460
TW
36022000-02-16 Timothy Wall <twall@cygnus.com>
3603
3604 * mri.c (mri_draw_tree): Add default LMA region argument to call
3605 to lang_leave_output_section_statement.
3606 * ldlang.h: Update prototypes with LMA region arguments.
3607 * ldlang.c (lang_size_sections): Encapsulate region bounds
3608 checking in os_check_region call.
3609 (os_check_region): New function.
3610 (lang_output_section_statement_lookup): Initialize lma_region.
3611 (lang_leave_output_section_statement): Add LMA region argument.
3612 (lang_leave_overlay): Ditto.
3613 * ldgram.y: Handle LMA region syntax.
3614 * ld.texinfo (Output Section Description): Describe LMA region usage.
3615 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 3616 lma region in call to lang_leave_output_section_statement.
562d3460 3617 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 3618 lma region in call to lang_leave_output_section_statement.
562d3460 3619 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 3620 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
3621
3622
9e4ed18c
TW
36232000-02-04 Timothy Wall <twall@redhat.com>
3624
3625 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3626 octets when calculating section end addresses.
3627
32edc927
TW
36282000-02-04 Timothy Wall <twall@redhat.com>
3629
3630 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3631
4cbfc3ac
TW
36322000-02-03 Timothy Wall <twall@redhat.com>
3633
a2b64bed 3634 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 3635 octet count.
a2b64bed 3636 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
3637 print_reloc_statement, print_padding_statement): Print target
3638 address values and section sizes as bytes, not octets.
3639 (insert_pad) Calculate padding size in octets, and adjust "dot"
3640 by bytes.
3641 (size_input_section) Always adjust "dot" by bytes, not octets.
3642 (lang_check_section_addresses, lang_do_assignments) Adjust
3643 "dot" by bytes, not octets. Use the larger of the directive size
3644 or octets_per_byte for the number of octets actually allocated in
3645 the output section.
3646 (lang_set_startof) Make sure STARTOF returns a target address.
3647 (lang_one_common) Record size changes in octets.
3648 (lang_abs_symbol_at_end_of) Section end symbol's value is
3649 recorded in target bytes.
3650 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
3651 to be clear about behavior when an octet is smaller than one byte.
50bbae35 3652
305c7206
AM
36532000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3654
3655 * ldcref.c (output_cref): Don't pass message strings to printf
3656 as format arg.
3657 Update copyright.
3658
3659 * ldmisc.c (vfinfo): Same here.
3660 Update copyright.
3661
e1c47aa4
AM
36622000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3663
3664 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
3665 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
3666 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
3667 Add missing NULL initialisers, and comments.
3668
3669 * testsuite/ld-srec/sr3.cc (__rethrow): New.
3670
13392b77
NC
36712000-01-21 Nick Clifton <nickc@cygnus.com>
3672
3673 * ldlang.c (lang_size_sections): Fix typo in comment.
3674
cce4c4c5
NC
36752000-01-18 H.J. Lu <hjl@gnu.org>
3676
3677 * ldlang.c (lang_size_sections): Also update the current
3678 address of a region if the SEC_NEVER_LOAD bit is not set.
3679
0decc840
NC
36802000-01-10 Philip Blundell <pb@futuretv.com>
3681
3682 * configure.tgt (arm*-*-conix*): New target.
3683
4e53152f
NC
36842000-01-07 Nick Clifton <nickc@cygnus.com>
3685
3686 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
3687 line switches with -Wl, (or whatever is appropriate) if it is
3688 being invoked by a comnpiler driver program.
50bbae35 3689 Fix description of the behaviour of the -n command line switch.
4e53152f 3690
3b16e843 36912000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
3692
3693 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
3694 (name_list): New.
3695 * ld.texinfo (EXCLUDE_FILE): Update documentation.
3696 * ldgram.y (wildcard_spec): Support a list of excluded_files.
3697 (exclude_name_list): New.
3698 ldlang.c (walk_wild_section): Support list of excluded files.
3699 (print_wild_statement): Likewise.
3700 (lang_add_wild): Likewise.
3701 * ldlang.h (lang_wild_statement_type): Likewise.
3702 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 3703
5aaace27
NC
37042000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3705
870df5dc
NC
3706 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
3707 (process_def_file): Use.
3708 (pe_dll_compat_implib): New variable.
3709 (make_one): Use.
50bbae35 3710
870df5dc
NC
3711 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
3712 pe_dll_compat_implib.
50bbae35
AM
3713
3714 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
3715 compat-implib options.
3716 (gld_${EMULATION_NAME}_list_options): List new options.
3717 (gld_${EMULATION_NAME}_parse_args): Handle.
3718
50bbae35 3719 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 3720 dll.
50bbae35
AM
3721
3722 * deffilep.y (opt_name): Allow "." in name.
5aaace27 3723
2f6d2f85 3724For older changes see ChangeLog-9899
252b5132
RH
3725\f
3726Local Variables:
3727mode: change-log
3728left-margin: 8
3729fill-column: 74
3730version-control: never
3731End:
This page took 0.329662 seconds and 4 git commands to generate.