oops - omitted from previous delta
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
d9a7f7ab
NC
12002-08-22 Adam Nemet <anemet@lnxw.com>
2
3 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
4 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
5 depending on the type of the function.
6 (arm_elf_convert_thumb_symbol_to_address): New function.
7
ed71e111
NC
82002-08-22 Graeme Peterson <gp@qnx.com>
9
10 * Makefile.am: Add esh{l}elf_nto.o files.
11 * Makefile.in: Regenerate.
12 * configure.tgt: Add support for sh-**-nto* targets.
13 * emulparams/shelf_nto.sh: New file.
14 * emulparams/shlelf_nto.sh: New file.
15
7abb6dea
AM
162002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
17
18 * ldlang.c (offsetof): Define if not defined.
19
e9229007
L
202002-08-14 H.J. Lu <hjl@gnu.org>
21
22 * configure.tgt: Always enable 64bit emulations for 32bit
23 Linux/mips.
24
c553bb91
AM
252002-08-13 Alan Modra <amodra@bigpond.net.au>
26
27 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
28 (MAXPAGESIZE): Set to 1.
29
30 * ld.h (ALIGN_N): Delete.
31 * ldexp.h (align_n): Declare.
32 * ldexp.c (align_n): New function.
33 (fold_binary): Use align_n instead of ALIGN_N.
34 (exp_fold_tree): Likewise.
35 * ldlang.c (lang_size_sections_1): Likewise.
36 (lang_one_common): Likewise.
3c6706bb 37 * ld.texinfo (ALIGN): Remove power of 2 restriction.
c553bb91 38
59bc061d
NC
392002-07-31 Graeme Peterson <gp@qnx.com>
40
41 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
42 * Makefile.am: Add eelf32{l}ppcnto.o files.
43 * Makefile.in: Regenerate.
44 * emulparams/elf32lppcnto.sh: New file.
45 * emulparams/elf32ppcnto.sh: New file.
46
31941635
L
472002-08-07 H.J. Lu <hjl@gnu.org>
48
49 * ld.texinfo: Document --no-undefined-version.
50
51 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
52 `script.' fields to 0.
53
54 * ldmain.c (main): Initialize the allow_undefined_version to
55 true.
56
57 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
58 (ld_options): Add --no-undefined-version.
59 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
60
2004afbc
NC
612002-08-07 Nick Clifton <nickc@redhat.com>
62
63 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
64 an interworking bfd if there are input bfds. (107501)
65
7fc44b9c
AM
662002-08-06 Alan Modra <amodra@bigpond.net.au>
67
68 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
69 2002-05-10 change.
70
24a1ba0f
NC
712002-08-01 Nick Clifton <nickc@redhat.com>
72
73 * emulparams/armelf.sh: Revert previous delta.
74 * scripttempl/elf.sc: Revert previous delta.
75
ebc6e014
L
762002-07-31 H.J. Lu <hjl@gnu.org>
77
78 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
79 --enable-64-bit-bfd.
80
39a2a3eb
L
812002-07-31 H.J. Lu <hjl@gnu.org>
82
83 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
84 64bit BFD is selected.
85
a0dfa6a8
L
862002-07-31 H.J. Lu <hjl@gnu.org>
87
88 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
89 if 64bit BFD is selected.
90
f7c33884
NC
912002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
92
93 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
94 link_info.common_skip_ar_aymbols.
95 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
96
97 * ldmain.c (main): Initialize new field
98 link_info.common_skip_ar_aymbols.
99
8f64befb
NC
1002002-07-31 Adam Nemet <anemet@lnxw.com>
101
102 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
103 to .plt.thumb.
104 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
105 used.
106
500800ca
NC
1072002-07-31 Nick Clifton <nickc@redhat.com>
108
109 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
110 of the PDP-11 and 2.11BSD a.out support.
111
7808a785
TS
1122002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
113
114 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
115 for n32 ABI support.
116 * Makefile.in: Regenerate.
117 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
118 n32 ABI emulations for these 64 bit targets.
119 * emulparams/elf32bmipn32.sh: Expand comment.
120 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
121 n32 ABI.
122 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
123
7e392df6
NC
1242002-07-30 Graeme Peterson <gp@qnx.com>
125
126 * configure.tgt: Add support for arm-*-nto target.
127 * Makefile.am: Add earmnto.o file.
128 * Makefile.in: Regenerate.
129 * NEWS: Mention port of ARM support to QNX.
130 * emulparams/armnto.sh: New file.
131
704afa60
JJ
1322002-07-30 Jakub Jelinek <jakub@redhat.com>
133
134 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
135 for relocatable link.
136 (lang_size_sections_1): Don't make .tbss zero size for relocatable
137 link.
138
7dcd22c2
BS
1392002-07-26 Bernd Schmidt <bernds@redhat.com>
140
141 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
142 (STACK_ADDR): New.
143
219576a4
NC
1442002-07-25 Nick Clifton <nickc@redhat.com>
145
146 * po/sv.po: Updated Swedish translation.
147 * po/es.po: Updated Spanish translation.
148 * po/fr.po: Updated French translation.
149
ff3063f5
NC
1502002-07-24 Nick Clifton <nickc@redhat.com>
151
152 * po/sv.po: Updated Swedish translation.
153 * po/es.po: Updated Spanish translation.
154
0461a601
NC
1552002-07-23 Nick Clifton <nickc@redhat.com>
156
ff3063f5 157 * po/fr.po: Updated French translation.
0461a601 158
25844aae
AM
1592002-07-20 Alan Modra <amodra@bigpond.net.au>
160
161 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
162 bomb on /DISCARD/ input section.
163 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
164 * emultempl/mmo.em (mmo_place_orphan): Likewise.
165
3595bd6e
HPN
1662002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
167
168 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
169 output section.
170
cf88bb9f
NC
1712002-07-16 Denis Chertykov <denisc@overta.ru>
172 Nick Clifton <nickc@redhat.com>
173 Frank Ch. Eigler <fche@redhat.com>
174 John Healy <jhealy@redhat.com>
175
176 * configure.tgt: Add support for ip2k-elf.
177 * Makefile.am: Add support for ip2k-elf.
178 * Makefile.in: Regenerate.
179 * emulparams/elf32ip2k.sh: New file.
180 * scripttempl/ip2k.sc: New file
181 * NEWS: Mention support for new port.
182
2cbb2eef
NC
1832002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
184
185 * NEWS: Add 'Changes in 2.13'.
186
96a94295
L
1872002-07-14 H.J. Lu <hjl@gnu.org>
188
189 * ld.texinfo: Document a .symver takes precedence over a
190 version script.
191
120d20f2
AM
1922002-07-12 Alan Modra <amodra@bigpond.net.au>
193
194 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
195 (COMMONPAGESIZE): Define.
196
0d2ddeb2
AM
1972002-07-09 Alan Modra <amodra@bigpond.net.au>
198
199 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
200
554690ed
AM
2012002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
202
203 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
204 powerpc-*-openbsd* and sparc64-*-openbsd*.
205 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
206 * Makefile.in: Regenerate.
207 * emulparams/hppaobsd.sh: New file.
208
34786259
AM
2092002-07-05 Alan Modra <amodra@bigpond.net.au>
210
211 * ldlang.c (print_wild_statement): Fix output formatting.
212
4bd5a393
AM
2132002-07-04 Alan Modra <amodra@bigpond.net.au>
214
215 * ldlang.c: (strip_excluded_output_sections): New function.
216 (lang_process): Call it.
217 (lang_size_sections_1): Revert 2002-06-10 change.
218
ce4f7385
AM
2192002-07-03 Alan Modra <amodra@bigpond.net.au>
220
221 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
222 Run "make dep-am".
223 * Makefile.in: Regenerate.
224
b7b482a3
AM
2252002-07-02 Alan Modra <amodra@bigpond.net.au>
226
71daf8b4
AM
227 * ldfile.c (ldfile_try_open_bfd): Formatting.
228
b7b482a3
AM
229 * ldmisc.c (demangle): Move so that it doesn't intrude between
230 vfinfo comment and body. Add comment.
231
29e2951e
AM
2322002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
233
234 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
235
e3e942e9
AM
2362002-07-01 Alan Modra <amodra@bigpond.net.au>
237
238 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
239 * ldlang.c (entry_sym): Likewise.
240 (ldlang_undef_chain_list_type): Likewise.
241 (lang_finish): Adjust references to entry_symbol.
242 (lang_add_entry): Likewise.
243 (lang_gc_sections): Use link_info.gc_sym_list.
244 (lang_process): Set link_info.gc_sym_list.
245 * ldlex.l: Include bfdlink.h.
246 * ldmain.c (main): Init link_info.gc_sym_list.
247 * emultempl/aix.em: Adjust references to entry_symbol.
248 * emultempl/armcoff.em: Likewise.
249 * emultempl/armelf.em: Likewise.
250 * emultempl/pe.em: Likewise.
251 * emultempl/ppc64elf.em (ppc_after_open): New function.
252 (LDEMUL_AFTER_OPEN): Define.
253 * emulparams/elf64ppc.sh: KEEP .opd sections.
254
a66c0f2c
SC
2552002-06-29 Stephane Carrez <stcarrez@nerim.fr>
256
257 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
258 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
259 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
260 (EEPROM_START_ADDR): Define.
261 (EEPROM_MEMORY): Define.
262 * emulparams/m68hc12elf.sh: Likewise.
263 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
264 section to put soft registers in .page0.
265 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
266
2b67cf00
JL
2672002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
268
269 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
270 section. Add ${RELOCATING-0}.
271
219576a4 2722002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
164c4054
JR
273
274 * emulparams/shelf.sh (STACK_ADDR): Don't define.
275 (OTHER_SECTIONS): Define.
276 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
277 (OTHER_SECTIONS): Undef.
278
fc28fbc2
AM
2792002-06-26 Alan Modra <amodra@bigpond.net.au>
280
281 * ldmisc.c (demangle): Restore dots stripped from sym name.
282
a13a0de8
L
2832002-06-25 H.J. Lu <hjl@gnu.org>
284
285 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
286 * Makefile.in: Regenerated.
287
b553b183
NC
2882002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
289
290 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
291 the size of attached object files, to allow make the object files
292 available via FTP or HTTP and to mention that the mail will be
293 sent to a mailing list.
294
2755afba
NC
2952002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
296
297 * ld/configure.host (romp): Drop support.
298
7d0a848e
CD
2992002-06-18 Chris Demetriou <cgd@broadcom.com>
300
301 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
302 section flags for SEC_DATA, rather than for SEC_CODE being unset.
303
8505f884
CD
3042002-06-18 Chris Demetriou <cgd@broadcom.com>
305
306 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
307 format specifier used to print BFD name.
308
7d553a40
DB
3092002-06-18 Dave Brolley <brolley@redhat.com>
310
311 From Catherine Moore, Michael Meissner, Jim Blandy:
312 * emulparams/elf32frv.sh: New file.
313 * configure.tgt: Support frv-*-*.
314 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
315 (eelf32frv.c): New target.
316
82434356
TR
3172002-06-17 Tom Rix <trix@redhat.com>
318
a59f3d35 319 * emultempl/elf32.em: gld*_get_script: Check for
82434356
TR
320 GENERATE_COMBRELOC_SCRIPT.
321 * scripttempl/elfd10v.sc : Fix STACK and INSN.
322 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
323
219576a4 3242002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
5d9b5481
JR
325
326 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
327
c4bb8067
L
3282002-06-12 H.J. Lu <hjl@gnu.org>
329
330 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
331 false if xvec doesn't match.
332
e052cfbe
RS
3332002-06-10 Richard Sandiford <rsandifo@redhat.com>
334
335 * ldlang.c (lang_size_sections_1): Skip removed output sections.
336
4da711b1
AM
3372002-06-08 Alan Modra <amodra@bigpond.net.au>
338
339 * ldexp.c: Replace CONST with const.
340 * ldfile.c: Likewise.
341 * ldfile.h: Likewise.
342 * ldlex.l: Likewise.
343 * mri.c: Likewise.
344 * pe-dll.h: Likewise.
345
eb95bb9a
AM
3462002-06-07 Alan Modra <amodra@bigpond.net.au>
347
348 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
349
e0076ab3
NC
3502002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
351
352 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
353 to -1 == implicit enable.
354 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
355 initialize link_info.pei386_auto_import to -1 == implicit
356 enable.
357 (gld_${EMULATION_NAME}_parse_args): When processing
358 --enable-auto-import and --disable-auto-import options, use
359 '1' and '0' instead of 'true' and 'false'.
360 (pe_find_data_imports): Only issue message about auto-import
361 when the feature is implicitly enabled. Downgrade message to
362 informational instead of warning.
363
f13a5424
AM
3642002-06-07 Alan Modra <amodra@bigpond.net.au>
365
366 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
367
1abffd82
JL
3682002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
369
370 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
371 HOSTING_CRT0 and HOSTING_LIBS.
372
e0076ab3 3732002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
7a33bc10
JR
374
375 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
376
4a5e698d
JT
3772002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
378
379 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
380 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
381
1d475d82
AM
3822002-06-05 Alan Modra <amodra@bigpond.net.au>
383
384 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
385 SEC_EXCLUDE sections when doing a relocatable link.
386
5b0e55b6
JT
3872002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
388
389 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
390 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
391 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
392 (eshlelf64_nbsd.c): New rules.
393 * Makefile.in: Regenerate.
394 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
395 (sh64-*-netbsd*): New targets.
396 * emulparams/shelf32_nbsd.sh: New file.
397 * emulparams/shelf64_nbsd.sh: New file.
398 * emulparams/shlelf32_nbsd.sh: New file.
399 * emulparams/shlelf64_nbsd.sh: New file.
400
9ad85d9b
AM
4012002-06-04 Alan Modra <amodra@bigpond.net.au>
402
403 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
404
0c9b4fee
MM
4052002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
406
407 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
408 C++ constructors/destructors, loosely based on the m68hc11 port.
409
2c538bde
AM
4102002-05-31 Alan Modra <amodra@bigpond.net.au>
411
412 * Makefile.in: Regenerate.
413 * aclocal.m4: Regenerate.
414 * config.in: Regenerate.
415 * configure: Regenerate.
416
a0cb91c6
AM
4172002-05-31 Graeme Peterson <gp@qnx.com>
418
419 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
420 (ei386nto.c): Add rule.
421 * Makefile.in: Regenerate.
422 * configure.tgt: Add i[3456]86-*-nto-qnx*.
423 * emulparams/i386nto.sh: New file.
424
37020578
JT
4252002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
426
427 * NEWS: Add entry for VAX ELF support.
428
ab68f3e0 4292002-05-29 Matt Thomas <matt@3am-software.com>
a59f3d35 430 Jason Thorpe <thorpej@wasabisystems.com>
ab68f3e0
JT
431
432 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
433 (eelf32vax.c)
434 (evaxnbsd.c): New rules.
435 * Makefile.in: Regenerate.
436 * configure.tgt (vax-*-netbsdelf*)
437 (vax-*-netbsdaout*)
438 (vax-*-netbsd*): New targets.
439 * emulparams/elf32vax.sh: New file.
440 * emulparams/vaxnbsd.sh: New file.
441
8afb0e02
NC
4422002-05-29 Adam Nemet <anemet@lnxw.com>
443
444 * emultempl/armelf.em (arm_elf_after_open): Don't determine
445 bfd_for_interwork, instead add glue sections to each input bfd.
446 (bfd_for_interwork): New global.
447 (arm_elf_set_bfd_for_interworking): New function.
448 (arm_elf_before_allocation): Use it.
449
d172d4ba
NC
4502002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
451
452 * Makefile.am: Add DLX make target.
453 * configure.tgt: Add DLX configuration.
454 * Makefile.in: Regenerate.
455 * emulparams/elf32_dlx.sh: New file
456 * scripttempl/dlx.sc: New file
457
b4477fa8
NC
4582002-05-27 Per Lundberg <per@caleb.dnsalias.org>
459
460 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
461 * Makefile.in: Regenerate.
462 * emulparams/elf_chaos.sh: Use elf_chaos script.
463 * scripttempl/elf_chaos.sc: New file.
464
ee3cc2e2
RS
4652002-05-27 Richard Sandiford <rsandifo@redhat.com>
466
467 * ldlang.c (lang_size_sections_1): Move check for conflicting load
468 addresses and regions from here...
469 (lang_get_regions): ...to this new function.
470 (lang_leave_output_section_statement): Use lang_get_regions.
471 (lang_leave_overlay): Likewise.
472 * mri.c (mri_draw_tree): Pass null as last argument to
473 lang_leave_output_section_statement.
474 * emultempl/elf32.em (gld*_place_orphan): Likewise.
475 * emultempl/mmo.em (mmo_place_orphan): Likewise.
476 * emultempl/pe.em (gld*_place_orphan): Likewise.
477
aa501e5c
JT
4782002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
479
480 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
481
658957db
KH
4822002-05-25 Kazu Hirata <kazu@cs.umass.edu>
483
484 * ldemul.c: Fix formatting.
485 * ldfile.c: Likewise.
486 * pe-dll.c: Likewise.
487 * pe-dll.h: Likewise.
488
3511b595
AM
4892002-05-25 Alan Modra <amodra@bigpond.net.au>
490
0d6d936f
AM
491 * ldlang.c (lang_process): Formatting, grammar.
492
3511b595
AM
493 * ldlex.l: Use #include "" instead of <> for local header files.
494
436e8db0
NC
4952002-05-24 TAMURA Kent <kent@netbsd.org>
496
497 * configure.tgt: Add a target for i386-netbsdpe.
498
13ae64f3
JJ
4992002-05-23 Jakub Jelinek <jakub@redhat.com>
500
501 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
502 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
503 output section if necessary. Handle .tbss.
504 (lang_size_sections): Clear _raw_size for .tbss section
505 (it allocates space in PT_TLS segment only).
506 * ldwrite.c (build_link_order): Build link order for .tbss too.
507
68b2fc7a
AM
5082002-05-23 Alan Modra <amodra@bigpond.net.au>
509
510 * configure.in: Correct spelling of AC_PREREQ.
511
70b0be79
CF
5122002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
513
514 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
515 default.
516 (autofilter_objlist): Add crtbegin.o, crtend.o.
517
5182002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
519
520 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
521 (longopts): Add new option --exclude-libs.
522 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
523 (gld_${EMULATION_NAME}_parse_args): Use it.
524 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
525 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
526 from whole archives.
527 (pe_dll_add_excludes): Set excludes->type.
528 (auto_export): Add new variable libname and set to archive basename if
529 abfd. Use it when filtering default and user-specified libarary
530 excludes. Let string "ALL" mean all libs when filtering user-specified
531 libs.
532 * ld.texinfo: Document --exclude-libs.
533
fac1652d
AM
5342002-05-22 Alan Modra <amodra@bigpond.net.au>
535
536 * ldemul.c (ldemul_new_vers_pattern): New function.
537 * ldemul.h (ldemul_new_vers_pattern): Declare.
538 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
539 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
540 * emultempl/ppc64elf.em (dotsyms): New static var.
541 (gld${EMULATION_NAME}_new_vers_pattern): New function.
542 (LDEMUL_NEW_VERS_PATTERN): Define.
543 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
544 (PARSE_AND_LIST_LONGOPTS): Likewise.
545 (PARSE_AND_LIST_ARGS_CASES): Handle them.
546 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
547 initialiser.
548 * emultempl/armcoff.em: Likewise.
549 * emultempl/armelf_oabi.em: Likewise.
550 * emultempl/beos.em: Likewise.
551 * emultempl/elf32.em: Likewise.
552 * emultempl/generic.em: Likewise.
553 * emultempl/gld960.em: Likewise.
554 * emultempl/gld960c.em: Likewise.
555 * emultempl/linux.em: Likewise.
556 * emultempl/lnk960.em: Likewise.
557 * emultempl/m68kcoff.em: Likewise.
558 * emultempl/mipsecoff.em: Likewise.
559 * emultempl/pe.em: Likewise.
560 * emultempl/sunos.em: Likewise.
561 * emultempl/ticoff.em: Likewise.
562 * emultempl/vanilla.em: Likewise.
563
eb3d6bb8
AM
5642002-05-22 Alan Modra <amodra@bigpond.net.au>
565
566 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
567 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
568 (LIB_SEARCH_DIRS): No need to use "tr".
569 (COMPILE_IN): Only set for native targets.
570 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
571 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
572 * configure.tgt (powerpc*): Set tdir_*.
573 (powerpcle*): Correct targ_extra_emuls.
574 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
575 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
576
54f24647
AM
5772002-05-22 Alan Modra <amodra@bigpond.net.au>
578
579 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
580 calling lang_add_entry.
581
aa713662
L
5822002-05-21 H.J. Lu (hjl@gnu.org)
583
584 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
585 "-z muldefs".
586 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
587
588 * ld.texinfo: Updated for --allow-multiple-definition and
589 "-z muldefs".
590
591 * ldmain.c (main): Initialize the allow_multiple_definition
592 field to false.
593
594 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
595 (ld_options): Add --allow-multiple-definition.
596 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
597
658f2588
JT
5982002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
599
600 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
601 (earmelfb_nbsd.c): New rule.
a59f3d35 602 * Makefile.in: Regenerate.
658f2588 603 * configure.tgt (armeb-*-netbsdelf*): New target.
a59f3d35 604 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
658f2588
JT
605 (arm-*-netbsd*): Likewise.
606 * emulparams/armelfb_nbsd.sh: New file.
607
ca10c62d
TR
6082002-05-18 Tom Rix <trix@redhat.com>
609
a59f3d35 610 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
ca10c62d
TR
611 support.
612
fae1e84f
MM
6132002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
614
615 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
616 * Makefile.in: Regenerate.
617 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
618
7c8bf1e8
MM
6192002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
620
621 * emulparams/avr1.sh: New file.
622 * emulparams/avr2.sh: New file.
623 * emulparams/avr3.sh: New file.
624 * emulparams/avr4.sh: New file.
625 * emulparams/avr5.sh: New file.
626 * scripttempl/avr.sc: New file.
627
c2c01aa7
AM
6282002-05-15 Alan Modra <amodra@bigpond.net.au>
629
630 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
631 (lang_place_orphans): Abort if just_syms_flag.
632
f1f0d9ab
TR
6332002-05-10 Tom Rix <trix@redhat.com>
634
a59f3d35 635 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
f1f0d9ab
TR
636 architecture and machine information in the output bfd.
637 (gld*_before_parse): Remove old arch and machine code.
638 (choose_target): Rename to gld*_choose_target.
a59f3d35
AM
639 (rtld): Change type to int.
640 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
f1f0d9ab
TR
641 objects in XCOFF archives.
642 * ldfile.h: Update copyright date.
643
f4d73366
JJ
6442002-05-10 Jakub Jelinek <jakub@redhat.com>
645
646 * ldmain.c (main): Enable -z combreloc by default.
647
d3d8a9ee
NC
6482002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
649
650 * Makefile.am: Honour DESTDIR.
651 * Makefile.in: Regenerate.
652
9f88b410
RS
6532002-05-07 Richard Sandiford <rsandifo@redhat.com>
654
655 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
656 (lang_enter_overlay): Remove the last two parameters.
657 (lang_leave_overlay): Take them here instead.
658 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
659 (section): Pass LMA and crossref flag to lang_leave_overlay rather
660 than lang_enter_overlay.
661 * ldlang.c (lang_memory_region_lookup): Return null for null names.
662 (lang_output_section_statement_lookup): Initialize update_dot_tree.
663 (lang_size_sections_1): Evaluate it.
664 (lang_leave_output_section_statement): Rework LMA lookup.
665 (overlay_lma, overlay_nocrossrefs): Remove.
3511b595 666 (lang_enter_overlay): Remove LMA and crossref arguments.
9f88b410
RS
667 (lang_enter_overlay_section): Don't set the LMA here.
668 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
669 assignment to the last section's update_dot_tree. Unconditionally
670 use the load and run-time regions specified in the OVERLAY statement.
671 Likewise the first section's LMA. Only set the other sections' LMAs
672 when no load region is given.
673
b9a743c8
NC
6742002-05-06 Nick Clifton <nickc@redhat.com>
675
676 * po/sv.po: New translation.
677
a3d60be3
AM
6782002-05-04 Alan Modra <amodra@bigpond.net.au>
679
680 * emultempl/hppaelf.em (build_section_lists): New function.
681 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
682 and build_section_lists.
683
b7a26f91
KH
6842002-05-03 Kazu Hirata <kazu@cs.umass.edu>
685
686 * ld.h: Fix formatting.
687 * ldexp.c: Likewise.
688 * ldfile.c: Likewise.
689 * ldlang.c: Likewise.
690 * ldmain.c: Likewise.
691 * lexsup.c: Likewise.
692 * pe-dll.c: Likewise.
693
805fc799
AM
6942002-05-02 Alan Modra <amodra@bigpond.net.au>
695
696 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
697 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
698 (build_section_lists): Do output_section tests here.
699
cc7e59b2
TR
7002002-04-30 Tom Rix <trix@redhat.com>
701
702 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
703
9c1d81c1
AM
7042002-05-01 Alan Modra <amodra@bigpond.net.au>
705
706 Long branch stubs, multiple stub sections.
707 * emultempl/ppc64elf.em: Include ldctor.h.
708 (stub_file): New var.
709 (group_size): New var.
710 (ppc_create_output_section_statements): New function.
711 (struct hook_stub_info): New.
712 (hook_in_stub): New function.
713 (ppc_add_stub_section): New function.
714 (ppc_layout_sections_again): New function.
715 (build_section_lists): New function.
716 (gld${EMULATION_NAME}_finish): Rewrite.
717 (real_func): New var.
718 (ppc_for_each_input_file_wrapper): New function.
719 (ppc_lang_for_each_input_file): New function.
720 (lang_for_each_input_file): Define.
721 (PARSE_AND_LIST_PROLOGUE): Define.
722 (PARSE_AND_LIST_LONGOPTS): Define.
723 (PARSE_AND_LIST_OPTIONS): Define.
724 (PARSE_AND_LIST_ARGS_CASES): Define.
725 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
726
aa67bccf
TR
7272002-04-30 Tom Rix <trix@redhat.com>
728
a59f3d35
AM
729 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
730 -blibpath, -bnolibpath support.
731
94349e12
MM
7322002-04-30 Mark Mitchell <mark@codesourcery.com>
733
734 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
735 (eelf32ppcwindiss.c): New target.
736 * Makefile.in: Regenerated.
737 * configure.tgt: Add support for powerpc-*-windiss.
738 * emulparams/elf32ppcwindiss.sh: New file.
a59f3d35 739
7b17f854
RS
7402002-04-30 Richard Sandiford <rsandifo@redhat.com>
741
742 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
743 * ldexp.c (exp_print_token): Add "infix_p" argument.
744 (exp_print_tree): Update accordingly.
745
596dafeb
AM
7462002-04-28 Alan Modra <amodra@bigpond.net.au>
747
748 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
749 * Makefile.in: Regenerate.
750 * mpw-elfmips.c: Delete.
751 * mpw-eppcmac.c: Delete.
752 * mpw-esh.c: Delete.
753 * mpw-idtmips.c: Delete.
754
219576a4 7552002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
756
757 * emulparams/shelf32.sh (MACHINE): Now sh5.
758
944cd72c
TS
7592002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
760
761 * ldgram.y: Fix syntax warning.
762
5835c212
NC
7632002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
764
765 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
766 to prevent "-n" from being taken as an abbreviation for
767 "--no-pipeline-knowledge".
768
024531e2
AM
7692002-04-08 Alan Modra <amodra@bigpond.net.au>
770
d08a14c3
AM
771 * ldlang.c (lang_size_sections_1): Don't complain about
772 SEC_NEVER_LOAD sections having no memory region specified.
773
024531e2
AM
774 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
775
c657a1f0
MG
7762002-04-07 matthew green <mrg@redhat.com>
777
778 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
779
61bef6f1
AM
7802002-04-04 Alan Modra <amodra@bigpond.net.au>
781
782 * dep-in.sed: Cope with absolute paths.
783 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
784 Run "make dep-am".
785 * Makefile.in: Regenerate.
786
49ba2791
TS
7872002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
788
789 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
790
50e60fb5
JJ
7912002-04-03 Jakub Jelinek <jakub@redhat.com>
792
793 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
794 is smaller than maximum, round dot up to common page boundary.
795
6f12f4ca
AM
7962002-03-28 Alan Modra <amodra@bigpond.net.au>
797
798 * configure.host: Set up for generic hosts first, then tweak as
799 necessary in more specific targets.
800 (HOSTING_LIBS): Include libgcc_eh.a if found.
801
a8f1f017
AJ
8022002-03-23 Andreas Jaeger <aj@suse.de>
803
804 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
805
1d3fdf38
AM
8062002-03-21 Alan Modra <amodra@bigpond.net.au>
807
808 * Makefile.am: Run "make dep-am".
809 * Makefile.in: Regenerate.
810
79b1faa8
AM
8112002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
812
813 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
814
fcf0e35b
AM
8152002-03-20 Alan Modra <amodra@bigpond.net.au>
816
817 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
818 add the symbol to the linker hash table immediately.
819 (lang_place_undefineds): Split symbol creation out..
820 (insert_undefined): ..to here.
821
fed2999d
DB
8222002-03-18 David O'Brien <obrien@FreeBSD.org>
823
824 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
825 the contents of the buffer returned from basename function will are
826 getting overwritten while still being used.
827
219576a4
NC
8282002-03-18 Jan Hubicka <jh@suse.cz>
829 Andreas Jaeger <aj@suse.de>
830 Andreas Schwab <schwab@suse.de>
beb43bb9
JH
831
832 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
833 * elf_x86_64.sh (ARCH): Set to i386:x86-64
834 set libraries to default to lib64 paths.
835
eb1e0e80
NC
8362002-03-18 Tom Rix <trix@redhat.com>
837
838 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
839 * configure.tgt : Same.
840 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
841 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
842 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
843 emulation parameters for better -b32, -b64 support.
844 * emulparms/aixrs6.sh : Same.
845 * emulparms/ppcmacos.sh : Same.
846 * emultempl/aix.em (choose_target) : Use new emulation parameters
847 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
848 * Makefile.in : Regenerate.
849
a1c259a1
NC
8502002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
851
852 * po/fr.po: Updated version.
853
862120bd
AM
8542002-03-18 Alan Modra <amodra@bigpond.net.au>
855
856 * ldmain.c (main): Move .text readonly flag fudges from here..
857 * ldlang.c (lang_process): ..to here.
858
d35a52e2
AM
8592002-03-14 Alan Modra <amodra@bigpond.net.au>
860
861 * ldlang.c (lang_check): Remove the word size check added in last
862 change. Treat emitrelocations case as for relocatable links.
863
9ce88e60
NC
8642002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
865
866 * po/fr.po: Updated version.
867
30cba025
AM
8682002-03-13 Alan Modra <amodra@bigpond.net.au>
869
870 * ldlang.c (lang_check): Do relocatable link checks first, so that
871 warn_mismatch can't override. Check compatible and word size too.
872
84ec0e6d
DJ
8732002-03-07 Daniel Jacobowitz <drow@mvista.com>
874
875 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
876
2d13d8c5
JJ
8772002-03-05 Jakub Jelinek <jakub@redhat.com>
878
879 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
880 DATA_SEGMENT_ALIGN.
881
b5090659
L
8822002-03-04 H.J. Lu <hjl@gnu.org>
883
884 * scripttempl/elf.sc: Put .preinit_array, .init_array and
885 .fini_array in the data segment.
886
f42ce16e
AM
8872002-03-04 Alan Modra <amodra@bigpond.net.au>
888
889 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
890
de77b6ac
RH
8912002-03-01 David Mosberger <davidm@hpl.hp.com>
892
893 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
894 .init_array, and .fini_array.
895
997e08c0
AS
8962002-02-20 Andreas Schwab <schwab@suse.de>
897
898 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
899 .IA64_unwind* in a relocatable link.
900
9a66911f
NC
9012002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
902
903 * NEWS: Mark 2.12 branch.
904
d86bcc10
MS
9052002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
906
907 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
908 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
909
69f284c7
TR
9102002-02-18 Tom Rix <trix@redhat.com>
911
912 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
913 (gld*_before_allocation): Same.
a8f1f017 914 (gld*_create_output_section_statements): Generate
69f284c7
TR
915 __rtinit if run time linking. Add librtl.a to the link.
916 (gld*_read_file): Clean.
917
82bd7b59
AM
9182002-02-18 Alan Modra <amodra@bigpond.net.au>
919
920 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
921
ac3e50bf
DB
9222002-02-18 David O'Brien <obrien@FreeBSD.org>
923
6a7f963b 924 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
ac3e50bf
DB
925 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
926 and eelf64alpha_fbsd.
6a7f963b 927 * Makefile.in: Regenerate.
ac3e50bf
DB
928 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
929 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
930 use a FreeBSD-specific emulation rather than the psABI one.
931 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
932 for all FreeBSD ELF systems.
933 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
934 emulation.
935 * emulparams/elf32ppc_fbsd.sh: Likewise.
936 * emulparams/elf64_ia64_fbsd.sh: Likewise.
937 * emulparams/elf64_sparc_fbsd.sh: Likewise.
938 * emulparams/elf64alpha_fbsd.sh: Likewise.
939 * emulparams/elf_i386_fbsd.sh: Likewise.
940 * emulparams/elf_x86_64_fbsd.sh: Likewise.
941
6ad738c5
NC
9422002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
943
944 * po/tr.po: Updated version.
945
9673c93c
AM
9462002-02-18 Alan Modra <amodra@bigpond.net.au>
947
948 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
949 (FILL): Likewise.
950
1c5e6447
HPN
9512002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
952
953 * emultempl/mmo.em (mmo_after_open): Don't call
954 _bfd_mmix_check_all_relocs when producing ELF output.
955
8bb57516
RH
9562002-02-15 Richard Henderson <rth@redhat.com>
957
de77b6ac 958 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
8bb57516
RH
959 definition. Emit a unop+nop pair.
960
49fda6c8
HPN
9612002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
962
83c2d653
HPN
963 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
964 for presence of .MMIX.reg_contents.linker_allocated before early
965 exit.
966
49fda6c8
HPN
967 * NEWS: Mention support for MMIX.
968
2c382fb6
AM
9692002-02-15 Alan Modra <amodra@bigpond.net.au>
970
971 Support arbitrary length fill patterns.
a139d329
AM
972 * ld.texinfo (Output Section Fill): Describe fill expressions.
973 (FILL): Refer to the above.
2c382fb6
AM
974 * ldexp.h (etree_value_type): Add "str" field.
975 (union etree_union): Add "str" to "value" struct.
976 (exp_bigintop): Declare.
977 (exp_get_fill): Declare.
978 * ldexp.c: Include "safe-ctype.h".
979 (exp_intop): Set value.str to NULL.
980 (exp_bigintop): New function.
981 (new_rel): Pass in "str", and set new.str from it.
982 (new_rel_from_section): Set new.str to NULL.
983 (fold_name): Adjust calls to new_rel.
984 (exp_fold_tree): Likewise.
985 (exp_get_fill): New function.
986 * ldgram.y (struct big_int bigint, fill_type *fill): New.
987 (INT): Returns a "bigint". Adjust all code handling INTs.
988 (fill_opt): Returns a "fill".
989 (fill_exp): Split out of fill_opt, use for FILL.
990 * ldlang.h (struct _fill_type): New.
991 (fill_type): Move typedef to ldexp.h.
992 (lang_output_section_statement_type): "fill" is now a pointer.
993 (lang_fill_statement_type): Likewise.
994 (lang_padding_statement_type): Likewise.
995 (lang_add_fill): Now takes a "fill_type *" param.
996 (lang_leave_output_section_statement): Likewise.
997 (lang_do_assignments): Likewise.
998 (lang_size_sections): Likewise.
999 (lang_leave_overlay_section): Likewise.
1000 (lang_leave_overlay): Likewise.
1001 * ldlang.c: Include ldgram.h after ldexp.h.
1002 (lang_output_section_statement_lookup): Adjust for fill_type change.
1003 (print_fill_statement): Likewise.
1004 (print_padding_statement): Likewise.
1005 (insert_pad): Now takes a "fill_type *" arg.
1006 (size_input_section): Likewise.
1007 (lang_size_sections_1): Likewise.
1008 (lang_size_sections): Likewise.
1009 (lang_do_assignments): Likewise.
1010 (lang_add_fill): Likewise.
1011 (lang_leave_output_section_statement): Likewise.
1012 (lang_leave_overlay_section): Likewise.
1013 (lang_leave_overlay): Likewise.
1014 Adjust all callers of the above function.
1015 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1016 starting with "0X" as well as "0x". Return bigint.str for hex
1017 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1018 Always use base 16 for numbers starting with "$".
1019 * ldmain.c: Include ldgram.h after ldexp.h.
1020 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1021 of bfd_fill_link_order.
1022 * pe-dll.c: Adjust lang_do_assignments calls.
1023 * emultempl/elf32.em: Likewise.
1024 * emultempl/hppaelf.em: Likewise.
1025 * emultempl/ppc64elf.em: Likewise.
1026 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1027 lang_add_assignment call.
1028 * emultempl/pe.em: Likewise.
1029
313e35ee
AM
10302002-02-14 Phil Edwards <pme@gcc.gnu.org>
1031
a139d329 1032 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
313e35ee
AM
1033 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1034 the pattern in question is not a regexp.
1035 * ldlang.c: Likewise.
1036 * ldlang.h: Likewise.
1037 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1038
2d20f7bf
JJ
10392002-02-12 Jakub Jelinek <jakub@redhat.com>
1040
1041 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1042 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1043 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1044 * ldexp.c (exp_data_seg): New variable.
1045 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1046 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1047 (exp_fold_tree): Handle DATA_SEGMENT_END.
1048 Pass allocation_done when recursing instead of hardcoding
1049 lang_allocating_phase_enum.
1050 * ldexp.h (exp_data_seg): New.
1051 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1052 (lang_size_sections): New.
1053 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1054 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1055 if COMMONPAGESIZE is defined.
1056 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1057 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1058 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1059 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1060 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1061 libraries only.
1062
06880219
AM
10632002-02-11 Alan Modra <amodra@bigpond.net.au>
1064
1065 * Makefile.in: Regenerate.
1066
37b0ac0f
DJ
10672002-02-10 Daniel Jacobowitz <drow@mvista.com>
1068
1069 * lexsup.c: Remove strtoul declaration.
1070
4e5bae56
DJ
10712002-02-10 Daniel Jacobowitz <drow@mvista.com>
1072
1073 * ldmain.c: Add prototype for main ().
1074 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1075 * emultempl/lnk960.em (lnk960_choose_target): Function should
1076 take two arguments.
1077
1e281515
AM
10782002-02-10 Alan Modra <amodra@bigpond.net.au>
1079
1080 * ldlang.c (entry_section): New initialised variable.
1081 (lang_finish): Use it.
1082 * ldlang.h (entry_section): Declare.
1083 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1084 entry_section to ".opd".
1085
f92d92ff 10862002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
1087
1088 * ld.texinfo (Options): Add back in -nostdlib documentation,
1089 which had been inadvertently removed.
1090
74c44237
HPN
10912002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1092
1093 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1094 register section vma to a sane value after emitting error. Make
1095 fatal conditions cause program exit when emitting message.
1096
5e37cc46
NC
10972002-02-08 Ivan Guzvinec <ivang@opencores.org>
1098
1099 * configure.tgt: Add or32-*-rtems target.
1100
2d92cb7d
AO
11012002-02-08 Alexandre Oliva <aoliva@redhat.com>
1102
1103 Contribute sh64-elf.
1104 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1105 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1106 in OTHER_RELOCATABLE_SECTIONS.
1107 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1108 * emulparams/shelf32.sh (STACK_ADDR): Define.
1109 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1110 (OTHER_SECTIONS): this. Removed stack settings.
1111 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1112 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1113 2001-03-12 DJ Delorie <dj@redhat.com>
1114 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1115 relaxing if any shmedia or mixed sections are found.
1116 2001-03-07 DJ Delorie <dj@redhat.com>
1117 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1118 einfo. Gracefully decline to output to non-elf formats.
1119 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1120 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1121 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1122 * emulparams/shelf32.sh: Ditto.
1123 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1124 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1125 comment.
1126 2001-01-10 Ben Elliston <bje@redhat.com>
1127 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1128 non-portable shell constructs. From Hans-Peter Nilsson.
1129 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1130 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1131 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1132 dependencies to the shell script include chain.
1133 * Makefile.in: Regenerate.
1134 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1135 * emultempl/sh64elf.em: Update and tweak comments.
1136 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1137 make a .cranges section SEC_IN_MEMORY.
1138 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1139 * emultempl/sh64elf.em
1140 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1141 .cranges section found to be necessary; continue and set stored
1142 section contents flags for sections with non-mixed contents.
1143 Use a struct sh64_section_data container and sh64_elf_section_data
1144 to store contents-type flags.
1145 Remove unused update of "isec".
1146 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1147 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1148 access contents-type flags. Assert that the associated container
1149 is initialized. Use that container, not elf_gp_size, to hold size
1150 of linker-generated cranges contents.
1151 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1152 * emultempl/sh64elf.em
1153 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1154 there's already a .cranges section. When section flag difference
1155 is found, don't NULL-check cranges a second time. Tweak comments.
1156 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1157 merging, not max size, as size of ld-generated .cranges contents.
1158 Don't set ELF section flags in output section. When checking for
1159 needed .cranges descriptors, don't use a variable; compare
1160 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1161 comments.
1162 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1163 * emultempl/sh64elf.em: New file.
1164 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1165 * Makefile.in: Regenerate.
1166 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1167 (OTHER_RELOCATING_SECTIONS): Ditto.
1168 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1169 * emulparams/shlelf32.sh: Stub out all settings except
1170 OUTPUT_FORMAT. Source shelf32.sh.
1171 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1172 OTHER_RELOCATING_SECTIONS.
1173 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1174 * emulparams/shlelf64.sh: Stub out all settings except
1175 OUTPUT_FORMAT. Source shelf64.sh.
1176 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1177 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1178 .cranges section.
1179 (DATA_START_SYMBOLS): Define, provide ___data.
1180 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1181 for consecutive .data section.
1182 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1183 section after .data section.
1184 * emulparams/shlelf64.sh: Ditto.
1185 * emulparams/shelf32.sh: Ditto.
1186 (ALIGNMENT): Define to 8.
1187 * emulparams/shelf32.sh: Ditto.
1188 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1189 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1190 built-in linker scripts.
1191 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1192 * emulparams/shlelf64.sh: New.
1193 * emulparams/shelf64.sh: New.
1194 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1195 targ_extra_emuls.
1196 * Makefile.am: Add support for shlelf64 and shelf64.
1197 * Makefile.in: Regenerate.
1198 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1199 * configure.tgt (sh64-*-elf*): Add shelf as default.
1200 Add shlelf to targ_extra_emuls.
1201 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1202 * emulparams/shelf32.sh: New file.
1203 * emulparams/shlelf32.sh: New file.
1204 * Makefile.am: Add support for shlelf32 and shelf32.
1205 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1206 * Makefile.in: Regenerate.
1207
e3dc8847
HPN
12082002-02-05 Hans-Peter Nilsson <hp@axis.com>
1209
1210 * ldlang.c (lang_reset_memory_regions): Rename from
1211 reset_memory_regions. Change all callers. Make public.
1212 * ldlang.h (lang_reset_memory_regions): Prototype.
1213 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1214 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
1215 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1216 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 1217
8017dbcb
HPN
12182002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1219
1220 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1221 arithmetic when checking for too many global registers.
1222
006336b8
JT
12232002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1224
1225 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1226 (ehppanbsd.c): New rule.
1227 * Makefile.in: Regenerate.
1228 * configure.tgt (hppa*-*-netbsd*): New target.
1229 * emulparams/hppalinux.sh: Add comment to check other files
1230 that source this file it is modified, and list which
1231 files that do.
1232 * emulparams/hppanbsd.sh: New file.
1233
da1f2fec
GK
12342002-02-01 Geoffrey Keating <geoffk@redhat.com>
1235
1236 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1237 stack.
1238
48fa4a5d
HPN
12392002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1240
1241 Support on-demand global register allocation from
1242 R_MMIX_BASE_PLUS_OFFSET relocs.
1243 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1244 mmix_set_reg_section_vma. Call
1245 _bfd_mmix_finalize_linker_allocated_gregs.
1246 (mmix_before_allocation): New function.
1247 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1248 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1249 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1250 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1251 before .MMIX.reg_contents.
1252 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1253 (mmo_after_open): New function.
1254 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1255 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1256 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1257
3b16e843
NC
12582002-01-31 Ivan Guzvinec <ivang@opencores.org>
1259
1260 * emulparams/or32.sh: New file.
1261 * emulparams/or32elf.sh: New file.
1262 * scripttempl/or32.sc: New file.
1263 * configure.tgt : Add support for or32.
1264 * configure: Regenerate
1265 * Makefile.am: Add support for or32.
1266 * Makefile.in: Regenerate.
1267 * NEWS: Mention support for or32.
1268 * po/ld.pot: Regenerate.
1269
f744d540 12702002-01-29 Chris Demetriou <cgd@broadcom.com>
313e35ee 1271 Mitch Lichtenberg <mpl@broadcom.com>
f744d540
CD
1272
1273 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1274 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1275 reloc creation (ld --embedded-relocs).
1276
4867be41
DJ
12772002-01-27 Daniel Jacobowitz <drow@mvista.com>
1278
1279 * configure: Regenerated.
1280
cd8e197b
HPN
12812002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1282
1283 * Makefile.am (install): Depend on install-info.
1284 * Makefile.in: Regenerate.
1285
9cb61eab
AM
12862002-01-26 Christian Rose <menthos@menthos.com>
1287
1288 * ldmain.c (main): Use full sentences to ease translation.
1289
1caa7b23
NC
12902002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1291
1292 * po/fr.po: Updated version.
1293
1ddbd152
NC
12942002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1295
1296 * po/es.po: Updated version.
1297
1e84433f
AJ
12982002-01-25 Andreas Jaeger <aj@suse.de>
1299
1300 * ldlex.l (yy_input): Correct error check.
1301
6d39955e
AM
13022002-01-25 Alan Modra <amodra@bigpond.net.au>
1303
1304 * ldmisc.c (demangle): Put back dots when string not demangled.
1305
a9ed1e1b
RH
13062002-01-22 Richard Henderson <rth@redhat.com>
1307
1308 * emulparams/elf64alpha.sh (NOP): Use unop.
1309
968ec2b9
AJ
13102002-01-21 Andreas Jaeger <aj@suse.de>
1311
1312 * ldlex.l: Use fread instead of read.
1313
9596feea
JT
13142002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1315
1316 * configure.tgt (ia64-*-netbsd*): New target.
1317
493a6d47
L
13182002-01-21 H.J. Lu <hjl@gnu.org>
1319
1320 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1321 0.
1322 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1323
2a538ba5
AJ
13242002-01-18 Andreas Jaeger <aj@suse.de>
1325
1326 * ldver.c (ldversion): Update year.
1327
328577ad
NC
13282002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1329
1330 * po/ld.pot: Regenerate.
1331
1f808cd5
AM
13322002-01-16 Alan Modra <amodra@bigpond.net.au>
1333
1334 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1335 * Makefile.in: Regenerate.
1336 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1337 * emultempl/ppc64elf.em: New file.
1338
335c5610
DD
13392002-01-15 DJ Delorie <dj@redhat.com>
1340
1341 * scripttempl/pe.sc: Add support for constructor priorities.
1342
c40bbade
DC
13432002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1344
1345 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1346 * emulparams/avr23xx.sh: Likewise.
1347 * emulparams/avr4433.sh: Likewise.
1348 * emulparams/avr44x4.sh: Likewise.
1349 * emulparams/avr85xx.sh: Likewise.
1350 * emulparams/avrmega103.sh: Likewise.
1351 * emulparams/avrmega161.sh: Likewise.
1352 * emulparams/avrmega603.sh: Likewise.
1353 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1354
34efb449
AO
13552002-01-08 Alexandre Oliva <aoliva@redhat.com>
1356
1357 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1358 archive is excluded.
1359
8d05742f
JT
13602002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1361
1362 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 1363 (eshelf_nbsd.c): New rule.
8d05742f
JT
1364 (eshlelf_nbsd.c): New rule.
1365 * Makefile.in: Regenerate.
1366 * configure.tgt (sh*le-*-netbsdelf*): New target.
1367 (sh*-*-netbsdelf*): New target.
1368 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1369 * ld/emulparams/shelf_nbsd.sh: New emulation.
1370 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1371
be2d1673
NC
13722002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1373
1374 * po/es.po: New file: Spanish translation.
1375 * configure.in (ALL_LINGUAS): Add es.
1376 * configure: Regenerate.
1377
dbab7a7b
NC
13782002-01-06 John Marshall <jmarshall@acm.org>
1379
1380 * ld.texinfo: Note that --emit-relocs is currently only
1381 implemented for ELF.
1382
3dfe7a8c
AM
13832002-01-05 Alan Modra <amodra@bigpond.net.au>
1384
1385 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1386 of bfd_section_list_remove and bfd_section_list_insert macros.
1387 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1388 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1389
8a8b2d4b
AJ
13902002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1391
1392 * configure.tgt (x86_64-*-netbsd*): New target.
1393
9a4c7f16
TR
13942001-12-21 Tom Rix <trix@redhat.com>
1395
8a8b2d4b 1396 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
1397 For -binitfini support.
1398 * emultempl/aix.em (gld*_before_parse): Fix comment.
1399 * emultempl/aix.em (gld*_parse_args): Fix comment.
1400
3695c299
AM
14012001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1402
cf86e6df
AM
1403 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1404 mips*el-*-netbsd*.
1405 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1406
3695c299
AM
1407 * configure.tgt (arm-*-netbsdelf*): Add target.
1408 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1409 * emulparams/armelf_nbsd.sh: Added.
1410 * Makefile.am: Add rules for earmelf_nbsd.
1411 * Makefile.in: Regenerate.
1412
97cb79ae
AJ
14132001-12-19 Andreas Jaeger <aj@suse.de>,
1414 Susanne Oberhauser <froh@suse.de>
1415
1416 * configure.host: Add rules for x86_64-*linux-gnu. Change
1417 s390x-linux entry to use gcc to report configuration, replace gcc
1418 with $CC in s390-linux
1419
9d201f2f
AJ
14202001-12-19 Andreas Jaeger <aj@suse.de>
1421
1422 * ld.texinfo (VERSION): Fix markup.
1423
0b69cd08
MG
14242001-12-18 matthew green <mrg@eterna.com.au>
1425
1426 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1427 (m68kelfnbsd.c): New rule.
1428 * Makefile.in: Regenerate.
1429 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1430 (m68*-*-netbsd*4k*): .. this.
1431 (m68*-*-netbsdelf*): New target.
1432 (m68*-*-netbsd*): Also include ELF support.
1433 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1434 * emulparams/m68kelfnbsd.sh: New emulation.
1435
6b9b879a
JJ
14362001-12-18 Jakub Jelinek <jakub@redhat.com>
1437
1438 * ldgram.y (vers_node): Support anonymous version tags.
1439 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1440 tag is not defined together with non-anonymous versions.
1441 * ld.texinfo: Document it.
1442
9fc877ed
NC
14432001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1444
1445 * po/tr.po: New file: Turkish translation.
1446 * configure.in (ALL_LINGUAS): Add tr.
1447 * configure: Regenerate.
1448
fc18a3f3
RH
14492001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1450
1451 * Makefile.am: Add rules for eelf64alpha_nbsd.
1452 * Makefile.in: Regenerate.
1453 * configure.tgt (alpha*-*-netbsd*): Set
1454 targ_emul to elf64alpha_nbsd.
1455 * emulparams/elf64alpha_nbsd.sh: Added.
1456
76f63e91
AM
14572001-12-17 Alan Modra <amodra@bigpond.net.au>
1458
1459 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1460 section_tail when fiddling with section list.
1461 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1462 broken into separate strings to make translation easier.
1463 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1464 fiddling with section list.
1465 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1466
d03b89bd
HPN
14672001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1468
1469 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1470
320fec9a
AM
14712001-12-15 Alan Modra <amodra@bigpond.net.au>
1472
1473 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1474
65765700
JJ
14752001-12-13 Jakub Jelinek <jakub@redhat.com>
1476
1477 * emultempl/elf32.em (finish): Supply output_bfd
1478 to bfd_elf*_discard_info.
1479 (OPTION_EH_FRAME_HDR): Define.
1480 (longopts): Add --eh-frame-hdr.
1481 (parse_args): Handle it.
1482 (list_options): Add --eh-frame-hdr to help.
1483 * emultempl/hppaelf.em (finish): Supply output_bfd
1484 to bfd_elf*_discard_info.
1485 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1486
89894c62
AM
14872001-12-13 Alan Modra <amodra@bigpond.net.au>
1488
1489 * lexsup.c (parse_args): Don't pass shortopts to second call to
1490 getopt functions. Restore optind rather than decrementing before
1491 second call. Remove errind as it now duplicates last_optind.
1492
583f1926
CF
14932001-12-11 Christopher Faylor <cgf@redhat.com>
1494
1495 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1496
93fbbb04
GK
14972001-12-07 Geoffrey Keating <geoffk@redhat.com>
1498 Richard Henderson <rth@redhat.com>
1499
1500 * Makefile.am: Add support for xstormy16.
1501 * configure.tgt: Add support for xstormy16.
1502 * Makefile.in: Regenerate.
1503 * emulparams/elf32xstormy16.sh: New file.
1504 * scripttempl/xstormy16.sc: New file.
1505
583f1926
CF
15062001-10-01 Christopher Faylor <cgf@cygnus.com>
1507
fc18a3f3
RH
1508 * Makefile.in (LIB_PATH): Make configurable.
1509 (GENSCRIPTS): Set LIB_PATH in environment.
1510 * configure.in: Substitute LIB_PATH.
1511 * configure: Regenerate.
1512 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1513 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 1514
ff291a48
NC
15152001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1516
1517 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1518 describing the -N option so that it is easier to translate into
1519 foreign languages.
1520
e3c8793a
NC
15212001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1522
1523 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1524 statements describing a single option with a single, newline
1525 escaped fprintf. This allows better translation into other
1526 languages.
9d201f2f 1527
fc18a3f3
RH
1528 * ldmain.c (add_archive_element): Combine multiple strings
1529 into a single string to permit better translation into other
1530 languages.
e3c8793a 1531
f2eab0af
TR
15322001-12-05 Tom Rix <trix@redhat.com>
1533
1534 * Makefile.am: Remove eaixppc64.
9d201f2f 1535 * Makefile.in: Regenerate.
f2eab0af 1536
249172c3
TR
15372001-12-04 Tom Rix <trix@redhat.com>
1538
9d201f2f 1539 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
1540 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1541 warning.
1542 (gld*_read_file): Fix typo.
1543 (change_symbol_mode): Add prototype.
1544 (is_syscall): Same.
9d201f2f 1545
249172c3
TR
1546 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1547 * emulparams/aixrs6.sh : Same.
1548 * emulparams/ppcmacos.sh : Same.
1549 * emulparams/aixppc64.sh : Delete file.
1550 * emultempl/aix.em : Formatting changes.
1551
5b5cd1b0
HPN
15522001-12-04 Hans-Peter Nilsson <hp@axis.com>
1553
1554 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1555 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1556 __Sbss.
1557 (OTHER_END_SYMBOLS): Fix formatting.
1558 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1559 (OTHER_END_SYMBOLS): Fix formatting.
1560
7cecdbff
AM
15612001-12-04 Alan Modra <amodra@bigpond.net.au>
1562
1563 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1564
742aeb63 15652001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 1566
742aeb63 1567 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 1568 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
1569 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1570 (ldemul_default_target): Same.
1571 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
1572 * emultempl/gld960c.em (gld960_choose_target): Same.
1573 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
1574 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1575 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1576 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 1577 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
1578 -b32 and -b64.
1579
48459341
L
15802001-11-27 H.J. Lu <hjl@gnu.org>
1581
1582 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1583 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1584 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1585 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1586 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1587 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1588 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1589 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1590
7cecdbff 1591 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
1592 is not empty.
1593 (SDATA): Likewise.
1594 (REL_SDATA): Likewise.
1595 (REL_SBSS): Likewise.
1596 (REL_SDATA2): Likewise.
1597 (REL_SBSS2): Likewise.
1598 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1599 (SDATA2): Likewise.
1600
ecfdd20c
SC
16012001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1602
1603 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1604 destructor in rom.
7cecdbff 1605 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 1606
da54c6eb
L
16072001-11-22 H.J. Lu <hjl@gnu.org>
1608
1609 * Makefile.in: Regenerated with automake based on automake
1610 1.4-8 in RedHat 7.1.
1611
465bc359
AM
16122001-11-22 Alan Modra <amodra@bigpond.net.au>
1613
1614 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1615 (config.status): Delete rule.
1616 Add extra dependencies to cover sourced emulparams files.
1617 * Makefile.in: Regenerate.
1618
1619 * scripttempl/elf.sc: Order <section>, <section>.* and
1620 corresponding linkonce sections as seen in input files.
1621 Formatting fixes. Zero vma of all sections if not relocating.
1622 (STACK): Define and insert if STACK_ADDR defined.
1623 (OTHER_RELOCATING_SECTIONS): Delete.
1624 (OTHER_END_SYMBOLS): Define.
1625 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1626 (OTHER_READWRITE_SECTIONS): Likewise.
1627 (OTHER_GOT_SECTIONS): Likewise.
1628 (OTHER_SDATA_SECTIONS): Likewise.
1629 (OTHER_BSS_SECTIONS): Likewise.
1630 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1631 (OTHER_READWRITE_SECTIONS): Likewise.
1632 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1633 (OTHER_READWRITE_SECTIONS): Likewise
1634
1635 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1636 (STACK_ADDR): Define.
1637 * emulparams/armelf_oabi.sh: As for armelf.sh.
1638 * emulparams/elf32mcore.sh: As for armelf.sh.
1639 * emulparams/h8300elf.sh: As for armelf.sh.
1640 * emulparams/mn10200.sh: As for armelf.sh.
1641 * emulparams/shelf.sh: As for armelf.sh.
1642
1643 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1644 (OTHER_END_SYMBOLS): Define.
1645 * emulparams/m32relf.sh: As for elf32fr30.sh.
1646 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1647 * emulparams/h8300self.sh: As for elf32fr30.sh.
1648
1649 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1650 defines with RELOCATING test.
1651 (OTHER_SDATA_SECTIONS): Likewise.
1652 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1653 (OTHER_END_SYMBOLS): ..this.
1654 * emulparams/crislinux.sh: As for criself.sh.
1655
1656 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1657 if not relocating.
1658 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1659 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1660 normal and linkonce sections as seen in input files.
1661 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1662 (TEXT_DYNAMIC): Likewise.
1663 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1664 (OTHER_SDATA_SECTIONS): Likewise.
1665 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1666 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1667 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1668 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1669 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1670 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1671 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1672 sections as seen in input files.
1673 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1674 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1675 if not relocating.
1676 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1677 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1678 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1679 (OTHER_SECTIONS): Instead, use this..
1680 (OTHER_END_SYMBOLS): ..and this.
1681
1682 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1683 * emulparams/elf32bsmip.sh: Likewise.
1684 * emulparams/elf32btsmip.sh: Likewise.
1685 * emulparams/elf32ebmip.sh: Likewise.
1686 * emulparams/elf32lmip.sh: Likewise.
1687 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1688 * emulparams/elf32lsmip.sh: Likewise.
1689 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1690 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1691 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1692 * emulparams/elf64btsmip.sh: Likewise.
1693 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1694 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1695 * emulparams/elf32ppclinux.sh: Likewise.
1696 * emulparams/elf32ppcsim.sh: Likewise.
1697 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1698 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1699 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1700 * emulparams/h8300self.sh: Likewise.
1701 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1702 * emulparams/sh.sh: Comment.
1703 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1704 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1705 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1706
abc6ab0a
AM
17072001-11-21 David Heine <dlheine@tensilica.com>
1708 Alan Modra <amodra@bigpond.net.au>
1709
1710 * ldlang.c (map_input_to_output_sections): Replace "break"
1711 accidentally removed with 2001-08-03 change.
1712 (lang_gc_sections_1): Likewise.
1713
2181f54f
AM
17142001-11-21 Alan Modra <amodra@bigpond.net.au>
1715
1716 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1717
ca0b5847
AM
17182001-11-20 Angela Marie Thomas <angela@redhat.com>
1719
1720 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
1721 of false when calling lang_size_sections.
1722 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 1723
c56feb2b
AM
17242001-11-15 Alan Modra <amodra@bigpond.net.au>
1725
1726 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1727 function when LDEMUL_FINISH isn't set to the same name. Don't
1728 call ${LDEMUL_FINISH}.
1729 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1730 * emultempl/armelf.em (arm_elf_finish): Call
1731 gld${EMULATION_NAME}_finish.
1732 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1733 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1734 hppaelf_layout_sections_again if necessary.
1735 (need_laying_out): New var.
1736 (hppaelf_layaout_sections_again): Rename to
1737 hppaelf_layout_sections_again. Clear need_laying_out.
1738 (PARSE_AND_LIST_OPTIONS): Format text.
1739
a48ca7f2
L
17402001-11-14 H.J. Lu <hjl@gnu.org>
1741
1742 * emultempl/armelf.em (arm_elf_finish): Renamed from
1743 gld${EMULATION_NAME}_finish.
1744 (LDEMUL_FINISH): Set to arm_elf_finish.
1745
73d074b4
DJ
17462001-11-14 Daniel Jacobowitz <drow@mvista.com>
1747
1748 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1749 (struct ld_emulation_xfer_struct): Use it.
1750
3b16e843 17512001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 1752
465bc359 1753 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
1754 additional symbols referenced by newer crt0.o files from HP.
1755
f11b7027
NC
17562001-11-12 Anthony Green <green@redhat.com>
1757
1758 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1759
3bf2994f
AM
17602001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1761
1762 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1763 * Makefile.in: Regenerate.
1764
ff5dcc92
SC
17652001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1766
1767 * ld.texinfo: Use @command for commands, @option for options.
1768 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1769 the page man title.
1770 * Makefile.in: Rebuild.
1771
9fb9af6e
CD
17722001-11-04 Chris Demetriou <cgd@broadcom.com>
1773
1774 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1775 Add support for targets.
2181f54f 1776
3c62831e
NC
17772001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1778
1779 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1780 * configure: Regernate.
1781 * po/fr.po: New file.
1782 * po/sv.po: New file.
1783
3a9091c4
NC
17842001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1785
1786 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1787 as little endian default and to support big endian.
2181f54f 1788
361b220e
CD
17892001-11-01 Chris Demetriou <cgd@broadcom.com>
1790
1791 * ld.texinfo (Options): Document new option, -nostdlib.
1792 * lexsup.c (OPTION_NOSTDLIB): New definition.
1793 (ld_options): Add entry for "nostdlib".
1794 (parse_args): Handle OPTIONS_NOSTDLIB.
1795 * ldfile.c (ldfile_add_library_path): Don't add directories
1796 to the search path if they weren't specified on the command line
1797 and -nostdlib was specified.
1798 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1799
210a7bd1
NC
18002001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1801
1802 * lexsup.c (parse_args): Prevent infinite parsing loop when
1803 "-rpath.a" is specified on the command line.
1804 Replace calls to fprintf with calls to einfo.
1805
114283d8
NC
18062001-10-31 John Marshall <jmarshall@acm.org>
1807
1808 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1809 appear only once across all the linker scripts involved in a link
1810 invocation no longer applies. Make the documentation reflect
1811 that.
1812
7649aa50
NC
18132001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1814
1815 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1816 targets.
1817 (sh-*-linux*): Added targ_extra_libpath.
1818
6e814ff8
AM
18192001-10-31 David Heine <dlheine@tensilica.com>
1820
1821 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1822 for padding statements.
1823
3c3bdf30
NC
18242001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1825
1826 * configure.tgt (mmix-*-*): New target.
1827 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1828 Add dependencies to match.
1829 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1830 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1831 scripttempl/mmo.sc: New files.
1832 * gen-doc.texi: @set MMIX.
1833 * ld.texinfo: Ditto.
6e814ff8 1834 [MMIX] Add MMIX node.
3c3bdf30
NC
1835 * Makefile.in: Regenerate.
1836
ca0c1d3e
KH
18372001-10-29 Kazu Hirata <kazu@hxi.com>
1838
1839 * ldlang.c: Fix a comment typo.
1840
1a3d33ce
AM
18412001-10-23 Alan Modra <amodra@bigpond.net.au>
1842
1843 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1844 entries, and match *-*-linux*.
1845
b47c4208
AM
18462001-10-20 Alan Modra <amodra@bigpond.net.au>
1847
1848 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1849 with ldlex_script, ldlex_popstate.
1850 (ifile_p1): Likewise.
1851 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1852 correct slot.
1853 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1854 to 1. Don't BEGIN(SCRIPT).
1855 (lex_redirect): Similarly.
1856 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1857
fd521b47
NC
18582001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1859
1860 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1861 __EH_FRAME_END__ and accept eh frames into data section.
1862 Add ctor and dtor sections.
1863
59d28a94
DD
18642001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1865
1866 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1867 (auto-export): Fix indentation.
1868
663dd378
DD
18692001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1870
1871 * pe-dll.c (autofilter_objectlist): Add startup objects
1872 for profiling.
1873 (auto-export): Constify char * p.
6e814ff8 1874 Extract file basename and use strcmp rather than ststr
663dd378
DD
1875 for object lookup.
1876
31d677f9
CD
18772001-10-18 Chris Demetriou <cgd@broadcom.com>
1878
1879 * ldmain.c (get_emulation): Improve comment about the handling
1880 of -mipsN options.
1881
aa200fe8
AM
18822001-10-17 Alan Modra <amodra@bigpond.net.au>
1883
1884 * po/POTFILES.in: Regenerate.
1885
146e7110
AM
18862001-10-16 Vassili Karpov <malc@pulsesoft.com>
1887
1888 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1889 -z nocopyreloc and -z nocombreloc usage strings.
1890
b4330e85
NC
18912001-10-12 Vassili Karpov <malc@pulsesoft.com>
1892
146e7110 1893 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
1894 in usage.
1895
5af8a2fb
NC
18962001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1897
1898 * scripttempl/armaout.sc: Place .bss section after end of aligned
1899 data section to match behaviour of aout code in constructrion of
1900 header.
1901
5b784096
DD
19022001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1903
1904 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1905 startup files for mingw32 dlls to list.
1906
61585df2
CD
19072001-10-10 Chris Demetriou <cgd@broadcom.com>
1908
1909 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1910
45cf6f3e
AH
19112001-10-08 Aldy Hernandez <aldyh@redhat.com>
1912
1913 * configure.tgt (targ): Add arm9e-*-elf.
1914
e24d7c12
L
19152001-10-05 H.J. Lu <hjl@gnu.org>
1916
1917 * genscripts.sh: Fix a typo in the last change.
1918
ec38dd05
JJ
19192001-10-05 Jakub Jelinek <jakub@redhat.com>
1920
1921 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1922 -z nocombreloc in usage.
1923
cedd6b0d
JB
19242001-10-03 Jim Blandy <jimb@redhat.com>
1925
1926 * genscripts.sh: Include a comment at the top of each generated
1927 script, explaining its purpose.
1928
8bd621d8
AM
19292001-10-03 Vassili Karpov <malc@pulsesoft.com>
1930
1931 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1932 * NEWS: Mention -z nocopyreloc.
1933 * ld.texinfo (Options): Describe nocopyreloc.
1934
fcd8210c
AM
19352001-10-03 Alan Modra <amodra@bigpond.net.au>
1936
1937 * configure: Regenerate.
1938
d32820f2
AM
19392001-10-02 Alan Modra <amodra@bigpond.net.au>
1940
1941 * ldver.h (ld_program_version): Remove declaration.
1942 * lexsup.c (parse_args): Move printing of copyright message..
1943 * ldver.c (ldversion): .. to here.
1944 Use BFD_VERSION_STRING in place of BFD_VERSION.
1945 (ld_program_version): Remove.
1946 * Makefile.am (Makefile): Depend on bfd/configure.in.
1947 Run "make dep-am".
1948 * Makefile.in: Regenerate.
1949
af46bcdc
HPN
19502001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1951
1952 * Makefile.am: Update dependencies with "make dep-am".
1953 * Makefile.in: Regenerate.
1954
4818e05f 19552001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 1956
4818e05f
AM
1957 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1958 * lexsup.c: Add --no-define-common commandline option.
1959 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1960 * ldlex.l: Likewise.
1961 * ld.h: Add command_line.inhibit_common_definition.
1962 * ldmain.c (main): Initialize.
1963 * ld.texinfo: Document.
862517b6 1964
a59f3d35
AM
19652001-09-29 Alan Modra <amodra@bigpond.net.au>
1966
1967 * ldlang.c (section_already_linked): Remove assignment to kept_section.
1968
d5e0ebeb
AM
19692001-09-26 Alan Modra <amodra@bigpond.net.au>
1970
1971 * ldmisc.c (USE_STDARG): Remove.
1972 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1973 (einfo): Likewise.
1974 (minfo): Likewise.
1975 (lfinfo): Likewise.
1976
1977 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1978 declarations. Update copyright.
1979
2f8d8971
NC
19802001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1981
85c77458
NC
1982 * pe-dll.c: Remove obsoleted declaration of
1983 pe_get_data_import_dll_name.
1984 (pe_create_import_fixup): Fix thinko.
1985
2f8d8971
NC
1986 * ld.texinfo(enable-auto-import): Clarify the explanation.
1987
19882001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1989
1990 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1991 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1992 DLL_SUPPORT controlled code.
1993
72358f65 19942001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 1995
72358f65
NC
1996 * emultempl/pe.em(pe_data_import_dll): Make static.
1997 (pe_get_data_import_dll_name): New accessor function.
146e7110 1998 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
1999 pe_get_data_import_dll_name() from pe.em, instead of
2000 directly accessing pe_data_import_dll variable from pe.em.
2001
3882b010
L
20022001-09-18 Bruno Haible <haible@clisp.cons.org>
2003
2004 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2005 (def_file_add_directive): Use ISSPACE instead of isspace.
2006 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2007 isdigit/isxdigit/isalpha/isalnum.
2008 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2009 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2010 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2011 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2012 isalnum.
2013 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2014 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2015 isupper/tolower.
2016 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2017 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2018 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2019 (ctor_prio): Use ISDIGIT instead of isdigit.
2020 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2021 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2022 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2023 isupper/tolower.
2024 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2025 (stricpy): Use TOLOWER instead of isupper/tolower.
2026 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2027 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2028 (lex_warn_invalid): Use ISPRINT instead of isprint.
2029 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2030 (main): For gettext, also set the LC_CTYPE locate facet.
2031 (add_keepsyms_file): Use ISSPACE instead of isspace.
2032 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2033 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2034 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2035 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2036 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2037 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2038 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2039 (quoteput): Use ISSPACE instead of isspace.
2040 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2041 instead of isalnum.
2042
db09f25b
AM
20432001-09-18 Alan Modra <amodra@bigpond.net.au>
2044
2045 * deffilep.y (def_stash_module): Constify "name" param.
2046
2047 * pe-dll.c: Replace CONST with const throughout.
2048 (quick_symbol): Constify "n1", "n2", "n3" params.
2049 (make_singleton_name_thunk): Constify "import" param. Make
2050 "buffer_len" a size_t.
2051 (make_import_fixup_entry): Constify "name", "fixup_name",
2052 "dll_symname" params.
2053 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2054 (pe_get32): Likewise.
2055 (pe_implied_import_dll): Likewise.
2056
2057 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2058 (sort_by_section_name): Likewise.
2059
2060 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2061 (make_import_fixup): Cast printf arg, rel->address to long rather
2062 than int.
2063 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2064
74699268
AM
20652001-09-15 Alan Modra <amodra@bigpond.net.au>
2066
2067 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2068 defines BufferSize. Increase buffer size by one.
2069
775cabad
NC
20702001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2071
2072 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2073
056a1d49
NC
20742001-09-14 Kevin Lo <kevlo@openbsd.org>
2075
2076 * configure.tgt: Add arm-openbsd target.
2077
a7d792bb
L
20782001-09-12 H.J. Lu <hjl@gnu.org>
2079
2080 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2081 eelf64lppc.o to ...
2082 (ALL_64_EMULATIONS): Here.
2083 * Makefile.in: Regenerated.
2084
0d888aac
CW
20852001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2086
2087 * emultempl/pe.em(make_import_fixup): change signature to
2088 take asection as well as arelec; we need this for proper
146e7110 2089 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
2090 there is no attempt to add a constant addend to the reloc;
2091 otherwise, report error condition.
2092 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2093 since final argument is a pointer to make_import_fixup().
2094 Change call to cb() to match make_import_fixup() signature.
2095 (make_import_fixup_mark): make buffer_len unsigned.
2096 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2097
20982001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2099
2100 * ld.texinfo: add verbose documentation for auto-import
146e7110 2101 direct-addressing workaround, to compliment the terse
0d888aac
CW
2102 error message.
2103
cedacdc0
CM
21042001-09-12 Andrew MacLeod <amacleod@redhat.com>
2105
146e7110 2106 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 2107
3b16e843 21082001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
2109
2110 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2111 * emulparams/h8300self.sh: Similarly.
2112
559e4713
NC
21132001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2114
2115 * ld.texinfo (Options, --stack): Correct default value for stack
2116 reserve.
2117
1fdf0249
TR
21182001-09-05 Tom Rix <trix@redhat.com>
2119
2120 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 2121
9b5799b8
AJ
21222001-09-03 Andreas Jaeger <aj@suse.de>
2123
2124 * emultempl/beos.em: Declare prototypes for comparions functions,
2125 adjust definitions.
2126
48f6162b
AJ
21272001-09-02 Andreas Jaeger <aj@suse.de>
2128
2129 * emultempl/aix.em: Add missing prototype.
2130 * emultempl/lnk960.em: Likewise.
2131 * emultempl/vanilla.em: Likewise.
2132 * emultempl/armcoff.em: Likewise.
2133 * emultempl/armelf_oabi.em: Likewise.
2134 * emultempl/beos.em: Likewise.
2135 * emultempl/gld960c.em: Likewise.
2136 * emultempl/gld960.em: Likewise.
2137
2138 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2139 for prototype declaration.
2140
39e5585e
EC
21412001-08-31 Eric Christopher <echristo@redhat.com>
2142 Jason Eckhardt <jle@redhat.com>
2143
2144 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2145
3fc90ddb
AJ
21462001-08-31 Andreas Jaeger <aj@suse.de>
2147
2148 * emultempl/pe.em: Add missing prototypes.
2149 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2150 pe_find_data_imports.
2151 (pr_sym): Add unused attribute.
2152
d43ded80
PB
21532001-08-29 Joel Sherrill <joel@OARcorp.com>
2154
39e5585e 2155 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
2156 default from coff to elf.
2157
3946dd2f
JL
21582001-08-29 Jeff Law <law@redhat.com>
2159
2160 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2161 ARCH specification.
2162 * emulparams/h8300self.sh: Similarly.
2163
3b16e843 21642001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
2165
2166 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2167 eh8300self.o .
2168 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2169 * configure.tgt (h8300-*-elf*): New case.
2170 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2171 * emulparams/h8300self.sh: New file.
2172 * Makefile.in: Regenerated.
2173
70d0c6e9
NC
21742001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2175
2176 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2177 with macro name.
2178
5c67d4bb
AM
21792001-08-27 Linus Nordberg <linus@swox.com>
2180 Alan Modra <amodra@bigpond.net.au>
2181
2182 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2183 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2184 Run "make dep-am"
2185 * Makefile.in: Regenerate.
2186 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2187 entries to correct alphabetical position.
2188 * emulparams/elf64ppc.sh: New.
2189 * emulparams/elf64lppc.sh: New.
2190
08131015
NC
21912001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2192
2193 * ldmain.c (main): Declare BSIZE as static.
2194
db6751f2
JJ
21952001-08-23 Jakub Jelinek <jakub@redhat.com>
2196
2197 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2198 into .rel.dyn resp. .rela.dyn if combreloc.
2199 (get_script): If .x linker script is equal to .xn, only put it
2200 once into the binary.
2201 Add .xc and .xsc scripts.
2202 (parse_args): Handle -z combreloc and -z nocombreloc.
2203 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2204 For .xc and .xsc scripts put all .rel* or .rela* input sections
2205 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2206 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2207 is elf.
2208 Strip trailing whitespace from script.
2209 Generate .xc and .xsc scripts if requested.
2210 * ldmain.c (main): Initialize link_info.combreloc and
2211 link_info.spare_dynamic_tags.
2212 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2213 (ld_options): Add --spare-dynamic-tags option.
2214 (parse_args): Likewise.
2215 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2216 * ldint.texinfo: Document .xc and .xsc linker scripts.
2217 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2218
63d069c0
L
22192001-08-22 H.J. Lu <hjl@gnu.org>
2220
2221 * emulparams/elf32fr30.sh: Add a newline.
2222
948f9114
AJ
22232001-08-21 Andreas Jaeger <aj@suse.de>
2224
2225 * deffilep.y: Add missing prototypes.
2226 * pe-dll.c: Likewise.
2227
ae7fb08f
AM
22282001-08-20 Alan Modra <amodra@bigpond.net.au>
2229
2af02257
AM
2230 * ldlang.c (insert_pad): Fix typos in last patch.
2231
2232 * ldlang.c: When traversing lang_statement_union_type lists,
2233 consistently use "header.next" rather than "next".
2234 * mpw-eppcmac.c: Likewise.
2235 * emultempl/beos.em: Likewise.
2236 * emultempl/hppaelf.em: Likewise.
2237 * emultempl/pe.em: Likewise.
2238 * ldlang.h (union lang_statement_union): Remove "next" field.
2239
c0c330a7
AM
2240 * ldlang.c (insert_pad): Use offsetof macro.
2241 (lang_size_sections): Always neuter padding statements.
2242 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2243
ae7fb08f
AM
2244 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2245 passed to lang_size_sections.
2246 (pe_exe_fill_sections): Likewise.
2247 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2248 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2249
fab80407
AM
22502001-08-18 Alan Modra <amodra@bigpond.net.au>
2251
2252 * emultempl/aix.em: Formatting fixes.
2253
b3327aad
AM
22542001-08-18 Alan Modra <amodra@bigpond.net.au>
2255
2256 * ldlang.c (insert_pad): Make use of an existing pad statement if
2257 available. Move code calculating alignment, adjusting section
2258 alignment power, and adjusting dot to ..
2259 (size_input_section): .. here. Remove unused relax param.
2260 (lang_size_sections): Change boolean `relax' param to boolean *.
2261 Adjust call to size_input_section. Make use of insert_pad to
2262 place pad after the assignment statement. If relaxing, zap
2263 padding statements.
2264 (reset_memory_regions): Reset output_bfd section sizes too.
2265 (relax_again): Move to..
2266 (lang_process): ..here. Adjust call to lang_size_sections, and
2267 remove duplicated code.
2268 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2269
563e308f
AM
22702001-08-17 Alan Modra <amodra@bigpond.net.au>
2271
2272 * ld.texinfo: Document that fill values now use the four least
2273 significant bytes.
2274 * emulparams/elf32fr30.sh (NOP): Update.
2275 * emulparams/elf32mcore.sh: Likewise.
2276 * emulparams/elf64_s390.sh: Likewise.
2277 * emulparams/elf_i386.sh: Likewise.
2278 * emulparams/elf_i386_be.sh: Likewise.
2279 * emulparams/elf_i386_chaos.sh: Likewise.
2280 * emulparams/elf_i386_ldso.sh: Likewise.
2281 * emulparams/elf_s390.sh: Likewise.
2282 * emulparams/elf_x86_64.sh: Likewise.
2283 * emulparams/i386moss.sh: Likewise.
2284 * emulparams/i386nw.sh: Likewise.
2285 * emulparams/m68kelf.sh: Likewise.
2286 * scripttempl/elf.sc: Update NOP comment.
2287 * scripttempl/elfi370.sc: Likewise.
2288 * scripttempl/elfm68hc11.sc: Likewise.
2289 * scripttempl/elfm68hc12.sc: Likewise.
2290 * scripttempl/nw.sc: Likewise.
2291
b90e1c6f
TR
22922001-08-15 Tom Rix <trix@redhat.com>
2293
2294 * ldgram.y (saved_script_handle): Initialize to NULL.
2295 * ldmain.c (main): Change check on saved_script_handle.
948f9114 2296
39dcfe18
AM
22972001-08-14 Alan Modra <amodra@bigpond.net.au>
2298
cde43e70
AM
2299 * emultempl/elf32.em: Formatting fixes.
2300 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2301 looking at sec->owner.
2302 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2303 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2304 unused code, and reorganize orphan section placement code.
2305
39dcfe18
AM
2306 * ldlang.c (wild_doit): Rename to lang_add_section.
2307 * ldlang.h: Here too.
2308 * mpw-elfmips.c: And here.
2309 * emultempl/beos.em: And here.
2310 * emultempl/elf32.em: And here.
2311 * emultempl/hppaelf.em: And here.
2312 * emultempl/pe.em: And here.
2313
908d20b3
RH
23142001-08-13 Richard Henderson <rth@redhat.com>
2315
2316 * emultempl/needrelax.em: New file.
2317 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2318 * Makefile.am (eelf64_ia64.c): Depend on it.
2319 * Makefile.in: Rebuild.
2320
0f33d40b
AM
23212001-08-13 Alan Modra <amodra@bigpond.net.au>
2322
22af9fd3
AM
2323 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2324 output_section is set non-NULL.
2325
0f33d40b
AM
2326 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2327 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2328 needlessly create an output_section_statement. Treat a correctly
2329 named output_section_statement with NULL bfd_section as compatible.
2330
55ab6103
HPN
23312001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2332
2333 * emultempl/generic.em: Support EXTRA_EM_FILE.
2334 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2335 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2336 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2337 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2338 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2339 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2340 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2341 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2342 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2343 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2344
24098abb
RH
23452001-08-12 Richard Henderson <rth@redhat.com>
2346
2347 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2348 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2349 scripttempl/v850.sc: Keep .jcr data.
2350
b9a8de1e 23512001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
2352 Andrew Haley <aph@cambridge.redhat.com>
2353 Nick Clifton <nickc@redhat.com>
b9a8de1e 2354
146e7110 2355 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
2356 Change type to file handle.
2357 * ld.h (had_script): Rename and retype.
2358 * ldfile.c (ldfile_open_command_file): Save the file handle
2359 used in saved_script_handle.
2360 * lexsup.c (parse_args): Do not allow -c option to alter
2361 saved_script_handle.
2362 * ldmain.c (main): Print out the linker script used if
2363 --verbose is given. Check saved_script_handle to obtain the
2364 external linker script used, or if NULL, dump the builtin
2365 script.
2366 * ld.texinfo: Document that --verbose now dumps the linker
2367 script used, regardless of whether it was an internal or an
2368 external script.
2369
0218d1e4
AJ
23702001-08-10 Andreas Jaeger <aj@suse.de>
2371
2372 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2373 to build warnings.
2374 * configure: Regenerate.
2375
5253f23b
AM
23762001-08-09 Alan Modra <amodra@bigpond.net.au>
2377
73810896
AM
2378 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2379
5253f23b
AM
2380 * scripttempl/elf.sc: Move non-text .dynamic section before
2381 .plt/.got/.sdata* group.
2382 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2383 (OTHER_SDATA_SECTIONS): Add.
2384 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2385 OTHER_GOT_SECTIONS.
2386 * emulparams/crislinux.sh: Likewise.
2387 * emulparams/elf32b4300.sh: Likewise.
2388 * emulparams/elf32bmip.sh: Likewise.
2389 * emulparams/elf32bmipn32.sh: Likewise.
2390 * emulparams/elf32bsmip.sh: Likewise.
2391 * emulparams/elf32btsmip.sh: Likewise.
2392 * emulparams/elf32ebmip.sh: Likewise.
2393 * emulparams/elf32elmip.sh: Likewise.
2394 * emulparams/elf32l4300.sh: Likewise.
2395 * emulparams/elf32lmip.sh: Likewise.
2396 * emulparams/elf32lsmip.sh: Likewise.
2397 * emulparams/elf32ltsmip.sh: Likewise.
2398 * emulparams/elf64bmip.sh: Likewise.
2399 * emulparams/elf64btsmip.sh: Likewise.
2400 * emulparams/elf64ltsmip.sh: Likewise.
2401
179c732c
AM
24022001-08-08 Alan Modra <amodra@bigpond.net.au>
2403
2404 * genscripts.sh: Source the emulparams script before each output
2405 script is generated so that variables like `RELOCATING' may affect
2406 variables defined in the emulparams script.
2407
3fd36710
AM
24082001-08-04 Alan Modra <amodra@bigpond.net.au>
2409
20713691
AM
2410 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2411 order.
2412
3fd36710
AM
2413 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2414 ie. iterate over wild_statement.section_list.
2415 (gld${EMULATION_NAME}_place_orphan): Likewise.
2416
de0b1853
SC
24172001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2418
2419 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2420 .fini[0-4] sections used by _exit
2421 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2422 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2423 * scripttempl/elfm68hc11.sc: Likewise.
2424
ff7e6f88
L
24252001-08-03 H.J. Lu <hjl@gnu.org>
2426
2427 * emultempl/beos.em (init): Add the missing initialization.
2428
b6bf44ba
AM
24292001-08-03 Alan Modra <amodra@bigpond.net.au>
2430
2431 * ld.texinfo (Input Section Basics): Clarify ordering of output
2432 sections.
2433 * ldlang.c (callback_t): Add wildcard_list param.
2434 (walk_wild_section): Remove "section" param. Rewrite for
2435 lang_wild_statement_type change. Remove unique_section_p test.
2436 (walk_wild_file): Remove "section" param.
2437 (walk_wild): Remove "section" and "file" params.
2438 (lang_gc_wild): Likewise.
2439 (wild): Likewise. Modify for lang_wild_statement_type change.
2440 (wild_sort): Likewise. Add "sec" param.
2441 (gc_section_callback): Likewise.
2442 (output_section_callback): Likewise. Do unique_section_p test.
2443 (map_input_to_output_sections): Modify call to wild.
2444 (lang_gc_sections_1): Likewise.
2445 (print_wild_statement): Modify for lang_wild_statement_type
2446 change.
2447 (lang_add_wild): Replace filename, filenames_sorted param with
2448 filespec. Replace section_name, sections_sorted,
2449 exclude_filename_list with section_list.
2450 * ldlang.h (lang_add_wild): Here too.
2451 (lang_wild_statement_type): Replace section_name, sections_sorted,
2452 and exclude_filename_list with section_list.
2453 * ldgram.y (current_file): Delete.
2454 (%union): Add wildcard_list.
2455 (file_NAME_list): Set type to wildcard_list. Build a linked list
2456 rather than calling lang_add_wild for each entry.
2457 (input_section_spec_no_keep): Call lang_add_wild here instead.
2458 * ld.h (struct wildcard_list): Declare.
2459 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2460
b044cda1
CW
24612001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2462
2463 * ldmain.c (main): initialize link_info.pei386_auto_import
2464 * pe-dll.c: new tables for auto-export filtering
2465 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 2466 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
2467 "by hand".
2468
24692001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2470
b6bf44ba
AM
2471 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2472 static variable current_sec (static struct sec *). Add
b044cda1 2473 forward declaration for add_bfd_to_link.
b6bf44ba
AM
2474 (process_def_file): Don't export undefined symbols. Do not
2475 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
2476 with new API.
2477 (pe_walk_relocs_of_symbol): New function.
2478 (generate_reloc): add optional extra debugging
b6bf44ba 2479 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 2480 line in output
b6bf44ba 2481 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
2482 (DATA auto-import support).
2483 (make_singleton_name_thunk): New function.
2484 (make_import_fixup_mark): New function.
2485 (make_import_fixup_entry): New function.
2486 (pe_create_import_fixup): New function.
b6bf44ba 2487 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 2488 char *.
b6bf44ba
AM
2489 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2490 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
2491 pe_create_import_fixup.
2492 * emultempl/pe.em: add new options --enable-auto-import,
2493 --disable-auto-import, and --enable-extra-pe-debug.
2494 (make_import_fixup): New function.
2495 (pe_find_data_imports): New function.
2496 (pr_sym): New function.
b6bf44ba 2497 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
2498 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2499 CODE.
2500
25012001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 2502
b044cda1
CW
2503 * ld.texinfo: add additional documentation for
2504 --export-all-symbols. Document --out-implib,
2505 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
2506 --dll-search-prefix, --enable-auto-import, and
2507 --disable-auto-import.
b044cda1
CW
2508 * ldint.texinfo: Add detailed documentation on auto-import
2509 implementation.
2510
156e34dd
NC
25112001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2512
2513 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2514 example.
2515
d6231427
AM
25162001-07-24 Alan Modra <amodra@bigpond.net.au>
2517
2518 * Makefile.am: Update dependencies with "make dep-am".
2519 * Makefile.in: Regenerate
2520
e14ec88b
AM
25212001-07-23 Alan Modra <amodra@bigpond.net.au>
2522
2523 * ldcref.c (check_section_sym_xref): New function.
2524 (check_nocrossrefs): Call it.
2525 (check_nocrossref): Interate over h->refs here instead of..
2526 (check_refs): ..here. Pass in the symbol name, section, and bfd
2527 rather than hash_entry pointers.
2528 (struct check_refs_info): Keep symbol name rather than hash entry.
2529 Remove "same".
2530 (check_reloc_refs): Tweak for above changes in check_refs_info.
2531 Only report references to section syms when symname is NULL to
2532 prevent duplicate messages for the same reloc.
2533
1b577b00
NC
25342001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2535
c7d701b0
NC
2536 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2537 available. Do not print NULL trees.
2538 (exp_print_token): Print unknown tokens with values > 126 as
2539 decimal values not ASCII characters.
2540
1545243b
NC
2541 * ldlang.c (lang_leave_overlay): If a region is specified assign
2542 it to all sections inside the overlay unless they have been
2543 assigned to the own, non-default, memory region.
2544
1b577b00
NC
2545 * README: Add header for consistency with other README files.
2546
5030876b
L
25472001-07-14 H.J. Lu <hjl@gnu.org>
2548
2549 * emultempl/elf32.em (output_prev_sec_find): Never return
2550 bfd_abs_section_ptr, bfd_com_section_ptr nor
2551 bfd_und_section_ptr.
2552
18c7a9a5
NC
25532001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2554
22af9fd3 2555 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
2556 elf32.em.
2557 * Makefile.in: Regenerate.
2558
9ffecff1
MG
25592001-07-14 matthew green <mrg@eterna.com.au>
2560
2561 * configure.tgt (i386-*-netbsdelf*): New target.
2562 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2563
95500e1c
JJ
25642001-07-13 Jakub Jelinek <jakub@redhat.com>
2565
2566 * emultempl/elf32.em (output_prev_sec_find): New.
2567 (place_orphan): Use it.
2568
e97cb84f
L
25692001-07-11 H.J. Lu <hjl@gnu.org>
2570
2571 * ldmain.c (main): Fix typos in the last change.
2572
7333607e
JJ
25732001-07-11 Jakub Jelinek <jakub@redhat.com>
2574
2575 * ldmain.c (main): Disallow -F and -f without -shared.
2576
d29d80f2
NC
25772001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2578
2579 * emultempl/pe.em (after_open): Check for the output_bfd not
2580 having any coff_data structure allocated to it.
2581
c2a1a436
DB
25822001-07-09 David O'Brien <obrien@FreeBSD.org>
2583
2584 * emultempl/elf32.em: Do not assuming that contents of the buffer
2585 returned from basename function will remain unchanged accross other
2586 function calls.
2587
63653551
L
25882001-07-03 H.J. Lu <hjl@gnu.org>
2589
2590 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2591 2001-07-03. It creates dynamic entries even for static binaries.
2592
d303a449
L
25932001-07-03 Jakub Jelinek <jakub@redhat.com>
2594
2595 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2596 (DYNAMIC): Use it to reserve few dynamic entries for
2597 post-linking tools.
2598
9f22353f
AM
25992001-06-27 Alan Modra <amodra@bigpond.net.au>
2600
2601 * emulparams/hppa64linux.sh: New file.
2602 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2603 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2604 (ehppa64linux.c): Add rule to make it.
2605 Run "make dep-am".
2606 * Makefile.in: Regenerate.
2607
62bf86b4
HPN
26082001-06-21 Hans-Peter Nilsson <hp@axis.com>
2609
2610 * ld.texinfo (Options, -r): Mention restrictions when using
2611 different object formats.
2612
429d935d
HPN
26132001-06-19 Hans-Peter Nilsson <hp@axis.com>
2614
2615 * ldlang.c (lang_check): Emit fatal error if relocatable link
2616 between different object flavours with relocations in input.
2617
cb840a31
L
26182001-06-19 H.J. Lu <hjl@gnu.org>
2619
2620 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2621 (--version-script): Mention the language support.
2622
9bf03acc
L
26232001-06-19 H.J. Lu <hjl@gnu.org>
2624
2625 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2626
c45021f2
NC
26272001-06-18 H.J. Lu <hjl@gnu.org>
2628
b6bf44ba
AM
2629 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2630 (diststuff): Add $(MANS).
2631 * Makefile.in: Regenerated.
c45021f2 2632
b6bf44ba 2633 * ld.1: Removed.
c45021f2 2634
6caa99ab
HPN
26352001-06-18 Hans-Peter Nilsson <hp@axis.com>
2636
605d9b3a
HPN
2637 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2638 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2639 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2640 * ld.h (args_type): Remove member export_dynamic. All users
2641 changed to use struct bfd_link_info member.
2642
6caa99ab
HPN
2643 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2644 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2645 * Makefile.in: Regenerate.
2646
6f9efd97
L
26472001-06-18 H.J. Lu <hjl@gnu.org>
2648
2649 * ldlang.c (init_os): Add the newline to the einfo call.
2650 (lang_check): Likewise.
2651 (lang_do_version_exports_section): Likewise.
2652
5af9fd8b
L
26532001-06-15 H.J. Lu <hjl@gnu.org>
2654
2655 * lexsup.c (parse_args); Save optind to report unrecognized
2656 option.
2657
2a096f04
HPN
26582001-06-15 Hans-Peter Nilsson <hp@axis.com>
2659
7e66c3f5
HPN
2660 * ldlang.c (lang_check): Emit fatal error if relocatable link
2661 between different object flavours.
2662
2a096f04
HPN
2663 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2664 Set new link_info member export_dynamic.
2665 * ldmain.c (main): Initialize new link_info member export_dynamic.
2666
6770ec8c
NC
26672001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2668
2669 * ldlang.c (walk_wild): Only call walk_wild_file if
2670 lookup_name returns something.
b6bf44ba 2671 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 2672 (load_symbols): Change to a boolean function.
b6bf44ba 2673 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
2674 executable.
2675
8529105a
AM
26762001-06-08 Alan Modra <amodra@bigpond.net.au>
2677
2678 * ldlang.c (record_bfd_errors): Remove.
2679
2680 * emultempl/aix.em: Fix copyright dates.
2681
8f3aa7a0
AJ
26822001-06-07 Andreas Jaeger <aj@suse.de>
2683
2684 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2685 (TEXT_START_ADDR): Likewise.
2686
3277f888
AM
26872001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2688
2689 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2690
3763134d
DD
26912001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2692
2693 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2694
5929ebc0
L
26952001-05-31 H.J. Lu <hjl@gnu.org>
2696
2697 * ldlang.c (open_input_bfds): Don't change the bfd error
2698 handler whilst loading symbols.
2699
c04a062d
NC
27002001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2701
2702 * configure.tgt: Remove i370-mvs architecture, it is not currently
2703 supported.
2704
96fcab3e
L
27052001-05-25 H.J. Lu <hjl@gnu.org>
2706
2707 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2708 like emulparams/aixppc.sh.
2709
db8d4f23
L
27102001-05-25 H.J. Lu <hjl@gnu.org>
2711
2712 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2713 setting of output_filename after bfd_scan_arch.
2714 * emultempl/pe.em: Likewise.
2715
5f642101
L
27162001-05-25 H.J. Lu <hjl@gnu.org>
2717
2718 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2719 like emulparams/aixppc.sh.
2720
2721 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2722 instead of ${srcdir}/emultempl/stringify.sed.
2723
64e9ece0
TW
27242001-05-25 Timothy Wall <twall@oculustech.com>
2725
2726 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 2727 output.
64e9ece0 2728
c709b096
AM
27292001-05-25 Alan Modra <amodra@one.net.au>
2730
2731 * configure.host: Replace linuxoldld with linux*oldld.
2732 * configure.tgt: Likewise.
2733
6cbdcc6f
L
27342001-05-24 H.J. Lu <hjl@gnu.org>
2735
2736 * emultempl/stringify.sed: Removed again.
2737
86af25fe
L
27382001-05-24 H.J. Lu <hjl@gnu.org>
2739
2740 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2741 (gld${EMULATION_NAME}_before_parse): Initialize
2742 ldfile_output_architecture, ldfile_output_machine and
2743 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2744 * emultempl/beos.em: Likewise.
2745 * emultempl/elf32.em: Likewise.
2746 * emultempl/linux.em: Likewise.
2747 * emultempl/mipsecoff.em: Likewise.
2748 * emultempl/pe.em: Likewise.
2749 * emultempl/sunos.em: Likewise.
2750
3b1b01cf
TR
27512001-05-24 Tom Rix <trix@redhat.com>
2752
8f3aa7a0 2753 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
2754 udate import file format.
2755 (change_symbol_mode) New, same
2756 (is_syscall) New, same
2757 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2758 * emulparams/aixppc64.sh : same
2759 * emulparams/aixrs6.sh : same
2760 * emulparams/ppcmacos.sh : same
2761 * emultempl/aix.em : use strtoull to parse options
2762 * Makefile.am : add eaixppc64 emulation for xcoff64
2763 * Makefile.in : same
2764 * configure.tgt : same
2765
2766 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 2767 default data section offset to 0x20000000
3b1b01cf 2768 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 2769 loader and debug sections use the currect section offset.
3b1b01cf
TR
2770
2771 * emultempl/aix.em : Add xcoff64 support
2772 Add -binitfini support
8f3aa7a0 2773 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 2774 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 2775 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
2776 sections
2777
2778 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 2779
57e6abd2
AO
27802001-05-23 Alexandre Oliva <aoliva@redhat.com>
2781
2782 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2783 variable to avoid non-portable shell construct.
2784
d1cf510e
NC
27852001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2786
2787 * ldmain.c (get_emulation): Add -mips5 command line argument.
2788
506eee22
NC
27892001-05-22 Alexandre Oliva <aoliva@redhat.com>
2790
2791 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2792 (ELF_INTERPRETER_NAME): Define it.
2793 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2794 it.
2795 * configure.tgt (targ_emul, targ_extra_emuls)
2796 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2797 as primary, elf_i386 as extra.
2798 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2799 (eelf_i386_ldso.c): New rule.
2800 * Makefile.in: Rebuilt.
2801
28022001-05-22 Nick Clifton <nickc@redhat.com>
2803
2804 * lexsup.c (ld_options): Allow -I to be an alias for
2805 --dynamic-linker. This is for Solaris compatability.
2806 * ld.texinfo: Document that -I can be used.
2807 * ld.1: Regenerate.
2808
d1778b88
AM
28092001-05-16 Alan Modra <amodra@one.net.au>
2810
2811 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2812 whether an input section is the first one assigned to an output
2813 section.
2814 Assorted formatting fixes.
2815
02649152
DD
28162001-05-14 DJ Delorie <dj@delorie.com>
2817
2818 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2819 * Makefile.in: Ditto.
2820
579f31ac
JJ
28212001-05-11 Jakub Jelinek <jakub@redhat.com>
2822
2823 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2824 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2825 output sections.
2826 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2827
8550eb6e
JJ
28282001-05-11 Jakub Jelinek <jakub@redhat.com>
2829
2830 * ldlang.c (lang_process): Call bfd_merge_sections.
2831
8e5a525c
AM
28322001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2833
2834 * ldgram.y: Fix typo.
2835
1c9acd94
L
28362001-05-03 H.J. Lu <hjl@gnu.org>
2837
2838 * emultempl/elf32.em: Include "libiberty.h".
2839 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2840 basename of the bfd filename.
2841 (gld${EMULATION_NAME}_stat_needed): Likewise.
2842 (gld${EMULATION_NAME}_try_needed): Likewise.
2843 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2844
14fe918e
L
28452001-05-02 H.J. Lu <hjl@gnu.org>
2846
2847 * emultempl/pe.em: Include <ctype.h>.
2848
c7e40348
NC
28492001-05-02 Johan Rydberg <jrydberg@opencores.org>
2850
b6bf44ba 2851 * emulparams/elf32openrisc.sh: New file.
c7e40348 2852
b6bf44ba
AM
2853 * Makefile.am: Add OpenRISC target.
2854 * Makefile.in: Regenerated.
c7e40348 2855
b6bf44ba 2856 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
2857
28582001-05-02 Nick Clifton <nickc@redhat.com>
2859
2860 * emultempl/aix.em: Replace buystring with xstrdup.
2861 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 2862
d1b2b2dc
L
28632001-05-02 H.J. Lu <hjl@gnu.org>
2864
2865 * ldfile.c: Include "libiberty.h".
2866 * ldlex.l: Likewise.
2867
2868 * ldmisc.c (buystring): Removed.
2869 * ldmisc.h: Likewise.
2870
2871 * ldfile.c: Replace buystring with xstrdup.
2872 * ldlang.c: Likewise.
2873 * ldlex.l: Likewise.
2874 * ldmain.c: Likewise.
2875 * ldmisc.c: Likewise.
2876 * lexsup.c: Likewise.
2877 * mpw-eppcmac.c: Likewise.
2878
35714f2a
AJ
28792001-04-30 Andreas Jaeger <aj@suse.de>
2880
2881 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2882
884fb58e
NC
28832001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2884
b6bf44ba
AM
2885 * ldlang.c (load_symbols): Give emulation a chance
2886 to process unrecognized file before fatal error is
2887 reported, not after.
884fb58e 2888
87748b32
NC
28892001-04-27 Sean McNeil <sean@mcneil.com>
2890
2891 * configure.tgt: Add arm-vxworks target.
2892 * scripttempl/armcoff.sc: Support .text or .data as a section name
2893 prefix.
2894 Define _etext.
35714f2a 2895
7ce691ae
C
28962001-04-13 J.T. Conklin <jtc@redback.com>
2897
2898 * ld.texinfo: Document --fatal-warnings.
2899 * ld.1: Regenerate.
2900
2901 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 2902 warnings have been turned into errors.
7ce691ae
C
2903 * lexsup.c (OPTION_WARN_FATAL): Define.
2904 (ld_options): Entry for --fatal-warnings.
2905 (parse_args): Handle OPTION_WARN_FATAL.
2906 * ld.h (ld_config_type): Add fatal_warnings field.
2907
f5fa8ca2
JJ
29082001-04-13 Jakub Jelinek <jakub@redhat.com>
2909
2910 * ldmain.c (main): Default to discard_sec_merge.
2911 * lexsup.c (OPTION_DISCARD_NONE): Define.
2912 (ld_options): Add --discard-none.
2913 (parse_args): Handle OPTION_DISCARD_NONE.
2914 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2915 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2916 all its input sections match.
2917
fdec3cfc
L
29182001-04-05 Steven J. Hill <sjhill@cotw.com>
2919
2920 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2921 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2922 (eelf32ltsmip.c): New target.
2923 (eelf64btsmip.c): Likewise.
2924 (eelf64ltsmip.c): Likewise.
2925 * Makefile.in: Regenerated.
2926
2927 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2928 target.
2929 (mips*-*-linux-gnu*): Likewise.
2930
2931 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2932 MIPS taget.
35714f2a 2933 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
2934 target.
2935 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2936 endian target.
2937
589bad82
HPN
29382001-04-05 Hans-Peter Nilsson <hp@axis.com>
2939
2940 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2941 correct value of __Stext here.
2942 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2943 .startup section.
2944
2945 * emulparams/crislinux.sh: Remove FIXME.
2946
94202e16
AM
29472001-04-02 Alan Modra <alan@linuxcare.com.au>
2948
2949 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2950 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2951
1268a053
HPN
29522001-03-27 Hans-Peter Nilsson <hp@axis.com>
2953
2954 * configure.tgt (cris-*-*): Change default emulation to criself.
2955 (cris-*-*aout*): New rule.
2956
d85e9ff7
AM
29572001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2958
2959 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2960 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2961
0879a67a
AJ
29622001-03-26 Andreas Jaeger <aj@suse.de>
2963
2964 * ld.texinfo (Overview): Fix syntax in texi code.
2965
0285c67d
NC
29662001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2967
2968 * ld.texinfo: Put @c man indications to generate the ld man page.
2969 When generating man, define all the variables. Define SEEALSO
2970 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2971 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2972 (ld.1): Generate from ld.texinfo.
2973 * Makefile.in: Regenerate.
2974
c20ec07b
NC
29752001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2976
2977 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 2978 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 2979
cc5ce052
UD
29802001-03-17 Ulrich Drepper <drepper@redhat.com>
2981
2982 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2983 is an absolute path look only for this file and not along the path.
2984
a1ab1d2a
UD
29852001-03-17 Ulrich Drepper <drepper@redhat.com>
2986
2987 * emultempl/elf32.em (OPTION_GROUP): New macro.
2988 Add new option Bgroup to longopts.
2989 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2990 (gld*_list_options): Add -Bgroup and -z defs.
2991 * ld.1: Document -Bgroup and -z defs.
2992 * ld.texinfo: Likewise.
2993
788fca5a
MM
29942001-03-07 Michael Meissner <meissner@redhat.com>
2995
2996 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2997 with sections created by -fdata-sections.
2998 (.dynbss,.bss): Ditto.
2999
1c7566d1
AM
30002001-03-05 Alan Modra <alan@linuxcare.com.au>
3001
3002 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3003 after_allocation_default, not gld..._before_allocation.
3004
27b7e12d
AM
30052001-02-27 Alan Modra <alan@linuxcare.com.au>
3006
3007 * configure.in (BFD_VERSION): New.
3008 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3009 * configure: Regenerate.
3010 * Makefile.am: Run "make dep-am"
3011 * Makefile.in: Regenerate.
3012
2bc551c7
TW
30132001-02-26 Timothy Wall <twall@cygnus.com>
3014
3015 * emulparams/elf64_aix.sh: Add additional read-only sections;
3016 uncomment lines which are now required.
3017
1276aefa
NC
30182001-02-26 H.J. Lu <hjl@gnu.org>
3019
3020 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
3021 that problems can be caught whilst loading symbols.
3022 (record_bfd_errors): New function: Report BFD errors and mark
3023 the executable output as being invalid.
1276aefa 3024
41c49998
TW
30252001-02-22 Timothy Wall <twall@cygnus.com>
3026
3027 * configure.host: Add configuration for ia64-*-aix*.
3028 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3029 Add dependencies for eelf64_aix.c.
3030 * Makefile.in: Regenerate.
3031 * configure.tgt: Add ia64-*-aix* mapping.
3032 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 3033 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
3034 AIX-specific test.
3035
78f85fd7
L
30362001-02-20 H.J. Lu <hjl@gnu.org>
3037
3038 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3039 false if we found the file.
3040
1ac7e077 30412001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
3042
3043 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3044 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3045
e135f41b
NC
30462001-02-18 lars brinkhoff <lars@nocrew.org>
3047
3048 * Makefile.am: Add PDP-11 target.
3049 * configure.tgt: Likewise.
3050 * emulparams/pdp11.sh: New file.
3051
a842aceb
DB
30522001-02-17 David O'Brien <obrien@FreeBSD.org>
3053
3054 * configure.host: Add a generic FreeBSD configuration entry such that
3055 all [modern] FreeBSD systems on all platforms will look the same.
3056
24174db0
L
30572001-02-14 H.J. Lu <hjl@gnu.org>
3058
3059 * configure.tgt: Remove mention of earmelf_linux26.
3060
30c3c13a
RH
30612001-02-13 Richard Henderson <rth@redhat.com>
3062
3063 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3064
b46a87b1
L
30652001-02-13 H.J. Lu <hjl@gnu.org>
3066
3067 * ldexp.h (node_type): Add etree_provided.
3068 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3069 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 3070 for etree_provided.
b46a87b1
L
3071 (exp_print_tree): Handle etree_provided.
3072 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3073 etree_provided.
3074
f3988fd9
RH
30752001-02-09 David Mosberger <davidm@hpl.hp.com>
3076
3077 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3078 .IA_64.unwind.* pattern to unwind table section and
3079 .IA_64.unwind_info* pattern to unwind info section.
3080
a85d7ed0
NC
30812001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3082
3083 * Makefile.am: Add linux target for S/390.
3084 * Makefile.in: Likewise.
3085 * configure.host: Likewise.
3086 * configure.tgt: Likewise.
3087 * emulparams/elf64_s390.sh: New file.
3088 * emulparams/elf_s390.sh: New file.
3089
780248c4
JJ
30902001-02-09 Jakub Jelinek <jakub@redhat.com>
3091
3092 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3093 targ_extra_libpath.
3094 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3095
0e2534bd
PB
30962001-02-06 Philip Blundell <philb@gnu.org>
3097
3098 * Makefile.am: Remove mention of earmelf_linux26.
3099 * Makefile.in: Regenerate.
3100
46c1ea57
PB
31012001-02-04 Philip Blundell <philb@gnu.org>
3102
3103 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3104 * emulparams/armelf_linux26.sh: Delete.
3105 * configure.tgt: Remove mention of armelf_linux26 emulation.
3106
0088edd2
NC
31072001-02-01 Nick Clifton <nickc@redhat.com>
3108
3109 * ld.1: Replace occurances of -oformat with --oformat.
3110
02aa14fb
AM
31112001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3112
3113 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3114 load_base is specified.
3115
f813923c
HPN
31162001-01-24 Hans-Peter Nilsson <hp@axis.com>
3117
3118 * emultempl/elf32.em: Correct spelling in comments and listed
3119 options.
3120
c1eb1488
AM
31212001-01-23 Alan Modra <alan@linuxcare.com.au>
3122
3123 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3124 default for the first section of a group of overlay sections.
3125
d9fc3714
AM
31262001-01-22 Alan Modra <alan@linuxcare.com.au>
3127
3128 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3129 * Makefile.in: Regenerate.
3130 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3131 Check for null tool_dir.
3132
6be0ca94
JW
31332001-01-16 Jim Wilson <wilson@redhat.com>
3134
3135 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3136 and IA_64.unwind.info.
3137
b9247304
L
31382001-01-16 H.J. Lu <hjl@gnu.org>
3139
3140 * ldlang.c (lang_check): Merge the private data only if the
3141 input file has contents.
3142
577a0623
AM
31432001-01-14 Alan Modra <alan@linuxcare.com.au>
3144
d952f17a
AM
3145 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3146
ffd6e9de
AM
3147 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3148 enabling search for libmilli. On a relocatable link, make .text
3149 sections unique.
3150 (LDEMUL_AFTER_PARSE): Define.
3151 (hppaelf_finish): Correct spelling of relocatable in comments.
3152
577a0623
AM
3153 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3154 rummage through the script for sections on the unique list.
3155 Correct length of strncmp for ".note".
3156 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3157
3158 * ldlang.c (unique_section_list): New var.
3159 (unique_section_p): New function.
3160 (walk_wild_section): Don't match sections on unique_section_list.
3161 (lang_add_unique): New function.
ffd6e9de 3162 Correct spelling of relocatable in comments.
577a0623
AM
3163
3164 * ldlang.h (struct unique_sections): Declare.
3165 (unique_section_list): Declare.
3166 (unique_section_p): Declare.
3167 (lang_add_unique): Declare.
3168
3169 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3170 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3171
3172 * ld.texinfo (--unique): Update.
3173
b7ed8fad
NC
31742001-01-13 Nick Clifton <nickc@redhat.com>
3175
3176 * lexsup.c (parse_args): Remove spurious white space.
3177
d0398d6a
NC
31782001-01-12 Nick Clifton <nickc@redhat.com>
3179
3180 * lexsup.c (parse_args): Update copyright date.
3181
350fdb00
PB
31822001-01-12 Philip Blundell <pb@futuretv.com>
3183
3184 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3185
60c6797e
KH
31862001-01-10 Kazu Hirata <kazu@hxi.com>
3187
3188 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3189 * scripttempl/h8300h.sc: Fix formatting.
3190 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
3191 * scripttempl/h8500.sc: Likewise.
3192 * scripttempl/h8500b.sc: Likewise.
3193 * scripttempl/h8500c.sc: Likewise.
3194 * scripttempl/h8500m.sc: Likewise.
3195 * scripttempl/h8500s.sc: Likewise.
60c6797e 3196
482e8b32
DB
31972000-01-07 David O'Brien <obrien@BSDi.com>
3198
3199 * emultempl/elf32.em: Only perform Linux ld hints processing when
3200 targeting Linux.
3201
d7ed7ca6
PB
32022001-01-07 Philip Blundell <philb@gnu.org>
3203
3204 * ld.texinfo (Bug Reporting): Update email address for reports.
3205
0fc3347a
NC
32062000-12-31 Nick Clifton <nickc@redhat.com>
3207
3208 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3209 options by checking for a return value of '?' not -1.
3210
e4897a32
NC
32112000-12-28 Nick Clifton <nickc@redhat.com>
3212
3213 * lexsup.c (struct ld_option): Add new enum value:
3214 EXACTLY_TWO_DASHES.
3215 (ld_options[]): Change -omagic, -output and -oformat options
3216 to be EXACTLY_TWO_DASHES.
3217 (OUTPUT_COUNT): Use ARRAY_SIZE.
3218 (parse_args): Change parameter 'argc' to unsigned.
3219 Place EXACTLY_TWO_DASHES options into new really_longopts
3220 array.
3221 If getopt_long_only fails, try calling getopt_long using the
3222 really_longopts array.
3223 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3224 TWO_DASHES options.
3225
3226 * ldlex.h: Fix prototype of parse_args.
3227
3228 * ld.texinfo: Document that long options starting with 'o'
3229 must be preceeded by two dashes. Change example of a single
3230 dashed long option from -oformat to -trace-symbol.
3231
1122a5fc
NC
32322000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3233
3234 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3235 (longopts[]): New --no-default-excludes option.
3236 (gld_${EMULATION_NAME}_list_options): Document.
3237 (gld_${EMULATION_NAME}_parse_args): Handle.
3238
037849a9
NC
32392000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3240
3241 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3242 whitespace, it breaks the K&R C preprocessor.
3243
7ec229ce
DD
32442000-12-11 DJ Delorie <dj@redhat.com>
3245
3246 * ld.texinfo: Add notes about --whole-archive and gcc.
3247
b79e8c78
NC
32482000-11-18 Fred Fish <fnf@be.com>
3249
3250 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3251 (ld_options): Entry for --allow-shlib-undefined.
3252 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3253 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3254 to false.
3255 * ld.texinfo: Document new command line switch.
d952f17a 3256
9a8e2505
GK
32572000-12-12 Geoffrey Keating <geoffk@redhat.com>
3258
3259 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3260 .fixup is actually read/write.
3261 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3262 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3263 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3264
3b16e843 32652000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
3266
3267 * NEWS: Add note about x86_64 architecture.
3268
93b63cd3
DD
32692000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3270
3271 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3272 Set DWARF2 sections to a VMA of zero.
3273
68b2fc7a 32742000-12-01 Joel Sherrill <joel@OARcorp.com>
24f6971a 3275
d952f17a 3276 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
3277 New targets.
3278 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3279 (sparc*-*-rtems*): Switched from a.out to ELF.
3280
2be3aa03
NC
32812000-11-30 Jan Hubicka <jh@suse.cz>
3282
3283 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3284 (eelf_x86_64.c): New.
3285 * Makefile.in: Regenerate.
3286 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3287 * emulparams/elf_x86_64.sh: New.
3288
8c899858
HPN
32892000-11-30 Hans-Peter Nilsson <hp@axis.com>
3290
3291 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3292 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3293
3294 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3295 merging non-a.out sections into CONSTRUCTING.
3296
e47b9e39
NC
32972000-11-28 Nick Clifton <nickc@redhat.com>
3298
3299 * ld.1 (COPYING): Mention that the GNU Free Documentation
3300 License is present in the sources, but not the output, and
3301 also available from the GNU website.
3302 (GNU Free Documentation License): Comment out this section.
3303
ad95f82a
DB
33042000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3305
3306 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3307 does not use them.
3308
fd89e65f
DB
33092000-11-25 David O'Brien <obrien@FreeBSD.org>
3310
3311 * ld.1: Remove old date so it does not give the impression the manpage
3312 is way out of date.
3313
077b8428
NC
33142000-11-24 Nick Clifton <nickc@redhat.com>
3315
3316 * configure.tgt (xscale-coff): Add target.
3317 (xscale-elf): Add target.
3318
49425d28
NC
33192000-11-24 Fred Fish <fnf@be.com>
3320
d952f17a
AM
3321 * ldmain.c (main): Remove redundant init of config.make_executable
3322 to true.
49425d28 3323
d3480244
RH
33242000-11-15 Richard Henderson <rth@redhat.com>
3325
3326 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3327
1ce7de8b
KH
33282000-11-14 Kazu Hirata <kazu@hxi.com>
3329
3330 * scripttempl/h8300.sc: Fix formatting.
3331 * scripttempl/h8300h.sc: Likewise.
3332 * scripttempl/h8300s.sc: Likewise.
3333
3b16e843 33342000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
3335
3336 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3337
2e418547
PB
33382000-11-09 Philip Blundell <pb@futuretv.com>
3339
3340 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3341 around orphan sections whose names can be represented in C.
3342
c940e6fc
JW
33432000-11-07 Jim Wilson <wilson@redhat.com>
3344
3345 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3346 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3347
704c465c
NC
33482000-11-06 Nick Clifton <nickc@redhat.com>
3349
3350 * ld.texinfo: Add GNU Free Documentation License.
3351 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 3352 * ld.1: Add GNU Free Documentation License.
704c465c 3353
dca7760f
AM
33542000-11-05 Alan Modra <alan@linuxcare.com.au>
3355
3356 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3357 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3358
3359 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3360 Move 2000-11-02 Makefile.in changes to this file.
3361 * Makefile.in: Regenerate.
3362
40a633d5
NC
33632000-11-03 Nick Clifton <nickc@redhat.com>
3364
3365 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3366 constructors and destructors.
3367 * scripttempl/h8300h.sc: Ditto.
3368 * scripttempl/h8300s.sc: Ditto.
3369 * scripttempl/h8500.sc: Ditto.
3370 * scripttempl/h8500b.sc: Ditto.
3371 * scripttempl/h8500c.sc: Ditto.
3372 * scripttempl/h8500m.sc: Ditto.
3373 * scripttempl/h8500s.sc: Ditto.
3374 * scripttempl/v850.sc: Ditto.
3375 * scripttempl/w65.sc: Ditto.
3376 * scripttempl/z8000.sc: Ditto.
3377
59ff2774
NC
33782000-11-02 Per Lundberg <plundis@chaosdev.org>
3379
3380 * Makefile.in (e_i386_chaos.c): New rule.
3381 (ALL_EMULATIONS): Added e_i386_chaos.o.
3382 * emulparams/elf_i386_chaos.sh: New file.
3383 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3384
645571e1
JJ
33852000-10-20 Jakub Jelinek <jakub@redhat.com>
3386
3387 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3388 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3389 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3390 library path suffix.
3391 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3392
c5975a45
HPN
33932000-10-18 Hans-Peter Nilsson <hp@axis.com>
3394
3395 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3396 for consecutive sections.
3397
ea20a7da
CC
33982000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3399
d952f17a
AM
3400 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3401 options.
3402 * ld.texinfo: Added notes about this new option.
ea20a7da 3403
6e45556a
NC
34042000-10-16 Nick Clifton <nickc@redhat.com>
3405
3406 * emultempl/pe.em (_after_open): Add tests of return values from
3407 bfd functions. Emit appropriate error messages if necessary.
3408
b9a69188
NC
34092000-10-13 Nick Clifton <nickc@redhat.com>
3410
3411 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
3412 local variables - they are not used, but leave in the call to
3413 bfd_canonicalize_symtab.
b9a69188
NC
3414 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3415 pe_dll_search_prefix.
3416
627427de 34172000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 3418
627427de
DD
3419 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3420 (longopts): New --dll-search-prefix option.
3421 (gld_${EMULATION_NAME}_list_options): Document.
3422 (gld_${EMULATION_NAME}_parse_args): Handle.
3423 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3424 dynamically, search for a dll named '<prefix><basename>.dll'
3425 in preference to 'lib<basename>.dll' if --dll-search-prefix
3426 is specified.
3427
24376d1b
AM
34282000-10-12 Alan Modra <alan@linuxcare.com.au>
3429
3430 * ldlang.c (section_already_linked): Set kept_section instead of
3431 sec->comdat->sec.
3432
e47d05ad
KH
34332000-10-10 Kazu Hirata <kazu@hxi.com>
3434
3435 * deffile.h: Fix formatting.
3436 * lexsup.c: Likewise.
3437 * mri.c: Likewise.
3438
23a87948
DD
34392000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3440
3441 * pe-dll.c (make_one): Do not generate code thunk for DATA
3442 exports.
3443 (process_def_file): deduce DATA flag for auto-export sumbols.
3444
86b1cc60
KH
34452000-10-09 Kazu Hirata <kazu@hxi.com>
3446
89cdebba
KH
3447 * ld.h: Fix formatting.
3448 * ldcref.c: Likewise.
3449 * ldctor.h: Likewise.
3450 * ldemul.c: Likewise.
3451 * ldemul.h: Likewise.
3452 * ldexp.c: Likewise.
3453 * ldexp.h: Likewise.
3454 * ldfile.c: Likewise.
3455 * ldfile.h: Likewise.
3456 * ldlang.c: Likewise.
3457 * ldlang.h: Likewise.
3458 * ldmain.c: Likewise.
7bfd51a3
KH
3459 * pe-dll.c: Likewise.
3460
3461 * pe-dll.c: Revert some formatting fixes.
86b1cc60 3462
d643799d
KH
34632000-10-08 Kazu Hirata <kazu@hxi.com>
3464
3465 * pe-dll.c: Fix formatting.
3466
08da4cac
KH
34672000-10-05 Kazu Hirata <kazu@hxi.com>
3468
3469 * ldlang.c: Fix formatting.
3470
c2a94a7a
DD
34712000-10-03 DJ Delorie <dj@redhat.com>
3472
3473 * pe-dll.c (fill_edata): initialize entire block
3474 (make_one): fill in correct section.
3475
8c95a62e
KH
34762000-10-03 Kazu Hirata <kazu@hxi.com>
3477
3478 * ldexp.c: Fix formatting.
3479
486e80e2
DD
34802000-10-02 DJ Delorie <dj@redhat.com>
3481
3482 * emultempl/pe.em (gld_*_after_open): detect case where there two
3483 import libraries for same dll; rename one to ensure proper link
3484 order.
3485
3486 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3487 typo
3488 (generate_edata): fix typo
3489
24dd9f75
HPN
34902000-09-29 Hans-Peter Nilsson <hp@axis.com>
3491
3492 * scripttempl/crisaout.sc (ENTRY): Now __start.
3493 (.text): Add default setting for __start.
3494 Remove CONSTRUCTORS handling.
3495 (/DISCARD/): Add .gnu.warning.*.
3496 * emulparams/crislinux.sh (ENTRY): Now __start.
3497 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3498 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3499 (ENTRY): Now __start.
3500 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3501 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3502
4de2d33d
KH
35032000-09-29 Kazu Hirata <kazu@hxi.com>
3504
5cc18311
KH
3505 * deffile.h: Fix formatting.
3506 * ld.h: Likewise.
3507 * ldcref.c: Likewise.
4de2d33d 3508 * ldctor.c: Likewise.
5cc18311 3509 * ldctor.h: Likewise.
4de2d33d 3510 * ldemul.c: Likewise.
5cc18311 3511 * ldemul.h: Likewise.
4de2d33d 3512 * ldexp.c: Likewise.
5cc18311 3513 * ldexp.h: Likewise.
4de2d33d 3514 * ldfile.c: Likewise.
5cc18311 3515 * ldfile.h: Likewise.
4de2d33d 3516 * ldlang.c: Likewise.
5cc18311
KH
3517 * ldlang.h: Likewise.
3518 * lexsup.c: Likewise.
3519 * mri.c: Likewise.
3520 * pe-dll.c: Likewise.
4de2d33d 3521
45b1f63c
DD
35222000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3523
3524 * pe-dll.c (process_def_file): Uninitialized data wasn't
3525 exported with --export-all-symbols switch.
d952f17a 3526
45b1f63c
DD
35272000-09-28 DJ Delorie <dj@redhat.com>
3528
3529 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3530 noname work properly.
3531
47d89dba
AM
35322000-09-28 Alan Modra <alan@linuxcare.com.au>
3533
3534 * ld.texinfo (HPPA ELF32): New section.
3535
3536 * emultempl/hppaelf.em (group_size): New.
3537 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3538 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3539 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3540 options to prevent abbreviations matching.
3541 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3542 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3543
36bdbeec
NC
35442000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3545
3546 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3547 on the m68*-*-elf target. Make it support COFF input objects.
3548
6d5e62f8
KH
35492000-09-21 Kazu Hirata <kazu@hxi.com>
3550
3551 * ldmain.c: Fix formatting.
3552 * ldmisc.c: Likewise.
3553 * ldver.c: Likewise.
3554 * ldwrite.c: Likewise.
3555
e2eb67d9
AM
35562000-09-21 Alan Modra <alan@linuxcare.com.au>
3557
3558 * ldwrite.c (clone_section): Silence gcc warnings.
3559
b3ea3584
AM
35602000-09-20 Alan Modra <alan@linuxcare.com.au>
3561
3562 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3563 out of memory failure.
3564
3565 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3566 (clone_section): Handle out of memory failures. Rename var to
3567 avoid c++ reserved word.
3568
25f72752
AM
35692000-09-18 Alan Modra <alan@linuxcare.com.au>
3570
3571 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3572 stub_name param to stub_sec_name.
3573 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3574
0752970e
NC
35752000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3576
3577 * emultempl/m68kelf.em: New file.
3578 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3579 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3580 * Makefile.in: Regenerate.
3581
92b7e9d8
AM
35822000-09-15 Alan Modra <alan@linuxcare.com.au>
3583
3584 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3585 only as needed.
3586
9b14b192
NC
35872000-09-13 Nick Clifton <nickc@redhat.com>
3588
3589 * ldmain.c (multiple_definition): Disable relaxation if
3590 multiple symbol definitions are encountered - otherwise the
3591 linker could abort with an assertion failure.
3592
891fa266
NC
35932000-09-10 Nick Clifton <nickc@redhat.com>
3594
3595 * mri.c: Fix formatting.
3596
5d64ca4e
L
35972000-09-07 H.J. Lu <hjl@gnu.org>
3598
3599 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3600 * configure: Rebuild.
3601
dd94604f
L
36022000-09-07 H.J. Lu <hjl@gnu.org>
3603
3604 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3605 * Makefile.in: Rebuild.
3606
71bfc0ae
AM
36072000-09-07 Alan Modra <alan@linuxcare.com.au>
3608
3609 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3610 broken list handling. Create __start_SECNAME and __stop_SECNAME
3611 when no place-holder. Add some comments. Test both SEC_CODE and
3612 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 3613 Handle case where no output section statement created.
71bfc0ae 3614
4a428502
AO
36152000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3616
3617 * configure.tgt (sh-*-linux*): Added.
3618 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3619 * Makefile.in: Rebuilt.
3620 * emulparams/shelf_linux.sh: New file.
3621 * emulparams/shlelf_linux.sh: New file.
3622
f9989030
AM
36232000-09-06 Alan Modra <alan@linuxcare.com.au>
3624
3625 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3626 try shuffling sections when the orphan happens to be the place
3627 holder. Keep count of unique section names generated so we speed
3628 the search for a new name.
3629
58cccadb
AO
36302000-09-06 Alexandre Oliva <aoliva@redhat.com>
3631
3632 * configure: Rebuilt with new libtool.m4.
3633
5b343f5a
NC
36342000-09-05 Nick Clifton <nickc@redhat.com>
3635
3636 * Makefile.in: Regenerate.
3637 * aclocal.m4: Regenerate.
3638 * configure: Regenerate.
3639 * config.in: Regenerate.
3640 * po/ld.pot: Regenerate.
3641
3642 * ldint.texinfo: Remove CVS revision marker - it foils local
3643 comparisons.
3644
3645 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 3646
a854a4a7
AM
36472000-09-05 Alan Modra <alan@linuxcare.com.au>
3648
3231d22e
AM
3649 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3650 to stub section flags.
3651 (hppa_for_each_input_file_wrapper): New.
3652 (hppa_lang_for_each_input_file): New.
3653 (lang_for_each_input_file): Define to call above.
3654 (multi_subspace): New.
3655 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3656 (PARSE_AND_LIST_PROLOGUE): Define.
3657 (PARSE_AND_LIST_LONGOPTS): Define.
3658 (PARSE_AND_LIST_OPTIONS): Define.
3659 (PARSE_AND_LIST_ARGS_CASES): Define.
3660 (hppaelf_finish): Call elf32_hppa_set_gp.
3661 (hppaelf_set_output_arch): Remove.
3662 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3663
3664 * emulparams/hppalinux.sh (ELFSIZE): Define.
3665 (MACHINE): Define.
3666 (OTHER_READONLY_SECTIONS): Define.
3667 (DATA_PLT): Define.
3668 (GENERATE_SHLIB_SCRIPT): Define.
3669
5f992e62
AM
3670 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3671 to const throughout. Change `void *' to `PTR' throughout.
3672 (lang_memory_default): Function is local to file, add `static'.
3673
3674 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3675 (ehppalinux.c): Likewise.
3676 (earmelf.c): Likewise.
3677 (earmelf_linux.c): Likewise.
3678 (earmelf_linux26.c): Likewise.
3679 * Makefile.in: Regenerate.
3680
a854a4a7
AM
3681 * ld.h (ld_config_type): Add unique_orphan_sections.
3682 * lexsup.c (OPTION_UNIQUE): Define.
3683 (ld_options): Add "--unique".
3684 (parse_args): Handle it.
3685 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3686 search for an existing output section if unique_orphan_sections is
3687 set. Make use of bfd_get_unique_section_name rather than
3688 duplicating code here.
3689 * ld.texinfo: Describe --unique.
3690
3691 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3692 optional arg to split-by-file.
3693 (parse_args): Handle them.
3694 * ld.texinfo: Update description of these options.
3695 * ldwrite.c (clone_section): Pass in the section name. Replace
3696 local code with bfd_get_unique_section_name.
3697 (split_sections): Tidy code and comments. Use a list traversal
3698 more appropriate to the list construction. Handle cooked section
3699 sizes. Split when split_by_reloc reached rather than exceeded.
3700 Track section size and split when split_by_file reached. Fix
3701 link_order_tail (even though it's not used).
3702 (ldwrite): Modify condition for calling split_sections to suit
3703 changed split_by_reloc and split_by_file.
3704 * ldmain.c (main): Init config.split_by_reloc and
3705 config.split_by_file to -1.
3706 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3707 Change split_by_file to bfd_size_type.
3708
18e03609
NC
37092000-09-02 Nick Clifton <nickc@redhat.com>
3710
3711 * configure.in: Increase version number to 2.10.91.
3712 * NEWS: Mention new ability to support removal of duplicate DWARF2
3713 debug information.
3714 * configure: Regenerate.
3715 * aclocal.m4: Regenerate.
3716 * config.in: Regenerate.
3717
3a9d486c
NC
37182000-09-02 Daniel Berlin <dberlin@redhat.com>
3719
3720 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3721 sections.
a2b64bed 3722 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
3723 * scripttempl/elfd10v.sc: Ditto.
3724 * scripttempl/elfd30v.sc: Ditto.
3725 * scripttempl/elfi370.sc: Ditto.
3726 * scripttempl/elfm68hc11.sc: Ditto.
3727 * scripttempl/elfm68hc12.sc: Ditto.
3728 * scripttempl/elfi386beos.sc: Ditto.
3729 * scripttempl/v850.sc: Ditto.
50bbae35 3730
ac48eca1
AO
37312000-08-31 Alexandre Oliva <aoliva@redhat.com>
3732
3733 * acinclude.m4: Include libtool and gettext macros from the
3734 top level.
3735 * aclocal.m4, configure: Rebuilt.
3736
c13b1b77
NC
37372000-08-25 Nick Clifton <nickc@redhat.com>
3738
3739 * ldlang.c (open_output): When choosing the target for a
3740 particular endianness, do nothing if the target is not
3741 supported.
3742
dcb0bd0e
L
37432000-08-25 H.J. Lu <hjl@gnu.org>
3744
3745 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3746 check -rpath nor LD_RUN_PATH for cross link.
3747 * ld.texinfo: Document the change.
3748
5bcac8a4
HPN
37492000-08-24 Hans-Peter Nilsson <hp@axis.com>
3750
3751 * NEWS: Mention support for CRIS.
3752
6dd8c765
L
37532000-08-23 H.J. Lu <hjl@gnu.org>
3754
3755 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3756 the current runpath list from bfd_elf_get_runpath_list ()
3757 before search.
3758
ec4eb78a
L
37592000-08-22 H.J. Lu <hjl@gnu.org>
3760
3761 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3762 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3763 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3764 trace_file_tries is non-zero.
3765 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3766 if trace_file_tries is non-zero.
3767
3768 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 3769 * NEWS: Mention it.
ec4eb78a 3770
22b36938
JE
37712000-08-14 Jason Eckhardt <jle@cygnus.com>
3772
3773 * NEWS: Mention i860 support.
3774
d73e9da0
AS
37752000-08-14 Andreas Schwab <schwab@suse.de>
3776
3777 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 3778 syntax.
d73e9da0 3779
9ac4db9c
GK
37802000-08-10 Geoff Keating <geoffk@cygnus.com>
3781
3782 * scripttempl/elf.sc: Add a comment giving the correspondence
3783 between sections, per-datum sections, and linkonce sections. Make
3784 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3785 .sbss2.
3786
165589e4
JE
37872000-08-10 Jason Eckhardt <jle@cygnus.com>
3788
3789 * emulparams/elf32_i860.sh: New file.
3790 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3791 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3792 (eelf32_i860.c): New rule.
3793 * Makefile.in: Regenerate.
3794
345a835d
NC
37952000-08-10 Nick Clifton <nickc@cygnus.com>
3796
3797 * emulparams/mipspe.sh (ENTRY): Add definition.
3798
e374f1d9
NC
37992000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3800
3801 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3802 in error message.
3803
236d5abf
NC
38042000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3805
3806 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3807 the final size of .bss section.
3808 * scripttempl/elfm68hc12.sc: Likewise.
3809
4b209b22
AM
38102000-08-04 Alan Modra <alan@linuxcare.com.au>
3811
3812 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3813 gld${EMULATION_NAME}_parse_args for consistency. Combine
3814 lastoptind and prevoptind vars, and keep track of last optind.
3815 (gld_${EMULATION_NAME}_list_options): Rename to
3816 gld${EMULATION_NAME}_list_options.
3817
28423a68
AM
38182000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3819
3820 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3821 (i586-sco-sysv5uw7.1.0).
3822
b2009ff7
L
38232000-07-27 H.J. Lu <hjl@gnu.org>
3824
3825 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3826 (PARSE_AND_LIST_PROLOGUE): New.
3827 (PARSE_AND_LIST_LONGOPTS): Likewise.
3828 (PARSE_AND_LIST_OPTIONS): Likewise.
3829 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3830 (PARSE_AND_LIST_EPILOGUE): Likewise.
3831
04925e1e
AM
38322000-07-28 Alan Modra <alan@linuxcare.com.au>
3833
41392f03
AM
3834 * emultempl/armelf.em: Elide functions common to elf32.em,
3835 ie. most of the file.
3836 (arm_elf_after_open): New. Do arm specific things then call
3837 gld${EMULATION_NAME}_after_open.
3838 (arm_elf_before_allocation): New. Call
3839 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3840 (PARSE_AND_LIST_PROLOGUE): Define.
3841 (PARSE_AND_LIST_SHORTOPTS): Define.
3842 (PARSE_AND_LIST_LONGOPTS): Define.
3843 (PARSE_AND_LIST_OPTIONS): Define.
3844 (PARSE_AND_LIST_ARGS_CASES): Define.
3845 (LDEMUL_AFTER_OPEN): Define.
3846 (LDEMUL_BEFORE_ALLOCATION): Define.
3847 (LDEMUL_BEFORE_PARSE): Define.
3848 (LDEMUL_FINISH): Define.
3849
3850 * emultempl/hppaelf.em: Similarly zap most of this file.
3851 (hppaelf_add_stub_section): Prototype.
3852 (hppaelf_layaout_sections_again): Prototype.
3853 (hook_in_stub): Prototype.
3854 (LDEMUL_SET_OUTPUT_ARCH): Define.
3855 (LDEMUL_FINISH): Define.
3856 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3857
3858 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3859 (EXTRA_EM_FILE): New.
3860 * emulparams/armelf_linux.sh: Likewise.
3861 * emulparams/armelf_linux26.sh: Likewise.
3862 * emulparams/hppalinux.sh: Likewise.
3863 * emulparams/hppaelf.sh: Likewise.
3864 (NOP): Define.
3865
3866 * emultempl/elf32.em: Fix formatting.
3867 (EXTRA_EM_FILE): Source it.
3868 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3869 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3870 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3871 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3872 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3873 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3874 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3875 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3876 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3877 allow functions in this file to be overridden.
3878 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3879
3880 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3881
04925e1e
AM
3882 * emultempl/elf32.em: Reorganize file.
3883
88cdf297
NC
38842000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3885
3886 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3887 specific option to fit 64-bit executable in the lower
3888 31-bit address range. This is done by changing start
3889 address of .interp (the very first section of executable)
3890 and then setting EF_ALPHA_32BIT elf header flag.
3891
20bccb34
NC
38922000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3893
3894 * emultempl/m68kcoff.em: New file.
3895 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3896 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3897 generic.em.
3898 * Makefile.in: Regenerate.
3899
699845ef
L
39002000-07-20 H.J. Lu <hjl@gnu.org>
3901
3902 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3903 and "disable-new-dtags" to stop getopt from treating -d/-e as
3904 abbreviations for these options.
3905
6c1439be
L
39062000-07-20 H.J. Lu <hjl@gnu.org>
3907
3908 * ld.texinfo: Add documentation for --disable-new-dtags and
3909 --enable-new-dtags.
3910
3911 * ldmain.c (main): Initialize link_info.new_dtags to false.
3912
3913 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3914 --disable-new-dtags and --enable-new-dtags.
3915 (gld_${EMULATION_NAME}_list_options): Likewise.
3916
28c309a2
NC
39172000-07-05 Kenneth Block <krblock@computer.org>
3918
a2b64bed
NC
3919 * lexsup.c: Add optional style to demangle switch
3920 * ld.texinfo: Document optional style to demangle switch.
50bbae35 3921
9d06555c
HPN
39222000-07-20 Hans-Peter Nilsson <hp@axis.com>
3923
3924 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3925 ecrislinux.o.
3926 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3927 Regenerate dependencies.
3928 * Makefile.in: Rebuild.
3929 * configure.tgt (cris-*-*): New target.
3930 * emulparams/crisaout.sh, emulparams/criself.sh,
3931 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3932 * po/POTFILES.in, po/ld.pot: Regenerate.
3933
19e3be22
L
39342000-07-20 H.J. Lu <hjl@gnu.org>
3935
3936 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3937 Print out ignored -z options.
3938
e0ee487b
L
39392000-07-19 H.J. Lu <hjl@gnu.org>
3940
19e3be22
L
3941 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3942 (PARSE_AND_LIST_PROLOGUE): New.
3943 (PARSE_AND_LIST_LONGOPTS): Likewise.
3944 (PARSE_AND_LIST_OPTIONS): Likewise.
3945 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3946
3947 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3948
3949 * lexsup.c (ld_options): Comment out 'z'.
3950 (parse_args): Likewise.
3951
3952 * emultempl/elf32.em: Include "elf/common.h".
3953 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3954 options.
3955 (gld_${EMULATION_NAME}_list_options): Likewise.
3956
3957 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 3958
49e56c49
L
39592000-07-19 H.J. Lu <hjl@gnu.org>
3960
3961 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3962 bfd_elf_set_dt_needed_soname ().
3963
9d68bc82
DD
39642000-07-18 DJ Delorie <dj@cygnus.com>
3965
3966 * pe-dll.c (pe_dll_id_target): check object target name also
3967
53db15ed
HPN
39682000-07-18 Hans-Peter Nilsson <hp@axis.com>
3969
3970 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3971 ${INIT_END} if relocating.
3972 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3973
0ad8cf4c
DD
39742000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3975
a2b64bed 3976 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
3977 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3978 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3979 errors introduced by the old dynamic lib search order.
3980
874c8c99
DD
39812000-07-17 DJ Delorie <dj@cygnus.com>
3982
3983 * pe-dll.c (process_def_file): auto-export data items also
3984 (pe_process_import_defs): also see if _imp_ form needed
3985
5b4cf3f4
DD
39862000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3987
3988 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3989 for dll import libraries
3990
062739d1
NC
39912000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3992
3993 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 3994 gcc 2.95.2 and later.
062739d1 3995
1c64c4ed
NC
39962000-07-11 Kazu Hirata <kazu@hxi.com>
3997
50bbae35
AM
3998 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3999 message.
1c64c4ed 4000
b71e2778
AM
40012000-07-10 Alan Modra <alan@linuxcare.com.au>
4002
4003 * ldemul.h (struct lang_input_statement_struct): Remove forward
4004 declaration.
4005 (struct search_dirs): Likewise.
4006 * ldfile.h (struct lang_input_statement_struct): Likewise.
4007 Protect file from multiple inclusion.
4008 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4009 declaration from macro to file scope.
4010
4011 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4012 * ldgram.y: Likewise here.
4013 * ldlang.c: And here.
4014 * ldmain.c: And here.
4015 * mpw-elfmips.c: And here.
4016 * mpw-eppcmac.c: And here.
4017 * emultempl/aix.em: And here.
4018 * emultempl/armcoff.em: And here.
4019 * emultempl/armelf.em: And here.
4020 * emultempl/armelf_oabi.em: And here.
4021 * emultempl/beos.em: And here.
4022 * emultempl/elf32.em: And here.
4023 * emultempl/hppaelf.em: And here.
4024 * emultempl/linux.em: And here.
4025 * emultempl/lnk960.em: And here.
4026 * emultempl/pe.em: And here.
4027 * emultempl/sunos.em: And here.
4028 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4029 * mpw-idtmips.c: Ditto.
4030 * emultempl/generic.em: Ditto.
4031 * emultempl/gld960.em: Ditto.
4032 * emultempl/gld960c.em: Ditto.
4033 * emultempl/mipsecoff.em: Ditto.
4034 * emultempl/ticoff.em: Ditto.
4035 * emultempl/vanilla.em: Ditto.
4036
4037 * pe-dll.c: Include ldfile.h
4038 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4039
4040 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4041 arguments to bfd_elf32_size_dynamic_sections call.
4042 (gldelf32ebmip_place_orphan): Add missing arguments to
4043 lang_leave_output_section_statement call.
4044
2ef53d66
L
40452000-07-10 H.J. Lu <hjl@gnu.org>
4046
4047 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4048 DLL_SUPPORT.
4049 (strhash): Likewise.
4050 (compute_dll_image_base): Likewise.
4051 (pe_undef_found_sym): Likewise.
4052 (pe_undef_cdecl_match): Likewise.
4053 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4054 argument "arch" with ATTRIBUTE_UNUSED.
4055
9a8cbb09
AM
40562000-07-10 Alan Modra <alan@linuxcare.com.au>
4057
4058 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4059
4060 From Ryan Bradetich <rbradetich@uswest.net>
4061 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 4062
4900fc06
AM
40632000-07-09 Alan Modra <alan@linuxcare.com.au>
4064
4065 Changes to create multiple linker stubs, positioned immediately
4066 before the section where they are required.
4067 * emultempl/hppaelf.em: Include elf32-hppa.h.
4068 (stub_sec, file_chain): Delete.
4069 (hppaelf_create_output_section_statements): Don't make a stub
4070 section here.
4071 (hook_stub_info): New struct.
4072 (hook_in_stub): New function.
4073 (hppaelf_add_stub_section): New function.
4074 (hppaelf_finish): Do nothing for relocateable links. Modify the
4075 call to elf32_hppa_size_stubs. Move code for updating section
4076 layout from here...
4077 (hppaelf_layaout_sections_again): ..to here, a new function.
4078
4079 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4080 broken list handling. Pass in a pointer to the list.
4081 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4082 for above changes.
4083 (hppaelf_before_parse): Prototype.
4084 (hppaelf_set_output_arch): Prototype.
4085 (hppaelf_create_output_section_statements): Prototype.
4086 (hppaelf_delete_padding_statements): Prototype.
4087 (hppaelf_finish): Prototype.
4088
4089 Merge from elf32.em
4090 * emultempl/hppaelf.em: Include ctype.h.
4091 (struct orphan_save): New.
4092 (gld${EMULATION_NAME}_place_orphan): New.
4093 (output_rel_find): New.
4094 (hppaelf_get_script): Update from elf32.em.
4095 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4096 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 4097 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
4098
4099 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4100 ehppalinux.o, sort it. Regenerate dependencies.
4101 (ehppalinux.c): Depend on hppaelf.em
4102 * Makefile.in: Regenerate.
4103
4104 * configure.tgt: targ_emul=hppalinux for hppa*linux
4105
4106 * emulparams/hppalinux.sh: New.
4107 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4108
227aeb07
AM
41092000-07-08 Alan Modra <alan@linuxcare.com.au>
4110
4111 * lexsup.c (parse_args): Copy section name.
4112
28609fd4 41132000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 4114
2ef53d66 4115 * emultempl/pe.em: institute the following search order for
602e90d3
DD
4116 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4117 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4118 static lib (libfoo.a) if none of the above are found.
4119
5f577f7d
DD
41202000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4121
50bbae35 4122 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 4123 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 4124 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
4125 (gld_${EMULATION_NAME}_parse): Handle.
4126 (strhash): New static function.
50bbae35 4127 (compute_dll_image_base): New static function.
5f577f7d
DD
4128 (gld_${EMULATION_NAME}_set_symbols): Use.
4129
9a8cbb09 41302000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
4131
4132 * MAINTAINERS: new
4133
3548145d 41342000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
4135
4136 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4137 * emulparams/elf32btsmip.sh: New file.
4138 * Makefile.am: Add traditional mips target.
4139 * Makefile.in: Rebuild.
4140
67798033
L
41412000-07-01 H.J. Lu <hjl@gnu.org>
4142
4143 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4144 automake to use YLWRAP.
4145 * Makefile.in: Rebuild.
4146
0bdaf48b
AM
41472000-07-01 Alan Modra <alan@linuxcare.com.au>
4148
4149 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4150 (CLEANFILES): Add DEPA.
4151 * Makefile.in: Regenerate.
4152
c9e769c2
TW
41532000-06-30 Timothy Wall <twall@ppc>
4154
4155 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4156 the page in the upper octet of the address.
4157
65aa24b6
NC
41582000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4159
4160 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4161
4667035e
AM
41622000-06-24 Alan Modra <alan@linuxcare.com.au>
4163
4164 * NEWS: arm-elf does --gc-sections too.
4165
1581f8c9
AM
41662000-06-22 Alan Modra <alan@linuxcare.com.au>
4167
4168 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4169 find one.
4170 * Makefile.in: Regenerate.
4171
01580992
L
41722000-06-21 H.J. Lu <hjl@gnu.org>
4173
4174 * Makefile.am: Rebuild dependency.
4175 * Makefile.in: Rebuild.
4176
bbeb2e03
L
41772000-06-20 H.J. Lu <hjl@gnu.org>
4178
4179 * Makefile.am: Rebuild dependency.
4180 * Makefile.in: Rebuild.
4181
74459f0e
TW
41822000-06-20 Timothy Wall <twall@cygnus.com>
4183
4184 * scripttempl/tic54xcoff.sc: New.
4185 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4186 * gen-doc.texi: Add flag for TI COFF.
4187 * ld.texinfo: Add documentation for TI COFF handling switches.
4188 * emultempl/ticoff.em: New. TI COFF handling.
4189 * configure.tgt: Add tic54x target.
4190 * Makefile.am: Add tic54x target.
4191 * Makefile.in: Ditto.
4192
2ab47eed
AM
41932000-06-20 Alan Modra <alan@linuxcare.com.au>
4194
4195 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4196 checking for backslashes.
4197
919e4093
AM
41982000-06-19 Alan Modra <alan@linuxcare.com.au>
4199
4200 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4201
987fd5b4
AM
42022000-06-18 Alan Modra <alan@linuxcare.com.au>
4203
4204 * NEWS: Update list of targets supporting --gc-sections.
4205
4206 * scripttempl/elf.sc: KEEP .eh_frame contents.
4207 * scripttempl/elfd30v.sc: Same here.
4208
60bcf0fa
NC
42092000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4210
4211 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4212 and m68hc11 (elf).
4213 * Makefile.in: Rebuild.
4214 * configure.tgt: Recognize m68hc12 and m68hc11.
4215 * scripttempl/elfm68hc12.sc: New file.
4216 * emulparams/m68hc12elfb: New emulation.
4217 * emulparams/m68hc12elf: New emulation.
4218 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4219 (includes a memory.x script to define the ROM and RAM banks).
4220 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4221 New configuration files for support of Motorola 68hc11
4222
c7c54483
AM
42232000-06-15 Alan Modra <alan@linuxcare.com.au>
4224
4225 * ldmain.c (main): Only change SEC_READONLY for final link.
4226
bcef29e6
L
42272000-06-13 H.J. Lu <hjl@gnu.org>
4228
4229 * configure: Regenerate.
4230
946efd95
DB
42312000-06-08 David O'Brien <obrien@FreeBSD.org>
4232
4233 * configure.in (VERSION): Update to show this is the CVS mainline.
4234
57a6fd07
DB
42352000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4236
4237 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4238 input objects to be ECOFF.
4239 (check_sections): einfo takes %B, not %P, to print a BFD name.
4240
e06cae36
L
42412000-06-05 Michael Matz <matz@ifh.de>
4242
4243 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 4244 version scripts.
e06cae36 4245
d952f17a 4246 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 4247
2f0b56c0
DC
42482000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4249
4250 * emulparams/avr1200.sh (STACK): Define as 0.
4251 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4252 * emulparams/avr4433.sh (STACK): Likewise.
4253 * emulparams/avr44x4.sh (STACK): Likewise.
4254 * emulparams/avr85xx.sh (STACK): Likewise.
4255 * emulparams/avrmega103.sh (STACK): Likewise.
4256 * emulparams/avrmega161.sh (STACK): Likewise.
4257 * emulparams/avrmega603.sh (STACK): Likewise.
4258 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4259 (__stack): Define from ${STACK} for main().
4260
2114f57b
AM
42612000-05-26 Alan Modra <alan@linuxcare.com.au>
4262
4263 * Makefile.am: Update dependencies with "make dep-am"
4264 * Makefile.in: Regenerate.
4265
5af11cab
AM
42662000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4267
4268 * ldmain.c: Include filenames.h.
4269 (set_scripts_dir): Support backslashes in program name.
4270
1f0df59a
NC
42712000-05-22 Igor Shevlyakov <igor@windriver.com>
4272
4273 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
4274 read-only, don't forget to reset SEC_READONLY because it
4275 could be already set.
1f0df59a 4276
176355da
NC
42772000-05-22 Thomas de Lellis <tdel@windriver.com>
4278
50bbae35
AM
4279 * ld.1: Add documentation for new command line option:
4280 --section-start <sectionname>=<sectionorg>
4281 This is a generic version of -Ttext etc. which accepts
4282 any section name as a parameter instead of just text/data/
4283 bss.
4284 * ld.texinfo: More docs.
4285 * NEWS: More docs.
4286 * lexsup.c: (parse_args): Recognize new command line option.
176355da 4287 (ld_options): Add new option.
50bbae35 4288
8c5ff972
L
42892000-05-18 H.J. Lu <hjl@gnu.org>
4290
4291 * lexsup.c (parse_args): `i' == `r', not `q'.
4292
3b16e843 42932000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
4294
4295 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4296
a712da20
NC
42972000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4298 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 4299
a712da20
NC
4300 Add support for '-q' == '--emit-relocs' switch.
4301 * ldmain.c (main): Default to false.
4302 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4303 * NEWS: Describe the emitrelocations switch.
4304 * ld.texinfo: Describe the emitrelocations switch.
4305
690a460e
NC
43062000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4307
a2b64bed 4308 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
4309 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4310 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4311 link options.
50bbae35 4312
c2f1343c
AM
43132000-05-15 David O'Brien <obrien@FreeBSD.org>
4314
4315 * lexsup.c (parse_args): Update the year in the copyright notice.
4316
897083bd
AM
43172000-05-13 Alan Modra <alan@linuxcare.com.au>
4318
4319 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4320 Replace defines with those from intl/libgettext.h to quieten gcc
4321 warnings.
4322
cd4c806a
L
43232000-05-10 H.J. Lu <hjl@gnu.org>
4324
4325 * ldlang.c (open_input_bfds): Don't load the same file within
4326 a group again if the whole archive has been loaded already.
4327
93697284
AM
43282000-05-03 Alan Modra <alan@linuxcare.com.au>
4329
4330 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4331 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4332 strtoul.
4333
3b16e843 43342000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 4335
99a4150f 4336 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 4337
ebd6fc29
JW
4338 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4339 host "ia64-*-linux-gnu*".
4340
a1934524
AM
43412000-04-29 Andreas Jaeger <aj@suse.de>
4342
4343 * ld.h: Correctly check GCC version.
4344
3b16e843 43452000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
4346
4347 * Makefile.am: Add PA64 support. Add missing dependencies for
4348 PA32 elf support.
4349 * Makefile.in: Rebuilt.
4350 * configure.tgt: Add PA64 support (currently disabled).
4351
aea4bd9d
AM
43522000-04-25 Alan Modra <alan@linuxcare.com.au>
4353
4354 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4355 (output_rel_find): New function.
4356 (hold_section, hold_use): Delete.
4357 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4358 hold_interp): Make local to place_orphan.
4359 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4360 rather than place_section to find possible previous use of orphan.
4361 Similarly find the place-holder output sections. Use returned
4362 value from lang_enter_output_section_statement rather than calling
4363 lang_output_section_statement_lookup.
4364 * emultempl/armelf.em: Same here.
4365 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4366
4367 * ldlang.c (lang_enter_output_section_statement): Return output
4368 section statement.
4369 * ldlang.h (lang_enter_output_section_statement): Change
4370 declaration too.
4371
4372 * ldlang.h (lang_output_section_statement): Export it.
4373 * ldlang.c (lang_output_section_statement): Ditto.
4374
2b5fc1f5
NC
43752000-04-24 Nick Clifton <nickc@cygnus.com>
4376
4377 * ld.texinfo (Output Section Data): Add note that section data
4378 commands cannot appear outside of section directives.
4379
d8475ff6
JL
43802000-04-2 Matthew Green <mrg@cygnus.com>
4381
4382 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4383
3b16e843
NC
43842000-04-21 Richard Henderson <rth@cygnus.com>
4385 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
4386
4387 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4388 (eelf64_ia64.c): New rule.
4389 * Makefile.in: Rebuild.
4390 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4391 * emulparams/elf64_ia64.sh: New file.
50bbae35 4392
c9637625
RH
43932000-04-21 Richard Henderson <rth@cygnus.com>
4394
4395 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4396
28ea9521
AM
43972000-04-19 Alan Modra <alan@linuxcare.com.au>
4398
4399 * dep-in.sed: Match space at start of file name, not at end.
4400
20d04697
L
44012000-04-18 H.J. Lu <hjl@gnu.org>
4402
4403 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4404 lang_leave_output_section_statement () after calling
4405 lang_enter_output_section_statement ().
4406 * emultempl/armelf.em: Likewise.
4407
5ba47421
AM
44082000-04-18 Alan Modra <alan@linuxcare.com.au>
4409
4410 * emultempl/elf32.em (struct orphan_save): Add section field.
4411 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4412 better order, and place first orphan section as we did before the
4413 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4414 Don't call make_bfd_section here, let wild_doit do the job for us.
4415 Don't build a statement list when we'll only throw it away.
4416 * emultempl/armelf.em: Ditto.
4417 * emultempl/pe.em: Similarly.
4418
bdbe5705
GK
44192000-04-14 Geoff Keating <geoffk@cygnus.com>
4420
4421 * scripttempl/elfppc.sc: Remove.
4422 * emulparams/elf32ppc.sh: Use elf.sc.
4423 * emulparams/elf32lppc.sh: Use elf.sc.
4424 * emulparams/elf32ppclinux.sh: Use elf.sc.
4425 * emulparams/elf32ppcsim.sh: New file.
4426 * emulparams/elf32lppcsim.sh: New file.
4427 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4428 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4429 * Makefile.in: Regenerate.
4430 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4431
01cc8ff8
AM
44322000-04-14 Alan Modra <alan@linuxcare.com.au>
4433
5ba47421 4434 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 4435 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
4436 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4437 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
4438 Also set all relocateable section start addresses.
4439
6c86c541
GK
44402000-04-13 Geoff Keating <geoffk@cygnus.com>
4441
4442 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4443 Add new BSS_PLT variable for when .plt need not be contained in
4444 the file. Move _etext so that it is also after .fini, and provide
4445 both etext and _etext with a leading underscore. Mark the start
4446 and end of .sbss.
4447
6a345e87
AM
44482000-04-12 Alan Modra <alan@linuxcare.com.au>
4449
4450 * emultempl/elf32.em (struct orphan_save): New.
4451 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4452 hold_interp): Make them struct orphan_save.
4453 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4454 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4455 the end of the relevant section list. Also add associated section
4456 statements to the end of any previous orphan statements.
4457 * emultempl/armelf.em: Similarly.
4458 * emultempl/pe.em: Similarly.
4459
8be86746
AM
44602000-04-11 Alan Modra <alan@linuxcare.com.au>
4461
4462 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4463
3b16e843 44642000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 4465
a2d91340 4466 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 4467 --enable-build-warnings option.
a2d91340
AC
4468 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4469 * Makefile.in, configure: Re-generate.
4470
41b49281
AM
44712000-04-04 Alan Modra <alan@linuxcare.com.au>
4472
8ad3436c
AM
4473 * po/ld.pot: Regenerate.
4474
4475 * lexsup.c (help): Restore translated part of bug string.
4476
41b49281
AM
4477 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4478 (DEP): Quote when passing vars to sub-make. Add warning message
4479 to end.
4480 (DEP1): Rewrite for "gcc -MM".
4481 (CLEANFILES): Add DEP2.
4482 Update dependencies.
4483 * Makefile.in: Regenerate.
4484
c20f4f8c
AM
44852000-04-03 Alan Modra <alan@linuxcare.com.au>
4486
4487 * ld.h: #include "bin-bugs.h"
4488 * lexsup.c (help): Use REPORT_BUGS_TO.
4489
adde6300
AM
44902000-03-27 Denis Chertykov <denisc@overta.ru>
4491
4492 * configure.tgt (avr-*-*): New target support.
4493 * Makefile.am: Likewise.
4494 * scripttempl/elf32avr.sc: New script file.
4495 * emulparams/avr1200.sh: New file.
4496 * emulparams/avr23xx.sh: New file.
4497 * emulparams/avr4433.sh New file.
4498 * emulparams/avr44x4.sh New file.
4499 * emulparams/avr85xx.sh New file.
4500 * emulparams/avrmega103.sh New file.
4501 * emulparams/avrmega161.sh New file.
4502 * emulparams/avrmega603.sh New file.
4503 * Makefile.in: Regenerate.
4504
9282ff41
L
45052000-03-09 Andreas Jaeger <aj@suse.de>
4506
4507 * Makefile.am (check-DEJAGNU): Also unset LANG.
4508 * Makefile.in: Rebuild.
4509
a9998805
ILT
45102000-03-06 Ian Lance Taylor <ian@zembu.com>
4511
4512 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4513 archive.
4514
f9bc20e7
NC
45152000-03-02 H.J. Lu <hjl@gnu.org>
4516
4517 * emulparams/elf32mcore.sh: Include "getopt.h".
4518
4e277b38
ILT
45192000-03-01 Ian Lance Taylor <ian@zembu.com>
4520
4521 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4522
f0c87f88
NC
45232000-03-01 H.J. Lu <hjl@gnu.org>
4524
4525 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4526 * emulparams/shpe.sh: Likewise.
4527
45282000-03-01 Nick Clifton <nickc@cygnus.com>
4529
4530 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4531 to unused parameters.
4532
4533 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4534 functions only used by DLL code.
4535 (_place_orphan): Initialise 'dollar'.
4536
b6f29aaa
L
45372000-03-01 H.J. Lu <hjl@gnu.org>
4538
4539 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4540 indicate if the undefined symbol is a fatal error or not.
4541 Don't delete the output file if "fatal" is false.
4542
af28fce3
L
45432000-02-29 H.J. Lu <hjl@gnu.org>
4544
50bbae35 4545 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
4546 Set LC_COLLATE and LC_ALL to null and export them. It is for
4547 sort which expects the C locale.
4548 Add $(LIBS) to all $(HOSTING_LIBS).
4549 * Makefile.in: Rebuild.
4550
40d109bf
AM
45512000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4552
4553 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4554 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4555 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4556 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4557 find_potential_libraries.
4558
db5be682
JB
45592000-02-28 Jim Blandy <jimb@redhat.com>
4560
4561 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 4562 list entries; the lexer considers commas to be valid part of a
db5be682
JB
4563 filename, so in something like `foo, bar' the comma is considered
4564 part of the first filename, `foo,'.
4565 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4566
3558ff4c
ILT
45672000-02-27 Loren J. Rittle <ljrittle@acm.org>
4568
4569 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4570 host "i[3456]86-*-freebsdelf*".
4571
4eee2681
ILT
45722000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4573
4574 * scripttempl/i386go32.sc: Move misplaced semicolons.
4575
8d75d12d
ILT
45762000-02-25 Ian Lance Taylor <ian@zembu.com>
4577
4578 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4579 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4580 (eelf64hppa.c, ehppaelf.c): Remove targets.
4581 * Makefile.in: Rebuild.
4582
a1836d49
AO
45832000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4584
ad51fb57
AO
4585 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4586 GNU/Linux/sparc, but keep the default as 32.
4587
a1836d49
AO
4588 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4589 it default if sparcv9 or sparc64.
4590
344a211f
NC
45912000-02-24 Nick Clifton <nickc@cygnus.com>
4592
4593 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4594 * Makefile.in: Regenerate.
4595 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4596
4597 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4598 find_potential_libraries.
4599 * ldemul.c (ldemul_find_potential_libraries): New function.
4600
4601 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 4602 exported.
344a211f
NC
4603 (ldfile_open_file): Call ldemul_find_potential_libraries.
4604 * ldfile.h: Add prototype for ldfile_open_file_search.
4605
4606 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4607
4608 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4609 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4610
4611 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4612 (gld_X_find_potential_libraries): New function. Search for
4613 libraries called "*.lib".
4614
a2b64bed 4615 * scripttempl/pe.sc: Add .pdata section.
344a211f 4616
eaba1dd3
RH
46172000-02-23 Richard Henderson <rth@cygnus.com>
4618
4619 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4620 Add and use memory regions.
4621
5b93d8bb
AM
46222000-02-23 Linas Vepstas (linas@linas.org)
4623
4624 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4625
4626 * Makefile.am: Add support for Linux/IBM 370.
4627 * configure.tgt: Likewise.
4628
4629 * Makefile.in: Regenerate.
4630
f6af82bd
AM
46312000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4632
4633 * ldlang.c (print_input_section, print_data_statement,
4634 print_reloc_statement, print_padding_statement, insert_pad,
4635 size_input_section, lang_check_section_addresses,
4636 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 4637 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
4638 (lang_do_assignments): Also change `size' to unsigned.
4639
9e673ad1
RH
46402000-02-16 Richard Henderson <rth@cygnus.com>
4641
4642 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4643
562d3460
TW
46442000-02-16 Timothy Wall <twall@cygnus.com>
4645
4646 * mri.c (mri_draw_tree): Add default LMA region argument to call
4647 to lang_leave_output_section_statement.
4648 * ldlang.h: Update prototypes with LMA region arguments.
4649 * ldlang.c (lang_size_sections): Encapsulate region bounds
4650 checking in os_check_region call.
4651 (os_check_region): New function.
4652 (lang_output_section_statement_lookup): Initialize lma_region.
4653 (lang_leave_output_section_statement): Add LMA region argument.
4654 (lang_leave_overlay): Ditto.
4655 * ldgram.y: Handle LMA region syntax.
4656 * ld.texinfo (Output Section Description): Describe LMA region usage.
4657 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 4658 lma region in call to lang_leave_output_section_statement.
562d3460 4659 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 4660 lma region in call to lang_leave_output_section_statement.
562d3460 4661 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 4662 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
4663
4664
9e4ed18c
TW
46652000-02-04 Timothy Wall <twall@redhat.com>
4666
4667 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4668 octets when calculating section end addresses.
4669
32edc927
TW
46702000-02-04 Timothy Wall <twall@redhat.com>
4671
4672 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4673
4cbfc3ac
TW
46742000-02-03 Timothy Wall <twall@redhat.com>
4675
a2b64bed 4676 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 4677 octet count.
a2b64bed 4678 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
4679 print_reloc_statement, print_padding_statement): Print target
4680 address values and section sizes as bytes, not octets.
4681 (insert_pad) Calculate padding size in octets, and adjust "dot"
4682 by bytes.
4683 (size_input_section) Always adjust "dot" by bytes, not octets.
4684 (lang_check_section_addresses, lang_do_assignments) Adjust
4685 "dot" by bytes, not octets. Use the larger of the directive size
4686 or octets_per_byte for the number of octets actually allocated in
4687 the output section.
4688 (lang_set_startof) Make sure STARTOF returns a target address.
4689 (lang_one_common) Record size changes in octets.
4690 (lang_abs_symbol_at_end_of) Section end symbol's value is
4691 recorded in target bytes.
68b2fc7a 4692 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4cbfc3ac 4693 to be clear about behavior when an octet is smaller than one byte.
50bbae35 4694
305c7206
AM
46952000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4696
4697 * ldcref.c (output_cref): Don't pass message strings to printf
4698 as format arg.
4699 Update copyright.
4700
4701 * ldmisc.c (vfinfo): Same here.
4702 Update copyright.
4703
e1c47aa4
AM
47042000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4705
4706 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4707 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4708 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4709 Add missing NULL initialisers, and comments.
4710
4711 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4712
13392b77
NC
47132000-01-21 Nick Clifton <nickc@cygnus.com>
4714
4715 * ldlang.c (lang_size_sections): Fix typo in comment.
4716
cce4c4c5
NC
47172000-01-18 H.J. Lu <hjl@gnu.org>
4718
4719 * ldlang.c (lang_size_sections): Also update the current
4720 address of a region if the SEC_NEVER_LOAD bit is not set.
4721
0decc840
NC
47222000-01-10 Philip Blundell <pb@futuretv.com>
4723
4724 * configure.tgt (arm*-*-conix*): New target.
4725
4e53152f
NC
47262000-01-07 Nick Clifton <nickc@cygnus.com>
4727
4728 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
4729 line switches with -Wl, (or whatever is appropriate) if it is
4730 being invoked by a comnpiler driver program.
50bbae35 4731 Fix description of the behaviour of the -n command line switch.
4e53152f 4732
3b16e843 47332000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
4734
4735 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4736 (name_list): New.
4737 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4738 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4739 (exclude_name_list): New.
4740 ldlang.c (walk_wild_section): Support list of excluded files.
4741 (print_wild_statement): Likewise.
4742 (lang_add_wild): Likewise.
4743 * ldlang.h (lang_wild_statement_type): Likewise.
4744 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 4745
5aaace27
NC
47462000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4747
870df5dc
NC
4748 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4749 (process_def_file): Use.
4750 (pe_dll_compat_implib): New variable.
4751 (make_one): Use.
50bbae35 4752
870df5dc
NC
4753 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4754 pe_dll_compat_implib.
50bbae35
AM
4755
4756 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
4757 compat-implib options.
4758 (gld_${EMULATION_NAME}_list_options): List new options.
4759 (gld_${EMULATION_NAME}_parse_args): Handle.
4760
50bbae35 4761 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 4762 dll.
50bbae35
AM
4763
4764 * deffilep.y (opt_name): Allow "." in name.
5aaace27 4765
2f6d2f85 4766For older changes see ChangeLog-9899
252b5132
RH
4767\f
4768Local Variables:
4769mode: change-log
4770left-margin: 8
4771fill-column: 74
4772version-control: never
4773End:
This page took 0.479938 seconds and 4 git commands to generate.