Add QNX Neutrino PowerPC support and common up QNX functions
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
59bc061d
NC
12002-07-31 Graeme Peterson <gp@qnx.com>
2
3 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
4 * Makefile.am: Add eelf32{l}ppcnto.o files.
5 * Makefile.in: Regenerate.
6 * emulparams/elf32lppcnto.sh: New file.
7 * emulparams/elf32ppcnto.sh: New file.
8
31941635
L
92002-08-07 H.J. Lu <hjl@gnu.org>
10
11 * ld.texinfo: Document --no-undefined-version.
12
13 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
14 `script.' fields to 0.
15
16 * ldmain.c (main): Initialize the allow_undefined_version to
17 true.
18
19 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
20 (ld_options): Add --no-undefined-version.
21 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
22
2004afbc
NC
232002-08-07 Nick Clifton <nickc@redhat.com>
24
25 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
26 an interworking bfd if there are input bfds. (107501)
27
7fc44b9c
AM
282002-08-06 Alan Modra <amodra@bigpond.net.au>
29
30 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
31 2002-05-10 change.
32
24a1ba0f
NC
332002-08-01 Nick Clifton <nickc@redhat.com>
34
35 * emulparams/armelf.sh: Revert previous delta.
36 * scripttempl/elf.sc: Revert previous delta.
37
ebc6e014
L
382002-07-31 H.J. Lu <hjl@gnu.org>
39
40 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
41 --enable-64-bit-bfd.
42
39a2a3eb
L
432002-07-31 H.J. Lu <hjl@gnu.org>
44
45 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
46 64bit BFD is selected.
47
a0dfa6a8
L
482002-07-31 H.J. Lu <hjl@gnu.org>
49
50 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
51 if 64bit BFD is selected.
52
f7c33884
NC
532002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
54
55 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
56 link_info.common_skip_ar_aymbols.
57 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
58
59 * ldmain.c (main): Initialize new field
60 link_info.common_skip_ar_aymbols.
61
8f64befb
NC
622002-07-31 Adam Nemet <anemet@lnxw.com>
63
64 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
65 to .plt.thumb.
66 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
67 used.
68
500800ca
NC
692002-07-31 Nick Clifton <nickc@redhat.com>
70
71 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
72 of the PDP-11 and 2.11BSD a.out support.
73
7808a785
TS
742002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
75
76 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
77 for n32 ABI support.
78 * Makefile.in: Regenerate.
79 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
80 n32 ABI emulations for these 64 bit targets.
81 * emulparams/elf32bmipn32.sh: Expand comment.
82 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
83 n32 ABI.
84 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
85
7e392df6
NC
862002-07-30 Graeme Peterson <gp@qnx.com>
87
88 * configure.tgt: Add support for arm-*-nto target.
89 * Makefile.am: Add earmnto.o file.
90 * Makefile.in: Regenerate.
91 * NEWS: Mention port of ARM support to QNX.
92 * emulparams/armnto.sh: New file.
93
704afa60
JJ
942002-07-30 Jakub Jelinek <jakub@redhat.com>
95
96 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
97 for relocatable link.
98 (lang_size_sections_1): Don't make .tbss zero size for relocatable
99 link.
100
7dcd22c2
BS
1012002-07-26 Bernd Schmidt <bernds@redhat.com>
102
103 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
104 (STACK_ADDR): New.
105
219576a4
NC
1062002-07-25 Nick Clifton <nickc@redhat.com>
107
108 * po/sv.po: Updated Swedish translation.
109 * po/es.po: Updated Spanish translation.
110 * po/fr.po: Updated French translation.
111
ff3063f5
NC
1122002-07-24 Nick Clifton <nickc@redhat.com>
113
114 * po/sv.po: Updated Swedish translation.
115 * po/es.po: Updated Spanish translation.
116
0461a601
NC
1172002-07-23 Nick Clifton <nickc@redhat.com>
118
ff3063f5 119 * po/fr.po: Updated French translation.
0461a601 120
25844aae
AM
1212002-07-20 Alan Modra <amodra@bigpond.net.au>
122
123 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
124 bomb on /DISCARD/ input section.
125 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
126 * emultempl/mmo.em (mmo_place_orphan): Likewise.
127
3595bd6e
HPN
1282002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
129
130 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
131 output section.
132
cf88bb9f
NC
1332002-07-16 Denis Chertykov <denisc@overta.ru>
134 Nick Clifton <nickc@redhat.com>
135 Frank Ch. Eigler <fche@redhat.com>
136 John Healy <jhealy@redhat.com>
137
138 * configure.tgt: Add support for ip2k-elf.
139 * Makefile.am: Add support for ip2k-elf.
140 * Makefile.in: Regenerate.
141 * emulparams/elf32ip2k.sh: New file.
142 * scripttempl/ip2k.sc: New file
143 * NEWS: Mention support for new port.
144
2cbb2eef
NC
1452002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
146
147 * NEWS: Add 'Changes in 2.13'.
148
96a94295
L
1492002-07-14 H.J. Lu <hjl@gnu.org>
150
151 * ld.texinfo: Document a .symver takes precedence over a
152 version script.
153
120d20f2
AM
1542002-07-12 Alan Modra <amodra@bigpond.net.au>
155
156 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
157 (COMMONPAGESIZE): Define.
158
0d2ddeb2
AM
1592002-07-09 Alan Modra <amodra@bigpond.net.au>
160
161 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
162
554690ed
AM
1632002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
164
165 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
166 powerpc-*-openbsd* and sparc64-*-openbsd*.
167 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
168 * Makefile.in: Regenerate.
169 * emulparams/hppaobsd.sh: New file.
170
34786259
AM
1712002-07-05 Alan Modra <amodra@bigpond.net.au>
172
173 * ldlang.c (print_wild_statement): Fix output formatting.
174
4bd5a393
AM
1752002-07-04 Alan Modra <amodra@bigpond.net.au>
176
177 * ldlang.c: (strip_excluded_output_sections): New function.
178 (lang_process): Call it.
179 (lang_size_sections_1): Revert 2002-06-10 change.
180
ce4f7385
AM
1812002-07-03 Alan Modra <amodra@bigpond.net.au>
182
183 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
184 Run "make dep-am".
185 * Makefile.in: Regenerate.
186
b7b482a3
AM
1872002-07-02 Alan Modra <amodra@bigpond.net.au>
188
71daf8b4
AM
189 * ldfile.c (ldfile_try_open_bfd): Formatting.
190
b7b482a3
AM
191 * ldmisc.c (demangle): Move so that it doesn't intrude between
192 vfinfo comment and body. Add comment.
193
29e2951e
AM
1942002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
195
196 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
197
e3e942e9
AM
1982002-07-01 Alan Modra <amodra@bigpond.net.au>
199
200 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
201 * ldlang.c (entry_sym): Likewise.
202 (ldlang_undef_chain_list_type): Likewise.
203 (lang_finish): Adjust references to entry_symbol.
204 (lang_add_entry): Likewise.
205 (lang_gc_sections): Use link_info.gc_sym_list.
206 (lang_process): Set link_info.gc_sym_list.
207 * ldlex.l: Include bfdlink.h.
208 * ldmain.c (main): Init link_info.gc_sym_list.
209 * emultempl/aix.em: Adjust references to entry_symbol.
210 * emultempl/armcoff.em: Likewise.
211 * emultempl/armelf.em: Likewise.
212 * emultempl/pe.em: Likewise.
213 * emultempl/ppc64elf.em (ppc_after_open): New function.
214 (LDEMUL_AFTER_OPEN): Define.
215 * emulparams/elf64ppc.sh: KEEP .opd sections.
216
a66c0f2c
SC
2172002-06-29 Stephane Carrez <stcarrez@nerim.fr>
218
219 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
220 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
221 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
222 (EEPROM_START_ADDR): Define.
223 (EEPROM_MEMORY): Define.
224 * emulparams/m68hc12elf.sh: Likewise.
225 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
226 section to put soft registers in .page0.
227 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
228
2b67cf00
JL
2292002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
230
231 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
232 section. Add ${RELOCATING-0}.
233
219576a4 2342002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
164c4054
JR
235
236 * emulparams/shelf.sh (STACK_ADDR): Don't define.
237 (OTHER_SECTIONS): Define.
238 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
239 (OTHER_SECTIONS): Undef.
240
fc28fbc2
AM
2412002-06-26 Alan Modra <amodra@bigpond.net.au>
242
243 * ldmisc.c (demangle): Restore dots stripped from sym name.
244
a13a0de8
L
2452002-06-25 H.J. Lu <hjl@gnu.org>
246
247 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
248 * Makefile.in: Regenerated.
249
b553b183
NC
2502002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
251
252 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
253 the size of attached object files, to allow make the object files
254 available via FTP or HTTP and to mention that the mail will be
255 sent to a mailing list.
256
2755afba
NC
2572002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
258
259 * ld/configure.host (romp): Drop support.
260
7d0a848e
CD
2612002-06-18 Chris Demetriou <cgd@broadcom.com>
262
263 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
264 section flags for SEC_DATA, rather than for SEC_CODE being unset.
265
8505f884
CD
2662002-06-18 Chris Demetriou <cgd@broadcom.com>
267
268 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
269 format specifier used to print BFD name.
270
7d553a40
DB
2712002-06-18 Dave Brolley <brolley@redhat.com>
272
273 From Catherine Moore, Michael Meissner, Jim Blandy:
274 * emulparams/elf32frv.sh: New file.
275 * configure.tgt: Support frv-*-*.
276 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
277 (eelf32frv.c): New target.
278
82434356
TR
2792002-06-17 Tom Rix <trix@redhat.com>
280
a59f3d35 281 * emultempl/elf32.em: gld*_get_script: Check for
82434356
TR
282 GENERATE_COMBRELOC_SCRIPT.
283 * scripttempl/elfd10v.sc : Fix STACK and INSN.
284 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
285
219576a4 2862002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
5d9b5481
JR
287
288 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
289
c4bb8067
L
2902002-06-12 H.J. Lu <hjl@gnu.org>
291
292 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
293 false if xvec doesn't match.
294
e052cfbe
RS
2952002-06-10 Richard Sandiford <rsandifo@redhat.com>
296
297 * ldlang.c (lang_size_sections_1): Skip removed output sections.
298
4da711b1
AM
2992002-06-08 Alan Modra <amodra@bigpond.net.au>
300
301 * ldexp.c: Replace CONST with const.
302 * ldfile.c: Likewise.
303 * ldfile.h: Likewise.
304 * ldlex.l: Likewise.
305 * mri.c: Likewise.
306 * pe-dll.h: Likewise.
307
eb95bb9a
AM
3082002-06-07 Alan Modra <amodra@bigpond.net.au>
309
310 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
311
e0076ab3
NC
3122002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
313
314 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
315 to -1 == implicit enable.
316 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
317 initialize link_info.pei386_auto_import to -1 == implicit
318 enable.
319 (gld_${EMULATION_NAME}_parse_args): When processing
320 --enable-auto-import and --disable-auto-import options, use
321 '1' and '0' instead of 'true' and 'false'.
322 (pe_find_data_imports): Only issue message about auto-import
323 when the feature is implicitly enabled. Downgrade message to
324 informational instead of warning.
325
f13a5424
AM
3262002-06-07 Alan Modra <amodra@bigpond.net.au>
327
328 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
329
1abffd82
JL
3302002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
331
332 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
333 HOSTING_CRT0 and HOSTING_LIBS.
334
e0076ab3 3352002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
7a33bc10
JR
336
337 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
338
4a5e698d
JT
3392002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
340
341 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
342 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
343
1d475d82
AM
3442002-06-05 Alan Modra <amodra@bigpond.net.au>
345
346 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
347 SEC_EXCLUDE sections when doing a relocatable link.
348
5b0e55b6
JT
3492002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
350
351 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
352 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
353 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
354 (eshlelf64_nbsd.c): New rules.
355 * Makefile.in: Regenerate.
356 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
357 (sh64-*-netbsd*): New targets.
358 * emulparams/shelf32_nbsd.sh: New file.
359 * emulparams/shelf64_nbsd.sh: New file.
360 * emulparams/shlelf32_nbsd.sh: New file.
361 * emulparams/shlelf64_nbsd.sh: New file.
362
9ad85d9b
AM
3632002-06-04 Alan Modra <amodra@bigpond.net.au>
364
365 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
366
0c9b4fee
MM
3672002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
368
369 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
370 C++ constructors/destructors, loosely based on the m68hc11 port.
371
2c538bde
AM
3722002-05-31 Alan Modra <amodra@bigpond.net.au>
373
374 * Makefile.in: Regenerate.
375 * aclocal.m4: Regenerate.
376 * config.in: Regenerate.
377 * configure: Regenerate.
378
a0cb91c6
AM
3792002-05-31 Graeme Peterson <gp@qnx.com>
380
381 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
382 (ei386nto.c): Add rule.
383 * Makefile.in: Regenerate.
384 * configure.tgt: Add i[3456]86-*-nto-qnx*.
385 * emulparams/i386nto.sh: New file.
386
37020578
JT
3872002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
388
389 * NEWS: Add entry for VAX ELF support.
390
ab68f3e0 3912002-05-29 Matt Thomas <matt@3am-software.com>
a59f3d35 392 Jason Thorpe <thorpej@wasabisystems.com>
ab68f3e0
JT
393
394 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
395 (eelf32vax.c)
396 (evaxnbsd.c): New rules.
397 * Makefile.in: Regenerate.
398 * configure.tgt (vax-*-netbsdelf*)
399 (vax-*-netbsdaout*)
400 (vax-*-netbsd*): New targets.
401 * emulparams/elf32vax.sh: New file.
402 * emulparams/vaxnbsd.sh: New file.
403
8afb0e02
NC
4042002-05-29 Adam Nemet <anemet@lnxw.com>
405
406 * emultempl/armelf.em (arm_elf_after_open): Don't determine
407 bfd_for_interwork, instead add glue sections to each input bfd.
408 (bfd_for_interwork): New global.
409 (arm_elf_set_bfd_for_interworking): New function.
410 (arm_elf_before_allocation): Use it.
411
d172d4ba
NC
4122002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
413
414 * Makefile.am: Add DLX make target.
415 * configure.tgt: Add DLX configuration.
416 * Makefile.in: Regenerate.
417 * emulparams/elf32_dlx.sh: New file
418 * scripttempl/dlx.sc: New file
419
b4477fa8
NC
4202002-05-27 Per Lundberg <per@caleb.dnsalias.org>
421
422 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
423 * Makefile.in: Regenerate.
424 * emulparams/elf_chaos.sh: Use elf_chaos script.
425 * scripttempl/elf_chaos.sc: New file.
426
ee3cc2e2
RS
4272002-05-27 Richard Sandiford <rsandifo@redhat.com>
428
429 * ldlang.c (lang_size_sections_1): Move check for conflicting load
430 addresses and regions from here...
431 (lang_get_regions): ...to this new function.
432 (lang_leave_output_section_statement): Use lang_get_regions.
433 (lang_leave_overlay): Likewise.
434 * mri.c (mri_draw_tree): Pass null as last argument to
435 lang_leave_output_section_statement.
436 * emultempl/elf32.em (gld*_place_orphan): Likewise.
437 * emultempl/mmo.em (mmo_place_orphan): Likewise.
438 * emultempl/pe.em (gld*_place_orphan): Likewise.
439
aa501e5c
JT
4402002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
441
442 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
443
658957db
KH
4442002-05-25 Kazu Hirata <kazu@cs.umass.edu>
445
446 * ldemul.c: Fix formatting.
447 * ldfile.c: Likewise.
448 * pe-dll.c: Likewise.
449 * pe-dll.h: Likewise.
450
3511b595
AM
4512002-05-25 Alan Modra <amodra@bigpond.net.au>
452
0d6d936f
AM
453 * ldlang.c (lang_process): Formatting, grammar.
454
3511b595
AM
455 * ldlex.l: Use #include "" instead of <> for local header files.
456
436e8db0
NC
4572002-05-24 TAMURA Kent <kent@netbsd.org>
458
459 * configure.tgt: Add a target for i386-netbsdpe.
460
13ae64f3
JJ
4612002-05-23 Jakub Jelinek <jakub@redhat.com>
462
463 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
464 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
465 output section if necessary. Handle .tbss.
466 (lang_size_sections): Clear _raw_size for .tbss section
467 (it allocates space in PT_TLS segment only).
468 * ldwrite.c (build_link_order): Build link order for .tbss too.
469
68b2fc7a
AM
4702002-05-23 Alan Modra <amodra@bigpond.net.au>
471
472 * configure.in: Correct spelling of AC_PREREQ.
473
70b0be79
CF
4742002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
475
476 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
477 default.
478 (autofilter_objlist): Add crtbegin.o, crtend.o.
479
4802002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
481
482 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
483 (longopts): Add new option --exclude-libs.
484 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
485 (gld_${EMULATION_NAME}_parse_args): Use it.
486 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
487 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
488 from whole archives.
489 (pe_dll_add_excludes): Set excludes->type.
490 (auto_export): Add new variable libname and set to archive basename if
491 abfd. Use it when filtering default and user-specified libarary
492 excludes. Let string "ALL" mean all libs when filtering user-specified
493 libs.
494 * ld.texinfo: Document --exclude-libs.
495
fac1652d
AM
4962002-05-22 Alan Modra <amodra@bigpond.net.au>
497
498 * ldemul.c (ldemul_new_vers_pattern): New function.
499 * ldemul.h (ldemul_new_vers_pattern): Declare.
500 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
501 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
502 * emultempl/ppc64elf.em (dotsyms): New static var.
503 (gld${EMULATION_NAME}_new_vers_pattern): New function.
504 (LDEMUL_NEW_VERS_PATTERN): Define.
505 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
506 (PARSE_AND_LIST_LONGOPTS): Likewise.
507 (PARSE_AND_LIST_ARGS_CASES): Handle them.
508 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
509 initialiser.
510 * emultempl/armcoff.em: Likewise.
511 * emultempl/armelf_oabi.em: Likewise.
512 * emultempl/beos.em: Likewise.
513 * emultempl/elf32.em: Likewise.
514 * emultempl/generic.em: Likewise.
515 * emultempl/gld960.em: Likewise.
516 * emultempl/gld960c.em: Likewise.
517 * emultempl/linux.em: Likewise.
518 * emultempl/lnk960.em: Likewise.
519 * emultempl/m68kcoff.em: Likewise.
520 * emultempl/mipsecoff.em: Likewise.
521 * emultempl/pe.em: Likewise.
522 * emultempl/sunos.em: Likewise.
523 * emultempl/ticoff.em: Likewise.
524 * emultempl/vanilla.em: Likewise.
525
eb3d6bb8
AM
5262002-05-22 Alan Modra <amodra@bigpond.net.au>
527
528 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
529 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
530 (LIB_SEARCH_DIRS): No need to use "tr".
531 (COMPILE_IN): Only set for native targets.
532 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
533 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
534 * configure.tgt (powerpc*): Set tdir_*.
535 (powerpcle*): Correct targ_extra_emuls.
536 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
537 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
538
54f24647
AM
5392002-05-22 Alan Modra <amodra@bigpond.net.au>
540
541 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
542 calling lang_add_entry.
543
aa713662
L
5442002-05-21 H.J. Lu (hjl@gnu.org)
545
546 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
547 "-z muldefs".
548 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
549
550 * ld.texinfo: Updated for --allow-multiple-definition and
551 "-z muldefs".
552
553 * ldmain.c (main): Initialize the allow_multiple_definition
554 field to false.
555
556 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
557 (ld_options): Add --allow-multiple-definition.
558 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
559
658f2588
JT
5602002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
561
562 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
563 (earmelfb_nbsd.c): New rule.
a59f3d35 564 * Makefile.in: Regenerate.
658f2588 565 * configure.tgt (armeb-*-netbsdelf*): New target.
a59f3d35 566 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
658f2588
JT
567 (arm-*-netbsd*): Likewise.
568 * emulparams/armelfb_nbsd.sh: New file.
569
ca10c62d
TR
5702002-05-18 Tom Rix <trix@redhat.com>
571
a59f3d35 572 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
ca10c62d
TR
573 support.
574
fae1e84f
MM
5752002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
576
577 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
578 * Makefile.in: Regenerate.
579 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
580
7c8bf1e8
MM
5812002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
582
583 * emulparams/avr1.sh: New file.
584 * emulparams/avr2.sh: New file.
585 * emulparams/avr3.sh: New file.
586 * emulparams/avr4.sh: New file.
587 * emulparams/avr5.sh: New file.
588 * scripttempl/avr.sc: New file.
589
c2c01aa7
AM
5902002-05-15 Alan Modra <amodra@bigpond.net.au>
591
592 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
593 (lang_place_orphans): Abort if just_syms_flag.
594
f1f0d9ab
TR
5952002-05-10 Tom Rix <trix@redhat.com>
596
a59f3d35 597 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
f1f0d9ab
TR
598 architecture and machine information in the output bfd.
599 (gld*_before_parse): Remove old arch and machine code.
600 (choose_target): Rename to gld*_choose_target.
a59f3d35
AM
601 (rtld): Change type to int.
602 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
f1f0d9ab
TR
603 objects in XCOFF archives.
604 * ldfile.h: Update copyright date.
605
f4d73366
JJ
6062002-05-10 Jakub Jelinek <jakub@redhat.com>
607
608 * ldmain.c (main): Enable -z combreloc by default.
609
d3d8a9ee
NC
6102002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
611
612 * Makefile.am: Honour DESTDIR.
613 * Makefile.in: Regenerate.
614
9f88b410
RS
6152002-05-07 Richard Sandiford <rsandifo@redhat.com>
616
617 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
618 (lang_enter_overlay): Remove the last two parameters.
619 (lang_leave_overlay): Take them here instead.
620 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
621 (section): Pass LMA and crossref flag to lang_leave_overlay rather
622 than lang_enter_overlay.
623 * ldlang.c (lang_memory_region_lookup): Return null for null names.
624 (lang_output_section_statement_lookup): Initialize update_dot_tree.
625 (lang_size_sections_1): Evaluate it.
626 (lang_leave_output_section_statement): Rework LMA lookup.
627 (overlay_lma, overlay_nocrossrefs): Remove.
3511b595 628 (lang_enter_overlay): Remove LMA and crossref arguments.
9f88b410
RS
629 (lang_enter_overlay_section): Don't set the LMA here.
630 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
631 assignment to the last section's update_dot_tree. Unconditionally
632 use the load and run-time regions specified in the OVERLAY statement.
633 Likewise the first section's LMA. Only set the other sections' LMAs
634 when no load region is given.
635
b9a743c8
NC
6362002-05-06 Nick Clifton <nickc@redhat.com>
637
638 * po/sv.po: New translation.
639
a3d60be3
AM
6402002-05-04 Alan Modra <amodra@bigpond.net.au>
641
642 * emultempl/hppaelf.em (build_section_lists): New function.
643 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
644 and build_section_lists.
645
b7a26f91
KH
6462002-05-03 Kazu Hirata <kazu@cs.umass.edu>
647
648 * ld.h: Fix formatting.
649 * ldexp.c: Likewise.
650 * ldfile.c: Likewise.
651 * ldlang.c: Likewise.
652 * ldmain.c: Likewise.
653 * lexsup.c: Likewise.
654 * pe-dll.c: Likewise.
655
805fc799
AM
6562002-05-02 Alan Modra <amodra@bigpond.net.au>
657
658 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
659 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
660 (build_section_lists): Do output_section tests here.
661
cc7e59b2
TR
6622002-04-30 Tom Rix <trix@redhat.com>
663
664 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
665
9c1d81c1
AM
6662002-05-01 Alan Modra <amodra@bigpond.net.au>
667
668 Long branch stubs, multiple stub sections.
669 * emultempl/ppc64elf.em: Include ldctor.h.
670 (stub_file): New var.
671 (group_size): New var.
672 (ppc_create_output_section_statements): New function.
673 (struct hook_stub_info): New.
674 (hook_in_stub): New function.
675 (ppc_add_stub_section): New function.
676 (ppc_layout_sections_again): New function.
677 (build_section_lists): New function.
678 (gld${EMULATION_NAME}_finish): Rewrite.
679 (real_func): New var.
680 (ppc_for_each_input_file_wrapper): New function.
681 (ppc_lang_for_each_input_file): New function.
682 (lang_for_each_input_file): Define.
683 (PARSE_AND_LIST_PROLOGUE): Define.
684 (PARSE_AND_LIST_LONGOPTS): Define.
685 (PARSE_AND_LIST_OPTIONS): Define.
686 (PARSE_AND_LIST_ARGS_CASES): Define.
687 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
688
aa67bccf
TR
6892002-04-30 Tom Rix <trix@redhat.com>
690
a59f3d35
AM
691 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
692 -blibpath, -bnolibpath support.
693
94349e12
MM
6942002-04-30 Mark Mitchell <mark@codesourcery.com>
695
696 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
697 (eelf32ppcwindiss.c): New target.
698 * Makefile.in: Regenerated.
699 * configure.tgt: Add support for powerpc-*-windiss.
700 * emulparams/elf32ppcwindiss.sh: New file.
a59f3d35 701
7b17f854
RS
7022002-04-30 Richard Sandiford <rsandifo@redhat.com>
703
704 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
705 * ldexp.c (exp_print_token): Add "infix_p" argument.
706 (exp_print_tree): Update accordingly.
707
596dafeb
AM
7082002-04-28 Alan Modra <amodra@bigpond.net.au>
709
710 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
711 * Makefile.in: Regenerate.
712 * mpw-elfmips.c: Delete.
713 * mpw-eppcmac.c: Delete.
714 * mpw-esh.c: Delete.
715 * mpw-idtmips.c: Delete.
716
219576a4 7172002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
718
719 * emulparams/shelf32.sh (MACHINE): Now sh5.
720
944cd72c
TS
7212002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
722
723 * ldgram.y: Fix syntax warning.
724
5835c212
NC
7252002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
726
727 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
728 to prevent "-n" from being taken as an abbreviation for
729 "--no-pipeline-knowledge".
730
024531e2
AM
7312002-04-08 Alan Modra <amodra@bigpond.net.au>
732
d08a14c3
AM
733 * ldlang.c (lang_size_sections_1): Don't complain about
734 SEC_NEVER_LOAD sections having no memory region specified.
735
024531e2
AM
736 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
737
c657a1f0
MG
7382002-04-07 matthew green <mrg@redhat.com>
739
740 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
741
61bef6f1
AM
7422002-04-04 Alan Modra <amodra@bigpond.net.au>
743
744 * dep-in.sed: Cope with absolute paths.
745 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
746 Run "make dep-am".
747 * Makefile.in: Regenerate.
748
49ba2791
TS
7492002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
750
751 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
752
50e60fb5
JJ
7532002-04-03 Jakub Jelinek <jakub@redhat.com>
754
755 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
756 is smaller than maximum, round dot up to common page boundary.
757
6f12f4ca
AM
7582002-03-28 Alan Modra <amodra@bigpond.net.au>
759
760 * configure.host: Set up for generic hosts first, then tweak as
761 necessary in more specific targets.
762 (HOSTING_LIBS): Include libgcc_eh.a if found.
763
a8f1f017
AJ
7642002-03-23 Andreas Jaeger <aj@suse.de>
765
766 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
767
1d3fdf38
AM
7682002-03-21 Alan Modra <amodra@bigpond.net.au>
769
770 * Makefile.am: Run "make dep-am".
771 * Makefile.in: Regenerate.
772
79b1faa8
AM
7732002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
774
775 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
776
fcf0e35b
AM
7772002-03-20 Alan Modra <amodra@bigpond.net.au>
778
779 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
780 add the symbol to the linker hash table immediately.
781 (lang_place_undefineds): Split symbol creation out..
782 (insert_undefined): ..to here.
783
fed2999d
DB
7842002-03-18 David O'Brien <obrien@FreeBSD.org>
785
786 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
787 the contents of the buffer returned from basename function will are
788 getting overwritten while still being used.
789
219576a4
NC
7902002-03-18 Jan Hubicka <jh@suse.cz>
791 Andreas Jaeger <aj@suse.de>
792 Andreas Schwab <schwab@suse.de>
beb43bb9
JH
793
794 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
795 * elf_x86_64.sh (ARCH): Set to i386:x86-64
796 set libraries to default to lib64 paths.
797
eb1e0e80
NC
7982002-03-18 Tom Rix <trix@redhat.com>
799
800 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
801 * configure.tgt : Same.
802 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
803 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
804 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
805 emulation parameters for better -b32, -b64 support.
806 * emulparms/aixrs6.sh : Same.
807 * emulparms/ppcmacos.sh : Same.
808 * emultempl/aix.em (choose_target) : Use new emulation parameters
809 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
810 * Makefile.in : Regenerate.
811
a1c259a1
NC
8122002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
813
814 * po/fr.po: Updated version.
815
862120bd
AM
8162002-03-18 Alan Modra <amodra@bigpond.net.au>
817
818 * ldmain.c (main): Move .text readonly flag fudges from here..
819 * ldlang.c (lang_process): ..to here.
820
d35a52e2
AM
8212002-03-14 Alan Modra <amodra@bigpond.net.au>
822
823 * ldlang.c (lang_check): Remove the word size check added in last
824 change. Treat emitrelocations case as for relocatable links.
825
9ce88e60
NC
8262002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
827
828 * po/fr.po: Updated version.
829
30cba025
AM
8302002-03-13 Alan Modra <amodra@bigpond.net.au>
831
832 * ldlang.c (lang_check): Do relocatable link checks first, so that
833 warn_mismatch can't override. Check compatible and word size too.
834
84ec0e6d
DJ
8352002-03-07 Daniel Jacobowitz <drow@mvista.com>
836
837 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
838
2d13d8c5
JJ
8392002-03-05 Jakub Jelinek <jakub@redhat.com>
840
841 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
842 DATA_SEGMENT_ALIGN.
843
b5090659
L
8442002-03-04 H.J. Lu <hjl@gnu.org>
845
846 * scripttempl/elf.sc: Put .preinit_array, .init_array and
847 .fini_array in the data segment.
848
f42ce16e
AM
8492002-03-04 Alan Modra <amodra@bigpond.net.au>
850
851 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
852
de77b6ac
RH
8532002-03-01 David Mosberger <davidm@hpl.hp.com>
854
855 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
856 .init_array, and .fini_array.
857
997e08c0
AS
8582002-02-20 Andreas Schwab <schwab@suse.de>
859
860 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
861 .IA64_unwind* in a relocatable link.
862
9a66911f
NC
8632002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
864
865 * NEWS: Mark 2.12 branch.
866
d86bcc10
MS
8672002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
868
869 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
870 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
871
69f284c7
TR
8722002-02-18 Tom Rix <trix@redhat.com>
873
874 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
875 (gld*_before_allocation): Same.
a8f1f017 876 (gld*_create_output_section_statements): Generate
69f284c7
TR
877 __rtinit if run time linking. Add librtl.a to the link.
878 (gld*_read_file): Clean.
879
82bd7b59
AM
8802002-02-18 Alan Modra <amodra@bigpond.net.au>
881
882 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
883
ac3e50bf
DB
8842002-02-18 David O'Brien <obrien@FreeBSD.org>
885
6a7f963b 886 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
ac3e50bf
DB
887 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
888 and eelf64alpha_fbsd.
6a7f963b 889 * Makefile.in: Regenerate.
ac3e50bf
DB
890 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
891 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
892 use a FreeBSD-specific emulation rather than the psABI one.
893 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
894 for all FreeBSD ELF systems.
895 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
896 emulation.
897 * emulparams/elf32ppc_fbsd.sh: Likewise.
898 * emulparams/elf64_ia64_fbsd.sh: Likewise.
899 * emulparams/elf64_sparc_fbsd.sh: Likewise.
900 * emulparams/elf64alpha_fbsd.sh: Likewise.
901 * emulparams/elf_i386_fbsd.sh: Likewise.
902 * emulparams/elf_x86_64_fbsd.sh: Likewise.
903
6ad738c5
NC
9042002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
905
906 * po/tr.po: Updated version.
907
9673c93c
AM
9082002-02-18 Alan Modra <amodra@bigpond.net.au>
909
910 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
911 (FILL): Likewise.
912
1c5e6447
HPN
9132002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
914
915 * emultempl/mmo.em (mmo_after_open): Don't call
916 _bfd_mmix_check_all_relocs when producing ELF output.
917
8bb57516
RH
9182002-02-15 Richard Henderson <rth@redhat.com>
919
de77b6ac 920 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
8bb57516
RH
921 definition. Emit a unop+nop pair.
922
49fda6c8
HPN
9232002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
924
83c2d653
HPN
925 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
926 for presence of .MMIX.reg_contents.linker_allocated before early
927 exit.
928
49fda6c8
HPN
929 * NEWS: Mention support for MMIX.
930
2c382fb6
AM
9312002-02-15 Alan Modra <amodra@bigpond.net.au>
932
933 Support arbitrary length fill patterns.
a139d329
AM
934 * ld.texinfo (Output Section Fill): Describe fill expressions.
935 (FILL): Refer to the above.
2c382fb6
AM
936 * ldexp.h (etree_value_type): Add "str" field.
937 (union etree_union): Add "str" to "value" struct.
938 (exp_bigintop): Declare.
939 (exp_get_fill): Declare.
940 * ldexp.c: Include "safe-ctype.h".
941 (exp_intop): Set value.str to NULL.
942 (exp_bigintop): New function.
943 (new_rel): Pass in "str", and set new.str from it.
944 (new_rel_from_section): Set new.str to NULL.
945 (fold_name): Adjust calls to new_rel.
946 (exp_fold_tree): Likewise.
947 (exp_get_fill): New function.
948 * ldgram.y (struct big_int bigint, fill_type *fill): New.
949 (INT): Returns a "bigint". Adjust all code handling INTs.
950 (fill_opt): Returns a "fill".
951 (fill_exp): Split out of fill_opt, use for FILL.
952 * ldlang.h (struct _fill_type): New.
953 (fill_type): Move typedef to ldexp.h.
954 (lang_output_section_statement_type): "fill" is now a pointer.
955 (lang_fill_statement_type): Likewise.
956 (lang_padding_statement_type): Likewise.
957 (lang_add_fill): Now takes a "fill_type *" param.
958 (lang_leave_output_section_statement): Likewise.
959 (lang_do_assignments): Likewise.
960 (lang_size_sections): Likewise.
961 (lang_leave_overlay_section): Likewise.
962 (lang_leave_overlay): Likewise.
963 * ldlang.c: Include ldgram.h after ldexp.h.
964 (lang_output_section_statement_lookup): Adjust for fill_type change.
965 (print_fill_statement): Likewise.
966 (print_padding_statement): Likewise.
967 (insert_pad): Now takes a "fill_type *" arg.
968 (size_input_section): Likewise.
969 (lang_size_sections_1): Likewise.
970 (lang_size_sections): Likewise.
971 (lang_do_assignments): Likewise.
972 (lang_add_fill): Likewise.
973 (lang_leave_output_section_statement): Likewise.
974 (lang_leave_overlay_section): Likewise.
975 (lang_leave_overlay): Likewise.
976 Adjust all callers of the above function.
977 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
978 starting with "0X" as well as "0x". Return bigint.str for hex
979 numbers starting with "0x" or "0X", zero bigint.str otherwise.
980 Always use base 16 for numbers starting with "$".
981 * ldmain.c: Include ldgram.h after ldexp.h.
982 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
983 of bfd_fill_link_order.
984 * pe-dll.c: Adjust lang_do_assignments calls.
985 * emultempl/elf32.em: Likewise.
986 * emultempl/hppaelf.em: Likewise.
987 * emultempl/ppc64elf.em: Likewise.
988 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
989 lang_add_assignment call.
990 * emultempl/pe.em: Likewise.
991
313e35ee
AM
9922002-02-14 Phil Edwards <pme@gcc.gnu.org>
993
a139d329 994 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
313e35ee
AM
995 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
996 the pattern in question is not a regexp.
997 * ldlang.c: Likewise.
998 * ldlang.h: Likewise.
999 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1000
2d20f7bf
JJ
10012002-02-12 Jakub Jelinek <jakub@redhat.com>
1002
1003 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1004 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1005 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1006 * ldexp.c (exp_data_seg): New variable.
1007 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1008 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1009 (exp_fold_tree): Handle DATA_SEGMENT_END.
1010 Pass allocation_done when recursing instead of hardcoding
1011 lang_allocating_phase_enum.
1012 * ldexp.h (exp_data_seg): New.
1013 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1014 (lang_size_sections): New.
1015 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1016 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1017 if COMMONPAGESIZE is defined.
1018 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1019 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1020 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1021 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1022 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1023 libraries only.
1024
06880219
AM
10252002-02-11 Alan Modra <amodra@bigpond.net.au>
1026
1027 * Makefile.in: Regenerate.
1028
37b0ac0f
DJ
10292002-02-10 Daniel Jacobowitz <drow@mvista.com>
1030
1031 * lexsup.c: Remove strtoul declaration.
1032
4e5bae56
DJ
10332002-02-10 Daniel Jacobowitz <drow@mvista.com>
1034
1035 * ldmain.c: Add prototype for main ().
1036 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1037 * emultempl/lnk960.em (lnk960_choose_target): Function should
1038 take two arguments.
1039
1e281515
AM
10402002-02-10 Alan Modra <amodra@bigpond.net.au>
1041
1042 * ldlang.c (entry_section): New initialised variable.
1043 (lang_finish): Use it.
1044 * ldlang.h (entry_section): Declare.
1045 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1046 entry_section to ".opd".
1047
f92d92ff 10482002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
1049
1050 * ld.texinfo (Options): Add back in -nostdlib documentation,
1051 which had been inadvertently removed.
1052
74c44237
HPN
10532002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1054
1055 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1056 register section vma to a sane value after emitting error. Make
1057 fatal conditions cause program exit when emitting message.
1058
5e37cc46
NC
10592002-02-08 Ivan Guzvinec <ivang@opencores.org>
1060
1061 * configure.tgt: Add or32-*-rtems target.
1062
2d92cb7d
AO
10632002-02-08 Alexandre Oliva <aoliva@redhat.com>
1064
1065 Contribute sh64-elf.
1066 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1067 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1068 in OTHER_RELOCATABLE_SECTIONS.
1069 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1070 * emulparams/shelf32.sh (STACK_ADDR): Define.
1071 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1072 (OTHER_SECTIONS): this. Removed stack settings.
1073 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1074 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1075 2001-03-12 DJ Delorie <dj@redhat.com>
1076 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1077 relaxing if any shmedia or mixed sections are found.
1078 2001-03-07 DJ Delorie <dj@redhat.com>
1079 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1080 einfo. Gracefully decline to output to non-elf formats.
1081 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1082 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1083 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1084 * emulparams/shelf32.sh: Ditto.
1085 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1086 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1087 comment.
1088 2001-01-10 Ben Elliston <bje@redhat.com>
1089 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1090 non-portable shell constructs. From Hans-Peter Nilsson.
1091 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1092 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1093 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1094 dependencies to the shell script include chain.
1095 * Makefile.in: Regenerate.
1096 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1097 * emultempl/sh64elf.em: Update and tweak comments.
1098 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1099 make a .cranges section SEC_IN_MEMORY.
1100 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1101 * emultempl/sh64elf.em
1102 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1103 .cranges section found to be necessary; continue and set stored
1104 section contents flags for sections with non-mixed contents.
1105 Use a struct sh64_section_data container and sh64_elf_section_data
1106 to store contents-type flags.
1107 Remove unused update of "isec".
1108 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1109 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1110 access contents-type flags. Assert that the associated container
1111 is initialized. Use that container, not elf_gp_size, to hold size
1112 of linker-generated cranges contents.
1113 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1114 * emultempl/sh64elf.em
1115 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1116 there's already a .cranges section. When section flag difference
1117 is found, don't NULL-check cranges a second time. Tweak comments.
1118 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1119 merging, not max size, as size of ld-generated .cranges contents.
1120 Don't set ELF section flags in output section. When checking for
1121 needed .cranges descriptors, don't use a variable; compare
1122 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1123 comments.
1124 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1125 * emultempl/sh64elf.em: New file.
1126 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1127 * Makefile.in: Regenerate.
1128 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1129 (OTHER_RELOCATING_SECTIONS): Ditto.
1130 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1131 * emulparams/shlelf32.sh: Stub out all settings except
1132 OUTPUT_FORMAT. Source shelf32.sh.
1133 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1134 OTHER_RELOCATING_SECTIONS.
1135 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1136 * emulparams/shlelf64.sh: Stub out all settings except
1137 OUTPUT_FORMAT. Source shelf64.sh.
1138 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1139 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1140 .cranges section.
1141 (DATA_START_SYMBOLS): Define, provide ___data.
1142 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1143 for consecutive .data section.
1144 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1145 section after .data section.
1146 * emulparams/shlelf64.sh: Ditto.
1147 * emulparams/shelf32.sh: Ditto.
1148 (ALIGNMENT): Define to 8.
1149 * emulparams/shelf32.sh: Ditto.
1150 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1151 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1152 built-in linker scripts.
1153 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1154 * emulparams/shlelf64.sh: New.
1155 * emulparams/shelf64.sh: New.
1156 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1157 targ_extra_emuls.
1158 * Makefile.am: Add support for shlelf64 and shelf64.
1159 * Makefile.in: Regenerate.
1160 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1161 * configure.tgt (sh64-*-elf*): Add shelf as default.
1162 Add shlelf to targ_extra_emuls.
1163 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1164 * emulparams/shelf32.sh: New file.
1165 * emulparams/shlelf32.sh: New file.
1166 * Makefile.am: Add support for shlelf32 and shelf32.
1167 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1168 * Makefile.in: Regenerate.
1169
e3dc8847
HPN
11702002-02-05 Hans-Peter Nilsson <hp@axis.com>
1171
1172 * ldlang.c (lang_reset_memory_regions): Rename from
1173 reset_memory_regions. Change all callers. Make public.
1174 * ldlang.h (lang_reset_memory_regions): Prototype.
1175 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1176 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
1177 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1178 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 1179
8017dbcb
HPN
11802002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1181
1182 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1183 arithmetic when checking for too many global registers.
1184
006336b8
JT
11852002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1186
1187 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1188 (ehppanbsd.c): New rule.
1189 * Makefile.in: Regenerate.
1190 * configure.tgt (hppa*-*-netbsd*): New target.
1191 * emulparams/hppalinux.sh: Add comment to check other files
1192 that source this file it is modified, and list which
1193 files that do.
1194 * emulparams/hppanbsd.sh: New file.
1195
da1f2fec
GK
11962002-02-01 Geoffrey Keating <geoffk@redhat.com>
1197
1198 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1199 stack.
1200
48fa4a5d
HPN
12012002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1202
1203 Support on-demand global register allocation from
1204 R_MMIX_BASE_PLUS_OFFSET relocs.
1205 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1206 mmix_set_reg_section_vma. Call
1207 _bfd_mmix_finalize_linker_allocated_gregs.
1208 (mmix_before_allocation): New function.
1209 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1210 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1211 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1212 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1213 before .MMIX.reg_contents.
1214 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1215 (mmo_after_open): New function.
1216 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1217 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1218 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1219
3b16e843
NC
12202002-01-31 Ivan Guzvinec <ivang@opencores.org>
1221
1222 * emulparams/or32.sh: New file.
1223 * emulparams/or32elf.sh: New file.
1224 * scripttempl/or32.sc: New file.
1225 * configure.tgt : Add support for or32.
1226 * configure: Regenerate
1227 * Makefile.am: Add support for or32.
1228 * Makefile.in: Regenerate.
1229 * NEWS: Mention support for or32.
1230 * po/ld.pot: Regenerate.
1231
f744d540 12322002-01-29 Chris Demetriou <cgd@broadcom.com>
313e35ee 1233 Mitch Lichtenberg <mpl@broadcom.com>
f744d540
CD
1234
1235 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1236 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1237 reloc creation (ld --embedded-relocs).
1238
4867be41
DJ
12392002-01-27 Daniel Jacobowitz <drow@mvista.com>
1240
1241 * configure: Regenerated.
1242
cd8e197b
HPN
12432002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1244
1245 * Makefile.am (install): Depend on install-info.
1246 * Makefile.in: Regenerate.
1247
9cb61eab
AM
12482002-01-26 Christian Rose <menthos@menthos.com>
1249
1250 * ldmain.c (main): Use full sentences to ease translation.
1251
1caa7b23
NC
12522002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1253
1254 * po/fr.po: Updated version.
1255
1ddbd152
NC
12562002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1257
1258 * po/es.po: Updated version.
1259
1e84433f
AJ
12602002-01-25 Andreas Jaeger <aj@suse.de>
1261
1262 * ldlex.l (yy_input): Correct error check.
1263
6d39955e
AM
12642002-01-25 Alan Modra <amodra@bigpond.net.au>
1265
1266 * ldmisc.c (demangle): Put back dots when string not demangled.
1267
a9ed1e1b
RH
12682002-01-22 Richard Henderson <rth@redhat.com>
1269
1270 * emulparams/elf64alpha.sh (NOP): Use unop.
1271
968ec2b9
AJ
12722002-01-21 Andreas Jaeger <aj@suse.de>
1273
1274 * ldlex.l: Use fread instead of read.
1275
9596feea
JT
12762002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1277
1278 * configure.tgt (ia64-*-netbsd*): New target.
1279
493a6d47
L
12802002-01-21 H.J. Lu <hjl@gnu.org>
1281
1282 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1283 0.
1284 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1285
2a538ba5
AJ
12862002-01-18 Andreas Jaeger <aj@suse.de>
1287
1288 * ldver.c (ldversion): Update year.
1289
328577ad
NC
12902002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1291
1292 * po/ld.pot: Regenerate.
1293
1f808cd5
AM
12942002-01-16 Alan Modra <amodra@bigpond.net.au>
1295
1296 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1297 * Makefile.in: Regenerate.
1298 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1299 * emultempl/ppc64elf.em: New file.
1300
335c5610
DD
13012002-01-15 DJ Delorie <dj@redhat.com>
1302
1303 * scripttempl/pe.sc: Add support for constructor priorities.
1304
c40bbade
DC
13052002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1306
1307 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1308 * emulparams/avr23xx.sh: Likewise.
1309 * emulparams/avr4433.sh: Likewise.
1310 * emulparams/avr44x4.sh: Likewise.
1311 * emulparams/avr85xx.sh: Likewise.
1312 * emulparams/avrmega103.sh: Likewise.
1313 * emulparams/avrmega161.sh: Likewise.
1314 * emulparams/avrmega603.sh: Likewise.
1315 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1316
34efb449
AO
13172002-01-08 Alexandre Oliva <aoliva@redhat.com>
1318
1319 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1320 archive is excluded.
1321
8d05742f
JT
13222002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1323
1324 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 1325 (eshelf_nbsd.c): New rule.
8d05742f
JT
1326 (eshlelf_nbsd.c): New rule.
1327 * Makefile.in: Regenerate.
1328 * configure.tgt (sh*le-*-netbsdelf*): New target.
1329 (sh*-*-netbsdelf*): New target.
1330 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1331 * ld/emulparams/shelf_nbsd.sh: New emulation.
1332 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1333
be2d1673
NC
13342002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1335
1336 * po/es.po: New file: Spanish translation.
1337 * configure.in (ALL_LINGUAS): Add es.
1338 * configure: Regenerate.
1339
dbab7a7b
NC
13402002-01-06 John Marshall <jmarshall@acm.org>
1341
1342 * ld.texinfo: Note that --emit-relocs is currently only
1343 implemented for ELF.
1344
3dfe7a8c
AM
13452002-01-05 Alan Modra <amodra@bigpond.net.au>
1346
1347 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1348 of bfd_section_list_remove and bfd_section_list_insert macros.
1349 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1350 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1351
8a8b2d4b
AJ
13522002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1353
1354 * configure.tgt (x86_64-*-netbsd*): New target.
1355
9a4c7f16
TR
13562001-12-21 Tom Rix <trix@redhat.com>
1357
8a8b2d4b 1358 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
1359 For -binitfini support.
1360 * emultempl/aix.em (gld*_before_parse): Fix comment.
1361 * emultempl/aix.em (gld*_parse_args): Fix comment.
1362
3695c299
AM
13632001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1364
cf86e6df
AM
1365 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1366 mips*el-*-netbsd*.
1367 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1368
3695c299
AM
1369 * configure.tgt (arm-*-netbsdelf*): Add target.
1370 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1371 * emulparams/armelf_nbsd.sh: Added.
1372 * Makefile.am: Add rules for earmelf_nbsd.
1373 * Makefile.in: Regenerate.
1374
97cb79ae
AJ
13752001-12-19 Andreas Jaeger <aj@suse.de>,
1376 Susanne Oberhauser <froh@suse.de>
1377
1378 * configure.host: Add rules for x86_64-*linux-gnu. Change
1379 s390x-linux entry to use gcc to report configuration, replace gcc
1380 with $CC in s390-linux
1381
9d201f2f
AJ
13822001-12-19 Andreas Jaeger <aj@suse.de>
1383
1384 * ld.texinfo (VERSION): Fix markup.
1385
0b69cd08
MG
13862001-12-18 matthew green <mrg@eterna.com.au>
1387
1388 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1389 (m68kelfnbsd.c): New rule.
1390 * Makefile.in: Regenerate.
1391 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1392 (m68*-*-netbsd*4k*): .. this.
1393 (m68*-*-netbsdelf*): New target.
1394 (m68*-*-netbsd*): Also include ELF support.
1395 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1396 * emulparams/m68kelfnbsd.sh: New emulation.
1397
6b9b879a
JJ
13982001-12-18 Jakub Jelinek <jakub@redhat.com>
1399
1400 * ldgram.y (vers_node): Support anonymous version tags.
1401 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1402 tag is not defined together with non-anonymous versions.
1403 * ld.texinfo: Document it.
1404
9fc877ed
NC
14052001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1406
1407 * po/tr.po: New file: Turkish translation.
1408 * configure.in (ALL_LINGUAS): Add tr.
1409 * configure: Regenerate.
1410
fc18a3f3
RH
14112001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1412
1413 * Makefile.am: Add rules for eelf64alpha_nbsd.
1414 * Makefile.in: Regenerate.
1415 * configure.tgt (alpha*-*-netbsd*): Set
1416 targ_emul to elf64alpha_nbsd.
1417 * emulparams/elf64alpha_nbsd.sh: Added.
1418
76f63e91
AM
14192001-12-17 Alan Modra <amodra@bigpond.net.au>
1420
1421 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1422 section_tail when fiddling with section list.
1423 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1424 broken into separate strings to make translation easier.
1425 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1426 fiddling with section list.
1427 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1428
d03b89bd
HPN
14292001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1430
1431 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1432
320fec9a
AM
14332001-12-15 Alan Modra <amodra@bigpond.net.au>
1434
1435 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1436
65765700
JJ
14372001-12-13 Jakub Jelinek <jakub@redhat.com>
1438
1439 * emultempl/elf32.em (finish): Supply output_bfd
1440 to bfd_elf*_discard_info.
1441 (OPTION_EH_FRAME_HDR): Define.
1442 (longopts): Add --eh-frame-hdr.
1443 (parse_args): Handle it.
1444 (list_options): Add --eh-frame-hdr to help.
1445 * emultempl/hppaelf.em (finish): Supply output_bfd
1446 to bfd_elf*_discard_info.
1447 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1448
89894c62
AM
14492001-12-13 Alan Modra <amodra@bigpond.net.au>
1450
1451 * lexsup.c (parse_args): Don't pass shortopts to second call to
1452 getopt functions. Restore optind rather than decrementing before
1453 second call. Remove errind as it now duplicates last_optind.
1454
583f1926
CF
14552001-12-11 Christopher Faylor <cgf@redhat.com>
1456
1457 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1458
93fbbb04
GK
14592001-12-07 Geoffrey Keating <geoffk@redhat.com>
1460 Richard Henderson <rth@redhat.com>
1461
1462 * Makefile.am: Add support for xstormy16.
1463 * configure.tgt: Add support for xstormy16.
1464 * Makefile.in: Regenerate.
1465 * emulparams/elf32xstormy16.sh: New file.
1466 * scripttempl/xstormy16.sc: New file.
1467
583f1926
CF
14682001-10-01 Christopher Faylor <cgf@cygnus.com>
1469
fc18a3f3
RH
1470 * Makefile.in (LIB_PATH): Make configurable.
1471 (GENSCRIPTS): Set LIB_PATH in environment.
1472 * configure.in: Substitute LIB_PATH.
1473 * configure: Regenerate.
1474 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1475 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 1476
ff291a48
NC
14772001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1478
1479 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1480 describing the -N option so that it is easier to translate into
1481 foreign languages.
1482
e3c8793a
NC
14832001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1484
1485 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1486 statements describing a single option with a single, newline
1487 escaped fprintf. This allows better translation into other
1488 languages.
9d201f2f 1489
fc18a3f3
RH
1490 * ldmain.c (add_archive_element): Combine multiple strings
1491 into a single string to permit better translation into other
1492 languages.
e3c8793a 1493
f2eab0af
TR
14942001-12-05 Tom Rix <trix@redhat.com>
1495
1496 * Makefile.am: Remove eaixppc64.
9d201f2f 1497 * Makefile.in: Regenerate.
f2eab0af 1498
249172c3
TR
14992001-12-04 Tom Rix <trix@redhat.com>
1500
9d201f2f 1501 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
1502 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1503 warning.
1504 (gld*_read_file): Fix typo.
1505 (change_symbol_mode): Add prototype.
1506 (is_syscall): Same.
9d201f2f 1507
249172c3
TR
1508 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1509 * emulparams/aixrs6.sh : Same.
1510 * emulparams/ppcmacos.sh : Same.
1511 * emulparams/aixppc64.sh : Delete file.
1512 * emultempl/aix.em : Formatting changes.
1513
5b5cd1b0
HPN
15142001-12-04 Hans-Peter Nilsson <hp@axis.com>
1515
1516 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1517 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1518 __Sbss.
1519 (OTHER_END_SYMBOLS): Fix formatting.
1520 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1521 (OTHER_END_SYMBOLS): Fix formatting.
1522
7cecdbff
AM
15232001-12-04 Alan Modra <amodra@bigpond.net.au>
1524
1525 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1526
742aeb63 15272001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 1528
742aeb63 1529 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 1530 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
1531 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1532 (ldemul_default_target): Same.
1533 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
1534 * emultempl/gld960c.em (gld960_choose_target): Same.
1535 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
1536 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1537 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1538 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 1539 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
1540 -b32 and -b64.
1541
48459341
L
15422001-11-27 H.J. Lu <hjl@gnu.org>
1543
1544 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1545 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1546 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1547 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1548 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1549 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1550 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1551 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1552
7cecdbff 1553 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
1554 is not empty.
1555 (SDATA): Likewise.
1556 (REL_SDATA): Likewise.
1557 (REL_SBSS): Likewise.
1558 (REL_SDATA2): Likewise.
1559 (REL_SBSS2): Likewise.
1560 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1561 (SDATA2): Likewise.
1562
ecfdd20c
SC
15632001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1564
1565 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1566 destructor in rom.
7cecdbff 1567 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 1568
da54c6eb
L
15692001-11-22 H.J. Lu <hjl@gnu.org>
1570
1571 * Makefile.in: Regenerated with automake based on automake
1572 1.4-8 in RedHat 7.1.
1573
465bc359
AM
15742001-11-22 Alan Modra <amodra@bigpond.net.au>
1575
1576 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1577 (config.status): Delete rule.
1578 Add extra dependencies to cover sourced emulparams files.
1579 * Makefile.in: Regenerate.
1580
1581 * scripttempl/elf.sc: Order <section>, <section>.* and
1582 corresponding linkonce sections as seen in input files.
1583 Formatting fixes. Zero vma of all sections if not relocating.
1584 (STACK): Define and insert if STACK_ADDR defined.
1585 (OTHER_RELOCATING_SECTIONS): Delete.
1586 (OTHER_END_SYMBOLS): Define.
1587 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1588 (OTHER_READWRITE_SECTIONS): Likewise.
1589 (OTHER_GOT_SECTIONS): Likewise.
1590 (OTHER_SDATA_SECTIONS): Likewise.
1591 (OTHER_BSS_SECTIONS): Likewise.
1592 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1593 (OTHER_READWRITE_SECTIONS): Likewise.
1594 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1595 (OTHER_READWRITE_SECTIONS): Likewise
1596
1597 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1598 (STACK_ADDR): Define.
1599 * emulparams/armelf_oabi.sh: As for armelf.sh.
1600 * emulparams/elf32mcore.sh: As for armelf.sh.
1601 * emulparams/h8300elf.sh: As for armelf.sh.
1602 * emulparams/mn10200.sh: As for armelf.sh.
1603 * emulparams/shelf.sh: As for armelf.sh.
1604
1605 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1606 (OTHER_END_SYMBOLS): Define.
1607 * emulparams/m32relf.sh: As for elf32fr30.sh.
1608 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1609 * emulparams/h8300self.sh: As for elf32fr30.sh.
1610
1611 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1612 defines with RELOCATING test.
1613 (OTHER_SDATA_SECTIONS): Likewise.
1614 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1615 (OTHER_END_SYMBOLS): ..this.
1616 * emulparams/crislinux.sh: As for criself.sh.
1617
1618 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1619 if not relocating.
1620 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1621 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1622 normal and linkonce sections as seen in input files.
1623 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1624 (TEXT_DYNAMIC): Likewise.
1625 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1626 (OTHER_SDATA_SECTIONS): Likewise.
1627 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1628 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1629 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1630 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1631 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1632 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1633 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1634 sections as seen in input files.
1635 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1636 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1637 if not relocating.
1638 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1639 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1640 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1641 (OTHER_SECTIONS): Instead, use this..
1642 (OTHER_END_SYMBOLS): ..and this.
1643
1644 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1645 * emulparams/elf32bsmip.sh: Likewise.
1646 * emulparams/elf32btsmip.sh: Likewise.
1647 * emulparams/elf32ebmip.sh: Likewise.
1648 * emulparams/elf32lmip.sh: Likewise.
1649 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1650 * emulparams/elf32lsmip.sh: Likewise.
1651 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1652 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1653 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1654 * emulparams/elf64btsmip.sh: Likewise.
1655 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1656 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1657 * emulparams/elf32ppclinux.sh: Likewise.
1658 * emulparams/elf32ppcsim.sh: Likewise.
1659 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1660 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1661 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1662 * emulparams/h8300self.sh: Likewise.
1663 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1664 * emulparams/sh.sh: Comment.
1665 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1666 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1667 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1668
abc6ab0a
AM
16692001-11-21 David Heine <dlheine@tensilica.com>
1670 Alan Modra <amodra@bigpond.net.au>
1671
1672 * ldlang.c (map_input_to_output_sections): Replace "break"
1673 accidentally removed with 2001-08-03 change.
1674 (lang_gc_sections_1): Likewise.
1675
2181f54f
AM
16762001-11-21 Alan Modra <amodra@bigpond.net.au>
1677
1678 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1679
ca0b5847
AM
16802001-11-20 Angela Marie Thomas <angela@redhat.com>
1681
1682 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
1683 of false when calling lang_size_sections.
1684 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 1685
c56feb2b
AM
16862001-11-15 Alan Modra <amodra@bigpond.net.au>
1687
1688 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1689 function when LDEMUL_FINISH isn't set to the same name. Don't
1690 call ${LDEMUL_FINISH}.
1691 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1692 * emultempl/armelf.em (arm_elf_finish): Call
1693 gld${EMULATION_NAME}_finish.
1694 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1695 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1696 hppaelf_layout_sections_again if necessary.
1697 (need_laying_out): New var.
1698 (hppaelf_layaout_sections_again): Rename to
1699 hppaelf_layout_sections_again. Clear need_laying_out.
1700 (PARSE_AND_LIST_OPTIONS): Format text.
1701
a48ca7f2
L
17022001-11-14 H.J. Lu <hjl@gnu.org>
1703
1704 * emultempl/armelf.em (arm_elf_finish): Renamed from
1705 gld${EMULATION_NAME}_finish.
1706 (LDEMUL_FINISH): Set to arm_elf_finish.
1707
73d074b4
DJ
17082001-11-14 Daniel Jacobowitz <drow@mvista.com>
1709
1710 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1711 (struct ld_emulation_xfer_struct): Use it.
1712
3b16e843 17132001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 1714
465bc359 1715 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
1716 additional symbols referenced by newer crt0.o files from HP.
1717
f11b7027
NC
17182001-11-12 Anthony Green <green@redhat.com>
1719
1720 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1721
3bf2994f
AM
17222001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1723
1724 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1725 * Makefile.in: Regenerate.
1726
ff5dcc92
SC
17272001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1728
1729 * ld.texinfo: Use @command for commands, @option for options.
1730 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1731 the page man title.
1732 * Makefile.in: Rebuild.
1733
9fb9af6e
CD
17342001-11-04 Chris Demetriou <cgd@broadcom.com>
1735
1736 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1737 Add support for targets.
2181f54f 1738
3c62831e
NC
17392001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1740
1741 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1742 * configure: Regernate.
1743 * po/fr.po: New file.
1744 * po/sv.po: New file.
1745
3a9091c4
NC
17462001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1747
1748 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1749 as little endian default and to support big endian.
2181f54f 1750
361b220e
CD
17512001-11-01 Chris Demetriou <cgd@broadcom.com>
1752
1753 * ld.texinfo (Options): Document new option, -nostdlib.
1754 * lexsup.c (OPTION_NOSTDLIB): New definition.
1755 (ld_options): Add entry for "nostdlib".
1756 (parse_args): Handle OPTIONS_NOSTDLIB.
1757 * ldfile.c (ldfile_add_library_path): Don't add directories
1758 to the search path if they weren't specified on the command line
1759 and -nostdlib was specified.
1760 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1761
210a7bd1
NC
17622001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1763
1764 * lexsup.c (parse_args): Prevent infinite parsing loop when
1765 "-rpath.a" is specified on the command line.
1766 Replace calls to fprintf with calls to einfo.
1767
114283d8
NC
17682001-10-31 John Marshall <jmarshall@acm.org>
1769
1770 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1771 appear only once across all the linker scripts involved in a link
1772 invocation no longer applies. Make the documentation reflect
1773 that.
1774
7649aa50
NC
17752001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1776
1777 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1778 targets.
1779 (sh-*-linux*): Added targ_extra_libpath.
1780
6e814ff8
AM
17812001-10-31 David Heine <dlheine@tensilica.com>
1782
1783 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1784 for padding statements.
1785
3c3bdf30
NC
17862001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1787
1788 * configure.tgt (mmix-*-*): New target.
1789 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1790 Add dependencies to match.
1791 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1792 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1793 scripttempl/mmo.sc: New files.
1794 * gen-doc.texi: @set MMIX.
1795 * ld.texinfo: Ditto.
6e814ff8 1796 [MMIX] Add MMIX node.
3c3bdf30
NC
1797 * Makefile.in: Regenerate.
1798
ca0c1d3e
KH
17992001-10-29 Kazu Hirata <kazu@hxi.com>
1800
1801 * ldlang.c: Fix a comment typo.
1802
1a3d33ce
AM
18032001-10-23 Alan Modra <amodra@bigpond.net.au>
1804
1805 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1806 entries, and match *-*-linux*.
1807
b47c4208
AM
18082001-10-20 Alan Modra <amodra@bigpond.net.au>
1809
1810 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1811 with ldlex_script, ldlex_popstate.
1812 (ifile_p1): Likewise.
1813 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1814 correct slot.
1815 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1816 to 1. Don't BEGIN(SCRIPT).
1817 (lex_redirect): Similarly.
1818 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1819
fd521b47
NC
18202001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1821
1822 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1823 __EH_FRAME_END__ and accept eh frames into data section.
1824 Add ctor and dtor sections.
1825
59d28a94
DD
18262001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1827
1828 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1829 (auto-export): Fix indentation.
1830
663dd378
DD
18312001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1832
1833 * pe-dll.c (autofilter_objectlist): Add startup objects
1834 for profiling.
1835 (auto-export): Constify char * p.
6e814ff8 1836 Extract file basename and use strcmp rather than ststr
663dd378
DD
1837 for object lookup.
1838
31d677f9
CD
18392001-10-18 Chris Demetriou <cgd@broadcom.com>
1840
1841 * ldmain.c (get_emulation): Improve comment about the handling
1842 of -mipsN options.
1843
aa200fe8
AM
18442001-10-17 Alan Modra <amodra@bigpond.net.au>
1845
1846 * po/POTFILES.in: Regenerate.
1847
146e7110
AM
18482001-10-16 Vassili Karpov <malc@pulsesoft.com>
1849
1850 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1851 -z nocopyreloc and -z nocombreloc usage strings.
1852
b4330e85
NC
18532001-10-12 Vassili Karpov <malc@pulsesoft.com>
1854
146e7110 1855 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
1856 in usage.
1857
5af8a2fb
NC
18582001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1859
1860 * scripttempl/armaout.sc: Place .bss section after end of aligned
1861 data section to match behaviour of aout code in constructrion of
1862 header.
1863
5b784096
DD
18642001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1865
1866 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1867 startup files for mingw32 dlls to list.
1868
61585df2
CD
18692001-10-10 Chris Demetriou <cgd@broadcom.com>
1870
1871 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1872
45cf6f3e
AH
18732001-10-08 Aldy Hernandez <aldyh@redhat.com>
1874
1875 * configure.tgt (targ): Add arm9e-*-elf.
1876
e24d7c12
L
18772001-10-05 H.J. Lu <hjl@gnu.org>
1878
1879 * genscripts.sh: Fix a typo in the last change.
1880
ec38dd05
JJ
18812001-10-05 Jakub Jelinek <jakub@redhat.com>
1882
1883 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1884 -z nocombreloc in usage.
1885
cedd6b0d
JB
18862001-10-03 Jim Blandy <jimb@redhat.com>
1887
1888 * genscripts.sh: Include a comment at the top of each generated
1889 script, explaining its purpose.
1890
8bd621d8
AM
18912001-10-03 Vassili Karpov <malc@pulsesoft.com>
1892
1893 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1894 * NEWS: Mention -z nocopyreloc.
1895 * ld.texinfo (Options): Describe nocopyreloc.
1896
fcd8210c
AM
18972001-10-03 Alan Modra <amodra@bigpond.net.au>
1898
1899 * configure: Regenerate.
1900
d32820f2
AM
19012001-10-02 Alan Modra <amodra@bigpond.net.au>
1902
1903 * ldver.h (ld_program_version): Remove declaration.
1904 * lexsup.c (parse_args): Move printing of copyright message..
1905 * ldver.c (ldversion): .. to here.
1906 Use BFD_VERSION_STRING in place of BFD_VERSION.
1907 (ld_program_version): Remove.
1908 * Makefile.am (Makefile): Depend on bfd/configure.in.
1909 Run "make dep-am".
1910 * Makefile.in: Regenerate.
1911
af46bcdc
HPN
19122001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1913
1914 * Makefile.am: Update dependencies with "make dep-am".
1915 * Makefile.in: Regenerate.
1916
4818e05f 19172001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 1918
4818e05f
AM
1919 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1920 * lexsup.c: Add --no-define-common commandline option.
1921 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1922 * ldlex.l: Likewise.
1923 * ld.h: Add command_line.inhibit_common_definition.
1924 * ldmain.c (main): Initialize.
1925 * ld.texinfo: Document.
862517b6 1926
a59f3d35
AM
19272001-09-29 Alan Modra <amodra@bigpond.net.au>
1928
1929 * ldlang.c (section_already_linked): Remove assignment to kept_section.
1930
d5e0ebeb
AM
19312001-09-26 Alan Modra <amodra@bigpond.net.au>
1932
1933 * ldmisc.c (USE_STDARG): Remove.
1934 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1935 (einfo): Likewise.
1936 (minfo): Likewise.
1937 (lfinfo): Likewise.
1938
1939 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1940 declarations. Update copyright.
1941
2f8d8971
NC
19422001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1943
85c77458
NC
1944 * pe-dll.c: Remove obsoleted declaration of
1945 pe_get_data_import_dll_name.
1946 (pe_create_import_fixup): Fix thinko.
1947
2f8d8971
NC
1948 * ld.texinfo(enable-auto-import): Clarify the explanation.
1949
19502001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1951
1952 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1953 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1954 DLL_SUPPORT controlled code.
1955
72358f65 19562001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 1957
72358f65
NC
1958 * emultempl/pe.em(pe_data_import_dll): Make static.
1959 (pe_get_data_import_dll_name): New accessor function.
146e7110 1960 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
1961 pe_get_data_import_dll_name() from pe.em, instead of
1962 directly accessing pe_data_import_dll variable from pe.em.
1963
3882b010
L
19642001-09-18 Bruno Haible <haible@clisp.cons.org>
1965
1966 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1967 (def_file_add_directive): Use ISSPACE instead of isspace.
1968 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1969 isdigit/isxdigit/isalpha/isalnum.
1970 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1971 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1972 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1973 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1974 isalnum.
1975 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1976 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1977 isupper/tolower.
1978 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1979 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1980 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1981 (ctor_prio): Use ISDIGIT instead of isdigit.
1982 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1983 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1984 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1985 isupper/tolower.
1986 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1987 (stricpy): Use TOLOWER instead of isupper/tolower.
1988 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1989 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1990 (lex_warn_invalid): Use ISPRINT instead of isprint.
1991 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1992 (main): For gettext, also set the LC_CTYPE locate facet.
1993 (add_keepsyms_file): Use ISSPACE instead of isspace.
1994 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1995 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1996 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1997 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1998 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1999 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2000 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2001 (quoteput): Use ISSPACE instead of isspace.
2002 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2003 instead of isalnum.
2004
db09f25b
AM
20052001-09-18 Alan Modra <amodra@bigpond.net.au>
2006
2007 * deffilep.y (def_stash_module): Constify "name" param.
2008
2009 * pe-dll.c: Replace CONST with const throughout.
2010 (quick_symbol): Constify "n1", "n2", "n3" params.
2011 (make_singleton_name_thunk): Constify "import" param. Make
2012 "buffer_len" a size_t.
2013 (make_import_fixup_entry): Constify "name", "fixup_name",
2014 "dll_symname" params.
2015 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2016 (pe_get32): Likewise.
2017 (pe_implied_import_dll): Likewise.
2018
2019 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2020 (sort_by_section_name): Likewise.
2021
2022 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2023 (make_import_fixup): Cast printf arg, rel->address to long rather
2024 than int.
2025 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2026
74699268
AM
20272001-09-15 Alan Modra <amodra@bigpond.net.au>
2028
2029 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2030 defines BufferSize. Increase buffer size by one.
2031
775cabad
NC
20322001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2033
2034 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2035
056a1d49
NC
20362001-09-14 Kevin Lo <kevlo@openbsd.org>
2037
2038 * configure.tgt: Add arm-openbsd target.
2039
a7d792bb
L
20402001-09-12 H.J. Lu <hjl@gnu.org>
2041
2042 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2043 eelf64lppc.o to ...
2044 (ALL_64_EMULATIONS): Here.
2045 * Makefile.in: Regenerated.
2046
0d888aac
CW
20472001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2048
2049 * emultempl/pe.em(make_import_fixup): change signature to
2050 take asection as well as arelec; we need this for proper
146e7110 2051 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
2052 there is no attempt to add a constant addend to the reloc;
2053 otherwise, report error condition.
2054 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2055 since final argument is a pointer to make_import_fixup().
2056 Change call to cb() to match make_import_fixup() signature.
2057 (make_import_fixup_mark): make buffer_len unsigned.
2058 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2059
20602001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2061
2062 * ld.texinfo: add verbose documentation for auto-import
146e7110 2063 direct-addressing workaround, to compliment the terse
0d888aac
CW
2064 error message.
2065
cedacdc0
CM
20662001-09-12 Andrew MacLeod <amacleod@redhat.com>
2067
146e7110 2068 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 2069
3b16e843 20702001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
2071
2072 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2073 * emulparams/h8300self.sh: Similarly.
2074
559e4713
NC
20752001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2076
2077 * ld.texinfo (Options, --stack): Correct default value for stack
2078 reserve.
2079
1fdf0249
TR
20802001-09-05 Tom Rix <trix@redhat.com>
2081
2082 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 2083
9b5799b8
AJ
20842001-09-03 Andreas Jaeger <aj@suse.de>
2085
2086 * emultempl/beos.em: Declare prototypes for comparions functions,
2087 adjust definitions.
2088
48f6162b
AJ
20892001-09-02 Andreas Jaeger <aj@suse.de>
2090
2091 * emultempl/aix.em: Add missing prototype.
2092 * emultempl/lnk960.em: Likewise.
2093 * emultempl/vanilla.em: Likewise.
2094 * emultempl/armcoff.em: Likewise.
2095 * emultempl/armelf_oabi.em: Likewise.
2096 * emultempl/beos.em: Likewise.
2097 * emultempl/gld960c.em: Likewise.
2098 * emultempl/gld960.em: Likewise.
2099
2100 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2101 for prototype declaration.
2102
39e5585e
EC
21032001-08-31 Eric Christopher <echristo@redhat.com>
2104 Jason Eckhardt <jle@redhat.com>
2105
2106 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2107
3fc90ddb
AJ
21082001-08-31 Andreas Jaeger <aj@suse.de>
2109
2110 * emultempl/pe.em: Add missing prototypes.
2111 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2112 pe_find_data_imports.
2113 (pr_sym): Add unused attribute.
2114
d43ded80
PB
21152001-08-29 Joel Sherrill <joel@OARcorp.com>
2116
39e5585e 2117 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
2118 default from coff to elf.
2119
3946dd2f
JL
21202001-08-29 Jeff Law <law@redhat.com>
2121
2122 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2123 ARCH specification.
2124 * emulparams/h8300self.sh: Similarly.
2125
3b16e843 21262001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
2127
2128 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2129 eh8300self.o .
2130 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2131 * configure.tgt (h8300-*-elf*): New case.
2132 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2133 * emulparams/h8300self.sh: New file.
2134 * Makefile.in: Regenerated.
2135
70d0c6e9
NC
21362001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2137
2138 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2139 with macro name.
2140
5c67d4bb
AM
21412001-08-27 Linus Nordberg <linus@swox.com>
2142 Alan Modra <amodra@bigpond.net.au>
2143
2144 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2145 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2146 Run "make dep-am"
2147 * Makefile.in: Regenerate.
2148 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2149 entries to correct alphabetical position.
2150 * emulparams/elf64ppc.sh: New.
2151 * emulparams/elf64lppc.sh: New.
2152
08131015
NC
21532001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2154
2155 * ldmain.c (main): Declare BSIZE as static.
2156
db6751f2
JJ
21572001-08-23 Jakub Jelinek <jakub@redhat.com>
2158
2159 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2160 into .rel.dyn resp. .rela.dyn if combreloc.
2161 (get_script): If .x linker script is equal to .xn, only put it
2162 once into the binary.
2163 Add .xc and .xsc scripts.
2164 (parse_args): Handle -z combreloc and -z nocombreloc.
2165 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2166 For .xc and .xsc scripts put all .rel* or .rela* input sections
2167 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2168 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2169 is elf.
2170 Strip trailing whitespace from script.
2171 Generate .xc and .xsc scripts if requested.
2172 * ldmain.c (main): Initialize link_info.combreloc and
2173 link_info.spare_dynamic_tags.
2174 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2175 (ld_options): Add --spare-dynamic-tags option.
2176 (parse_args): Likewise.
2177 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2178 * ldint.texinfo: Document .xc and .xsc linker scripts.
2179 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2180
63d069c0
L
21812001-08-22 H.J. Lu <hjl@gnu.org>
2182
2183 * emulparams/elf32fr30.sh: Add a newline.
2184
948f9114
AJ
21852001-08-21 Andreas Jaeger <aj@suse.de>
2186
2187 * deffilep.y: Add missing prototypes.
2188 * pe-dll.c: Likewise.
2189
ae7fb08f
AM
21902001-08-20 Alan Modra <amodra@bigpond.net.au>
2191
2af02257
AM
2192 * ldlang.c (insert_pad): Fix typos in last patch.
2193
2194 * ldlang.c: When traversing lang_statement_union_type lists,
2195 consistently use "header.next" rather than "next".
2196 * mpw-eppcmac.c: Likewise.
2197 * emultempl/beos.em: Likewise.
2198 * emultempl/hppaelf.em: Likewise.
2199 * emultempl/pe.em: Likewise.
2200 * ldlang.h (union lang_statement_union): Remove "next" field.
2201
c0c330a7
AM
2202 * ldlang.c (insert_pad): Use offsetof macro.
2203 (lang_size_sections): Always neuter padding statements.
2204 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2205
ae7fb08f
AM
2206 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2207 passed to lang_size_sections.
2208 (pe_exe_fill_sections): Likewise.
2209 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2210 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2211
fab80407
AM
22122001-08-18 Alan Modra <amodra@bigpond.net.au>
2213
2214 * emultempl/aix.em: Formatting fixes.
2215
b3327aad
AM
22162001-08-18 Alan Modra <amodra@bigpond.net.au>
2217
2218 * ldlang.c (insert_pad): Make use of an existing pad statement if
2219 available. Move code calculating alignment, adjusting section
2220 alignment power, and adjusting dot to ..
2221 (size_input_section): .. here. Remove unused relax param.
2222 (lang_size_sections): Change boolean `relax' param to boolean *.
2223 Adjust call to size_input_section. Make use of insert_pad to
2224 place pad after the assignment statement. If relaxing, zap
2225 padding statements.
2226 (reset_memory_regions): Reset output_bfd section sizes too.
2227 (relax_again): Move to..
2228 (lang_process): ..here. Adjust call to lang_size_sections, and
2229 remove duplicated code.
2230 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2231
563e308f
AM
22322001-08-17 Alan Modra <amodra@bigpond.net.au>
2233
2234 * ld.texinfo: Document that fill values now use the four least
2235 significant bytes.
2236 * emulparams/elf32fr30.sh (NOP): Update.
2237 * emulparams/elf32mcore.sh: Likewise.
2238 * emulparams/elf64_s390.sh: Likewise.
2239 * emulparams/elf_i386.sh: Likewise.
2240 * emulparams/elf_i386_be.sh: Likewise.
2241 * emulparams/elf_i386_chaos.sh: Likewise.
2242 * emulparams/elf_i386_ldso.sh: Likewise.
2243 * emulparams/elf_s390.sh: Likewise.
2244 * emulparams/elf_x86_64.sh: Likewise.
2245 * emulparams/i386moss.sh: Likewise.
2246 * emulparams/i386nw.sh: Likewise.
2247 * emulparams/m68kelf.sh: Likewise.
2248 * scripttempl/elf.sc: Update NOP comment.
2249 * scripttempl/elfi370.sc: Likewise.
2250 * scripttempl/elfm68hc11.sc: Likewise.
2251 * scripttempl/elfm68hc12.sc: Likewise.
2252 * scripttempl/nw.sc: Likewise.
2253
b90e1c6f
TR
22542001-08-15 Tom Rix <trix@redhat.com>
2255
2256 * ldgram.y (saved_script_handle): Initialize to NULL.
2257 * ldmain.c (main): Change check on saved_script_handle.
948f9114 2258
39dcfe18
AM
22592001-08-14 Alan Modra <amodra@bigpond.net.au>
2260
cde43e70
AM
2261 * emultempl/elf32.em: Formatting fixes.
2262 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2263 looking at sec->owner.
2264 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2265 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2266 unused code, and reorganize orphan section placement code.
2267
39dcfe18
AM
2268 * ldlang.c (wild_doit): Rename to lang_add_section.
2269 * ldlang.h: Here too.
2270 * mpw-elfmips.c: And here.
2271 * emultempl/beos.em: And here.
2272 * emultempl/elf32.em: And here.
2273 * emultempl/hppaelf.em: And here.
2274 * emultempl/pe.em: And here.
2275
908d20b3
RH
22762001-08-13 Richard Henderson <rth@redhat.com>
2277
2278 * emultempl/needrelax.em: New file.
2279 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2280 * Makefile.am (eelf64_ia64.c): Depend on it.
2281 * Makefile.in: Rebuild.
2282
0f33d40b
AM
22832001-08-13 Alan Modra <amodra@bigpond.net.au>
2284
22af9fd3
AM
2285 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2286 output_section is set non-NULL.
2287
0f33d40b
AM
2288 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2289 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2290 needlessly create an output_section_statement. Treat a correctly
2291 named output_section_statement with NULL bfd_section as compatible.
2292
55ab6103
HPN
22932001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2294
2295 * emultempl/generic.em: Support EXTRA_EM_FILE.
2296 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2297 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2298 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2299 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2300 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2301 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2302 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2303 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2304 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2305 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2306
24098abb
RH
23072001-08-12 Richard Henderson <rth@redhat.com>
2308
2309 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2310 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2311 scripttempl/v850.sc: Keep .jcr data.
2312
b9a8de1e 23132001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
2314 Andrew Haley <aph@cambridge.redhat.com>
2315 Nick Clifton <nickc@redhat.com>
b9a8de1e 2316
146e7110 2317 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
2318 Change type to file handle.
2319 * ld.h (had_script): Rename and retype.
2320 * ldfile.c (ldfile_open_command_file): Save the file handle
2321 used in saved_script_handle.
2322 * lexsup.c (parse_args): Do not allow -c option to alter
2323 saved_script_handle.
2324 * ldmain.c (main): Print out the linker script used if
2325 --verbose is given. Check saved_script_handle to obtain the
2326 external linker script used, or if NULL, dump the builtin
2327 script.
2328 * ld.texinfo: Document that --verbose now dumps the linker
2329 script used, regardless of whether it was an internal or an
2330 external script.
2331
0218d1e4
AJ
23322001-08-10 Andreas Jaeger <aj@suse.de>
2333
2334 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2335 to build warnings.
2336 * configure: Regenerate.
2337
5253f23b
AM
23382001-08-09 Alan Modra <amodra@bigpond.net.au>
2339
73810896
AM
2340 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2341
5253f23b
AM
2342 * scripttempl/elf.sc: Move non-text .dynamic section before
2343 .plt/.got/.sdata* group.
2344 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2345 (OTHER_SDATA_SECTIONS): Add.
2346 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2347 OTHER_GOT_SECTIONS.
2348 * emulparams/crislinux.sh: Likewise.
2349 * emulparams/elf32b4300.sh: Likewise.
2350 * emulparams/elf32bmip.sh: Likewise.
2351 * emulparams/elf32bmipn32.sh: Likewise.
2352 * emulparams/elf32bsmip.sh: Likewise.
2353 * emulparams/elf32btsmip.sh: Likewise.
2354 * emulparams/elf32ebmip.sh: Likewise.
2355 * emulparams/elf32elmip.sh: Likewise.
2356 * emulparams/elf32l4300.sh: Likewise.
2357 * emulparams/elf32lmip.sh: Likewise.
2358 * emulparams/elf32lsmip.sh: Likewise.
2359 * emulparams/elf32ltsmip.sh: Likewise.
2360 * emulparams/elf64bmip.sh: Likewise.
2361 * emulparams/elf64btsmip.sh: Likewise.
2362 * emulparams/elf64ltsmip.sh: Likewise.
2363
179c732c
AM
23642001-08-08 Alan Modra <amodra@bigpond.net.au>
2365
2366 * genscripts.sh: Source the emulparams script before each output
2367 script is generated so that variables like `RELOCATING' may affect
2368 variables defined in the emulparams script.
2369
3fd36710
AM
23702001-08-04 Alan Modra <amodra@bigpond.net.au>
2371
20713691
AM
2372 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2373 order.
2374
3fd36710
AM
2375 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2376 ie. iterate over wild_statement.section_list.
2377 (gld${EMULATION_NAME}_place_orphan): Likewise.
2378
de0b1853
SC
23792001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2380
2381 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2382 .fini[0-4] sections used by _exit
2383 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2384 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2385 * scripttempl/elfm68hc11.sc: Likewise.
2386
ff7e6f88
L
23872001-08-03 H.J. Lu <hjl@gnu.org>
2388
2389 * emultempl/beos.em (init): Add the missing initialization.
2390
b6bf44ba
AM
23912001-08-03 Alan Modra <amodra@bigpond.net.au>
2392
2393 * ld.texinfo (Input Section Basics): Clarify ordering of output
2394 sections.
2395 * ldlang.c (callback_t): Add wildcard_list param.
2396 (walk_wild_section): Remove "section" param. Rewrite for
2397 lang_wild_statement_type change. Remove unique_section_p test.
2398 (walk_wild_file): Remove "section" param.
2399 (walk_wild): Remove "section" and "file" params.
2400 (lang_gc_wild): Likewise.
2401 (wild): Likewise. Modify for lang_wild_statement_type change.
2402 (wild_sort): Likewise. Add "sec" param.
2403 (gc_section_callback): Likewise.
2404 (output_section_callback): Likewise. Do unique_section_p test.
2405 (map_input_to_output_sections): Modify call to wild.
2406 (lang_gc_sections_1): Likewise.
2407 (print_wild_statement): Modify for lang_wild_statement_type
2408 change.
2409 (lang_add_wild): Replace filename, filenames_sorted param with
2410 filespec. Replace section_name, sections_sorted,
2411 exclude_filename_list with section_list.
2412 * ldlang.h (lang_add_wild): Here too.
2413 (lang_wild_statement_type): Replace section_name, sections_sorted,
2414 and exclude_filename_list with section_list.
2415 * ldgram.y (current_file): Delete.
2416 (%union): Add wildcard_list.
2417 (file_NAME_list): Set type to wildcard_list. Build a linked list
2418 rather than calling lang_add_wild for each entry.
2419 (input_section_spec_no_keep): Call lang_add_wild here instead.
2420 * ld.h (struct wildcard_list): Declare.
2421 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2422
b044cda1
CW
24232001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2424
2425 * ldmain.c (main): initialize link_info.pei386_auto_import
2426 * pe-dll.c: new tables for auto-export filtering
2427 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 2428 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
2429 "by hand".
2430
24312001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2432
b6bf44ba
AM
2433 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2434 static variable current_sec (static struct sec *). Add
b044cda1 2435 forward declaration for add_bfd_to_link.
b6bf44ba
AM
2436 (process_def_file): Don't export undefined symbols. Do not
2437 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
2438 with new API.
2439 (pe_walk_relocs_of_symbol): New function.
2440 (generate_reloc): add optional extra debugging
b6bf44ba 2441 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 2442 line in output
b6bf44ba 2443 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
2444 (DATA auto-import support).
2445 (make_singleton_name_thunk): New function.
2446 (make_import_fixup_mark): New function.
2447 (make_import_fixup_entry): New function.
2448 (pe_create_import_fixup): New function.
b6bf44ba 2449 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 2450 char *.
b6bf44ba
AM
2451 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2452 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
2453 pe_create_import_fixup.
2454 * emultempl/pe.em: add new options --enable-auto-import,
2455 --disable-auto-import, and --enable-extra-pe-debug.
2456 (make_import_fixup): New function.
2457 (pe_find_data_imports): New function.
2458 (pr_sym): New function.
b6bf44ba 2459 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
2460 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2461 CODE.
2462
24632001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 2464
b044cda1
CW
2465 * ld.texinfo: add additional documentation for
2466 --export-all-symbols. Document --out-implib,
2467 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
2468 --dll-search-prefix, --enable-auto-import, and
2469 --disable-auto-import.
b044cda1
CW
2470 * ldint.texinfo: Add detailed documentation on auto-import
2471 implementation.
2472
156e34dd
NC
24732001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2474
2475 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2476 example.
2477
d6231427
AM
24782001-07-24 Alan Modra <amodra@bigpond.net.au>
2479
2480 * Makefile.am: Update dependencies with "make dep-am".
2481 * Makefile.in: Regenerate
2482
e14ec88b
AM
24832001-07-23 Alan Modra <amodra@bigpond.net.au>
2484
2485 * ldcref.c (check_section_sym_xref): New function.
2486 (check_nocrossrefs): Call it.
2487 (check_nocrossref): Interate over h->refs here instead of..
2488 (check_refs): ..here. Pass in the symbol name, section, and bfd
2489 rather than hash_entry pointers.
2490 (struct check_refs_info): Keep symbol name rather than hash entry.
2491 Remove "same".
2492 (check_reloc_refs): Tweak for above changes in check_refs_info.
2493 Only report references to section syms when symname is NULL to
2494 prevent duplicate messages for the same reloc.
2495
1b577b00
NC
24962001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2497
c7d701b0
NC
2498 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2499 available. Do not print NULL trees.
2500 (exp_print_token): Print unknown tokens with values > 126 as
2501 decimal values not ASCII characters.
2502
1545243b
NC
2503 * ldlang.c (lang_leave_overlay): If a region is specified assign
2504 it to all sections inside the overlay unless they have been
2505 assigned to the own, non-default, memory region.
2506
1b577b00
NC
2507 * README: Add header for consistency with other README files.
2508
5030876b
L
25092001-07-14 H.J. Lu <hjl@gnu.org>
2510
2511 * emultempl/elf32.em (output_prev_sec_find): Never return
2512 bfd_abs_section_ptr, bfd_com_section_ptr nor
2513 bfd_und_section_ptr.
2514
18c7a9a5
NC
25152001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2516
22af9fd3 2517 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
2518 elf32.em.
2519 * Makefile.in: Regenerate.
2520
9ffecff1
MG
25212001-07-14 matthew green <mrg@eterna.com.au>
2522
2523 * configure.tgt (i386-*-netbsdelf*): New target.
2524 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2525
95500e1c
JJ
25262001-07-13 Jakub Jelinek <jakub@redhat.com>
2527
2528 * emultempl/elf32.em (output_prev_sec_find): New.
2529 (place_orphan): Use it.
2530
e97cb84f
L
25312001-07-11 H.J. Lu <hjl@gnu.org>
2532
2533 * ldmain.c (main): Fix typos in the last change.
2534
7333607e
JJ
25352001-07-11 Jakub Jelinek <jakub@redhat.com>
2536
2537 * ldmain.c (main): Disallow -F and -f without -shared.
2538
d29d80f2
NC
25392001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2540
2541 * emultempl/pe.em (after_open): Check for the output_bfd not
2542 having any coff_data structure allocated to it.
2543
c2a1a436
DB
25442001-07-09 David O'Brien <obrien@FreeBSD.org>
2545
2546 * emultempl/elf32.em: Do not assuming that contents of the buffer
2547 returned from basename function will remain unchanged accross other
2548 function calls.
2549
63653551
L
25502001-07-03 H.J. Lu <hjl@gnu.org>
2551
2552 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2553 2001-07-03. It creates dynamic entries even for static binaries.
2554
d303a449
L
25552001-07-03 Jakub Jelinek <jakub@redhat.com>
2556
2557 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2558 (DYNAMIC): Use it to reserve few dynamic entries for
2559 post-linking tools.
2560
9f22353f
AM
25612001-06-27 Alan Modra <amodra@bigpond.net.au>
2562
2563 * emulparams/hppa64linux.sh: New file.
2564 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2565 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2566 (ehppa64linux.c): Add rule to make it.
2567 Run "make dep-am".
2568 * Makefile.in: Regenerate.
2569
62bf86b4
HPN
25702001-06-21 Hans-Peter Nilsson <hp@axis.com>
2571
2572 * ld.texinfo (Options, -r): Mention restrictions when using
2573 different object formats.
2574
429d935d
HPN
25752001-06-19 Hans-Peter Nilsson <hp@axis.com>
2576
2577 * ldlang.c (lang_check): Emit fatal error if relocatable link
2578 between different object flavours with relocations in input.
2579
cb840a31
L
25802001-06-19 H.J. Lu <hjl@gnu.org>
2581
2582 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2583 (--version-script): Mention the language support.
2584
9bf03acc
L
25852001-06-19 H.J. Lu <hjl@gnu.org>
2586
2587 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2588
c45021f2
NC
25892001-06-18 H.J. Lu <hjl@gnu.org>
2590
b6bf44ba
AM
2591 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2592 (diststuff): Add $(MANS).
2593 * Makefile.in: Regenerated.
c45021f2 2594
b6bf44ba 2595 * ld.1: Removed.
c45021f2 2596
6caa99ab
HPN
25972001-06-18 Hans-Peter Nilsson <hp@axis.com>
2598
605d9b3a
HPN
2599 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2600 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2601 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2602 * ld.h (args_type): Remove member export_dynamic. All users
2603 changed to use struct bfd_link_info member.
2604
6caa99ab
HPN
2605 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2606 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2607 * Makefile.in: Regenerate.
2608
6f9efd97
L
26092001-06-18 H.J. Lu <hjl@gnu.org>
2610
2611 * ldlang.c (init_os): Add the newline to the einfo call.
2612 (lang_check): Likewise.
2613 (lang_do_version_exports_section): Likewise.
2614
5af9fd8b
L
26152001-06-15 H.J. Lu <hjl@gnu.org>
2616
2617 * lexsup.c (parse_args); Save optind to report unrecognized
2618 option.
2619
2a096f04
HPN
26202001-06-15 Hans-Peter Nilsson <hp@axis.com>
2621
7e66c3f5
HPN
2622 * ldlang.c (lang_check): Emit fatal error if relocatable link
2623 between different object flavours.
2624
2a096f04
HPN
2625 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2626 Set new link_info member export_dynamic.
2627 * ldmain.c (main): Initialize new link_info member export_dynamic.
2628
6770ec8c
NC
26292001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2630
2631 * ldlang.c (walk_wild): Only call walk_wild_file if
2632 lookup_name returns something.
b6bf44ba 2633 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 2634 (load_symbols): Change to a boolean function.
b6bf44ba 2635 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
2636 executable.
2637
8529105a
AM
26382001-06-08 Alan Modra <amodra@bigpond.net.au>
2639
2640 * ldlang.c (record_bfd_errors): Remove.
2641
2642 * emultempl/aix.em: Fix copyright dates.
2643
8f3aa7a0
AJ
26442001-06-07 Andreas Jaeger <aj@suse.de>
2645
2646 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2647 (TEXT_START_ADDR): Likewise.
2648
3277f888
AM
26492001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2650
2651 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2652
3763134d
DD
26532001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2654
2655 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2656
5929ebc0
L
26572001-05-31 H.J. Lu <hjl@gnu.org>
2658
2659 * ldlang.c (open_input_bfds): Don't change the bfd error
2660 handler whilst loading symbols.
2661
c04a062d
NC
26622001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2663
2664 * configure.tgt: Remove i370-mvs architecture, it is not currently
2665 supported.
2666
96fcab3e
L
26672001-05-25 H.J. Lu <hjl@gnu.org>
2668
2669 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2670 like emulparams/aixppc.sh.
2671
db8d4f23
L
26722001-05-25 H.J. Lu <hjl@gnu.org>
2673
2674 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2675 setting of output_filename after bfd_scan_arch.
2676 * emultempl/pe.em: Likewise.
2677
5f642101
L
26782001-05-25 H.J. Lu <hjl@gnu.org>
2679
2680 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2681 like emulparams/aixppc.sh.
2682
2683 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2684 instead of ${srcdir}/emultempl/stringify.sed.
2685
64e9ece0
TW
26862001-05-25 Timothy Wall <twall@oculustech.com>
2687
2688 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 2689 output.
64e9ece0 2690
c709b096
AM
26912001-05-25 Alan Modra <amodra@one.net.au>
2692
2693 * configure.host: Replace linuxoldld with linux*oldld.
2694 * configure.tgt: Likewise.
2695
6cbdcc6f
L
26962001-05-24 H.J. Lu <hjl@gnu.org>
2697
2698 * emultempl/stringify.sed: Removed again.
2699
86af25fe
L
27002001-05-24 H.J. Lu <hjl@gnu.org>
2701
2702 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2703 (gld${EMULATION_NAME}_before_parse): Initialize
2704 ldfile_output_architecture, ldfile_output_machine and
2705 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2706 * emultempl/beos.em: Likewise.
2707 * emultempl/elf32.em: Likewise.
2708 * emultempl/linux.em: Likewise.
2709 * emultempl/mipsecoff.em: Likewise.
2710 * emultempl/pe.em: Likewise.
2711 * emultempl/sunos.em: Likewise.
2712
3b1b01cf
TR
27132001-05-24 Tom Rix <trix@redhat.com>
2714
8f3aa7a0 2715 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
2716 udate import file format.
2717 (change_symbol_mode) New, same
2718 (is_syscall) New, same
2719 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2720 * emulparams/aixppc64.sh : same
2721 * emulparams/aixrs6.sh : same
2722 * emulparams/ppcmacos.sh : same
2723 * emultempl/aix.em : use strtoull to parse options
2724 * Makefile.am : add eaixppc64 emulation for xcoff64
2725 * Makefile.in : same
2726 * configure.tgt : same
2727
2728 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 2729 default data section offset to 0x20000000
3b1b01cf 2730 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 2731 loader and debug sections use the currect section offset.
3b1b01cf
TR
2732
2733 * emultempl/aix.em : Add xcoff64 support
2734 Add -binitfini support
8f3aa7a0 2735 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 2736 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 2737 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
2738 sections
2739
2740 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 2741
57e6abd2
AO
27422001-05-23 Alexandre Oliva <aoliva@redhat.com>
2743
2744 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2745 variable to avoid non-portable shell construct.
2746
d1cf510e
NC
27472001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2748
2749 * ldmain.c (get_emulation): Add -mips5 command line argument.
2750
506eee22
NC
27512001-05-22 Alexandre Oliva <aoliva@redhat.com>
2752
2753 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2754 (ELF_INTERPRETER_NAME): Define it.
2755 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2756 it.
2757 * configure.tgt (targ_emul, targ_extra_emuls)
2758 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2759 as primary, elf_i386 as extra.
2760 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2761 (eelf_i386_ldso.c): New rule.
2762 * Makefile.in: Rebuilt.
2763
27642001-05-22 Nick Clifton <nickc@redhat.com>
2765
2766 * lexsup.c (ld_options): Allow -I to be an alias for
2767 --dynamic-linker. This is for Solaris compatability.
2768 * ld.texinfo: Document that -I can be used.
2769 * ld.1: Regenerate.
2770
d1778b88
AM
27712001-05-16 Alan Modra <amodra@one.net.au>
2772
2773 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2774 whether an input section is the first one assigned to an output
2775 section.
2776 Assorted formatting fixes.
2777
02649152
DD
27782001-05-14 DJ Delorie <dj@delorie.com>
2779
2780 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2781 * Makefile.in: Ditto.
2782
579f31ac
JJ
27832001-05-11 Jakub Jelinek <jakub@redhat.com>
2784
2785 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2786 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2787 output sections.
2788 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2789
8550eb6e
JJ
27902001-05-11 Jakub Jelinek <jakub@redhat.com>
2791
2792 * ldlang.c (lang_process): Call bfd_merge_sections.
2793
8e5a525c
AM
27942001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2795
2796 * ldgram.y: Fix typo.
2797
1c9acd94
L
27982001-05-03 H.J. Lu <hjl@gnu.org>
2799
2800 * emultempl/elf32.em: Include "libiberty.h".
2801 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2802 basename of the bfd filename.
2803 (gld${EMULATION_NAME}_stat_needed): Likewise.
2804 (gld${EMULATION_NAME}_try_needed): Likewise.
2805 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2806
14fe918e
L
28072001-05-02 H.J. Lu <hjl@gnu.org>
2808
2809 * emultempl/pe.em: Include <ctype.h>.
2810
c7e40348
NC
28112001-05-02 Johan Rydberg <jrydberg@opencores.org>
2812
b6bf44ba 2813 * emulparams/elf32openrisc.sh: New file.
c7e40348 2814
b6bf44ba
AM
2815 * Makefile.am: Add OpenRISC target.
2816 * Makefile.in: Regenerated.
c7e40348 2817
b6bf44ba 2818 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
2819
28202001-05-02 Nick Clifton <nickc@redhat.com>
2821
2822 * emultempl/aix.em: Replace buystring with xstrdup.
2823 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 2824
d1b2b2dc
L
28252001-05-02 H.J. Lu <hjl@gnu.org>
2826
2827 * ldfile.c: Include "libiberty.h".
2828 * ldlex.l: Likewise.
2829
2830 * ldmisc.c (buystring): Removed.
2831 * ldmisc.h: Likewise.
2832
2833 * ldfile.c: Replace buystring with xstrdup.
2834 * ldlang.c: Likewise.
2835 * ldlex.l: Likewise.
2836 * ldmain.c: Likewise.
2837 * ldmisc.c: Likewise.
2838 * lexsup.c: Likewise.
2839 * mpw-eppcmac.c: Likewise.
2840
35714f2a
AJ
28412001-04-30 Andreas Jaeger <aj@suse.de>
2842
2843 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2844
884fb58e
NC
28452001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2846
b6bf44ba
AM
2847 * ldlang.c (load_symbols): Give emulation a chance
2848 to process unrecognized file before fatal error is
2849 reported, not after.
884fb58e 2850
87748b32
NC
28512001-04-27 Sean McNeil <sean@mcneil.com>
2852
2853 * configure.tgt: Add arm-vxworks target.
2854 * scripttempl/armcoff.sc: Support .text or .data as a section name
2855 prefix.
2856 Define _etext.
35714f2a 2857
7ce691ae
C
28582001-04-13 J.T. Conklin <jtc@redback.com>
2859
2860 * ld.texinfo: Document --fatal-warnings.
2861 * ld.1: Regenerate.
2862
2863 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 2864 warnings have been turned into errors.
7ce691ae
C
2865 * lexsup.c (OPTION_WARN_FATAL): Define.
2866 (ld_options): Entry for --fatal-warnings.
2867 (parse_args): Handle OPTION_WARN_FATAL.
2868 * ld.h (ld_config_type): Add fatal_warnings field.
2869
f5fa8ca2
JJ
28702001-04-13 Jakub Jelinek <jakub@redhat.com>
2871
2872 * ldmain.c (main): Default to discard_sec_merge.
2873 * lexsup.c (OPTION_DISCARD_NONE): Define.
2874 (ld_options): Add --discard-none.
2875 (parse_args): Handle OPTION_DISCARD_NONE.
2876 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2877 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2878 all its input sections match.
2879
fdec3cfc
L
28802001-04-05 Steven J. Hill <sjhill@cotw.com>
2881
2882 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2883 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2884 (eelf32ltsmip.c): New target.
2885 (eelf64btsmip.c): Likewise.
2886 (eelf64ltsmip.c): Likewise.
2887 * Makefile.in: Regenerated.
2888
2889 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2890 target.
2891 (mips*-*-linux-gnu*): Likewise.
2892
2893 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2894 MIPS taget.
35714f2a 2895 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
2896 target.
2897 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2898 endian target.
2899
589bad82
HPN
29002001-04-05 Hans-Peter Nilsson <hp@axis.com>
2901
2902 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2903 correct value of __Stext here.
2904 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2905 .startup section.
2906
2907 * emulparams/crislinux.sh: Remove FIXME.
2908
94202e16
AM
29092001-04-02 Alan Modra <alan@linuxcare.com.au>
2910
2911 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2912 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2913
1268a053
HPN
29142001-03-27 Hans-Peter Nilsson <hp@axis.com>
2915
2916 * configure.tgt (cris-*-*): Change default emulation to criself.
2917 (cris-*-*aout*): New rule.
2918
d85e9ff7
AM
29192001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2920
2921 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2922 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2923
0879a67a
AJ
29242001-03-26 Andreas Jaeger <aj@suse.de>
2925
2926 * ld.texinfo (Overview): Fix syntax in texi code.
2927
0285c67d
NC
29282001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2929
2930 * ld.texinfo: Put @c man indications to generate the ld man page.
2931 When generating man, define all the variables. Define SEEALSO
2932 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2933 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2934 (ld.1): Generate from ld.texinfo.
2935 * Makefile.in: Regenerate.
2936
c20ec07b
NC
29372001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2938
2939 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 2940 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 2941
cc5ce052
UD
29422001-03-17 Ulrich Drepper <drepper@redhat.com>
2943
2944 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2945 is an absolute path look only for this file and not along the path.
2946
a1ab1d2a
UD
29472001-03-17 Ulrich Drepper <drepper@redhat.com>
2948
2949 * emultempl/elf32.em (OPTION_GROUP): New macro.
2950 Add new option Bgroup to longopts.
2951 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2952 (gld*_list_options): Add -Bgroup and -z defs.
2953 * ld.1: Document -Bgroup and -z defs.
2954 * ld.texinfo: Likewise.
2955
788fca5a
MM
29562001-03-07 Michael Meissner <meissner@redhat.com>
2957
2958 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2959 with sections created by -fdata-sections.
2960 (.dynbss,.bss): Ditto.
2961
1c7566d1
AM
29622001-03-05 Alan Modra <alan@linuxcare.com.au>
2963
2964 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2965 after_allocation_default, not gld..._before_allocation.
2966
27b7e12d
AM
29672001-02-27 Alan Modra <alan@linuxcare.com.au>
2968
2969 * configure.in (BFD_VERSION): New.
2970 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2971 * configure: Regenerate.
2972 * Makefile.am: Run "make dep-am"
2973 * Makefile.in: Regenerate.
2974
2bc551c7
TW
29752001-02-26 Timothy Wall <twall@cygnus.com>
2976
2977 * emulparams/elf64_aix.sh: Add additional read-only sections;
2978 uncomment lines which are now required.
2979
1276aefa
NC
29802001-02-26 H.J. Lu <hjl@gnu.org>
2981
2982 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
2983 that problems can be caught whilst loading symbols.
2984 (record_bfd_errors): New function: Report BFD errors and mark
2985 the executable output as being invalid.
1276aefa 2986
41c49998
TW
29872001-02-22 Timothy Wall <twall@cygnus.com>
2988
2989 * configure.host: Add configuration for ia64-*-aix*.
2990 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2991 Add dependencies for eelf64_aix.c.
2992 * Makefile.in: Regenerate.
2993 * configure.tgt: Add ia64-*-aix* mapping.
2994 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 2995 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
2996 AIX-specific test.
2997
78f85fd7
L
29982001-02-20 H.J. Lu <hjl@gnu.org>
2999
3000 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3001 false if we found the file.
3002
1ac7e077 30032001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
3004
3005 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3006 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3007
e135f41b
NC
30082001-02-18 lars brinkhoff <lars@nocrew.org>
3009
3010 * Makefile.am: Add PDP-11 target.
3011 * configure.tgt: Likewise.
3012 * emulparams/pdp11.sh: New file.
3013
a842aceb
DB
30142001-02-17 David O'Brien <obrien@FreeBSD.org>
3015
3016 * configure.host: Add a generic FreeBSD configuration entry such that
3017 all [modern] FreeBSD systems on all platforms will look the same.
3018
24174db0
L
30192001-02-14 H.J. Lu <hjl@gnu.org>
3020
3021 * configure.tgt: Remove mention of earmelf_linux26.
3022
30c3c13a
RH
30232001-02-13 Richard Henderson <rth@redhat.com>
3024
3025 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3026
b46a87b1
L
30272001-02-13 H.J. Lu <hjl@gnu.org>
3028
3029 * ldexp.h (node_type): Add etree_provided.
3030 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3031 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 3032 for etree_provided.
b46a87b1
L
3033 (exp_print_tree): Handle etree_provided.
3034 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3035 etree_provided.
3036
f3988fd9
RH
30372001-02-09 David Mosberger <davidm@hpl.hp.com>
3038
3039 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3040 .IA_64.unwind.* pattern to unwind table section and
3041 .IA_64.unwind_info* pattern to unwind info section.
3042
a85d7ed0
NC
30432001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3044
3045 * Makefile.am: Add linux target for S/390.
3046 * Makefile.in: Likewise.
3047 * configure.host: Likewise.
3048 * configure.tgt: Likewise.
3049 * emulparams/elf64_s390.sh: New file.
3050 * emulparams/elf_s390.sh: New file.
3051
780248c4
JJ
30522001-02-09 Jakub Jelinek <jakub@redhat.com>
3053
3054 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3055 targ_extra_libpath.
3056 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3057
0e2534bd
PB
30582001-02-06 Philip Blundell <philb@gnu.org>
3059
3060 * Makefile.am: Remove mention of earmelf_linux26.
3061 * Makefile.in: Regenerate.
3062
46c1ea57
PB
30632001-02-04 Philip Blundell <philb@gnu.org>
3064
3065 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3066 * emulparams/armelf_linux26.sh: Delete.
3067 * configure.tgt: Remove mention of armelf_linux26 emulation.
3068
0088edd2
NC
30692001-02-01 Nick Clifton <nickc@redhat.com>
3070
3071 * ld.1: Replace occurances of -oformat with --oformat.
3072
02aa14fb
AM
30732001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3074
3075 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3076 load_base is specified.
3077
f813923c
HPN
30782001-01-24 Hans-Peter Nilsson <hp@axis.com>
3079
3080 * emultempl/elf32.em: Correct spelling in comments and listed
3081 options.
3082
c1eb1488
AM
30832001-01-23 Alan Modra <alan@linuxcare.com.au>
3084
3085 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3086 default for the first section of a group of overlay sections.
3087
d9fc3714
AM
30882001-01-22 Alan Modra <alan@linuxcare.com.au>
3089
3090 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3091 * Makefile.in: Regenerate.
3092 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3093 Check for null tool_dir.
3094
6be0ca94
JW
30952001-01-16 Jim Wilson <wilson@redhat.com>
3096
3097 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3098 and IA_64.unwind.info.
3099
b9247304
L
31002001-01-16 H.J. Lu <hjl@gnu.org>
3101
3102 * ldlang.c (lang_check): Merge the private data only if the
3103 input file has contents.
3104
577a0623
AM
31052001-01-14 Alan Modra <alan@linuxcare.com.au>
3106
d952f17a
AM
3107 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3108
ffd6e9de
AM
3109 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3110 enabling search for libmilli. On a relocatable link, make .text
3111 sections unique.
3112 (LDEMUL_AFTER_PARSE): Define.
3113 (hppaelf_finish): Correct spelling of relocatable in comments.
3114
577a0623
AM
3115 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3116 rummage through the script for sections on the unique list.
3117 Correct length of strncmp for ".note".
3118 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3119
3120 * ldlang.c (unique_section_list): New var.
3121 (unique_section_p): New function.
3122 (walk_wild_section): Don't match sections on unique_section_list.
3123 (lang_add_unique): New function.
ffd6e9de 3124 Correct spelling of relocatable in comments.
577a0623
AM
3125
3126 * ldlang.h (struct unique_sections): Declare.
3127 (unique_section_list): Declare.
3128 (unique_section_p): Declare.
3129 (lang_add_unique): Declare.
3130
3131 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3132 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3133
3134 * ld.texinfo (--unique): Update.
3135
b7ed8fad
NC
31362001-01-13 Nick Clifton <nickc@redhat.com>
3137
3138 * lexsup.c (parse_args): Remove spurious white space.
3139
d0398d6a
NC
31402001-01-12 Nick Clifton <nickc@redhat.com>
3141
3142 * lexsup.c (parse_args): Update copyright date.
3143
350fdb00
PB
31442001-01-12 Philip Blundell <pb@futuretv.com>
3145
3146 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3147
60c6797e
KH
31482001-01-10 Kazu Hirata <kazu@hxi.com>
3149
3150 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3151 * scripttempl/h8300h.sc: Fix formatting.
3152 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
3153 * scripttempl/h8500.sc: Likewise.
3154 * scripttempl/h8500b.sc: Likewise.
3155 * scripttempl/h8500c.sc: Likewise.
3156 * scripttempl/h8500m.sc: Likewise.
3157 * scripttempl/h8500s.sc: Likewise.
60c6797e 3158
482e8b32
DB
31592000-01-07 David O'Brien <obrien@BSDi.com>
3160
3161 * emultempl/elf32.em: Only perform Linux ld hints processing when
3162 targeting Linux.
3163
d7ed7ca6
PB
31642001-01-07 Philip Blundell <philb@gnu.org>
3165
3166 * ld.texinfo (Bug Reporting): Update email address for reports.
3167
0fc3347a
NC
31682000-12-31 Nick Clifton <nickc@redhat.com>
3169
3170 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3171 options by checking for a return value of '?' not -1.
3172
e4897a32
NC
31732000-12-28 Nick Clifton <nickc@redhat.com>
3174
3175 * lexsup.c (struct ld_option): Add new enum value:
3176 EXACTLY_TWO_DASHES.
3177 (ld_options[]): Change -omagic, -output and -oformat options
3178 to be EXACTLY_TWO_DASHES.
3179 (OUTPUT_COUNT): Use ARRAY_SIZE.
3180 (parse_args): Change parameter 'argc' to unsigned.
3181 Place EXACTLY_TWO_DASHES options into new really_longopts
3182 array.
3183 If getopt_long_only fails, try calling getopt_long using the
3184 really_longopts array.
3185 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3186 TWO_DASHES options.
3187
3188 * ldlex.h: Fix prototype of parse_args.
3189
3190 * ld.texinfo: Document that long options starting with 'o'
3191 must be preceeded by two dashes. Change example of a single
3192 dashed long option from -oformat to -trace-symbol.
3193
1122a5fc
NC
31942000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3195
3196 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3197 (longopts[]): New --no-default-excludes option.
3198 (gld_${EMULATION_NAME}_list_options): Document.
3199 (gld_${EMULATION_NAME}_parse_args): Handle.
3200
037849a9
NC
32012000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3202
3203 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3204 whitespace, it breaks the K&R C preprocessor.
3205
7ec229ce
DD
32062000-12-11 DJ Delorie <dj@redhat.com>
3207
3208 * ld.texinfo: Add notes about --whole-archive and gcc.
3209
b79e8c78
NC
32102000-11-18 Fred Fish <fnf@be.com>
3211
3212 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3213 (ld_options): Entry for --allow-shlib-undefined.
3214 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3215 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3216 to false.
3217 * ld.texinfo: Document new command line switch.
d952f17a 3218
9a8e2505
GK
32192000-12-12 Geoffrey Keating <geoffk@redhat.com>
3220
3221 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3222 .fixup is actually read/write.
3223 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3224 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3225 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3226
3b16e843 32272000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
3228
3229 * NEWS: Add note about x86_64 architecture.
3230
93b63cd3
DD
32312000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3232
3233 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3234 Set DWARF2 sections to a VMA of zero.
3235
68b2fc7a 32362000-12-01 Joel Sherrill <joel@OARcorp.com>
24f6971a 3237
d952f17a 3238 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
3239 New targets.
3240 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3241 (sparc*-*-rtems*): Switched from a.out to ELF.
3242
2be3aa03
NC
32432000-11-30 Jan Hubicka <jh@suse.cz>
3244
3245 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3246 (eelf_x86_64.c): New.
3247 * Makefile.in: Regenerate.
3248 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3249 * emulparams/elf_x86_64.sh: New.
3250
8c899858
HPN
32512000-11-30 Hans-Peter Nilsson <hp@axis.com>
3252
3253 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3254 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3255
3256 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3257 merging non-a.out sections into CONSTRUCTING.
3258
e47b9e39
NC
32592000-11-28 Nick Clifton <nickc@redhat.com>
3260
3261 * ld.1 (COPYING): Mention that the GNU Free Documentation
3262 License is present in the sources, but not the output, and
3263 also available from the GNU website.
3264 (GNU Free Documentation License): Comment out this section.
3265
ad95f82a
DB
32662000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3267
3268 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3269 does not use them.
3270
fd89e65f
DB
32712000-11-25 David O'Brien <obrien@FreeBSD.org>
3272
3273 * ld.1: Remove old date so it does not give the impression the manpage
3274 is way out of date.
3275
077b8428
NC
32762000-11-24 Nick Clifton <nickc@redhat.com>
3277
3278 * configure.tgt (xscale-coff): Add target.
3279 (xscale-elf): Add target.
3280
49425d28
NC
32812000-11-24 Fred Fish <fnf@be.com>
3282
d952f17a
AM
3283 * ldmain.c (main): Remove redundant init of config.make_executable
3284 to true.
49425d28 3285
d3480244
RH
32862000-11-15 Richard Henderson <rth@redhat.com>
3287
3288 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3289
1ce7de8b
KH
32902000-11-14 Kazu Hirata <kazu@hxi.com>
3291
3292 * scripttempl/h8300.sc: Fix formatting.
3293 * scripttempl/h8300h.sc: Likewise.
3294 * scripttempl/h8300s.sc: Likewise.
3295
3b16e843 32962000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
3297
3298 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3299
2e418547
PB
33002000-11-09 Philip Blundell <pb@futuretv.com>
3301
3302 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3303 around orphan sections whose names can be represented in C.
3304
c940e6fc
JW
33052000-11-07 Jim Wilson <wilson@redhat.com>
3306
3307 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3308 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3309
704c465c
NC
33102000-11-06 Nick Clifton <nickc@redhat.com>
3311
3312 * ld.texinfo: Add GNU Free Documentation License.
3313 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 3314 * ld.1: Add GNU Free Documentation License.
704c465c 3315
dca7760f
AM
33162000-11-05 Alan Modra <alan@linuxcare.com.au>
3317
3318 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3319 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3320
3321 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3322 Move 2000-11-02 Makefile.in changes to this file.
3323 * Makefile.in: Regenerate.
3324
40a633d5
NC
33252000-11-03 Nick Clifton <nickc@redhat.com>
3326
3327 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3328 constructors and destructors.
3329 * scripttempl/h8300h.sc: Ditto.
3330 * scripttempl/h8300s.sc: Ditto.
3331 * scripttempl/h8500.sc: Ditto.
3332 * scripttempl/h8500b.sc: Ditto.
3333 * scripttempl/h8500c.sc: Ditto.
3334 * scripttempl/h8500m.sc: Ditto.
3335 * scripttempl/h8500s.sc: Ditto.
3336 * scripttempl/v850.sc: Ditto.
3337 * scripttempl/w65.sc: Ditto.
3338 * scripttempl/z8000.sc: Ditto.
3339
59ff2774
NC
33402000-11-02 Per Lundberg <plundis@chaosdev.org>
3341
3342 * Makefile.in (e_i386_chaos.c): New rule.
3343 (ALL_EMULATIONS): Added e_i386_chaos.o.
3344 * emulparams/elf_i386_chaos.sh: New file.
3345 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3346
645571e1
JJ
33472000-10-20 Jakub Jelinek <jakub@redhat.com>
3348
3349 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3350 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3351 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3352 library path suffix.
3353 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3354
c5975a45
HPN
33552000-10-18 Hans-Peter Nilsson <hp@axis.com>
3356
3357 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3358 for consecutive sections.
3359
ea20a7da
CC
33602000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3361
d952f17a
AM
3362 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3363 options.
3364 * ld.texinfo: Added notes about this new option.
ea20a7da 3365
6e45556a
NC
33662000-10-16 Nick Clifton <nickc@redhat.com>
3367
3368 * emultempl/pe.em (_after_open): Add tests of return values from
3369 bfd functions. Emit appropriate error messages if necessary.
3370
b9a69188
NC
33712000-10-13 Nick Clifton <nickc@redhat.com>
3372
3373 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
3374 local variables - they are not used, but leave in the call to
3375 bfd_canonicalize_symtab.
b9a69188
NC
3376 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3377 pe_dll_search_prefix.
3378
627427de 33792000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 3380
627427de
DD
3381 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3382 (longopts): New --dll-search-prefix option.
3383 (gld_${EMULATION_NAME}_list_options): Document.
3384 (gld_${EMULATION_NAME}_parse_args): Handle.
3385 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3386 dynamically, search for a dll named '<prefix><basename>.dll'
3387 in preference to 'lib<basename>.dll' if --dll-search-prefix
3388 is specified.
3389
24376d1b
AM
33902000-10-12 Alan Modra <alan@linuxcare.com.au>
3391
3392 * ldlang.c (section_already_linked): Set kept_section instead of
3393 sec->comdat->sec.
3394
e47d05ad
KH
33952000-10-10 Kazu Hirata <kazu@hxi.com>
3396
3397 * deffile.h: Fix formatting.
3398 * lexsup.c: Likewise.
3399 * mri.c: Likewise.
3400
23a87948
DD
34012000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3402
3403 * pe-dll.c (make_one): Do not generate code thunk for DATA
3404 exports.
3405 (process_def_file): deduce DATA flag for auto-export sumbols.
3406
86b1cc60
KH
34072000-10-09 Kazu Hirata <kazu@hxi.com>
3408
89cdebba
KH
3409 * ld.h: Fix formatting.
3410 * ldcref.c: Likewise.
3411 * ldctor.h: Likewise.
3412 * ldemul.c: Likewise.
3413 * ldemul.h: Likewise.
3414 * ldexp.c: Likewise.
3415 * ldexp.h: Likewise.
3416 * ldfile.c: Likewise.
3417 * ldfile.h: Likewise.
3418 * ldlang.c: Likewise.
3419 * ldlang.h: Likewise.
3420 * ldmain.c: Likewise.
7bfd51a3
KH
3421 * pe-dll.c: Likewise.
3422
3423 * pe-dll.c: Revert some formatting fixes.
86b1cc60 3424
d643799d
KH
34252000-10-08 Kazu Hirata <kazu@hxi.com>
3426
3427 * pe-dll.c: Fix formatting.
3428
08da4cac
KH
34292000-10-05 Kazu Hirata <kazu@hxi.com>
3430
3431 * ldlang.c: Fix formatting.
3432
c2a94a7a
DD
34332000-10-03 DJ Delorie <dj@redhat.com>
3434
3435 * pe-dll.c (fill_edata): initialize entire block
3436 (make_one): fill in correct section.
3437
8c95a62e
KH
34382000-10-03 Kazu Hirata <kazu@hxi.com>
3439
3440 * ldexp.c: Fix formatting.
3441
486e80e2
DD
34422000-10-02 DJ Delorie <dj@redhat.com>
3443
3444 * emultempl/pe.em (gld_*_after_open): detect case where there two
3445 import libraries for same dll; rename one to ensure proper link
3446 order.
3447
3448 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3449 typo
3450 (generate_edata): fix typo
3451
24dd9f75
HPN
34522000-09-29 Hans-Peter Nilsson <hp@axis.com>
3453
3454 * scripttempl/crisaout.sc (ENTRY): Now __start.
3455 (.text): Add default setting for __start.
3456 Remove CONSTRUCTORS handling.
3457 (/DISCARD/): Add .gnu.warning.*.
3458 * emulparams/crislinux.sh (ENTRY): Now __start.
3459 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3460 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3461 (ENTRY): Now __start.
3462 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3463 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3464
4de2d33d
KH
34652000-09-29 Kazu Hirata <kazu@hxi.com>
3466
5cc18311
KH
3467 * deffile.h: Fix formatting.
3468 * ld.h: Likewise.
3469 * ldcref.c: Likewise.
4de2d33d 3470 * ldctor.c: Likewise.
5cc18311 3471 * ldctor.h: Likewise.
4de2d33d 3472 * ldemul.c: Likewise.
5cc18311 3473 * ldemul.h: Likewise.
4de2d33d 3474 * ldexp.c: Likewise.
5cc18311 3475 * ldexp.h: Likewise.
4de2d33d 3476 * ldfile.c: Likewise.
5cc18311 3477 * ldfile.h: Likewise.
4de2d33d 3478 * ldlang.c: Likewise.
5cc18311
KH
3479 * ldlang.h: Likewise.
3480 * lexsup.c: Likewise.
3481 * mri.c: Likewise.
3482 * pe-dll.c: Likewise.
4de2d33d 3483
45b1f63c
DD
34842000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3485
3486 * pe-dll.c (process_def_file): Uninitialized data wasn't
3487 exported with --export-all-symbols switch.
d952f17a 3488
45b1f63c
DD
34892000-09-28 DJ Delorie <dj@redhat.com>
3490
3491 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3492 noname work properly.
3493
47d89dba
AM
34942000-09-28 Alan Modra <alan@linuxcare.com.au>
3495
3496 * ld.texinfo (HPPA ELF32): New section.
3497
3498 * emultempl/hppaelf.em (group_size): New.
3499 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3500 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3501 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3502 options to prevent abbreviations matching.
3503 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3504 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3505
36bdbeec
NC
35062000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3507
3508 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3509 on the m68*-*-elf target. Make it support COFF input objects.
3510
6d5e62f8
KH
35112000-09-21 Kazu Hirata <kazu@hxi.com>
3512
3513 * ldmain.c: Fix formatting.
3514 * ldmisc.c: Likewise.
3515 * ldver.c: Likewise.
3516 * ldwrite.c: Likewise.
3517
e2eb67d9
AM
35182000-09-21 Alan Modra <alan@linuxcare.com.au>
3519
3520 * ldwrite.c (clone_section): Silence gcc warnings.
3521
b3ea3584
AM
35222000-09-20 Alan Modra <alan@linuxcare.com.au>
3523
3524 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3525 out of memory failure.
3526
3527 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3528 (clone_section): Handle out of memory failures. Rename var to
3529 avoid c++ reserved word.
3530
25f72752
AM
35312000-09-18 Alan Modra <alan@linuxcare.com.au>
3532
3533 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3534 stub_name param to stub_sec_name.
3535 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3536
0752970e
NC
35372000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3538
3539 * emultempl/m68kelf.em: New file.
3540 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3541 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3542 * Makefile.in: Regenerate.
3543
92b7e9d8
AM
35442000-09-15 Alan Modra <alan@linuxcare.com.au>
3545
3546 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3547 only as needed.
3548
9b14b192
NC
35492000-09-13 Nick Clifton <nickc@redhat.com>
3550
3551 * ldmain.c (multiple_definition): Disable relaxation if
3552 multiple symbol definitions are encountered - otherwise the
3553 linker could abort with an assertion failure.
3554
891fa266
NC
35552000-09-10 Nick Clifton <nickc@redhat.com>
3556
3557 * mri.c: Fix formatting.
3558
5d64ca4e
L
35592000-09-07 H.J. Lu <hjl@gnu.org>
3560
3561 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3562 * configure: Rebuild.
3563
dd94604f
L
35642000-09-07 H.J. Lu <hjl@gnu.org>
3565
3566 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3567 * Makefile.in: Rebuild.
3568
71bfc0ae
AM
35692000-09-07 Alan Modra <alan@linuxcare.com.au>
3570
3571 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3572 broken list handling. Create __start_SECNAME and __stop_SECNAME
3573 when no place-holder. Add some comments. Test both SEC_CODE and
3574 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 3575 Handle case where no output section statement created.
71bfc0ae 3576
4a428502
AO
35772000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3578
3579 * configure.tgt (sh-*-linux*): Added.
3580 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3581 * Makefile.in: Rebuilt.
3582 * emulparams/shelf_linux.sh: New file.
3583 * emulparams/shlelf_linux.sh: New file.
3584
f9989030
AM
35852000-09-06 Alan Modra <alan@linuxcare.com.au>
3586
3587 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3588 try shuffling sections when the orphan happens to be the place
3589 holder. Keep count of unique section names generated so we speed
3590 the search for a new name.
3591
58cccadb
AO
35922000-09-06 Alexandre Oliva <aoliva@redhat.com>
3593
3594 * configure: Rebuilt with new libtool.m4.
3595
5b343f5a
NC
35962000-09-05 Nick Clifton <nickc@redhat.com>
3597
3598 * Makefile.in: Regenerate.
3599 * aclocal.m4: Regenerate.
3600 * configure: Regenerate.
3601 * config.in: Regenerate.
3602 * po/ld.pot: Regenerate.
3603
3604 * ldint.texinfo: Remove CVS revision marker - it foils local
3605 comparisons.
3606
3607 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 3608
a854a4a7
AM
36092000-09-05 Alan Modra <alan@linuxcare.com.au>
3610
3231d22e
AM
3611 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3612 to stub section flags.
3613 (hppa_for_each_input_file_wrapper): New.
3614 (hppa_lang_for_each_input_file): New.
3615 (lang_for_each_input_file): Define to call above.
3616 (multi_subspace): New.
3617 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3618 (PARSE_AND_LIST_PROLOGUE): Define.
3619 (PARSE_AND_LIST_LONGOPTS): Define.
3620 (PARSE_AND_LIST_OPTIONS): Define.
3621 (PARSE_AND_LIST_ARGS_CASES): Define.
3622 (hppaelf_finish): Call elf32_hppa_set_gp.
3623 (hppaelf_set_output_arch): Remove.
3624 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3625
3626 * emulparams/hppalinux.sh (ELFSIZE): Define.
3627 (MACHINE): Define.
3628 (OTHER_READONLY_SECTIONS): Define.
3629 (DATA_PLT): Define.
3630 (GENERATE_SHLIB_SCRIPT): Define.
3631
5f992e62
AM
3632 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3633 to const throughout. Change `void *' to `PTR' throughout.
3634 (lang_memory_default): Function is local to file, add `static'.
3635
3636 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3637 (ehppalinux.c): Likewise.
3638 (earmelf.c): Likewise.
3639 (earmelf_linux.c): Likewise.
3640 (earmelf_linux26.c): Likewise.
3641 * Makefile.in: Regenerate.
3642
a854a4a7
AM
3643 * ld.h (ld_config_type): Add unique_orphan_sections.
3644 * lexsup.c (OPTION_UNIQUE): Define.
3645 (ld_options): Add "--unique".
3646 (parse_args): Handle it.
3647 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3648 search for an existing output section if unique_orphan_sections is
3649 set. Make use of bfd_get_unique_section_name rather than
3650 duplicating code here.
3651 * ld.texinfo: Describe --unique.
3652
3653 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3654 optional arg to split-by-file.
3655 (parse_args): Handle them.
3656 * ld.texinfo: Update description of these options.
3657 * ldwrite.c (clone_section): Pass in the section name. Replace
3658 local code with bfd_get_unique_section_name.
3659 (split_sections): Tidy code and comments. Use a list traversal
3660 more appropriate to the list construction. Handle cooked section
3661 sizes. Split when split_by_reloc reached rather than exceeded.
3662 Track section size and split when split_by_file reached. Fix
3663 link_order_tail (even though it's not used).
3664 (ldwrite): Modify condition for calling split_sections to suit
3665 changed split_by_reloc and split_by_file.
3666 * ldmain.c (main): Init config.split_by_reloc and
3667 config.split_by_file to -1.
3668 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3669 Change split_by_file to bfd_size_type.
3670
18e03609
NC
36712000-09-02 Nick Clifton <nickc@redhat.com>
3672
3673 * configure.in: Increase version number to 2.10.91.
3674 * NEWS: Mention new ability to support removal of duplicate DWARF2
3675 debug information.
3676 * configure: Regenerate.
3677 * aclocal.m4: Regenerate.
3678 * config.in: Regenerate.
3679
3a9d486c
NC
36802000-09-02 Daniel Berlin <dberlin@redhat.com>
3681
3682 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3683 sections.
a2b64bed 3684 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
3685 * scripttempl/elfd10v.sc: Ditto.
3686 * scripttempl/elfd30v.sc: Ditto.
3687 * scripttempl/elfi370.sc: Ditto.
3688 * scripttempl/elfm68hc11.sc: Ditto.
3689 * scripttempl/elfm68hc12.sc: Ditto.
3690 * scripttempl/elfi386beos.sc: Ditto.
3691 * scripttempl/v850.sc: Ditto.
50bbae35 3692
ac48eca1
AO
36932000-08-31 Alexandre Oliva <aoliva@redhat.com>
3694
3695 * acinclude.m4: Include libtool and gettext macros from the
3696 top level.
3697 * aclocal.m4, configure: Rebuilt.
3698
c13b1b77
NC
36992000-08-25 Nick Clifton <nickc@redhat.com>
3700
3701 * ldlang.c (open_output): When choosing the target for a
3702 particular endianness, do nothing if the target is not
3703 supported.
3704
dcb0bd0e
L
37052000-08-25 H.J. Lu <hjl@gnu.org>
3706
3707 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3708 check -rpath nor LD_RUN_PATH for cross link.
3709 * ld.texinfo: Document the change.
3710
5bcac8a4
HPN
37112000-08-24 Hans-Peter Nilsson <hp@axis.com>
3712
3713 * NEWS: Mention support for CRIS.
3714
6dd8c765
L
37152000-08-23 H.J. Lu <hjl@gnu.org>
3716
3717 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3718 the current runpath list from bfd_elf_get_runpath_list ()
3719 before search.
3720
ec4eb78a
L
37212000-08-22 H.J. Lu <hjl@gnu.org>
3722
3723 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3724 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3725 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3726 trace_file_tries is non-zero.
3727 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3728 if trace_file_tries is non-zero.
3729
3730 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 3731 * NEWS: Mention it.
ec4eb78a 3732
22b36938
JE
37332000-08-14 Jason Eckhardt <jle@cygnus.com>
3734
3735 * NEWS: Mention i860 support.
3736
d73e9da0
AS
37372000-08-14 Andreas Schwab <schwab@suse.de>
3738
3739 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 3740 syntax.
d73e9da0 3741
9ac4db9c
GK
37422000-08-10 Geoff Keating <geoffk@cygnus.com>
3743
3744 * scripttempl/elf.sc: Add a comment giving the correspondence
3745 between sections, per-datum sections, and linkonce sections. Make
3746 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3747 .sbss2.
3748
165589e4
JE
37492000-08-10 Jason Eckhardt <jle@cygnus.com>
3750
3751 * emulparams/elf32_i860.sh: New file.
3752 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3753 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3754 (eelf32_i860.c): New rule.
3755 * Makefile.in: Regenerate.
3756
345a835d
NC
37572000-08-10 Nick Clifton <nickc@cygnus.com>
3758
3759 * emulparams/mipspe.sh (ENTRY): Add definition.
3760
e374f1d9
NC
37612000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3762
3763 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3764 in error message.
3765
236d5abf
NC
37662000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3767
3768 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3769 the final size of .bss section.
3770 * scripttempl/elfm68hc12.sc: Likewise.
3771
4b209b22
AM
37722000-08-04 Alan Modra <alan@linuxcare.com.au>
3773
3774 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3775 gld${EMULATION_NAME}_parse_args for consistency. Combine
3776 lastoptind and prevoptind vars, and keep track of last optind.
3777 (gld_${EMULATION_NAME}_list_options): Rename to
3778 gld${EMULATION_NAME}_list_options.
3779
28423a68
AM
37802000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3781
3782 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3783 (i586-sco-sysv5uw7.1.0).
3784
b2009ff7
L
37852000-07-27 H.J. Lu <hjl@gnu.org>
3786
3787 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3788 (PARSE_AND_LIST_PROLOGUE): New.
3789 (PARSE_AND_LIST_LONGOPTS): Likewise.
3790 (PARSE_AND_LIST_OPTIONS): Likewise.
3791 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3792 (PARSE_AND_LIST_EPILOGUE): Likewise.
3793
04925e1e
AM
37942000-07-28 Alan Modra <alan@linuxcare.com.au>
3795
41392f03
AM
3796 * emultempl/armelf.em: Elide functions common to elf32.em,
3797 ie. most of the file.
3798 (arm_elf_after_open): New. Do arm specific things then call
3799 gld${EMULATION_NAME}_after_open.
3800 (arm_elf_before_allocation): New. Call
3801 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3802 (PARSE_AND_LIST_PROLOGUE): Define.
3803 (PARSE_AND_LIST_SHORTOPTS): Define.
3804 (PARSE_AND_LIST_LONGOPTS): Define.
3805 (PARSE_AND_LIST_OPTIONS): Define.
3806 (PARSE_AND_LIST_ARGS_CASES): Define.
3807 (LDEMUL_AFTER_OPEN): Define.
3808 (LDEMUL_BEFORE_ALLOCATION): Define.
3809 (LDEMUL_BEFORE_PARSE): Define.
3810 (LDEMUL_FINISH): Define.
3811
3812 * emultempl/hppaelf.em: Similarly zap most of this file.
3813 (hppaelf_add_stub_section): Prototype.
3814 (hppaelf_layaout_sections_again): Prototype.
3815 (hook_in_stub): Prototype.
3816 (LDEMUL_SET_OUTPUT_ARCH): Define.
3817 (LDEMUL_FINISH): Define.
3818 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3819
3820 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3821 (EXTRA_EM_FILE): New.
3822 * emulparams/armelf_linux.sh: Likewise.
3823 * emulparams/armelf_linux26.sh: Likewise.
3824 * emulparams/hppalinux.sh: Likewise.
3825 * emulparams/hppaelf.sh: Likewise.
3826 (NOP): Define.
3827
3828 * emultempl/elf32.em: Fix formatting.
3829 (EXTRA_EM_FILE): Source it.
3830 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3831 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3832 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3833 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3834 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3835 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3836 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3837 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3838 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3839 allow functions in this file to be overridden.
3840 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3841
3842 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3843
04925e1e
AM
3844 * emultempl/elf32.em: Reorganize file.
3845
88cdf297
NC
38462000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3847
3848 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3849 specific option to fit 64-bit executable in the lower
3850 31-bit address range. This is done by changing start
3851 address of .interp (the very first section of executable)
3852 and then setting EF_ALPHA_32BIT elf header flag.
3853
20bccb34
NC
38542000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3855
3856 * emultempl/m68kcoff.em: New file.
3857 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3858 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3859 generic.em.
3860 * Makefile.in: Regenerate.
3861
699845ef
L
38622000-07-20 H.J. Lu <hjl@gnu.org>
3863
3864 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3865 and "disable-new-dtags" to stop getopt from treating -d/-e as
3866 abbreviations for these options.
3867
6c1439be
L
38682000-07-20 H.J. Lu <hjl@gnu.org>
3869
3870 * ld.texinfo: Add documentation for --disable-new-dtags and
3871 --enable-new-dtags.
3872
3873 * ldmain.c (main): Initialize link_info.new_dtags to false.
3874
3875 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3876 --disable-new-dtags and --enable-new-dtags.
3877 (gld_${EMULATION_NAME}_list_options): Likewise.
3878
28c309a2
NC
38792000-07-05 Kenneth Block <krblock@computer.org>
3880
a2b64bed
NC
3881 * lexsup.c: Add optional style to demangle switch
3882 * ld.texinfo: Document optional style to demangle switch.
50bbae35 3883
9d06555c
HPN
38842000-07-20 Hans-Peter Nilsson <hp@axis.com>
3885
3886 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3887 ecrislinux.o.
3888 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3889 Regenerate dependencies.
3890 * Makefile.in: Rebuild.
3891 * configure.tgt (cris-*-*): New target.
3892 * emulparams/crisaout.sh, emulparams/criself.sh,
3893 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3894 * po/POTFILES.in, po/ld.pot: Regenerate.
3895
19e3be22
L
38962000-07-20 H.J. Lu <hjl@gnu.org>
3897
3898 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3899 Print out ignored -z options.
3900
e0ee487b
L
39012000-07-19 H.J. Lu <hjl@gnu.org>
3902
19e3be22
L
3903 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3904 (PARSE_AND_LIST_PROLOGUE): New.
3905 (PARSE_AND_LIST_LONGOPTS): Likewise.
3906 (PARSE_AND_LIST_OPTIONS): Likewise.
3907 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3908
3909 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3910
3911 * lexsup.c (ld_options): Comment out 'z'.
3912 (parse_args): Likewise.
3913
3914 * emultempl/elf32.em: Include "elf/common.h".
3915 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3916 options.
3917 (gld_${EMULATION_NAME}_list_options): Likewise.
3918
3919 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 3920
49e56c49
L
39212000-07-19 H.J. Lu <hjl@gnu.org>
3922
3923 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3924 bfd_elf_set_dt_needed_soname ().
3925
9d68bc82
DD
39262000-07-18 DJ Delorie <dj@cygnus.com>
3927
3928 * pe-dll.c (pe_dll_id_target): check object target name also
3929
53db15ed
HPN
39302000-07-18 Hans-Peter Nilsson <hp@axis.com>
3931
3932 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3933 ${INIT_END} if relocating.
3934 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3935
0ad8cf4c
DD
39362000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3937
a2b64bed 3938 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
3939 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3940 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3941 errors introduced by the old dynamic lib search order.
3942
874c8c99
DD
39432000-07-17 DJ Delorie <dj@cygnus.com>
3944
3945 * pe-dll.c (process_def_file): auto-export data items also
3946 (pe_process_import_defs): also see if _imp_ form needed
3947
5b4cf3f4
DD
39482000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3949
3950 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3951 for dll import libraries
3952
062739d1
NC
39532000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3954
3955 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 3956 gcc 2.95.2 and later.
062739d1 3957
1c64c4ed
NC
39582000-07-11 Kazu Hirata <kazu@hxi.com>
3959
50bbae35
AM
3960 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3961 message.
1c64c4ed 3962
b71e2778
AM
39632000-07-10 Alan Modra <alan@linuxcare.com.au>
3964
3965 * ldemul.h (struct lang_input_statement_struct): Remove forward
3966 declaration.
3967 (struct search_dirs): Likewise.
3968 * ldfile.h (struct lang_input_statement_struct): Likewise.
3969 Protect file from multiple inclusion.
3970 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3971 declaration from macro to file scope.
3972
3973 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3974 * ldgram.y: Likewise here.
3975 * ldlang.c: And here.
3976 * ldmain.c: And here.
3977 * mpw-elfmips.c: And here.
3978 * mpw-eppcmac.c: And here.
3979 * emultempl/aix.em: And here.
3980 * emultempl/armcoff.em: And here.
3981 * emultempl/armelf.em: And here.
3982 * emultempl/armelf_oabi.em: And here.
3983 * emultempl/beos.em: And here.
3984 * emultempl/elf32.em: And here.
3985 * emultempl/hppaelf.em: And here.
3986 * emultempl/linux.em: And here.
3987 * emultempl/lnk960.em: And here.
3988 * emultempl/pe.em: And here.
3989 * emultempl/sunos.em: And here.
3990 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3991 * mpw-idtmips.c: Ditto.
3992 * emultempl/generic.em: Ditto.
3993 * emultempl/gld960.em: Ditto.
3994 * emultempl/gld960c.em: Ditto.
3995 * emultempl/mipsecoff.em: Ditto.
3996 * emultempl/ticoff.em: Ditto.
3997 * emultempl/vanilla.em: Ditto.
3998
3999 * pe-dll.c: Include ldfile.h
4000 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4001
4002 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4003 arguments to bfd_elf32_size_dynamic_sections call.
4004 (gldelf32ebmip_place_orphan): Add missing arguments to
4005 lang_leave_output_section_statement call.
4006
2ef53d66
L
40072000-07-10 H.J. Lu <hjl@gnu.org>
4008
4009 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4010 DLL_SUPPORT.
4011 (strhash): Likewise.
4012 (compute_dll_image_base): Likewise.
4013 (pe_undef_found_sym): Likewise.
4014 (pe_undef_cdecl_match): Likewise.
4015 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4016 argument "arch" with ATTRIBUTE_UNUSED.
4017
9a8cbb09
AM
40182000-07-10 Alan Modra <alan@linuxcare.com.au>
4019
4020 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4021
4022 From Ryan Bradetich <rbradetich@uswest.net>
4023 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 4024
4900fc06
AM
40252000-07-09 Alan Modra <alan@linuxcare.com.au>
4026
4027 Changes to create multiple linker stubs, positioned immediately
4028 before the section where they are required.
4029 * emultempl/hppaelf.em: Include elf32-hppa.h.
4030 (stub_sec, file_chain): Delete.
4031 (hppaelf_create_output_section_statements): Don't make a stub
4032 section here.
4033 (hook_stub_info): New struct.
4034 (hook_in_stub): New function.
4035 (hppaelf_add_stub_section): New function.
4036 (hppaelf_finish): Do nothing for relocateable links. Modify the
4037 call to elf32_hppa_size_stubs. Move code for updating section
4038 layout from here...
4039 (hppaelf_layaout_sections_again): ..to here, a new function.
4040
4041 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4042 broken list handling. Pass in a pointer to the list.
4043 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4044 for above changes.
4045 (hppaelf_before_parse): Prototype.
4046 (hppaelf_set_output_arch): Prototype.
4047 (hppaelf_create_output_section_statements): Prototype.
4048 (hppaelf_delete_padding_statements): Prototype.
4049 (hppaelf_finish): Prototype.
4050
4051 Merge from elf32.em
4052 * emultempl/hppaelf.em: Include ctype.h.
4053 (struct orphan_save): New.
4054 (gld${EMULATION_NAME}_place_orphan): New.
4055 (output_rel_find): New.
4056 (hppaelf_get_script): Update from elf32.em.
4057 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4058 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 4059 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
4060
4061 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4062 ehppalinux.o, sort it. Regenerate dependencies.
4063 (ehppalinux.c): Depend on hppaelf.em
4064 * Makefile.in: Regenerate.
4065
4066 * configure.tgt: targ_emul=hppalinux for hppa*linux
4067
4068 * emulparams/hppalinux.sh: New.
4069 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4070
227aeb07
AM
40712000-07-08 Alan Modra <alan@linuxcare.com.au>
4072
4073 * lexsup.c (parse_args): Copy section name.
4074
28609fd4 40752000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 4076
2ef53d66 4077 * emultempl/pe.em: institute the following search order for
602e90d3
DD
4078 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4079 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4080 static lib (libfoo.a) if none of the above are found.
4081
5f577f7d
DD
40822000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4083
50bbae35 4084 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 4085 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 4086 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
4087 (gld_${EMULATION_NAME}_parse): Handle.
4088 (strhash): New static function.
50bbae35 4089 (compute_dll_image_base): New static function.
5f577f7d
DD
4090 (gld_${EMULATION_NAME}_set_symbols): Use.
4091
9a8cbb09 40922000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
4093
4094 * MAINTAINERS: new
4095
3548145d 40962000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
4097
4098 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4099 * emulparams/elf32btsmip.sh: New file.
4100 * Makefile.am: Add traditional mips target.
4101 * Makefile.in: Rebuild.
4102
67798033
L
41032000-07-01 H.J. Lu <hjl@gnu.org>
4104
4105 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4106 automake to use YLWRAP.
4107 * Makefile.in: Rebuild.
4108
0bdaf48b
AM
41092000-07-01 Alan Modra <alan@linuxcare.com.au>
4110
4111 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4112 (CLEANFILES): Add DEPA.
4113 * Makefile.in: Regenerate.
4114
c9e769c2
TW
41152000-06-30 Timothy Wall <twall@ppc>
4116
4117 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4118 the page in the upper octet of the address.
4119
65aa24b6
NC
41202000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4121
4122 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4123
4667035e
AM
41242000-06-24 Alan Modra <alan@linuxcare.com.au>
4125
4126 * NEWS: arm-elf does --gc-sections too.
4127
1581f8c9
AM
41282000-06-22 Alan Modra <alan@linuxcare.com.au>
4129
4130 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4131 find one.
4132 * Makefile.in: Regenerate.
4133
01580992
L
41342000-06-21 H.J. Lu <hjl@gnu.org>
4135
4136 * Makefile.am: Rebuild dependency.
4137 * Makefile.in: Rebuild.
4138
bbeb2e03
L
41392000-06-20 H.J. Lu <hjl@gnu.org>
4140
4141 * Makefile.am: Rebuild dependency.
4142 * Makefile.in: Rebuild.
4143
74459f0e
TW
41442000-06-20 Timothy Wall <twall@cygnus.com>
4145
4146 * scripttempl/tic54xcoff.sc: New.
4147 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4148 * gen-doc.texi: Add flag for TI COFF.
4149 * ld.texinfo: Add documentation for TI COFF handling switches.
4150 * emultempl/ticoff.em: New. TI COFF handling.
4151 * configure.tgt: Add tic54x target.
4152 * Makefile.am: Add tic54x target.
4153 * Makefile.in: Ditto.
4154
2ab47eed
AM
41552000-06-20 Alan Modra <alan@linuxcare.com.au>
4156
4157 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4158 checking for backslashes.
4159
919e4093
AM
41602000-06-19 Alan Modra <alan@linuxcare.com.au>
4161
4162 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4163
987fd5b4
AM
41642000-06-18 Alan Modra <alan@linuxcare.com.au>
4165
4166 * NEWS: Update list of targets supporting --gc-sections.
4167
4168 * scripttempl/elf.sc: KEEP .eh_frame contents.
4169 * scripttempl/elfd30v.sc: Same here.
4170
60bcf0fa
NC
41712000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4172
4173 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4174 and m68hc11 (elf).
4175 * Makefile.in: Rebuild.
4176 * configure.tgt: Recognize m68hc12 and m68hc11.
4177 * scripttempl/elfm68hc12.sc: New file.
4178 * emulparams/m68hc12elfb: New emulation.
4179 * emulparams/m68hc12elf: New emulation.
4180 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4181 (includes a memory.x script to define the ROM and RAM banks).
4182 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4183 New configuration files for support of Motorola 68hc11
4184
c7c54483
AM
41852000-06-15 Alan Modra <alan@linuxcare.com.au>
4186
4187 * ldmain.c (main): Only change SEC_READONLY for final link.
4188
bcef29e6
L
41892000-06-13 H.J. Lu <hjl@gnu.org>
4190
4191 * configure: Regenerate.
4192
946efd95
DB
41932000-06-08 David O'Brien <obrien@FreeBSD.org>
4194
4195 * configure.in (VERSION): Update to show this is the CVS mainline.
4196
57a6fd07
DB
41972000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4198
4199 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4200 input objects to be ECOFF.
4201 (check_sections): einfo takes %B, not %P, to print a BFD name.
4202
e06cae36
L
42032000-06-05 Michael Matz <matz@ifh.de>
4204
4205 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 4206 version scripts.
e06cae36 4207
d952f17a 4208 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 4209
2f0b56c0
DC
42102000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4211
4212 * emulparams/avr1200.sh (STACK): Define as 0.
4213 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4214 * emulparams/avr4433.sh (STACK): Likewise.
4215 * emulparams/avr44x4.sh (STACK): Likewise.
4216 * emulparams/avr85xx.sh (STACK): Likewise.
4217 * emulparams/avrmega103.sh (STACK): Likewise.
4218 * emulparams/avrmega161.sh (STACK): Likewise.
4219 * emulparams/avrmega603.sh (STACK): Likewise.
4220 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4221 (__stack): Define from ${STACK} for main().
4222
2114f57b
AM
42232000-05-26 Alan Modra <alan@linuxcare.com.au>
4224
4225 * Makefile.am: Update dependencies with "make dep-am"
4226 * Makefile.in: Regenerate.
4227
5af11cab
AM
42282000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4229
4230 * ldmain.c: Include filenames.h.
4231 (set_scripts_dir): Support backslashes in program name.
4232
1f0df59a
NC
42332000-05-22 Igor Shevlyakov <igor@windriver.com>
4234
4235 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
4236 read-only, don't forget to reset SEC_READONLY because it
4237 could be already set.
1f0df59a 4238
176355da
NC
42392000-05-22 Thomas de Lellis <tdel@windriver.com>
4240
50bbae35
AM
4241 * ld.1: Add documentation for new command line option:
4242 --section-start <sectionname>=<sectionorg>
4243 This is a generic version of -Ttext etc. which accepts
4244 any section name as a parameter instead of just text/data/
4245 bss.
4246 * ld.texinfo: More docs.
4247 * NEWS: More docs.
4248 * lexsup.c: (parse_args): Recognize new command line option.
176355da 4249 (ld_options): Add new option.
50bbae35 4250
8c5ff972
L
42512000-05-18 H.J. Lu <hjl@gnu.org>
4252
4253 * lexsup.c (parse_args): `i' == `r', not `q'.
4254
3b16e843 42552000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
4256
4257 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4258
a712da20
NC
42592000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4260 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 4261
a712da20
NC
4262 Add support for '-q' == '--emit-relocs' switch.
4263 * ldmain.c (main): Default to false.
4264 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4265 * NEWS: Describe the emitrelocations switch.
4266 * ld.texinfo: Describe the emitrelocations switch.
4267
690a460e
NC
42682000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4269
a2b64bed 4270 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
4271 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4272 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4273 link options.
50bbae35 4274
c2f1343c
AM
42752000-05-15 David O'Brien <obrien@FreeBSD.org>
4276
4277 * lexsup.c (parse_args): Update the year in the copyright notice.
4278
897083bd
AM
42792000-05-13 Alan Modra <alan@linuxcare.com.au>
4280
4281 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4282 Replace defines with those from intl/libgettext.h to quieten gcc
4283 warnings.
4284
cd4c806a
L
42852000-05-10 H.J. Lu <hjl@gnu.org>
4286
4287 * ldlang.c (open_input_bfds): Don't load the same file within
4288 a group again if the whole archive has been loaded already.
4289
93697284
AM
42902000-05-03 Alan Modra <alan@linuxcare.com.au>
4291
4292 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4293 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4294 strtoul.
4295
3b16e843 42962000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 4297
99a4150f 4298 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 4299
ebd6fc29
JW
4300 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4301 host "ia64-*-linux-gnu*".
4302
a1934524
AM
43032000-04-29 Andreas Jaeger <aj@suse.de>
4304
4305 * ld.h: Correctly check GCC version.
4306
3b16e843 43072000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
4308
4309 * Makefile.am: Add PA64 support. Add missing dependencies for
4310 PA32 elf support.
4311 * Makefile.in: Rebuilt.
4312 * configure.tgt: Add PA64 support (currently disabled).
4313
aea4bd9d
AM
43142000-04-25 Alan Modra <alan@linuxcare.com.au>
4315
4316 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4317 (output_rel_find): New function.
4318 (hold_section, hold_use): Delete.
4319 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4320 hold_interp): Make local to place_orphan.
4321 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4322 rather than place_section to find possible previous use of orphan.
4323 Similarly find the place-holder output sections. Use returned
4324 value from lang_enter_output_section_statement rather than calling
4325 lang_output_section_statement_lookup.
4326 * emultempl/armelf.em: Same here.
4327 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4328
4329 * ldlang.c (lang_enter_output_section_statement): Return output
4330 section statement.
4331 * ldlang.h (lang_enter_output_section_statement): Change
4332 declaration too.
4333
4334 * ldlang.h (lang_output_section_statement): Export it.
4335 * ldlang.c (lang_output_section_statement): Ditto.
4336
2b5fc1f5
NC
43372000-04-24 Nick Clifton <nickc@cygnus.com>
4338
4339 * ld.texinfo (Output Section Data): Add note that section data
4340 commands cannot appear outside of section directives.
4341
d8475ff6
JL
43422000-04-2 Matthew Green <mrg@cygnus.com>
4343
4344 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4345
3b16e843
NC
43462000-04-21 Richard Henderson <rth@cygnus.com>
4347 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
4348
4349 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4350 (eelf64_ia64.c): New rule.
4351 * Makefile.in: Rebuild.
4352 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4353 * emulparams/elf64_ia64.sh: New file.
50bbae35 4354
c9637625
RH
43552000-04-21 Richard Henderson <rth@cygnus.com>
4356
4357 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4358
28ea9521
AM
43592000-04-19 Alan Modra <alan@linuxcare.com.au>
4360
4361 * dep-in.sed: Match space at start of file name, not at end.
4362
20d04697
L
43632000-04-18 H.J. Lu <hjl@gnu.org>
4364
4365 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4366 lang_leave_output_section_statement () after calling
4367 lang_enter_output_section_statement ().
4368 * emultempl/armelf.em: Likewise.
4369
5ba47421
AM
43702000-04-18 Alan Modra <alan@linuxcare.com.au>
4371
4372 * emultempl/elf32.em (struct orphan_save): Add section field.
4373 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4374 better order, and place first orphan section as we did before the
4375 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4376 Don't call make_bfd_section here, let wild_doit do the job for us.
4377 Don't build a statement list when we'll only throw it away.
4378 * emultempl/armelf.em: Ditto.
4379 * emultempl/pe.em: Similarly.
4380
bdbe5705
GK
43812000-04-14 Geoff Keating <geoffk@cygnus.com>
4382
4383 * scripttempl/elfppc.sc: Remove.
4384 * emulparams/elf32ppc.sh: Use elf.sc.
4385 * emulparams/elf32lppc.sh: Use elf.sc.
4386 * emulparams/elf32ppclinux.sh: Use elf.sc.
4387 * emulparams/elf32ppcsim.sh: New file.
4388 * emulparams/elf32lppcsim.sh: New file.
4389 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4390 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4391 * Makefile.in: Regenerate.
4392 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4393
01cc8ff8
AM
43942000-04-14 Alan Modra <alan@linuxcare.com.au>
4395
5ba47421 4396 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 4397 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
4398 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4399 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
4400 Also set all relocateable section start addresses.
4401
6c86c541
GK
44022000-04-13 Geoff Keating <geoffk@cygnus.com>
4403
4404 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4405 Add new BSS_PLT variable for when .plt need not be contained in
4406 the file. Move _etext so that it is also after .fini, and provide
4407 both etext and _etext with a leading underscore. Mark the start
4408 and end of .sbss.
4409
6a345e87
AM
44102000-04-12 Alan Modra <alan@linuxcare.com.au>
4411
4412 * emultempl/elf32.em (struct orphan_save): New.
4413 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4414 hold_interp): Make them struct orphan_save.
4415 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4416 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4417 the end of the relevant section list. Also add associated section
4418 statements to the end of any previous orphan statements.
4419 * emultempl/armelf.em: Similarly.
4420 * emultempl/pe.em: Similarly.
4421
8be86746
AM
44222000-04-11 Alan Modra <alan@linuxcare.com.au>
4423
4424 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4425
3b16e843 44262000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 4427
a2d91340 4428 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 4429 --enable-build-warnings option.
a2d91340
AC
4430 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4431 * Makefile.in, configure: Re-generate.
4432
41b49281
AM
44332000-04-04 Alan Modra <alan@linuxcare.com.au>
4434
8ad3436c
AM
4435 * po/ld.pot: Regenerate.
4436
4437 * lexsup.c (help): Restore translated part of bug string.
4438
41b49281
AM
4439 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4440 (DEP): Quote when passing vars to sub-make. Add warning message
4441 to end.
4442 (DEP1): Rewrite for "gcc -MM".
4443 (CLEANFILES): Add DEP2.
4444 Update dependencies.
4445 * Makefile.in: Regenerate.
4446
c20f4f8c
AM
44472000-04-03 Alan Modra <alan@linuxcare.com.au>
4448
4449 * ld.h: #include "bin-bugs.h"
4450 * lexsup.c (help): Use REPORT_BUGS_TO.
4451
adde6300
AM
44522000-03-27 Denis Chertykov <denisc@overta.ru>
4453
4454 * configure.tgt (avr-*-*): New target support.
4455 * Makefile.am: Likewise.
4456 * scripttempl/elf32avr.sc: New script file.
4457 * emulparams/avr1200.sh: New file.
4458 * emulparams/avr23xx.sh: New file.
4459 * emulparams/avr4433.sh New file.
4460 * emulparams/avr44x4.sh New file.
4461 * emulparams/avr85xx.sh New file.
4462 * emulparams/avrmega103.sh New file.
4463 * emulparams/avrmega161.sh New file.
4464 * emulparams/avrmega603.sh New file.
4465 * Makefile.in: Regenerate.
4466
9282ff41
L
44672000-03-09 Andreas Jaeger <aj@suse.de>
4468
4469 * Makefile.am (check-DEJAGNU): Also unset LANG.
4470 * Makefile.in: Rebuild.
4471
a9998805
ILT
44722000-03-06 Ian Lance Taylor <ian@zembu.com>
4473
4474 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4475 archive.
4476
f9bc20e7
NC
44772000-03-02 H.J. Lu <hjl@gnu.org>
4478
4479 * emulparams/elf32mcore.sh: Include "getopt.h".
4480
4e277b38
ILT
44812000-03-01 Ian Lance Taylor <ian@zembu.com>
4482
4483 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4484
f0c87f88
NC
44852000-03-01 H.J. Lu <hjl@gnu.org>
4486
4487 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4488 * emulparams/shpe.sh: Likewise.
4489
44902000-03-01 Nick Clifton <nickc@cygnus.com>
4491
4492 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4493 to unused parameters.
4494
4495 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4496 functions only used by DLL code.
4497 (_place_orphan): Initialise 'dollar'.
4498
b6f29aaa
L
44992000-03-01 H.J. Lu <hjl@gnu.org>
4500
4501 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4502 indicate if the undefined symbol is a fatal error or not.
4503 Don't delete the output file if "fatal" is false.
4504
af28fce3
L
45052000-02-29 H.J. Lu <hjl@gnu.org>
4506
50bbae35 4507 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
4508 Set LC_COLLATE and LC_ALL to null and export them. It is for
4509 sort which expects the C locale.
4510 Add $(LIBS) to all $(HOSTING_LIBS).
4511 * Makefile.in: Rebuild.
4512
40d109bf
AM
45132000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4514
4515 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4516 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4517 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4518 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4519 find_potential_libraries.
4520
db5be682
JB
45212000-02-28 Jim Blandy <jimb@redhat.com>
4522
4523 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 4524 list entries; the lexer considers commas to be valid part of a
db5be682
JB
4525 filename, so in something like `foo, bar' the comma is considered
4526 part of the first filename, `foo,'.
4527 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4528
3558ff4c
ILT
45292000-02-27 Loren J. Rittle <ljrittle@acm.org>
4530
4531 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4532 host "i[3456]86-*-freebsdelf*".
4533
4eee2681
ILT
45342000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4535
4536 * scripttempl/i386go32.sc: Move misplaced semicolons.
4537
8d75d12d
ILT
45382000-02-25 Ian Lance Taylor <ian@zembu.com>
4539
4540 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4541 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4542 (eelf64hppa.c, ehppaelf.c): Remove targets.
4543 * Makefile.in: Rebuild.
4544
a1836d49
AO
45452000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4546
ad51fb57
AO
4547 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4548 GNU/Linux/sparc, but keep the default as 32.
4549
a1836d49
AO
4550 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4551 it default if sparcv9 or sparc64.
4552
344a211f
NC
45532000-02-24 Nick Clifton <nickc@cygnus.com>
4554
4555 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4556 * Makefile.in: Regenerate.
4557 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4558
4559 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4560 find_potential_libraries.
4561 * ldemul.c (ldemul_find_potential_libraries): New function.
4562
4563 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 4564 exported.
344a211f
NC
4565 (ldfile_open_file): Call ldemul_find_potential_libraries.
4566 * ldfile.h: Add prototype for ldfile_open_file_search.
4567
4568 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4569
4570 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4571 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4572
4573 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4574 (gld_X_find_potential_libraries): New function. Search for
4575 libraries called "*.lib".
4576
a2b64bed 4577 * scripttempl/pe.sc: Add .pdata section.
344a211f 4578
eaba1dd3
RH
45792000-02-23 Richard Henderson <rth@cygnus.com>
4580
4581 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4582 Add and use memory regions.
4583
5b93d8bb
AM
45842000-02-23 Linas Vepstas (linas@linas.org)
4585
4586 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4587
4588 * Makefile.am: Add support for Linux/IBM 370.
4589 * configure.tgt: Likewise.
4590
4591 * Makefile.in: Regenerate.
4592
f6af82bd
AM
45932000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4594
4595 * ldlang.c (print_input_section, print_data_statement,
4596 print_reloc_statement, print_padding_statement, insert_pad,
4597 size_input_section, lang_check_section_addresses,
4598 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 4599 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
4600 (lang_do_assignments): Also change `size' to unsigned.
4601
9e673ad1
RH
46022000-02-16 Richard Henderson <rth@cygnus.com>
4603
4604 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4605
562d3460
TW
46062000-02-16 Timothy Wall <twall@cygnus.com>
4607
4608 * mri.c (mri_draw_tree): Add default LMA region argument to call
4609 to lang_leave_output_section_statement.
4610 * ldlang.h: Update prototypes with LMA region arguments.
4611 * ldlang.c (lang_size_sections): Encapsulate region bounds
4612 checking in os_check_region call.
4613 (os_check_region): New function.
4614 (lang_output_section_statement_lookup): Initialize lma_region.
4615 (lang_leave_output_section_statement): Add LMA region argument.
4616 (lang_leave_overlay): Ditto.
4617 * ldgram.y: Handle LMA region syntax.
4618 * ld.texinfo (Output Section Description): Describe LMA region usage.
4619 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 4620 lma region in call to lang_leave_output_section_statement.
562d3460 4621 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 4622 lma region in call to lang_leave_output_section_statement.
562d3460 4623 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 4624 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
4625
4626
9e4ed18c
TW
46272000-02-04 Timothy Wall <twall@redhat.com>
4628
4629 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4630 octets when calculating section end addresses.
4631
32edc927
TW
46322000-02-04 Timothy Wall <twall@redhat.com>
4633
4634 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4635
4cbfc3ac
TW
46362000-02-03 Timothy Wall <twall@redhat.com>
4637
a2b64bed 4638 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 4639 octet count.
a2b64bed 4640 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
4641 print_reloc_statement, print_padding_statement): Print target
4642 address values and section sizes as bytes, not octets.
4643 (insert_pad) Calculate padding size in octets, and adjust "dot"
4644 by bytes.
4645 (size_input_section) Always adjust "dot" by bytes, not octets.
4646 (lang_check_section_addresses, lang_do_assignments) Adjust
4647 "dot" by bytes, not octets. Use the larger of the directive size
4648 or octets_per_byte for the number of octets actually allocated in
4649 the output section.
4650 (lang_set_startof) Make sure STARTOF returns a target address.
4651 (lang_one_common) Record size changes in octets.
4652 (lang_abs_symbol_at_end_of) Section end symbol's value is
4653 recorded in target bytes.
68b2fc7a 4654 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4cbfc3ac 4655 to be clear about behavior when an octet is smaller than one byte.
50bbae35 4656
305c7206
AM
46572000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4658
4659 * ldcref.c (output_cref): Don't pass message strings to printf
4660 as format arg.
4661 Update copyright.
4662
4663 * ldmisc.c (vfinfo): Same here.
4664 Update copyright.
4665
e1c47aa4
AM
46662000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4667
4668 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4669 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4670 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4671 Add missing NULL initialisers, and comments.
4672
4673 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4674
13392b77
NC
46752000-01-21 Nick Clifton <nickc@cygnus.com>
4676
4677 * ldlang.c (lang_size_sections): Fix typo in comment.
4678
cce4c4c5
NC
46792000-01-18 H.J. Lu <hjl@gnu.org>
4680
4681 * ldlang.c (lang_size_sections): Also update the current
4682 address of a region if the SEC_NEVER_LOAD bit is not set.
4683
0decc840
NC
46842000-01-10 Philip Blundell <pb@futuretv.com>
4685
4686 * configure.tgt (arm*-*-conix*): New target.
4687
4e53152f
NC
46882000-01-07 Nick Clifton <nickc@cygnus.com>
4689
4690 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
4691 line switches with -Wl, (or whatever is appropriate) if it is
4692 being invoked by a comnpiler driver program.
50bbae35 4693 Fix description of the behaviour of the -n command line switch.
4e53152f 4694
3b16e843 46952000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
4696
4697 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4698 (name_list): New.
4699 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4700 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4701 (exclude_name_list): New.
4702 ldlang.c (walk_wild_section): Support list of excluded files.
4703 (print_wild_statement): Likewise.
4704 (lang_add_wild): Likewise.
4705 * ldlang.h (lang_wild_statement_type): Likewise.
4706 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 4707
5aaace27
NC
47082000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4709
870df5dc
NC
4710 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4711 (process_def_file): Use.
4712 (pe_dll_compat_implib): New variable.
4713 (make_one): Use.
50bbae35 4714
870df5dc
NC
4715 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4716 pe_dll_compat_implib.
50bbae35
AM
4717
4718 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
4719 compat-implib options.
4720 (gld_${EMULATION_NAME}_list_options): List new options.
4721 (gld_${EMULATION_NAME}_parse_args): Handle.
4722
50bbae35 4723 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 4724 dll.
50bbae35
AM
4725
4726 * deffilep.y (opt_name): Allow "." in name.
5aaace27 4727
2f6d2f85 4728For older changes see ChangeLog-9899
252b5132
RH
4729\f
4730Local Variables:
4731mode: change-log
4732left-margin: 8
4733fill-column: 74
4734version-control: never
4735End:
This page took 0.390481 seconds and 4 git commands to generate.