* itbl-lex.l: Use #include <> for generated headers.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
a8927cfd
JJ
12002-10-23 Jakub Jelinek <jakub@redhat.com>
2
3 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
4 sections into .rel{,a}.dyn.
5
63fd3b82
NC
62002-10-23 Nick Clifton <nickc@redhat.com>
7
8 * lexsup.c (OPTION_NO_OMAGIC): Define.
9 (ld_options): Add "no-omagic" option.
10 (parse_args): Parse --no-omagic.
11 * ld.texinfo: Document --no-omagic.
12 * NEWS: Mention new option.
13
36379167
NC
142002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
15
16 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
17 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
18
3ffe58d9
AO
192002-10-22 Alexandre Oliva <aoliva@redhat.com>
20
21 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
22 emulation name. Set LIB_PATH only for native tools, and
23 search the ABI-specific versions of NATIVE_LIB_DIRS before the
24 .../lib variants, not instead of them. Mostly copied from...
25 * emulparams/elf32ppc.sh: ... here. Fixed typo.
26 * emulparams/elf64bmip-defs.sh: Backed out.
27 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
28 * emulparams/elf64btsmip.sh: Likewise.
29 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
30 TEXT_DYNAMIC): Removed.
31
e316b3a0
AO
322002-10-17 Alexandre Oliva <aoliva@redhat.com>
33
34 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
35 (GENERATE_SHLIB_SCRIPT): Set to yes.
36 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
37 * emulparams/elf32bmipn32.sh: here.
38 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
39 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
40 * emulparams/elf64bmip-defs.sh: New file. Extend
41 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
42 * emulparams/elf64bmip.sh: Bring in definitions from
43 elf64bmip-defs.sh.
44 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
45 settings.
46 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
47 * emulparams/elf64btsmip.sh: Bring in definitions from
48 elf64bmip-defs.sh.
49 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
50 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
51
f52d1d64
JJ
522002-10-16 Jakub Jelinek <jakub@redhat.com>
53
54 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
55 (s390-*-linux*): Add elf64_s390 emulation if want64.
56 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
57 genscript.sh changes.
58 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
59 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
60
03bdc404
AM
612002-10-15 Alan Modra <amodra@bigpond.net.au>
62
63 * ldlang.c (load_symbols): Revert last change.
64
c6db2f05
AM
652002-10-14 Alan Modra <amodra@bigpond.net.au>
66
7c519c12
AM
67 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
68 just_syms_flag.
69 (lang_reasonable_defaults): Don't compare against false.
70 (size_input_section): Likewise.
71 (lang_size_sections_1): Likewise.
72 (lang_do_assignments): Likewise.
73 (lang_add_output): Likewise.
74
c6db2f05
AM
75 * Makefile.am: Run "make dep-am".
76 * Makefile.in: Regenerate.
77 * ldver.c: #include "bfdver.h".
78
e1026ffb
SC
792002-10-13 Stephane Carrez <stcarrez@nerim.fr>
80
81 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
82 .finiN section.
83 * scripttempl/elfm68hc12.sc: Likewise.
84
2d801b0f
AM
852002-10-11 Alan Modra <amodra@bigpond.net.au>
86
fe213ce2
AM
87 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
88
2d801b0f
AM
89 * ldgram.y (memory_spec): Provide empty action.
90 (section <NAME>): Likewise.
91
599917b8
JJ
922002-10-10 Jakub Jelinek <jakub@redhat.com>
93
94 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
95 they have OUTPUT_FORMAT not matching actual output format.
96 * ldlang.c (lang_get_output_target): New function.
97 (open_output): Use it.
98 * ldlang.h (lang_get_output_target): New prototype.
99
24cdb50a
AM
1002002-10-10 Alan Modra <amodra@bigpond.net.au>
101
102 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
103 when orphan is .rel, .rela when orphan is .rela.
104 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
105 first. Remove outsecname var.
106
a2b3c630
SC
1072002-10-09 Richard Shann <richard.shann@superh.com>
108 Stephen Clarke <stephen.clarke@superh.com>
109
110 * Makefile.am: Add eshelf32_linux.o and
111 eshlelf32_linux.o, new emulations for sh64 Linux.
112 * Makefile.in: Regenerate.
113 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
114 * emulparams/shelf32_linux.sh: New file.
115 * emulparams/shlelf32_linux.sh: New file.
7c519c12 116
c04c9586
L
1172002-10-08 H.J. Lu <hjl@gnu.org>
118
119 * ldlang.c (lang_file_exist): Removed.
120 (new_afile): Revert the last change.
121 * ldlang.h (lang_file_exist): Removed.
122 * lexsup.c (parse_args): Revert the last change.
123
39cebe23
NC
1242002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
125
126 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
127 auto-import symbols.
128 (make_one): Create _nm_<symbol> for data only.
129
53b2a62f
NC
1302002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
131
132 * ldlang.c (lang_file_exist): New function.
7c519c12 133 (new_afile): Abort if the filename to be added matches the linker
53b2a62f
NC
134 output filename.
135 * ldlang.h: Add prototype for lang_file_exist.
136 * lexsup.c (parse_args): Abort if the output filename matches
137 one of the input filenames.
138
a86a09cc
AM
1392002-10-02 Alan Modra <amodra@bigpond.net.au>
140
141 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
142
ba493122
AM
1432002-09-30 Alan Modra <amodra@bigpond.net.au>
144
1bf0a4d9
AM
145 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
146 * scripttempl/elfm68hc11.sc: Likewise.
147 * scripttempl/elfm68hc12.sc: Likewise.
148
ba493122
AM
149 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
150 reloc sections just before .rel.plt/.rela.plt.
151 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
152 Only put loadable reloc sections in hold_rel.
153
fdb9132d
L
1542002-09-29 H.J. Lu <hjl@gnu.org>
155
42f98619 156 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
fdb9132d 157
ff326826
DJ
1582002-09-25 Daniel Jacobowitz <drow@mvista.com>
159
160 From "Anita Kulkarni" <AnitaK@kpit.com>
161 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
162 sections.
163
0ae1cf52
AM
1642002-09-25 Alan Modra <amodra@bigpond.net.au>
165
1ddd7b13
AM
166 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
167 TARGET_PAGE_SIZE.
168 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
169 SEGMENT_SIZE alignment.
170 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
171 (SEGMENT_SIZE): Define.
172
0ae1cf52
AM
173 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
174 (fold_binary): Correct abs - non-abs case.
175 (fold_trinary): New. Split out from exp_fold_tree.
176
06143382
AM
1772002-09-24 Alan Modra <amodra@bigpond.net.au>
178
179 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
180 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
181 for start of .data, instead align up to 256M boundary.
182 * scripttempl/aix.sc: Likewise.
183
8e616ecc
DD
1842002-09-22 Mark Elbrecht <snowball3@softhome.net>
185
186 * scripttempl/i386go32.sc: Handle bss unique sections.
187
5cfb2bb2
AM
1882002-09-21 Alan Modra <amodra@bigpond.net.au>
189
190 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
191
dd2e0905
SC
1922002-09-17 Stan Cox <scox@redhat.com>
193
194 * emulparams/elf32bmipn32-defs.sh: New file.
195 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
196 * emulparams/elf32btsmipn32.sh: Likewise.
197 * emulparams/elf64bmip.sh: Likewise.
198 * emulparams/elf64btsmip.sh: Likewise.
199
4ada7262
DB
2002002-09-16 Bruno Haible <bruno@clisp.org>
201
202 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
203 elf32-i386-freebsd.
204 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
205 elf64-alpha-freebsd.
206
e09f4395
NC
2072002-09-11 Nick Clifton <nickc@redhat.com>
208
004d9caf
NC
209 * NEWS: New TI port supports both C4x and C3x series of DSPs.
210
e09f4395
NC
211 * po/tr.po: Updated Turkish translation.
212
004d9caf 2132002-09-06 Jeffrey A Law (law@redhat.com)
0b3a6a28 214
7c519c12 215 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
0b3a6a28 216
3e369e96
NC
2172002-09-02 Nick Clifton <nickc@redhat.com>
218
67010b46
NC
219 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
220 __ep.
221 * emulparams/v850.sh (TEMPLATE_NAME): Define.
3e369e96 222
5435462c
NC
2232002-08-30 Nick Clifton <nickc@redhat.com>
224
225 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
226 used. Change INSN to start at 0x01000000 and extend for
227 256K (ignoring holes). Start the STACK on a word aligned
228 boundary.
7c519c12 229 (.rodata): Start it at the READONLY_START_ADDR.
5435462c 230
5c368657
AM
2312002-08-30 Alan Modra <amodra@bigpond.net.au>
232
233 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
234
026df7c5
NC
2352002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
236
237 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
238 added makefile targets for this file.
239 * Makefile.in: Regenerate.
240 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
241 * NEWS: Mention new port.
242
2432002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
244
245 * emulparams/tic3xcoff.sh: New file.
246 * emulparams/tic4xcoff.sh: New file.
247 * scripttempl/tic3xcoff.sc: New file.
248 * scripttempl/tic4xcoff.sc: New file.
249
c89e8944
AM
2502002-08-28 Alan Modra <amodra@bigpond.net.au>
251
252 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
253 strtoul and strtoull with bfd_scan_vma.
254 (gld${EMULATION_NAME}_read_file): Likewise.
255
6459ecfa
AM
2562002-08-28 Alan Modra <amodra@bigpond.net.au>
257
258 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
259
ad5211be
NC
2602002-08-27 Egor Duda <deo@logos-m.ru>
261
262 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
263 Add symbols for application to access them.
264
88f7bcd5
NC
2652002-08-27 Nick Clifton <nickc@redhat.com>
266
267 * emultempl/armelf.em: Revert this patch, it is not needed.
7c519c12 268
88f7bcd5
NC
269 2002-08-22 Adam Nemet <anemet@lnxw.com>
270
8e523c23 2712002-08-20 Dan Kegel <dank@kegel.com>
7c519c12 272
8e523c23
NC
273 * configure.in: added --with-lib-path argument to ld's configure
274 to set LIB_PATH.
275 * ld/NEWS: Document new switch.
276 * ld/README: Mention new switch.
277 * configure: Regenerate.
278 * Makefile.in: Regenerate.
7c519c12 279
8e523c23
NC
280 Based on this patch:
281 2001-04-25 Christopher Faylor <cgf@cygnus.com>
282
283 * Makefile.in (LIB_PATH): Make configurable.
284 (GENSCRIPTS): Set LIB_PATH in environment.
285 * configure.in: Substitute LIB_PATH.
286
d9a7f7ab
NC
2872002-08-22 Adam Nemet <anemet@lnxw.com>
288
289 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
290 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
291 depending on the type of the function.
292 (arm_elf_convert_thumb_symbol_to_address): New function.
293
ed71e111
NC
2942002-08-22 Graeme Peterson <gp@qnx.com>
295
296 * Makefile.am: Add esh{l}elf_nto.o files.
297 * Makefile.in: Regenerate.
298 * configure.tgt: Add support for sh-**-nto* targets.
299 * emulparams/shelf_nto.sh: New file.
300 * emulparams/shlelf_nto.sh: New file.
301
7abb6dea
AM
3022002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
303
304 * ldlang.c (offsetof): Define if not defined.
305
e9229007
L
3062002-08-14 H.J. Lu <hjl@gnu.org>
307
308 * configure.tgt: Always enable 64bit emulations for 32bit
309 Linux/mips.
310
c553bb91
AM
3112002-08-13 Alan Modra <amodra@bigpond.net.au>
312
313 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
314 (MAXPAGESIZE): Set to 1.
315
316 * ld.h (ALIGN_N): Delete.
317 * ldexp.h (align_n): Declare.
318 * ldexp.c (align_n): New function.
319 (fold_binary): Use align_n instead of ALIGN_N.
320 (exp_fold_tree): Likewise.
321 * ldlang.c (lang_size_sections_1): Likewise.
322 (lang_one_common): Likewise.
3c6706bb 323 * ld.texinfo (ALIGN): Remove power of 2 restriction.
c553bb91 324
59bc061d
NC
3252002-07-31 Graeme Peterson <gp@qnx.com>
326
327 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
328 * Makefile.am: Add eelf32{l}ppcnto.o files.
329 * Makefile.in: Regenerate.
330 * emulparams/elf32lppcnto.sh: New file.
331 * emulparams/elf32ppcnto.sh: New file.
332
31941635
L
3332002-08-07 H.J. Lu <hjl@gnu.org>
334
335 * ld.texinfo: Document --no-undefined-version.
336
337 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
338 `script.' fields to 0.
339
340 * ldmain.c (main): Initialize the allow_undefined_version to
341 true.
342
343 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
344 (ld_options): Add --no-undefined-version.
345 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
346
2004afbc
NC
3472002-08-07 Nick Clifton <nickc@redhat.com>
348
349 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
350 an interworking bfd if there are input bfds. (107501)
351
7fc44b9c
AM
3522002-08-06 Alan Modra <amodra@bigpond.net.au>
353
354 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
355 2002-05-10 change.
356
24a1ba0f
NC
3572002-08-01 Nick Clifton <nickc@redhat.com>
358
359 * emulparams/armelf.sh: Revert previous delta.
360 * scripttempl/elf.sc: Revert previous delta.
361
ebc6e014
L
3622002-07-31 H.J. Lu <hjl@gnu.org>
363
364 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
365 --enable-64-bit-bfd.
366
39a2a3eb
L
3672002-07-31 H.J. Lu <hjl@gnu.org>
368
369 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
370 64bit BFD is selected.
371
a0dfa6a8
L
3722002-07-31 H.J. Lu <hjl@gnu.org>
373
374 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
375 if 64bit BFD is selected.
376
f7c33884
NC
3772002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
378
379 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
380 link_info.common_skip_ar_aymbols.
381 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
382
383 * ldmain.c (main): Initialize new field
384 link_info.common_skip_ar_aymbols.
385
8f64befb
NC
3862002-07-31 Adam Nemet <anemet@lnxw.com>
387
388 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
389 to .plt.thumb.
390 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
391 used.
392
500800ca
NC
3932002-07-31 Nick Clifton <nickc@redhat.com>
394
395 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
396 of the PDP-11 and 2.11BSD a.out support.
397
7808a785
TS
3982002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
399
400 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
401 for n32 ABI support.
402 * Makefile.in: Regenerate.
403 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
404 n32 ABI emulations for these 64 bit targets.
405 * emulparams/elf32bmipn32.sh: Expand comment.
406 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
407 n32 ABI.
408 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
409
7e392df6
NC
4102002-07-30 Graeme Peterson <gp@qnx.com>
411
412 * configure.tgt: Add support for arm-*-nto target.
413 * Makefile.am: Add earmnto.o file.
414 * Makefile.in: Regenerate.
415 * NEWS: Mention port of ARM support to QNX.
416 * emulparams/armnto.sh: New file.
417
704afa60
JJ
4182002-07-30 Jakub Jelinek <jakub@redhat.com>
419
420 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
421 for relocatable link.
422 (lang_size_sections_1): Don't make .tbss zero size for relocatable
423 link.
424
7dcd22c2
BS
4252002-07-26 Bernd Schmidt <bernds@redhat.com>
426
427 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
428 (STACK_ADDR): New.
429
219576a4
NC
4302002-07-25 Nick Clifton <nickc@redhat.com>
431
432 * po/sv.po: Updated Swedish translation.
433 * po/es.po: Updated Spanish translation.
434 * po/fr.po: Updated French translation.
435
ff3063f5
NC
4362002-07-24 Nick Clifton <nickc@redhat.com>
437
438 * po/sv.po: Updated Swedish translation.
439 * po/es.po: Updated Spanish translation.
440
0461a601
NC
4412002-07-23 Nick Clifton <nickc@redhat.com>
442
ff3063f5 443 * po/fr.po: Updated French translation.
0461a601 444
25844aae
AM
4452002-07-20 Alan Modra <amodra@bigpond.net.au>
446
447 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
448 bomb on /DISCARD/ input section.
449 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
450 * emultempl/mmo.em (mmo_place_orphan): Likewise.
451
3595bd6e
HPN
4522002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
453
454 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
455 output section.
456
cf88bb9f
NC
4572002-07-16 Denis Chertykov <denisc@overta.ru>
458 Nick Clifton <nickc@redhat.com>
459 Frank Ch. Eigler <fche@redhat.com>
460 John Healy <jhealy@redhat.com>
461
462 * configure.tgt: Add support for ip2k-elf.
463 * Makefile.am: Add support for ip2k-elf.
464 * Makefile.in: Regenerate.
465 * emulparams/elf32ip2k.sh: New file.
466 * scripttempl/ip2k.sc: New file
467 * NEWS: Mention support for new port.
468
2cbb2eef
NC
4692002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
470
471 * NEWS: Add 'Changes in 2.13'.
472
96a94295
L
4732002-07-14 H.J. Lu <hjl@gnu.org>
474
475 * ld.texinfo: Document a .symver takes precedence over a
476 version script.
477
120d20f2
AM
4782002-07-12 Alan Modra <amodra@bigpond.net.au>
479
480 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
481 (COMMONPAGESIZE): Define.
482
0d2ddeb2
AM
4832002-07-09 Alan Modra <amodra@bigpond.net.au>
484
485 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
486
554690ed
AM
4872002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
488
489 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
490 powerpc-*-openbsd* and sparc64-*-openbsd*.
491 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
492 * Makefile.in: Regenerate.
493 * emulparams/hppaobsd.sh: New file.
494
34786259
AM
4952002-07-05 Alan Modra <amodra@bigpond.net.au>
496
497 * ldlang.c (print_wild_statement): Fix output formatting.
498
4bd5a393
AM
4992002-07-04 Alan Modra <amodra@bigpond.net.au>
500
501 * ldlang.c: (strip_excluded_output_sections): New function.
502 (lang_process): Call it.
503 (lang_size_sections_1): Revert 2002-06-10 change.
504
ce4f7385
AM
5052002-07-03 Alan Modra <amodra@bigpond.net.au>
506
507 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
508 Run "make dep-am".
509 * Makefile.in: Regenerate.
510
b7b482a3
AM
5112002-07-02 Alan Modra <amodra@bigpond.net.au>
512
71daf8b4
AM
513 * ldfile.c (ldfile_try_open_bfd): Formatting.
514
b7b482a3
AM
515 * ldmisc.c (demangle): Move so that it doesn't intrude between
516 vfinfo comment and body. Add comment.
517
29e2951e
AM
5182002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
519
520 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
521
e3e942e9
AM
5222002-07-01 Alan Modra <amodra@bigpond.net.au>
523
524 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
525 * ldlang.c (entry_sym): Likewise.
526 (ldlang_undef_chain_list_type): Likewise.
527 (lang_finish): Adjust references to entry_symbol.
528 (lang_add_entry): Likewise.
529 (lang_gc_sections): Use link_info.gc_sym_list.
530 (lang_process): Set link_info.gc_sym_list.
531 * ldlex.l: Include bfdlink.h.
532 * ldmain.c (main): Init link_info.gc_sym_list.
533 * emultempl/aix.em: Adjust references to entry_symbol.
534 * emultempl/armcoff.em: Likewise.
535 * emultempl/armelf.em: Likewise.
536 * emultempl/pe.em: Likewise.
537 * emultempl/ppc64elf.em (ppc_after_open): New function.
538 (LDEMUL_AFTER_OPEN): Define.
539 * emulparams/elf64ppc.sh: KEEP .opd sections.
540
a66c0f2c
SC
5412002-06-29 Stephane Carrez <stcarrez@nerim.fr>
542
543 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
544 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
545 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
546 (EEPROM_START_ADDR): Define.
547 (EEPROM_MEMORY): Define.
548 * emulparams/m68hc12elf.sh: Likewise.
549 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
550 section to put soft registers in .page0.
551 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
552
2b67cf00
JL
5532002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
554
555 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
556 section. Add ${RELOCATING-0}.
557
219576a4 5582002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
164c4054
JR
559
560 * emulparams/shelf.sh (STACK_ADDR): Don't define.
561 (OTHER_SECTIONS): Define.
562 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
563 (OTHER_SECTIONS): Undef.
564
fc28fbc2
AM
5652002-06-26 Alan Modra <amodra@bigpond.net.au>
566
567 * ldmisc.c (demangle): Restore dots stripped from sym name.
568
a13a0de8
L
5692002-06-25 H.J. Lu <hjl@gnu.org>
570
571 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
572 * Makefile.in: Regenerated.
573
b553b183
NC
5742002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
575
576 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
577 the size of attached object files, to allow make the object files
578 available via FTP or HTTP and to mention that the mail will be
579 sent to a mailing list.
580
2755afba
NC
5812002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
582
583 * ld/configure.host (romp): Drop support.
584
7d0a848e
CD
5852002-06-18 Chris Demetriou <cgd@broadcom.com>
586
587 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
588 section flags for SEC_DATA, rather than for SEC_CODE being unset.
589
8505f884
CD
5902002-06-18 Chris Demetriou <cgd@broadcom.com>
591
592 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
593 format specifier used to print BFD name.
594
7d553a40
DB
5952002-06-18 Dave Brolley <brolley@redhat.com>
596
597 From Catherine Moore, Michael Meissner, Jim Blandy:
598 * emulparams/elf32frv.sh: New file.
599 * configure.tgt: Support frv-*-*.
600 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
601 (eelf32frv.c): New target.
602
82434356
TR
6032002-06-17 Tom Rix <trix@redhat.com>
604
a59f3d35 605 * emultempl/elf32.em: gld*_get_script: Check for
82434356
TR
606 GENERATE_COMBRELOC_SCRIPT.
607 * scripttempl/elfd10v.sc : Fix STACK and INSN.
608 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
609
219576a4 6102002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
5d9b5481
JR
611
612 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
613
c4bb8067
L
6142002-06-12 H.J. Lu <hjl@gnu.org>
615
616 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
617 false if xvec doesn't match.
618
e052cfbe
RS
6192002-06-10 Richard Sandiford <rsandifo@redhat.com>
620
621 * ldlang.c (lang_size_sections_1): Skip removed output sections.
622
4da711b1
AM
6232002-06-08 Alan Modra <amodra@bigpond.net.au>
624
625 * ldexp.c: Replace CONST with const.
626 * ldfile.c: Likewise.
627 * ldfile.h: Likewise.
628 * ldlex.l: Likewise.
629 * mri.c: Likewise.
630 * pe-dll.h: Likewise.
631
eb95bb9a
AM
6322002-06-07 Alan Modra <amodra@bigpond.net.au>
633
634 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
635
e0076ab3
NC
6362002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
637
638 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
639 to -1 == implicit enable.
640 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
641 initialize link_info.pei386_auto_import to -1 == implicit
642 enable.
643 (gld_${EMULATION_NAME}_parse_args): When processing
644 --enable-auto-import and --disable-auto-import options, use
645 '1' and '0' instead of 'true' and 'false'.
646 (pe_find_data_imports): Only issue message about auto-import
647 when the feature is implicitly enabled. Downgrade message to
648 informational instead of warning.
649
f13a5424
AM
6502002-06-07 Alan Modra <amodra@bigpond.net.au>
651
652 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
653
1abffd82
JL
6542002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
655
656 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
657 HOSTING_CRT0 and HOSTING_LIBS.
658
e0076ab3 6592002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
7a33bc10
JR
660
661 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
662
4a5e698d
JT
6632002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
664
665 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
666 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
667
1d475d82
AM
6682002-06-05 Alan Modra <amodra@bigpond.net.au>
669
670 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
671 SEC_EXCLUDE sections when doing a relocatable link.
672
5b0e55b6
JT
6732002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
674
675 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
676 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
677 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
678 (eshlelf64_nbsd.c): New rules.
679 * Makefile.in: Regenerate.
680 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
681 (sh64-*-netbsd*): New targets.
682 * emulparams/shelf32_nbsd.sh: New file.
683 * emulparams/shelf64_nbsd.sh: New file.
684 * emulparams/shlelf32_nbsd.sh: New file.
685 * emulparams/shlelf64_nbsd.sh: New file.
686
9ad85d9b
AM
6872002-06-04 Alan Modra <amodra@bigpond.net.au>
688
689 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
690
0c9b4fee
MM
6912002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
692
693 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
694 C++ constructors/destructors, loosely based on the m68hc11 port.
695
2c538bde
AM
6962002-05-31 Alan Modra <amodra@bigpond.net.au>
697
698 * Makefile.in: Regenerate.
699 * aclocal.m4: Regenerate.
700 * config.in: Regenerate.
701 * configure: Regenerate.
702
a0cb91c6
AM
7032002-05-31 Graeme Peterson <gp@qnx.com>
704
705 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
706 (ei386nto.c): Add rule.
707 * Makefile.in: Regenerate.
708 * configure.tgt: Add i[3456]86-*-nto-qnx*.
709 * emulparams/i386nto.sh: New file.
710
37020578
JT
7112002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
712
713 * NEWS: Add entry for VAX ELF support.
714
ab68f3e0 7152002-05-29 Matt Thomas <matt@3am-software.com>
a59f3d35 716 Jason Thorpe <thorpej@wasabisystems.com>
ab68f3e0
JT
717
718 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
719 (eelf32vax.c)
720 (evaxnbsd.c): New rules.
721 * Makefile.in: Regenerate.
722 * configure.tgt (vax-*-netbsdelf*)
723 (vax-*-netbsdaout*)
724 (vax-*-netbsd*): New targets.
725 * emulparams/elf32vax.sh: New file.
726 * emulparams/vaxnbsd.sh: New file.
727
8afb0e02
NC
7282002-05-29 Adam Nemet <anemet@lnxw.com>
729
730 * emultempl/armelf.em (arm_elf_after_open): Don't determine
731 bfd_for_interwork, instead add glue sections to each input bfd.
732 (bfd_for_interwork): New global.
733 (arm_elf_set_bfd_for_interworking): New function.
734 (arm_elf_before_allocation): Use it.
735
d172d4ba
NC
7362002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
737
738 * Makefile.am: Add DLX make target.
739 * configure.tgt: Add DLX configuration.
740 * Makefile.in: Regenerate.
741 * emulparams/elf32_dlx.sh: New file
742 * scripttempl/dlx.sc: New file
743
b4477fa8
NC
7442002-05-27 Per Lundberg <per@caleb.dnsalias.org>
745
746 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
747 * Makefile.in: Regenerate.
748 * emulparams/elf_chaos.sh: Use elf_chaos script.
749 * scripttempl/elf_chaos.sc: New file.
750
ee3cc2e2
RS
7512002-05-27 Richard Sandiford <rsandifo@redhat.com>
752
753 * ldlang.c (lang_size_sections_1): Move check for conflicting load
754 addresses and regions from here...
755 (lang_get_regions): ...to this new function.
756 (lang_leave_output_section_statement): Use lang_get_regions.
757 (lang_leave_overlay): Likewise.
758 * mri.c (mri_draw_tree): Pass null as last argument to
759 lang_leave_output_section_statement.
760 * emultempl/elf32.em (gld*_place_orphan): Likewise.
761 * emultempl/mmo.em (mmo_place_orphan): Likewise.
762 * emultempl/pe.em (gld*_place_orphan): Likewise.
763
aa501e5c
JT
7642002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
765
766 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
767
658957db
KH
7682002-05-25 Kazu Hirata <kazu@cs.umass.edu>
769
770 * ldemul.c: Fix formatting.
771 * ldfile.c: Likewise.
772 * pe-dll.c: Likewise.
773 * pe-dll.h: Likewise.
774
3511b595
AM
7752002-05-25 Alan Modra <amodra@bigpond.net.au>
776
0d6d936f
AM
777 * ldlang.c (lang_process): Formatting, grammar.
778
3511b595
AM
779 * ldlex.l: Use #include "" instead of <> for local header files.
780
436e8db0
NC
7812002-05-24 TAMURA Kent <kent@netbsd.org>
782
783 * configure.tgt: Add a target for i386-netbsdpe.
784
13ae64f3
JJ
7852002-05-23 Jakub Jelinek <jakub@redhat.com>
786
787 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
788 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
789 output section if necessary. Handle .tbss.
790 (lang_size_sections): Clear _raw_size for .tbss section
791 (it allocates space in PT_TLS segment only).
792 * ldwrite.c (build_link_order): Build link order for .tbss too.
793
68b2fc7a
AM
7942002-05-23 Alan Modra <amodra@bigpond.net.au>
795
796 * configure.in: Correct spelling of AC_PREREQ.
797
70b0be79
CF
7982002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
799
800 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
801 default.
802 (autofilter_objlist): Add crtbegin.o, crtend.o.
803
8042002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
805
806 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
807 (longopts): Add new option --exclude-libs.
808 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
809 (gld_${EMULATION_NAME}_parse_args): Use it.
810 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
811 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
812 from whole archives.
813 (pe_dll_add_excludes): Set excludes->type.
814 (auto_export): Add new variable libname and set to archive basename if
815 abfd. Use it when filtering default and user-specified libarary
816 excludes. Let string "ALL" mean all libs when filtering user-specified
817 libs.
818 * ld.texinfo: Document --exclude-libs.
819
fac1652d
AM
8202002-05-22 Alan Modra <amodra@bigpond.net.au>
821
822 * ldemul.c (ldemul_new_vers_pattern): New function.
823 * ldemul.h (ldemul_new_vers_pattern): Declare.
824 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
825 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
826 * emultempl/ppc64elf.em (dotsyms): New static var.
827 (gld${EMULATION_NAME}_new_vers_pattern): New function.
828 (LDEMUL_NEW_VERS_PATTERN): Define.
829 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
830 (PARSE_AND_LIST_LONGOPTS): Likewise.
831 (PARSE_AND_LIST_ARGS_CASES): Handle them.
832 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
833 initialiser.
834 * emultempl/armcoff.em: Likewise.
835 * emultempl/armelf_oabi.em: Likewise.
836 * emultempl/beos.em: Likewise.
837 * emultempl/elf32.em: Likewise.
838 * emultempl/generic.em: Likewise.
839 * emultempl/gld960.em: Likewise.
840 * emultempl/gld960c.em: Likewise.
841 * emultempl/linux.em: Likewise.
842 * emultempl/lnk960.em: Likewise.
843 * emultempl/m68kcoff.em: Likewise.
844 * emultempl/mipsecoff.em: Likewise.
845 * emultempl/pe.em: Likewise.
846 * emultempl/sunos.em: Likewise.
847 * emultempl/ticoff.em: Likewise.
848 * emultempl/vanilla.em: Likewise.
849
eb3d6bb8
AM
8502002-05-22 Alan Modra <amodra@bigpond.net.au>
851
852 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
853 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
854 (LIB_SEARCH_DIRS): No need to use "tr".
855 (COMPILE_IN): Only set for native targets.
856 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
857 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
858 * configure.tgt (powerpc*): Set tdir_*.
859 (powerpcle*): Correct targ_extra_emuls.
860 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
861 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
862
54f24647
AM
8632002-05-22 Alan Modra <amodra@bigpond.net.au>
864
865 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
866 calling lang_add_entry.
867
aa713662
L
8682002-05-21 H.J. Lu (hjl@gnu.org)
869
870 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
871 "-z muldefs".
872 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
873
874 * ld.texinfo: Updated for --allow-multiple-definition and
875 "-z muldefs".
876
877 * ldmain.c (main): Initialize the allow_multiple_definition
878 field to false.
879
880 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
881 (ld_options): Add --allow-multiple-definition.
882 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
883
658f2588
JT
8842002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
885
886 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
887 (earmelfb_nbsd.c): New rule.
a59f3d35 888 * Makefile.in: Regenerate.
658f2588 889 * configure.tgt (armeb-*-netbsdelf*): New target.
a59f3d35 890 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
658f2588
JT
891 (arm-*-netbsd*): Likewise.
892 * emulparams/armelfb_nbsd.sh: New file.
893
ca10c62d
TR
8942002-05-18 Tom Rix <trix@redhat.com>
895
a59f3d35 896 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
ca10c62d
TR
897 support.
898
fae1e84f
MM
8992002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
900
901 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
902 * Makefile.in: Regenerate.
903 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
904
7c8bf1e8
MM
9052002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
906
907 * emulparams/avr1.sh: New file.
908 * emulparams/avr2.sh: New file.
909 * emulparams/avr3.sh: New file.
910 * emulparams/avr4.sh: New file.
911 * emulparams/avr5.sh: New file.
912 * scripttempl/avr.sc: New file.
913
c2c01aa7
AM
9142002-05-15 Alan Modra <amodra@bigpond.net.au>
915
916 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
917 (lang_place_orphans): Abort if just_syms_flag.
918
f1f0d9ab
TR
9192002-05-10 Tom Rix <trix@redhat.com>
920
a59f3d35 921 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
f1f0d9ab
TR
922 architecture and machine information in the output bfd.
923 (gld*_before_parse): Remove old arch and machine code.
924 (choose_target): Rename to gld*_choose_target.
a59f3d35
AM
925 (rtld): Change type to int.
926 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
f1f0d9ab
TR
927 objects in XCOFF archives.
928 * ldfile.h: Update copyright date.
929
f4d73366
JJ
9302002-05-10 Jakub Jelinek <jakub@redhat.com>
931
932 * ldmain.c (main): Enable -z combreloc by default.
933
d3d8a9ee
NC
9342002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
935
936 * Makefile.am: Honour DESTDIR.
937 * Makefile.in: Regenerate.
938
9f88b410
RS
9392002-05-07 Richard Sandiford <rsandifo@redhat.com>
940
941 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
942 (lang_enter_overlay): Remove the last two parameters.
943 (lang_leave_overlay): Take them here instead.
944 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
945 (section): Pass LMA and crossref flag to lang_leave_overlay rather
946 than lang_enter_overlay.
947 * ldlang.c (lang_memory_region_lookup): Return null for null names.
948 (lang_output_section_statement_lookup): Initialize update_dot_tree.
949 (lang_size_sections_1): Evaluate it.
950 (lang_leave_output_section_statement): Rework LMA lookup.
951 (overlay_lma, overlay_nocrossrefs): Remove.
3511b595 952 (lang_enter_overlay): Remove LMA and crossref arguments.
9f88b410
RS
953 (lang_enter_overlay_section): Don't set the LMA here.
954 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
955 assignment to the last section's update_dot_tree. Unconditionally
956 use the load and run-time regions specified in the OVERLAY statement.
957 Likewise the first section's LMA. Only set the other sections' LMAs
958 when no load region is given.
959
b9a743c8
NC
9602002-05-06 Nick Clifton <nickc@redhat.com>
961
962 * po/sv.po: New translation.
963
a3d60be3
AM
9642002-05-04 Alan Modra <amodra@bigpond.net.au>
965
966 * emultempl/hppaelf.em (build_section_lists): New function.
967 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
968 and build_section_lists.
969
b7a26f91
KH
9702002-05-03 Kazu Hirata <kazu@cs.umass.edu>
971
972 * ld.h: Fix formatting.
973 * ldexp.c: Likewise.
974 * ldfile.c: Likewise.
975 * ldlang.c: Likewise.
976 * ldmain.c: Likewise.
977 * lexsup.c: Likewise.
978 * pe-dll.c: Likewise.
979
805fc799
AM
9802002-05-02 Alan Modra <amodra@bigpond.net.au>
981
982 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
983 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
984 (build_section_lists): Do output_section tests here.
985
cc7e59b2
TR
9862002-04-30 Tom Rix <trix@redhat.com>
987
988 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
989
9c1d81c1
AM
9902002-05-01 Alan Modra <amodra@bigpond.net.au>
991
992 Long branch stubs, multiple stub sections.
993 * emultempl/ppc64elf.em: Include ldctor.h.
994 (stub_file): New var.
995 (group_size): New var.
996 (ppc_create_output_section_statements): New function.
997 (struct hook_stub_info): New.
998 (hook_in_stub): New function.
999 (ppc_add_stub_section): New function.
1000 (ppc_layout_sections_again): New function.
1001 (build_section_lists): New function.
1002 (gld${EMULATION_NAME}_finish): Rewrite.
1003 (real_func): New var.
1004 (ppc_for_each_input_file_wrapper): New function.
1005 (ppc_lang_for_each_input_file): New function.
1006 (lang_for_each_input_file): Define.
1007 (PARSE_AND_LIST_PROLOGUE): Define.
1008 (PARSE_AND_LIST_LONGOPTS): Define.
1009 (PARSE_AND_LIST_OPTIONS): Define.
1010 (PARSE_AND_LIST_ARGS_CASES): Define.
1011 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1012
aa67bccf
TR
10132002-04-30 Tom Rix <trix@redhat.com>
1014
a59f3d35
AM
1015 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1016 -blibpath, -bnolibpath support.
1017
94349e12
MM
10182002-04-30 Mark Mitchell <mark@codesourcery.com>
1019
1020 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1021 (eelf32ppcwindiss.c): New target.
1022 * Makefile.in: Regenerated.
1023 * configure.tgt: Add support for powerpc-*-windiss.
1024 * emulparams/elf32ppcwindiss.sh: New file.
a59f3d35 1025
7b17f854
RS
10262002-04-30 Richard Sandiford <rsandifo@redhat.com>
1027
1028 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1029 * ldexp.c (exp_print_token): Add "infix_p" argument.
1030 (exp_print_tree): Update accordingly.
1031
596dafeb
AM
10322002-04-28 Alan Modra <amodra@bigpond.net.au>
1033
1034 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1035 * Makefile.in: Regenerate.
1036 * mpw-elfmips.c: Delete.
1037 * mpw-eppcmac.c: Delete.
1038 * mpw-esh.c: Delete.
1039 * mpw-idtmips.c: Delete.
1040
219576a4 10412002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
1042
1043 * emulparams/shelf32.sh (MACHINE): Now sh5.
1044
944cd72c
TS
10452002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1046
1047 * ldgram.y: Fix syntax warning.
1048
5835c212
NC
10492002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1050
1051 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1052 to prevent "-n" from being taken as an abbreviation for
1053 "--no-pipeline-knowledge".
1054
024531e2
AM
10552002-04-08 Alan Modra <amodra@bigpond.net.au>
1056
d08a14c3
AM
1057 * ldlang.c (lang_size_sections_1): Don't complain about
1058 SEC_NEVER_LOAD sections having no memory region specified.
1059
024531e2
AM
1060 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1061
c657a1f0
MG
10622002-04-07 matthew green <mrg@redhat.com>
1063
1064 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1065
61bef6f1
AM
10662002-04-04 Alan Modra <amodra@bigpond.net.au>
1067
1068 * dep-in.sed: Cope with absolute paths.
1069 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1070 Run "make dep-am".
1071 * Makefile.in: Regenerate.
1072
49ba2791
TS
10732002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1074
1075 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1076
50e60fb5
JJ
10772002-04-03 Jakub Jelinek <jakub@redhat.com>
1078
1079 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1080 is smaller than maximum, round dot up to common page boundary.
1081
6f12f4ca
AM
10822002-03-28 Alan Modra <amodra@bigpond.net.au>
1083
1084 * configure.host: Set up for generic hosts first, then tweak as
1085 necessary in more specific targets.
1086 (HOSTING_LIBS): Include libgcc_eh.a if found.
1087
a8f1f017
AJ
10882002-03-23 Andreas Jaeger <aj@suse.de>
1089
1090 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1091
1d3fdf38
AM
10922002-03-21 Alan Modra <amodra@bigpond.net.au>
1093
1094 * Makefile.am: Run "make dep-am".
1095 * Makefile.in: Regenerate.
1096
79b1faa8
AM
10972002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1098
1099 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1100
fcf0e35b
AM
11012002-03-20 Alan Modra <amodra@bigpond.net.au>
1102
1103 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1104 add the symbol to the linker hash table immediately.
1105 (lang_place_undefineds): Split symbol creation out..
1106 (insert_undefined): ..to here.
1107
fed2999d
DB
11082002-03-18 David O'Brien <obrien@FreeBSD.org>
1109
1110 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1111 the contents of the buffer returned from basename function will are
1112 getting overwritten while still being used.
1113
219576a4
NC
11142002-03-18 Jan Hubicka <jh@suse.cz>
1115 Andreas Jaeger <aj@suse.de>
1116 Andreas Schwab <schwab@suse.de>
beb43bb9
JH
1117
1118 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1119 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1120 set libraries to default to lib64 paths.
1121
eb1e0e80
NC
11222002-03-18 Tom Rix <trix@redhat.com>
1123
1124 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1125 * configure.tgt : Same.
1126 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1127 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1128 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1129 emulation parameters for better -b32, -b64 support.
1130 * emulparms/aixrs6.sh : Same.
1131 * emulparms/ppcmacos.sh : Same.
1132 * emultempl/aix.em (choose_target) : Use new emulation parameters
1133 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1134 * Makefile.in : Regenerate.
1135
a1c259a1
NC
11362002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1137
1138 * po/fr.po: Updated version.
1139
862120bd
AM
11402002-03-18 Alan Modra <amodra@bigpond.net.au>
1141
1142 * ldmain.c (main): Move .text readonly flag fudges from here..
1143 * ldlang.c (lang_process): ..to here.
1144
d35a52e2
AM
11452002-03-14 Alan Modra <amodra@bigpond.net.au>
1146
1147 * ldlang.c (lang_check): Remove the word size check added in last
1148 change. Treat emitrelocations case as for relocatable links.
1149
9ce88e60
NC
11502002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1151
1152 * po/fr.po: Updated version.
1153
30cba025
AM
11542002-03-13 Alan Modra <amodra@bigpond.net.au>
1155
1156 * ldlang.c (lang_check): Do relocatable link checks first, so that
1157 warn_mismatch can't override. Check compatible and word size too.
1158
84ec0e6d
DJ
11592002-03-07 Daniel Jacobowitz <drow@mvista.com>
1160
1161 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1162
2d13d8c5
JJ
11632002-03-05 Jakub Jelinek <jakub@redhat.com>
1164
1165 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1166 DATA_SEGMENT_ALIGN.
1167
b5090659
L
11682002-03-04 H.J. Lu <hjl@gnu.org>
1169
1170 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1171 .fini_array in the data segment.
1172
f42ce16e
AM
11732002-03-04 Alan Modra <amodra@bigpond.net.au>
1174
1175 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1176
de77b6ac
RH
11772002-03-01 David Mosberger <davidm@hpl.hp.com>
1178
1179 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1180 .init_array, and .fini_array.
1181
997e08c0
AS
11822002-02-20 Andreas Schwab <schwab@suse.de>
1183
1184 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1185 .IA64_unwind* in a relocatable link.
1186
9a66911f
NC
11872002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1188
1189 * NEWS: Mark 2.12 branch.
1190
d86bcc10
MS
11912002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1192
1193 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1194 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1195
69f284c7
TR
11962002-02-18 Tom Rix <trix@redhat.com>
1197
1198 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1199 (gld*_before_allocation): Same.
a8f1f017 1200 (gld*_create_output_section_statements): Generate
69f284c7
TR
1201 __rtinit if run time linking. Add librtl.a to the link.
1202 (gld*_read_file): Clean.
1203
82bd7b59
AM
12042002-02-18 Alan Modra <amodra@bigpond.net.au>
1205
1206 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1207
ac3e50bf
DB
12082002-02-18 David O'Brien <obrien@FreeBSD.org>
1209
6a7f963b 1210 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
ac3e50bf
DB
1211 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1212 and eelf64alpha_fbsd.
6a7f963b 1213 * Makefile.in: Regenerate.
ac3e50bf
DB
1214 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1215 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1216 use a FreeBSD-specific emulation rather than the psABI one.
1217 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1218 for all FreeBSD ELF systems.
1219 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1220 emulation.
1221 * emulparams/elf32ppc_fbsd.sh: Likewise.
1222 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1223 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1224 * emulparams/elf64alpha_fbsd.sh: Likewise.
1225 * emulparams/elf_i386_fbsd.sh: Likewise.
1226 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1227
6ad738c5
NC
12282002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1229
1230 * po/tr.po: Updated version.
1231
9673c93c
AM
12322002-02-18 Alan Modra <amodra@bigpond.net.au>
1233
1234 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1235 (FILL): Likewise.
1236
1c5e6447
HPN
12372002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1238
1239 * emultempl/mmo.em (mmo_after_open): Don't call
1240 _bfd_mmix_check_all_relocs when producing ELF output.
1241
8bb57516
RH
12422002-02-15 Richard Henderson <rth@redhat.com>
1243
de77b6ac 1244 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
8bb57516
RH
1245 definition. Emit a unop+nop pair.
1246
49fda6c8
HPN
12472002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1248
83c2d653
HPN
1249 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1250 for presence of .MMIX.reg_contents.linker_allocated before early
1251 exit.
1252
49fda6c8
HPN
1253 * NEWS: Mention support for MMIX.
1254
2c382fb6
AM
12552002-02-15 Alan Modra <amodra@bigpond.net.au>
1256
1257 Support arbitrary length fill patterns.
a139d329
AM
1258 * ld.texinfo (Output Section Fill): Describe fill expressions.
1259 (FILL): Refer to the above.
2c382fb6
AM
1260 * ldexp.h (etree_value_type): Add "str" field.
1261 (union etree_union): Add "str" to "value" struct.
1262 (exp_bigintop): Declare.
1263 (exp_get_fill): Declare.
1264 * ldexp.c: Include "safe-ctype.h".
1265 (exp_intop): Set value.str to NULL.
1266 (exp_bigintop): New function.
1267 (new_rel): Pass in "str", and set new.str from it.
1268 (new_rel_from_section): Set new.str to NULL.
1269 (fold_name): Adjust calls to new_rel.
1270 (exp_fold_tree): Likewise.
1271 (exp_get_fill): New function.
1272 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1273 (INT): Returns a "bigint". Adjust all code handling INTs.
1274 (fill_opt): Returns a "fill".
1275 (fill_exp): Split out of fill_opt, use for FILL.
1276 * ldlang.h (struct _fill_type): New.
1277 (fill_type): Move typedef to ldexp.h.
1278 (lang_output_section_statement_type): "fill" is now a pointer.
1279 (lang_fill_statement_type): Likewise.
1280 (lang_padding_statement_type): Likewise.
1281 (lang_add_fill): Now takes a "fill_type *" param.
1282 (lang_leave_output_section_statement): Likewise.
1283 (lang_do_assignments): Likewise.
1284 (lang_size_sections): Likewise.
1285 (lang_leave_overlay_section): Likewise.
1286 (lang_leave_overlay): Likewise.
1287 * ldlang.c: Include ldgram.h after ldexp.h.
1288 (lang_output_section_statement_lookup): Adjust for fill_type change.
1289 (print_fill_statement): Likewise.
1290 (print_padding_statement): Likewise.
1291 (insert_pad): Now takes a "fill_type *" arg.
1292 (size_input_section): Likewise.
1293 (lang_size_sections_1): Likewise.
1294 (lang_size_sections): Likewise.
1295 (lang_do_assignments): Likewise.
1296 (lang_add_fill): Likewise.
1297 (lang_leave_output_section_statement): Likewise.
1298 (lang_leave_overlay_section): Likewise.
1299 (lang_leave_overlay): Likewise.
1300 Adjust all callers of the above function.
1301 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1302 starting with "0X" as well as "0x". Return bigint.str for hex
1303 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1304 Always use base 16 for numbers starting with "$".
1305 * ldmain.c: Include ldgram.h after ldexp.h.
1306 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1307 of bfd_fill_link_order.
1308 * pe-dll.c: Adjust lang_do_assignments calls.
1309 * emultempl/elf32.em: Likewise.
1310 * emultempl/hppaelf.em: Likewise.
1311 * emultempl/ppc64elf.em: Likewise.
1312 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1313 lang_add_assignment call.
1314 * emultempl/pe.em: Likewise.
1315
313e35ee
AM
13162002-02-14 Phil Edwards <pme@gcc.gnu.org>
1317
a139d329 1318 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
313e35ee
AM
1319 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1320 the pattern in question is not a regexp.
1321 * ldlang.c: Likewise.
1322 * ldlang.h: Likewise.
1323 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1324
2d20f7bf
JJ
13252002-02-12 Jakub Jelinek <jakub@redhat.com>
1326
1327 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1328 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1329 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1330 * ldexp.c (exp_data_seg): New variable.
1331 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1332 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1333 (exp_fold_tree): Handle DATA_SEGMENT_END.
1334 Pass allocation_done when recursing instead of hardcoding
1335 lang_allocating_phase_enum.
1336 * ldexp.h (exp_data_seg): New.
1337 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1338 (lang_size_sections): New.
1339 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1340 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1341 if COMMONPAGESIZE is defined.
1342 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1343 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1344 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1345 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1346 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1347 libraries only.
1348
06880219
AM
13492002-02-11 Alan Modra <amodra@bigpond.net.au>
1350
1351 * Makefile.in: Regenerate.
1352
37b0ac0f
DJ
13532002-02-10 Daniel Jacobowitz <drow@mvista.com>
1354
1355 * lexsup.c: Remove strtoul declaration.
1356
4e5bae56
DJ
13572002-02-10 Daniel Jacobowitz <drow@mvista.com>
1358
1359 * ldmain.c: Add prototype for main ().
1360 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1361 * emultempl/lnk960.em (lnk960_choose_target): Function should
1362 take two arguments.
1363
1e281515
AM
13642002-02-10 Alan Modra <amodra@bigpond.net.au>
1365
1366 * ldlang.c (entry_section): New initialised variable.
1367 (lang_finish): Use it.
1368 * ldlang.h (entry_section): Declare.
1369 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1370 entry_section to ".opd".
1371
f92d92ff 13722002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
1373
1374 * ld.texinfo (Options): Add back in -nostdlib documentation,
1375 which had been inadvertently removed.
1376
74c44237
HPN
13772002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1378
1379 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1380 register section vma to a sane value after emitting error. Make
1381 fatal conditions cause program exit when emitting message.
1382
5e37cc46
NC
13832002-02-08 Ivan Guzvinec <ivang@opencores.org>
1384
1385 * configure.tgt: Add or32-*-rtems target.
1386
2d92cb7d
AO
13872002-02-08 Alexandre Oliva <aoliva@redhat.com>
1388
1389 Contribute sh64-elf.
1390 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1391 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1392 in OTHER_RELOCATABLE_SECTIONS.
1393 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1394 * emulparams/shelf32.sh (STACK_ADDR): Define.
1395 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1396 (OTHER_SECTIONS): this. Removed stack settings.
1397 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1398 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1399 2001-03-12 DJ Delorie <dj@redhat.com>
1400 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1401 relaxing if any shmedia or mixed sections are found.
1402 2001-03-07 DJ Delorie <dj@redhat.com>
1403 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1404 einfo. Gracefully decline to output to non-elf formats.
1405 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1406 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1407 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1408 * emulparams/shelf32.sh: Ditto.
1409 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1410 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1411 comment.
1412 2001-01-10 Ben Elliston <bje@redhat.com>
1413 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1414 non-portable shell constructs. From Hans-Peter Nilsson.
1415 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1416 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1417 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1418 dependencies to the shell script include chain.
1419 * Makefile.in: Regenerate.
1420 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1421 * emultempl/sh64elf.em: Update and tweak comments.
1422 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1423 make a .cranges section SEC_IN_MEMORY.
1424 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1425 * emultempl/sh64elf.em
1426 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1427 .cranges section found to be necessary; continue and set stored
1428 section contents flags for sections with non-mixed contents.
1429 Use a struct sh64_section_data container and sh64_elf_section_data
1430 to store contents-type flags.
1431 Remove unused update of "isec".
1432 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1433 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1434 access contents-type flags. Assert that the associated container
1435 is initialized. Use that container, not elf_gp_size, to hold size
1436 of linker-generated cranges contents.
1437 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1438 * emultempl/sh64elf.em
1439 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1440 there's already a .cranges section. When section flag difference
1441 is found, don't NULL-check cranges a second time. Tweak comments.
1442 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1443 merging, not max size, as size of ld-generated .cranges contents.
1444 Don't set ELF section flags in output section. When checking for
1445 needed .cranges descriptors, don't use a variable; compare
1446 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1447 comments.
1448 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1449 * emultempl/sh64elf.em: New file.
1450 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1451 * Makefile.in: Regenerate.
1452 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1453 (OTHER_RELOCATING_SECTIONS): Ditto.
1454 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1455 * emulparams/shlelf32.sh: Stub out all settings except
1456 OUTPUT_FORMAT. Source shelf32.sh.
1457 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1458 OTHER_RELOCATING_SECTIONS.
1459 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1460 * emulparams/shlelf64.sh: Stub out all settings except
1461 OUTPUT_FORMAT. Source shelf64.sh.
1462 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1463 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1464 .cranges section.
1465 (DATA_START_SYMBOLS): Define, provide ___data.
1466 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1467 for consecutive .data section.
1468 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1469 section after .data section.
1470 * emulparams/shlelf64.sh: Ditto.
1471 * emulparams/shelf32.sh: Ditto.
1472 (ALIGNMENT): Define to 8.
1473 * emulparams/shelf32.sh: Ditto.
1474 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1475 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1476 built-in linker scripts.
1477 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1478 * emulparams/shlelf64.sh: New.
1479 * emulparams/shelf64.sh: New.
1480 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1481 targ_extra_emuls.
1482 * Makefile.am: Add support for shlelf64 and shelf64.
1483 * Makefile.in: Regenerate.
1484 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1485 * configure.tgt (sh64-*-elf*): Add shelf as default.
1486 Add shlelf to targ_extra_emuls.
1487 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1488 * emulparams/shelf32.sh: New file.
1489 * emulparams/shlelf32.sh: New file.
1490 * Makefile.am: Add support for shlelf32 and shelf32.
1491 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1492 * Makefile.in: Regenerate.
1493
e3dc8847
HPN
14942002-02-05 Hans-Peter Nilsson <hp@axis.com>
1495
1496 * ldlang.c (lang_reset_memory_regions): Rename from
1497 reset_memory_regions. Change all callers. Make public.
1498 * ldlang.h (lang_reset_memory_regions): Prototype.
1499 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1500 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
1501 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1502 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 1503
8017dbcb
HPN
15042002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1505
1506 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1507 arithmetic when checking for too many global registers.
1508
006336b8
JT
15092002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1510
1511 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1512 (ehppanbsd.c): New rule.
1513 * Makefile.in: Regenerate.
1514 * configure.tgt (hppa*-*-netbsd*): New target.
1515 * emulparams/hppalinux.sh: Add comment to check other files
1516 that source this file it is modified, and list which
1517 files that do.
1518 * emulparams/hppanbsd.sh: New file.
1519
da1f2fec
GK
15202002-02-01 Geoffrey Keating <geoffk@redhat.com>
1521
1522 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1523 stack.
1524
48fa4a5d
HPN
15252002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1526
1527 Support on-demand global register allocation from
1528 R_MMIX_BASE_PLUS_OFFSET relocs.
1529 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1530 mmix_set_reg_section_vma. Call
1531 _bfd_mmix_finalize_linker_allocated_gregs.
1532 (mmix_before_allocation): New function.
1533 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1534 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1535 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1536 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1537 before .MMIX.reg_contents.
1538 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1539 (mmo_after_open): New function.
1540 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1541 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1542 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1543
3b16e843
NC
15442002-01-31 Ivan Guzvinec <ivang@opencores.org>
1545
1546 * emulparams/or32.sh: New file.
1547 * emulparams/or32elf.sh: New file.
1548 * scripttempl/or32.sc: New file.
1549 * configure.tgt : Add support for or32.
1550 * configure: Regenerate
1551 * Makefile.am: Add support for or32.
1552 * Makefile.in: Regenerate.
1553 * NEWS: Mention support for or32.
1554 * po/ld.pot: Regenerate.
1555
f744d540 15562002-01-29 Chris Demetriou <cgd@broadcom.com>
313e35ee 1557 Mitch Lichtenberg <mpl@broadcom.com>
f744d540
CD
1558
1559 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1560 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1561 reloc creation (ld --embedded-relocs).
1562
4867be41
DJ
15632002-01-27 Daniel Jacobowitz <drow@mvista.com>
1564
1565 * configure: Regenerated.
1566
cd8e197b
HPN
15672002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1568
1569 * Makefile.am (install): Depend on install-info.
1570 * Makefile.in: Regenerate.
1571
9cb61eab
AM
15722002-01-26 Christian Rose <menthos@menthos.com>
1573
1574 * ldmain.c (main): Use full sentences to ease translation.
1575
1caa7b23
NC
15762002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1577
1578 * po/fr.po: Updated version.
1579
1ddbd152
NC
15802002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1581
1582 * po/es.po: Updated version.
1583
1e84433f
AJ
15842002-01-25 Andreas Jaeger <aj@suse.de>
1585
1586 * ldlex.l (yy_input): Correct error check.
1587
6d39955e
AM
15882002-01-25 Alan Modra <amodra@bigpond.net.au>
1589
1590 * ldmisc.c (demangle): Put back dots when string not demangled.
1591
a9ed1e1b
RH
15922002-01-22 Richard Henderson <rth@redhat.com>
1593
1594 * emulparams/elf64alpha.sh (NOP): Use unop.
1595
968ec2b9
AJ
15962002-01-21 Andreas Jaeger <aj@suse.de>
1597
1598 * ldlex.l: Use fread instead of read.
1599
9596feea
JT
16002002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1601
1602 * configure.tgt (ia64-*-netbsd*): New target.
1603
493a6d47
L
16042002-01-21 H.J. Lu <hjl@gnu.org>
1605
1606 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1607 0.
1608 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1609
2a538ba5
AJ
16102002-01-18 Andreas Jaeger <aj@suse.de>
1611
1612 * ldver.c (ldversion): Update year.
1613
328577ad
NC
16142002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1615
1616 * po/ld.pot: Regenerate.
1617
1f808cd5
AM
16182002-01-16 Alan Modra <amodra@bigpond.net.au>
1619
1620 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1621 * Makefile.in: Regenerate.
1622 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1623 * emultempl/ppc64elf.em: New file.
1624
335c5610
DD
16252002-01-15 DJ Delorie <dj@redhat.com>
1626
1627 * scripttempl/pe.sc: Add support for constructor priorities.
1628
c40bbade
DC
16292002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1630
1631 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1632 * emulparams/avr23xx.sh: Likewise.
1633 * emulparams/avr4433.sh: Likewise.
1634 * emulparams/avr44x4.sh: Likewise.
1635 * emulparams/avr85xx.sh: Likewise.
1636 * emulparams/avrmega103.sh: Likewise.
1637 * emulparams/avrmega161.sh: Likewise.
1638 * emulparams/avrmega603.sh: Likewise.
1639 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1640
34efb449
AO
16412002-01-08 Alexandre Oliva <aoliva@redhat.com>
1642
1643 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1644 archive is excluded.
1645
8d05742f
JT
16462002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1647
1648 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 1649 (eshelf_nbsd.c): New rule.
8d05742f
JT
1650 (eshlelf_nbsd.c): New rule.
1651 * Makefile.in: Regenerate.
1652 * configure.tgt (sh*le-*-netbsdelf*): New target.
1653 (sh*-*-netbsdelf*): New target.
1654 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1655 * ld/emulparams/shelf_nbsd.sh: New emulation.
1656 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1657
be2d1673
NC
16582002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1659
1660 * po/es.po: New file: Spanish translation.
1661 * configure.in (ALL_LINGUAS): Add es.
1662 * configure: Regenerate.
1663
dbab7a7b
NC
16642002-01-06 John Marshall <jmarshall@acm.org>
1665
1666 * ld.texinfo: Note that --emit-relocs is currently only
1667 implemented for ELF.
1668
3dfe7a8c
AM
16692002-01-05 Alan Modra <amodra@bigpond.net.au>
1670
1671 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1672 of bfd_section_list_remove and bfd_section_list_insert macros.
1673 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1674 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1675
8a8b2d4b
AJ
16762002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1677
1678 * configure.tgt (x86_64-*-netbsd*): New target.
1679
9a4c7f16
TR
16802001-12-21 Tom Rix <trix@redhat.com>
1681
8a8b2d4b 1682 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
1683 For -binitfini support.
1684 * emultempl/aix.em (gld*_before_parse): Fix comment.
1685 * emultempl/aix.em (gld*_parse_args): Fix comment.
1686
3695c299
AM
16872001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1688
cf86e6df
AM
1689 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1690 mips*el-*-netbsd*.
1691 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1692
3695c299
AM
1693 * configure.tgt (arm-*-netbsdelf*): Add target.
1694 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1695 * emulparams/armelf_nbsd.sh: Added.
1696 * Makefile.am: Add rules for earmelf_nbsd.
1697 * Makefile.in: Regenerate.
1698
97cb79ae
AJ
16992001-12-19 Andreas Jaeger <aj@suse.de>,
1700 Susanne Oberhauser <froh@suse.de>
1701
1702 * configure.host: Add rules for x86_64-*linux-gnu. Change
1703 s390x-linux entry to use gcc to report configuration, replace gcc
1704 with $CC in s390-linux
1705
9d201f2f
AJ
17062001-12-19 Andreas Jaeger <aj@suse.de>
1707
1708 * ld.texinfo (VERSION): Fix markup.
1709
0b69cd08
MG
17102001-12-18 matthew green <mrg@eterna.com.au>
1711
1712 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1713 (m68kelfnbsd.c): New rule.
1714 * Makefile.in: Regenerate.
1715 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1716 (m68*-*-netbsd*4k*): .. this.
1717 (m68*-*-netbsdelf*): New target.
1718 (m68*-*-netbsd*): Also include ELF support.
1719 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1720 * emulparams/m68kelfnbsd.sh: New emulation.
1721
6b9b879a
JJ
17222001-12-18 Jakub Jelinek <jakub@redhat.com>
1723
1724 * ldgram.y (vers_node): Support anonymous version tags.
1725 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1726 tag is not defined together with non-anonymous versions.
1727 * ld.texinfo: Document it.
1728
9fc877ed
NC
17292001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1730
1731 * po/tr.po: New file: Turkish translation.
1732 * configure.in (ALL_LINGUAS): Add tr.
1733 * configure: Regenerate.
1734
fc18a3f3
RH
17352001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1736
1737 * Makefile.am: Add rules for eelf64alpha_nbsd.
1738 * Makefile.in: Regenerate.
1739 * configure.tgt (alpha*-*-netbsd*): Set
1740 targ_emul to elf64alpha_nbsd.
1741 * emulparams/elf64alpha_nbsd.sh: Added.
1742
76f63e91
AM
17432001-12-17 Alan Modra <amodra@bigpond.net.au>
1744
1745 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1746 section_tail when fiddling with section list.
1747 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1748 broken into separate strings to make translation easier.
1749 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1750 fiddling with section list.
1751 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1752
d03b89bd
HPN
17532001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1754
1755 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1756
320fec9a
AM
17572001-12-15 Alan Modra <amodra@bigpond.net.au>
1758
1759 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1760
65765700
JJ
17612001-12-13 Jakub Jelinek <jakub@redhat.com>
1762
1763 * emultempl/elf32.em (finish): Supply output_bfd
1764 to bfd_elf*_discard_info.
1765 (OPTION_EH_FRAME_HDR): Define.
1766 (longopts): Add --eh-frame-hdr.
1767 (parse_args): Handle it.
1768 (list_options): Add --eh-frame-hdr to help.
1769 * emultempl/hppaelf.em (finish): Supply output_bfd
1770 to bfd_elf*_discard_info.
1771 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1772
89894c62
AM
17732001-12-13 Alan Modra <amodra@bigpond.net.au>
1774
1775 * lexsup.c (parse_args): Don't pass shortopts to second call to
1776 getopt functions. Restore optind rather than decrementing before
1777 second call. Remove errind as it now duplicates last_optind.
1778
583f1926
CF
17792001-12-11 Christopher Faylor <cgf@redhat.com>
1780
1781 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1782
93fbbb04
GK
17832001-12-07 Geoffrey Keating <geoffk@redhat.com>
1784 Richard Henderson <rth@redhat.com>
1785
1786 * Makefile.am: Add support for xstormy16.
1787 * configure.tgt: Add support for xstormy16.
1788 * Makefile.in: Regenerate.
1789 * emulparams/elf32xstormy16.sh: New file.
1790 * scripttempl/xstormy16.sc: New file.
1791
583f1926
CF
17922001-10-01 Christopher Faylor <cgf@cygnus.com>
1793
fc18a3f3
RH
1794 * Makefile.in (LIB_PATH): Make configurable.
1795 (GENSCRIPTS): Set LIB_PATH in environment.
1796 * configure.in: Substitute LIB_PATH.
1797 * configure: Regenerate.
1798 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1799 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 1800
ff291a48
NC
18012001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1802
1803 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1804 describing the -N option so that it is easier to translate into
1805 foreign languages.
1806
e3c8793a
NC
18072001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1808
1809 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1810 statements describing a single option with a single, newline
1811 escaped fprintf. This allows better translation into other
1812 languages.
9d201f2f 1813
fc18a3f3
RH
1814 * ldmain.c (add_archive_element): Combine multiple strings
1815 into a single string to permit better translation into other
1816 languages.
e3c8793a 1817
f2eab0af
TR
18182001-12-05 Tom Rix <trix@redhat.com>
1819
1820 * Makefile.am: Remove eaixppc64.
9d201f2f 1821 * Makefile.in: Regenerate.
f2eab0af 1822
249172c3
TR
18232001-12-04 Tom Rix <trix@redhat.com>
1824
9d201f2f 1825 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
1826 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1827 warning.
1828 (gld*_read_file): Fix typo.
1829 (change_symbol_mode): Add prototype.
1830 (is_syscall): Same.
9d201f2f 1831
249172c3
TR
1832 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1833 * emulparams/aixrs6.sh : Same.
1834 * emulparams/ppcmacos.sh : Same.
1835 * emulparams/aixppc64.sh : Delete file.
1836 * emultempl/aix.em : Formatting changes.
1837
5b5cd1b0
HPN
18382001-12-04 Hans-Peter Nilsson <hp@axis.com>
1839
1840 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1841 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1842 __Sbss.
1843 (OTHER_END_SYMBOLS): Fix formatting.
1844 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1845 (OTHER_END_SYMBOLS): Fix formatting.
1846
7cecdbff
AM
18472001-12-04 Alan Modra <amodra@bigpond.net.au>
1848
1849 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1850
742aeb63 18512001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 1852
742aeb63 1853 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 1854 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
1855 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1856 (ldemul_default_target): Same.
1857 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
1858 * emultempl/gld960c.em (gld960_choose_target): Same.
1859 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
1860 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1861 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1862 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 1863 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
1864 -b32 and -b64.
1865
48459341
L
18662001-11-27 H.J. Lu <hjl@gnu.org>
1867
1868 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1869 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1870 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1871 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1872 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1873 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1874 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1875 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1876
7cecdbff 1877 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
1878 is not empty.
1879 (SDATA): Likewise.
1880 (REL_SDATA): Likewise.
1881 (REL_SBSS): Likewise.
1882 (REL_SDATA2): Likewise.
1883 (REL_SBSS2): Likewise.
1884 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1885 (SDATA2): Likewise.
1886
ecfdd20c
SC
18872001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1888
1889 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1890 destructor in rom.
7cecdbff 1891 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 1892
da54c6eb
L
18932001-11-22 H.J. Lu <hjl@gnu.org>
1894
1895 * Makefile.in: Regenerated with automake based on automake
1896 1.4-8 in RedHat 7.1.
1897
465bc359
AM
18982001-11-22 Alan Modra <amodra@bigpond.net.au>
1899
1900 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1901 (config.status): Delete rule.
1902 Add extra dependencies to cover sourced emulparams files.
1903 * Makefile.in: Regenerate.
1904
1905 * scripttempl/elf.sc: Order <section>, <section>.* and
1906 corresponding linkonce sections as seen in input files.
1907 Formatting fixes. Zero vma of all sections if not relocating.
1908 (STACK): Define and insert if STACK_ADDR defined.
1909 (OTHER_RELOCATING_SECTIONS): Delete.
1910 (OTHER_END_SYMBOLS): Define.
1911 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1912 (OTHER_READWRITE_SECTIONS): Likewise.
1913 (OTHER_GOT_SECTIONS): Likewise.
1914 (OTHER_SDATA_SECTIONS): Likewise.
1915 (OTHER_BSS_SECTIONS): Likewise.
1916 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1917 (OTHER_READWRITE_SECTIONS): Likewise.
1918 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1919 (OTHER_READWRITE_SECTIONS): Likewise
1920
1921 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1922 (STACK_ADDR): Define.
1923 * emulparams/armelf_oabi.sh: As for armelf.sh.
1924 * emulparams/elf32mcore.sh: As for armelf.sh.
1925 * emulparams/h8300elf.sh: As for armelf.sh.
1926 * emulparams/mn10200.sh: As for armelf.sh.
1927 * emulparams/shelf.sh: As for armelf.sh.
1928
1929 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1930 (OTHER_END_SYMBOLS): Define.
1931 * emulparams/m32relf.sh: As for elf32fr30.sh.
1932 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1933 * emulparams/h8300self.sh: As for elf32fr30.sh.
1934
1935 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1936 defines with RELOCATING test.
1937 (OTHER_SDATA_SECTIONS): Likewise.
1938 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1939 (OTHER_END_SYMBOLS): ..this.
1940 * emulparams/crislinux.sh: As for criself.sh.
1941
1942 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1943 if not relocating.
1944 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1945 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1946 normal and linkonce sections as seen in input files.
1947 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1948 (TEXT_DYNAMIC): Likewise.
1949 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1950 (OTHER_SDATA_SECTIONS): Likewise.
1951 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1952 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1953 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1954 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1955 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1956 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1957 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1958 sections as seen in input files.
1959 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1960 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1961 if not relocating.
1962 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1963 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1964 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1965 (OTHER_SECTIONS): Instead, use this..
1966 (OTHER_END_SYMBOLS): ..and this.
1967
1968 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1969 * emulparams/elf32bsmip.sh: Likewise.
1970 * emulparams/elf32btsmip.sh: Likewise.
1971 * emulparams/elf32ebmip.sh: Likewise.
1972 * emulparams/elf32lmip.sh: Likewise.
1973 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1974 * emulparams/elf32lsmip.sh: Likewise.
1975 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1976 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1977 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1978 * emulparams/elf64btsmip.sh: Likewise.
1979 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1980 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1981 * emulparams/elf32ppclinux.sh: Likewise.
1982 * emulparams/elf32ppcsim.sh: Likewise.
1983 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1984 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1985 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1986 * emulparams/h8300self.sh: Likewise.
1987 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1988 * emulparams/sh.sh: Comment.
1989 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1990 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1991 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1992
abc6ab0a
AM
19932001-11-21 David Heine <dlheine@tensilica.com>
1994 Alan Modra <amodra@bigpond.net.au>
1995
1996 * ldlang.c (map_input_to_output_sections): Replace "break"
1997 accidentally removed with 2001-08-03 change.
1998 (lang_gc_sections_1): Likewise.
1999
2181f54f
AM
20002001-11-21 Alan Modra <amodra@bigpond.net.au>
2001
2002 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2003
ca0b5847
AM
20042001-11-20 Angela Marie Thomas <angela@redhat.com>
2005
2006 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
2007 of false when calling lang_size_sections.
2008 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 2009
c56feb2b
AM
20102001-11-15 Alan Modra <amodra@bigpond.net.au>
2011
2012 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2013 function when LDEMUL_FINISH isn't set to the same name. Don't
2014 call ${LDEMUL_FINISH}.
2015 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2016 * emultempl/armelf.em (arm_elf_finish): Call
2017 gld${EMULATION_NAME}_finish.
2018 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2019 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2020 hppaelf_layout_sections_again if necessary.
2021 (need_laying_out): New var.
2022 (hppaelf_layaout_sections_again): Rename to
2023 hppaelf_layout_sections_again. Clear need_laying_out.
2024 (PARSE_AND_LIST_OPTIONS): Format text.
2025
a48ca7f2
L
20262001-11-14 H.J. Lu <hjl@gnu.org>
2027
2028 * emultempl/armelf.em (arm_elf_finish): Renamed from
2029 gld${EMULATION_NAME}_finish.
2030 (LDEMUL_FINISH): Set to arm_elf_finish.
2031
73d074b4
DJ
20322001-11-14 Daniel Jacobowitz <drow@mvista.com>
2033
2034 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2035 (struct ld_emulation_xfer_struct): Use it.
2036
3b16e843 20372001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 2038
465bc359 2039 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
2040 additional symbols referenced by newer crt0.o files from HP.
2041
f11b7027
NC
20422001-11-12 Anthony Green <green@redhat.com>
2043
2044 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2045
3bf2994f
AM
20462001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2047
2048 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2049 * Makefile.in: Regenerate.
2050
ff5dcc92
SC
20512001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2052
2053 * ld.texinfo: Use @command for commands, @option for options.
2054 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2055 the page man title.
2056 * Makefile.in: Rebuild.
2057
9fb9af6e
CD
20582001-11-04 Chris Demetriou <cgd@broadcom.com>
2059
2060 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2061 Add support for targets.
2181f54f 2062
3c62831e
NC
20632001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2064
2065 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2066 * configure: Regernate.
2067 * po/fr.po: New file.
2068 * po/sv.po: New file.
2069
3a9091c4
NC
20702001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2071
2072 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2073 as little endian default and to support big endian.
2181f54f 2074
361b220e
CD
20752001-11-01 Chris Demetriou <cgd@broadcom.com>
2076
2077 * ld.texinfo (Options): Document new option, -nostdlib.
2078 * lexsup.c (OPTION_NOSTDLIB): New definition.
2079 (ld_options): Add entry for "nostdlib".
2080 (parse_args): Handle OPTIONS_NOSTDLIB.
2081 * ldfile.c (ldfile_add_library_path): Don't add directories
2082 to the search path if they weren't specified on the command line
2083 and -nostdlib was specified.
2084 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2085
210a7bd1
NC
20862001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2087
2088 * lexsup.c (parse_args): Prevent infinite parsing loop when
2089 "-rpath.a" is specified on the command line.
2090 Replace calls to fprintf with calls to einfo.
2091
114283d8
NC
20922001-10-31 John Marshall <jmarshall@acm.org>
2093
2094 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2095 appear only once across all the linker scripts involved in a link
2096 invocation no longer applies. Make the documentation reflect
2097 that.
2098
7649aa50
NC
20992001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2100
2101 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2102 targets.
2103 (sh-*-linux*): Added targ_extra_libpath.
2104
6e814ff8
AM
21052001-10-31 David Heine <dlheine@tensilica.com>
2106
2107 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2108 for padding statements.
2109
3c3bdf30
NC
21102001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2111
2112 * configure.tgt (mmix-*-*): New target.
2113 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2114 Add dependencies to match.
2115 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2116 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2117 scripttempl/mmo.sc: New files.
2118 * gen-doc.texi: @set MMIX.
2119 * ld.texinfo: Ditto.
6e814ff8 2120 [MMIX] Add MMIX node.
3c3bdf30
NC
2121 * Makefile.in: Regenerate.
2122
ca0c1d3e
KH
21232001-10-29 Kazu Hirata <kazu@hxi.com>
2124
2125 * ldlang.c: Fix a comment typo.
2126
1a3d33ce
AM
21272001-10-23 Alan Modra <amodra@bigpond.net.au>
2128
2129 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2130 entries, and match *-*-linux*.
2131
b47c4208
AM
21322001-10-20 Alan Modra <amodra@bigpond.net.au>
2133
2134 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2135 with ldlex_script, ldlex_popstate.
2136 (ifile_p1): Likewise.
2137 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2138 correct slot.
2139 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2140 to 1. Don't BEGIN(SCRIPT).
2141 (lex_redirect): Similarly.
2142 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2143
fd521b47
NC
21442001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2145
2146 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2147 __EH_FRAME_END__ and accept eh frames into data section.
2148 Add ctor and dtor sections.
2149
59d28a94
DD
21502001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2151
2152 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2153 (auto-export): Fix indentation.
2154
663dd378
DD
21552001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2156
2157 * pe-dll.c (autofilter_objectlist): Add startup objects
2158 for profiling.
2159 (auto-export): Constify char * p.
6e814ff8 2160 Extract file basename and use strcmp rather than ststr
663dd378
DD
2161 for object lookup.
2162
31d677f9
CD
21632001-10-18 Chris Demetriou <cgd@broadcom.com>
2164
2165 * ldmain.c (get_emulation): Improve comment about the handling
2166 of -mipsN options.
2167
aa200fe8
AM
21682001-10-17 Alan Modra <amodra@bigpond.net.au>
2169
2170 * po/POTFILES.in: Regenerate.
2171
146e7110
AM
21722001-10-16 Vassili Karpov <malc@pulsesoft.com>
2173
2174 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2175 -z nocopyreloc and -z nocombreloc usage strings.
2176
b4330e85
NC
21772001-10-12 Vassili Karpov <malc@pulsesoft.com>
2178
146e7110 2179 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
2180 in usage.
2181
5af8a2fb
NC
21822001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2183
2184 * scripttempl/armaout.sc: Place .bss section after end of aligned
2185 data section to match behaviour of aout code in constructrion of
2186 header.
2187
5b784096
DD
21882001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2189
2190 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2191 startup files for mingw32 dlls to list.
2192
61585df2
CD
21932001-10-10 Chris Demetriou <cgd@broadcom.com>
2194
2195 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2196
45cf6f3e
AH
21972001-10-08 Aldy Hernandez <aldyh@redhat.com>
2198
2199 * configure.tgt (targ): Add arm9e-*-elf.
2200
e24d7c12
L
22012001-10-05 H.J. Lu <hjl@gnu.org>
2202
2203 * genscripts.sh: Fix a typo in the last change.
2204
ec38dd05
JJ
22052001-10-05 Jakub Jelinek <jakub@redhat.com>
2206
2207 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2208 -z nocombreloc in usage.
2209
cedd6b0d
JB
22102001-10-03 Jim Blandy <jimb@redhat.com>
2211
2212 * genscripts.sh: Include a comment at the top of each generated
2213 script, explaining its purpose.
2214
8bd621d8
AM
22152001-10-03 Vassili Karpov <malc@pulsesoft.com>
2216
2217 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2218 * NEWS: Mention -z nocopyreloc.
2219 * ld.texinfo (Options): Describe nocopyreloc.
2220
fcd8210c
AM
22212001-10-03 Alan Modra <amodra@bigpond.net.au>
2222
2223 * configure: Regenerate.
2224
d32820f2
AM
22252001-10-02 Alan Modra <amodra@bigpond.net.au>
2226
2227 * ldver.h (ld_program_version): Remove declaration.
2228 * lexsup.c (parse_args): Move printing of copyright message..
2229 * ldver.c (ldversion): .. to here.
2230 Use BFD_VERSION_STRING in place of BFD_VERSION.
2231 (ld_program_version): Remove.
2232 * Makefile.am (Makefile): Depend on bfd/configure.in.
2233 Run "make dep-am".
2234 * Makefile.in: Regenerate.
2235
af46bcdc
HPN
22362001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2237
2238 * Makefile.am: Update dependencies with "make dep-am".
2239 * Makefile.in: Regenerate.
2240
4818e05f 22412001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 2242
4818e05f
AM
2243 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2244 * lexsup.c: Add --no-define-common commandline option.
2245 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2246 * ldlex.l: Likewise.
2247 * ld.h: Add command_line.inhibit_common_definition.
2248 * ldmain.c (main): Initialize.
2249 * ld.texinfo: Document.
862517b6 2250
a59f3d35
AM
22512001-09-29 Alan Modra <amodra@bigpond.net.au>
2252
2253 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2254
d5e0ebeb
AM
22552001-09-26 Alan Modra <amodra@bigpond.net.au>
2256
2257 * ldmisc.c (USE_STDARG): Remove.
2258 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2259 (einfo): Likewise.
2260 (minfo): Likewise.
2261 (lfinfo): Likewise.
2262
2263 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2264 declarations. Update copyright.
2265
2f8d8971
NC
22662001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2267
85c77458
NC
2268 * pe-dll.c: Remove obsoleted declaration of
2269 pe_get_data_import_dll_name.
2270 (pe_create_import_fixup): Fix thinko.
2271
2f8d8971
NC
2272 * ld.texinfo(enable-auto-import): Clarify the explanation.
2273
22742001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2275
2276 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2277 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2278 DLL_SUPPORT controlled code.
2279
72358f65 22802001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 2281
72358f65
NC
2282 * emultempl/pe.em(pe_data_import_dll): Make static.
2283 (pe_get_data_import_dll_name): New accessor function.
146e7110 2284 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
2285 pe_get_data_import_dll_name() from pe.em, instead of
2286 directly accessing pe_data_import_dll variable from pe.em.
2287
3882b010
L
22882001-09-18 Bruno Haible <haible@clisp.cons.org>
2289
2290 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2291 (def_file_add_directive): Use ISSPACE instead of isspace.
2292 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2293 isdigit/isxdigit/isalpha/isalnum.
2294 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2295 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2296 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2297 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2298 isalnum.
2299 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2300 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2301 isupper/tolower.
2302 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2303 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2304 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2305 (ctor_prio): Use ISDIGIT instead of isdigit.
2306 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2307 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2308 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2309 isupper/tolower.
2310 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2311 (stricpy): Use TOLOWER instead of isupper/tolower.
2312 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2313 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2314 (lex_warn_invalid): Use ISPRINT instead of isprint.
2315 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2316 (main): For gettext, also set the LC_CTYPE locate facet.
2317 (add_keepsyms_file): Use ISSPACE instead of isspace.
2318 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2319 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2320 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2321 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2322 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2323 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2324 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2325 (quoteput): Use ISSPACE instead of isspace.
2326 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2327 instead of isalnum.
2328
db09f25b
AM
23292001-09-18 Alan Modra <amodra@bigpond.net.au>
2330
2331 * deffilep.y (def_stash_module): Constify "name" param.
2332
2333 * pe-dll.c: Replace CONST with const throughout.
2334 (quick_symbol): Constify "n1", "n2", "n3" params.
2335 (make_singleton_name_thunk): Constify "import" param. Make
2336 "buffer_len" a size_t.
2337 (make_import_fixup_entry): Constify "name", "fixup_name",
2338 "dll_symname" params.
2339 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2340 (pe_get32): Likewise.
2341 (pe_implied_import_dll): Likewise.
2342
2343 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2344 (sort_by_section_name): Likewise.
2345
2346 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2347 (make_import_fixup): Cast printf arg, rel->address to long rather
2348 than int.
2349 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2350
74699268
AM
23512001-09-15 Alan Modra <amodra@bigpond.net.au>
2352
2353 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2354 defines BufferSize. Increase buffer size by one.
2355
775cabad
NC
23562001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2357
2358 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2359
056a1d49
NC
23602001-09-14 Kevin Lo <kevlo@openbsd.org>
2361
2362 * configure.tgt: Add arm-openbsd target.
2363
a7d792bb
L
23642001-09-12 H.J. Lu <hjl@gnu.org>
2365
2366 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2367 eelf64lppc.o to ...
2368 (ALL_64_EMULATIONS): Here.
2369 * Makefile.in: Regenerated.
2370
0d888aac
CW
23712001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2372
2373 * emultempl/pe.em(make_import_fixup): change signature to
2374 take asection as well as arelec; we need this for proper
146e7110 2375 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
2376 there is no attempt to add a constant addend to the reloc;
2377 otherwise, report error condition.
2378 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2379 since final argument is a pointer to make_import_fixup().
2380 Change call to cb() to match make_import_fixup() signature.
2381 (make_import_fixup_mark): make buffer_len unsigned.
2382 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2383
23842001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2385
2386 * ld.texinfo: add verbose documentation for auto-import
146e7110 2387 direct-addressing workaround, to compliment the terse
0d888aac
CW
2388 error message.
2389
cedacdc0
CM
23902001-09-12 Andrew MacLeod <amacleod@redhat.com>
2391
146e7110 2392 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 2393
3b16e843 23942001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
2395
2396 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2397 * emulparams/h8300self.sh: Similarly.
2398
559e4713
NC
23992001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2400
2401 * ld.texinfo (Options, --stack): Correct default value for stack
2402 reserve.
2403
1fdf0249
TR
24042001-09-05 Tom Rix <trix@redhat.com>
2405
2406 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 2407
9b5799b8
AJ
24082001-09-03 Andreas Jaeger <aj@suse.de>
2409
2410 * emultempl/beos.em: Declare prototypes for comparions functions,
2411 adjust definitions.
2412
48f6162b
AJ
24132001-09-02 Andreas Jaeger <aj@suse.de>
2414
2415 * emultempl/aix.em: Add missing prototype.
2416 * emultempl/lnk960.em: Likewise.
2417 * emultempl/vanilla.em: Likewise.
2418 * emultempl/armcoff.em: Likewise.
2419 * emultempl/armelf_oabi.em: Likewise.
2420 * emultempl/beos.em: Likewise.
2421 * emultempl/gld960c.em: Likewise.
2422 * emultempl/gld960.em: Likewise.
2423
2424 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2425 for prototype declaration.
2426
39e5585e
EC
24272001-08-31 Eric Christopher <echristo@redhat.com>
2428 Jason Eckhardt <jle@redhat.com>
2429
2430 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2431
3fc90ddb
AJ
24322001-08-31 Andreas Jaeger <aj@suse.de>
2433
2434 * emultempl/pe.em: Add missing prototypes.
2435 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2436 pe_find_data_imports.
2437 (pr_sym): Add unused attribute.
2438
d43ded80
PB
24392001-08-29 Joel Sherrill <joel@OARcorp.com>
2440
39e5585e 2441 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
2442 default from coff to elf.
2443
3946dd2f
JL
24442001-08-29 Jeff Law <law@redhat.com>
2445
2446 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2447 ARCH specification.
2448 * emulparams/h8300self.sh: Similarly.
2449
3b16e843 24502001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
2451
2452 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2453 eh8300self.o .
2454 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2455 * configure.tgt (h8300-*-elf*): New case.
2456 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2457 * emulparams/h8300self.sh: New file.
2458 * Makefile.in: Regenerated.
2459
70d0c6e9
NC
24602001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2461
2462 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2463 with macro name.
2464
5c67d4bb
AM
24652001-08-27 Linus Nordberg <linus@swox.com>
2466 Alan Modra <amodra@bigpond.net.au>
2467
2468 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2469 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2470 Run "make dep-am"
2471 * Makefile.in: Regenerate.
2472 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2473 entries to correct alphabetical position.
2474 * emulparams/elf64ppc.sh: New.
2475 * emulparams/elf64lppc.sh: New.
2476
08131015
NC
24772001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2478
2479 * ldmain.c (main): Declare BSIZE as static.
2480
db6751f2
JJ
24812001-08-23 Jakub Jelinek <jakub@redhat.com>
2482
2483 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2484 into .rel.dyn resp. .rela.dyn if combreloc.
2485 (get_script): If .x linker script is equal to .xn, only put it
2486 once into the binary.
2487 Add .xc and .xsc scripts.
2488 (parse_args): Handle -z combreloc and -z nocombreloc.
2489 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2490 For .xc and .xsc scripts put all .rel* or .rela* input sections
2491 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2492 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2493 is elf.
2494 Strip trailing whitespace from script.
2495 Generate .xc and .xsc scripts if requested.
2496 * ldmain.c (main): Initialize link_info.combreloc and
2497 link_info.spare_dynamic_tags.
2498 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2499 (ld_options): Add --spare-dynamic-tags option.
2500 (parse_args): Likewise.
2501 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2502 * ldint.texinfo: Document .xc and .xsc linker scripts.
2503 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2504
63d069c0
L
25052001-08-22 H.J. Lu <hjl@gnu.org>
2506
2507 * emulparams/elf32fr30.sh: Add a newline.
2508
948f9114
AJ
25092001-08-21 Andreas Jaeger <aj@suse.de>
2510
2511 * deffilep.y: Add missing prototypes.
2512 * pe-dll.c: Likewise.
2513
ae7fb08f
AM
25142001-08-20 Alan Modra <amodra@bigpond.net.au>
2515
2af02257
AM
2516 * ldlang.c (insert_pad): Fix typos in last patch.
2517
2518 * ldlang.c: When traversing lang_statement_union_type lists,
2519 consistently use "header.next" rather than "next".
2520 * mpw-eppcmac.c: Likewise.
2521 * emultempl/beos.em: Likewise.
2522 * emultempl/hppaelf.em: Likewise.
2523 * emultempl/pe.em: Likewise.
2524 * ldlang.h (union lang_statement_union): Remove "next" field.
2525
c0c330a7
AM
2526 * ldlang.c (insert_pad): Use offsetof macro.
2527 (lang_size_sections): Always neuter padding statements.
2528 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2529
ae7fb08f
AM
2530 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2531 passed to lang_size_sections.
2532 (pe_exe_fill_sections): Likewise.
2533 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2534 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2535
fab80407
AM
25362001-08-18 Alan Modra <amodra@bigpond.net.au>
2537
2538 * emultempl/aix.em: Formatting fixes.
2539
b3327aad
AM
25402001-08-18 Alan Modra <amodra@bigpond.net.au>
2541
2542 * ldlang.c (insert_pad): Make use of an existing pad statement if
2543 available. Move code calculating alignment, adjusting section
2544 alignment power, and adjusting dot to ..
2545 (size_input_section): .. here. Remove unused relax param.
2546 (lang_size_sections): Change boolean `relax' param to boolean *.
2547 Adjust call to size_input_section. Make use of insert_pad to
2548 place pad after the assignment statement. If relaxing, zap
2549 padding statements.
2550 (reset_memory_regions): Reset output_bfd section sizes too.
2551 (relax_again): Move to..
2552 (lang_process): ..here. Adjust call to lang_size_sections, and
2553 remove duplicated code.
2554 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2555
563e308f
AM
25562001-08-17 Alan Modra <amodra@bigpond.net.au>
2557
2558 * ld.texinfo: Document that fill values now use the four least
2559 significant bytes.
2560 * emulparams/elf32fr30.sh (NOP): Update.
2561 * emulparams/elf32mcore.sh: Likewise.
2562 * emulparams/elf64_s390.sh: Likewise.
2563 * emulparams/elf_i386.sh: Likewise.
2564 * emulparams/elf_i386_be.sh: Likewise.
2565 * emulparams/elf_i386_chaos.sh: Likewise.
2566 * emulparams/elf_i386_ldso.sh: Likewise.
2567 * emulparams/elf_s390.sh: Likewise.
2568 * emulparams/elf_x86_64.sh: Likewise.
2569 * emulparams/i386moss.sh: Likewise.
2570 * emulparams/i386nw.sh: Likewise.
2571 * emulparams/m68kelf.sh: Likewise.
2572 * scripttempl/elf.sc: Update NOP comment.
2573 * scripttempl/elfi370.sc: Likewise.
2574 * scripttempl/elfm68hc11.sc: Likewise.
2575 * scripttempl/elfm68hc12.sc: Likewise.
2576 * scripttempl/nw.sc: Likewise.
2577
b90e1c6f
TR
25782001-08-15 Tom Rix <trix@redhat.com>
2579
2580 * ldgram.y (saved_script_handle): Initialize to NULL.
2581 * ldmain.c (main): Change check on saved_script_handle.
948f9114 2582
39dcfe18
AM
25832001-08-14 Alan Modra <amodra@bigpond.net.au>
2584
cde43e70
AM
2585 * emultempl/elf32.em: Formatting fixes.
2586 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2587 looking at sec->owner.
2588 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2589 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2590 unused code, and reorganize orphan section placement code.
2591
39dcfe18
AM
2592 * ldlang.c (wild_doit): Rename to lang_add_section.
2593 * ldlang.h: Here too.
2594 * mpw-elfmips.c: And here.
2595 * emultempl/beos.em: And here.
2596 * emultempl/elf32.em: And here.
2597 * emultempl/hppaelf.em: And here.
2598 * emultempl/pe.em: And here.
2599
908d20b3
RH
26002001-08-13 Richard Henderson <rth@redhat.com>
2601
2602 * emultempl/needrelax.em: New file.
2603 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2604 * Makefile.am (eelf64_ia64.c): Depend on it.
2605 * Makefile.in: Rebuild.
2606
0f33d40b
AM
26072001-08-13 Alan Modra <amodra@bigpond.net.au>
2608
22af9fd3
AM
2609 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2610 output_section is set non-NULL.
2611
0f33d40b
AM
2612 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2613 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2614 needlessly create an output_section_statement. Treat a correctly
2615 named output_section_statement with NULL bfd_section as compatible.
2616
55ab6103
HPN
26172001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2618
2619 * emultempl/generic.em: Support EXTRA_EM_FILE.
2620 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2621 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2622 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2623 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2624 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2625 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2626 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2627 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2628 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2629 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2630
24098abb
RH
26312001-08-12 Richard Henderson <rth@redhat.com>
2632
2633 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2634 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2635 scripttempl/v850.sc: Keep .jcr data.
2636
b9a8de1e 26372001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
2638 Andrew Haley <aph@cambridge.redhat.com>
2639 Nick Clifton <nickc@redhat.com>
b9a8de1e 2640
146e7110 2641 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
2642 Change type to file handle.
2643 * ld.h (had_script): Rename and retype.
2644 * ldfile.c (ldfile_open_command_file): Save the file handle
2645 used in saved_script_handle.
2646 * lexsup.c (parse_args): Do not allow -c option to alter
2647 saved_script_handle.
2648 * ldmain.c (main): Print out the linker script used if
2649 --verbose is given. Check saved_script_handle to obtain the
2650 external linker script used, or if NULL, dump the builtin
2651 script.
2652 * ld.texinfo: Document that --verbose now dumps the linker
2653 script used, regardless of whether it was an internal or an
2654 external script.
2655
0218d1e4
AJ
26562001-08-10 Andreas Jaeger <aj@suse.de>
2657
2658 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2659 to build warnings.
2660 * configure: Regenerate.
2661
5253f23b
AM
26622001-08-09 Alan Modra <amodra@bigpond.net.au>
2663
73810896
AM
2664 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2665
5253f23b
AM
2666 * scripttempl/elf.sc: Move non-text .dynamic section before
2667 .plt/.got/.sdata* group.
2668 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2669 (OTHER_SDATA_SECTIONS): Add.
2670 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2671 OTHER_GOT_SECTIONS.
2672 * emulparams/crislinux.sh: Likewise.
2673 * emulparams/elf32b4300.sh: Likewise.
2674 * emulparams/elf32bmip.sh: Likewise.
2675 * emulparams/elf32bmipn32.sh: Likewise.
2676 * emulparams/elf32bsmip.sh: Likewise.
2677 * emulparams/elf32btsmip.sh: Likewise.
2678 * emulparams/elf32ebmip.sh: Likewise.
2679 * emulparams/elf32elmip.sh: Likewise.
2680 * emulparams/elf32l4300.sh: Likewise.
2681 * emulparams/elf32lmip.sh: Likewise.
2682 * emulparams/elf32lsmip.sh: Likewise.
2683 * emulparams/elf32ltsmip.sh: Likewise.
2684 * emulparams/elf64bmip.sh: Likewise.
2685 * emulparams/elf64btsmip.sh: Likewise.
2686 * emulparams/elf64ltsmip.sh: Likewise.
2687
179c732c
AM
26882001-08-08 Alan Modra <amodra@bigpond.net.au>
2689
2690 * genscripts.sh: Source the emulparams script before each output
2691 script is generated so that variables like `RELOCATING' may affect
2692 variables defined in the emulparams script.
2693
3fd36710
AM
26942001-08-04 Alan Modra <amodra@bigpond.net.au>
2695
20713691
AM
2696 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2697 order.
2698
3fd36710
AM
2699 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2700 ie. iterate over wild_statement.section_list.
2701 (gld${EMULATION_NAME}_place_orphan): Likewise.
2702
de0b1853
SC
27032001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2704
2705 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2706 .fini[0-4] sections used by _exit
2707 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2708 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2709 * scripttempl/elfm68hc11.sc: Likewise.
2710
ff7e6f88
L
27112001-08-03 H.J. Lu <hjl@gnu.org>
2712
2713 * emultempl/beos.em (init): Add the missing initialization.
2714
b6bf44ba
AM
27152001-08-03 Alan Modra <amodra@bigpond.net.au>
2716
2717 * ld.texinfo (Input Section Basics): Clarify ordering of output
2718 sections.
2719 * ldlang.c (callback_t): Add wildcard_list param.
2720 (walk_wild_section): Remove "section" param. Rewrite for
2721 lang_wild_statement_type change. Remove unique_section_p test.
2722 (walk_wild_file): Remove "section" param.
2723 (walk_wild): Remove "section" and "file" params.
2724 (lang_gc_wild): Likewise.
2725 (wild): Likewise. Modify for lang_wild_statement_type change.
2726 (wild_sort): Likewise. Add "sec" param.
2727 (gc_section_callback): Likewise.
2728 (output_section_callback): Likewise. Do unique_section_p test.
2729 (map_input_to_output_sections): Modify call to wild.
2730 (lang_gc_sections_1): Likewise.
2731 (print_wild_statement): Modify for lang_wild_statement_type
2732 change.
2733 (lang_add_wild): Replace filename, filenames_sorted param with
2734 filespec. Replace section_name, sections_sorted,
2735 exclude_filename_list with section_list.
2736 * ldlang.h (lang_add_wild): Here too.
2737 (lang_wild_statement_type): Replace section_name, sections_sorted,
2738 and exclude_filename_list with section_list.
2739 * ldgram.y (current_file): Delete.
2740 (%union): Add wildcard_list.
2741 (file_NAME_list): Set type to wildcard_list. Build a linked list
2742 rather than calling lang_add_wild for each entry.
2743 (input_section_spec_no_keep): Call lang_add_wild here instead.
2744 * ld.h (struct wildcard_list): Declare.
2745 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2746
b044cda1
CW
27472001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2748
2749 * ldmain.c (main): initialize link_info.pei386_auto_import
2750 * pe-dll.c: new tables for auto-export filtering
2751 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 2752 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
2753 "by hand".
2754
27552001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2756
b6bf44ba
AM
2757 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2758 static variable current_sec (static struct sec *). Add
b044cda1 2759 forward declaration for add_bfd_to_link.
b6bf44ba
AM
2760 (process_def_file): Don't export undefined symbols. Do not
2761 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
2762 with new API.
2763 (pe_walk_relocs_of_symbol): New function.
2764 (generate_reloc): add optional extra debugging
b6bf44ba 2765 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 2766 line in output
b6bf44ba 2767 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
2768 (DATA auto-import support).
2769 (make_singleton_name_thunk): New function.
2770 (make_import_fixup_mark): New function.
2771 (make_import_fixup_entry): New function.
2772 (pe_create_import_fixup): New function.
b6bf44ba 2773 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 2774 char *.
b6bf44ba
AM
2775 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2776 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
2777 pe_create_import_fixup.
2778 * emultempl/pe.em: add new options --enable-auto-import,
2779 --disable-auto-import, and --enable-extra-pe-debug.
2780 (make_import_fixup): New function.
2781 (pe_find_data_imports): New function.
2782 (pr_sym): New function.
b6bf44ba 2783 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
2784 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2785 CODE.
2786
27872001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 2788
b044cda1
CW
2789 * ld.texinfo: add additional documentation for
2790 --export-all-symbols. Document --out-implib,
2791 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
2792 --dll-search-prefix, --enable-auto-import, and
2793 --disable-auto-import.
b044cda1
CW
2794 * ldint.texinfo: Add detailed documentation on auto-import
2795 implementation.
2796
156e34dd
NC
27972001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2798
2799 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2800 example.
2801
d6231427
AM
28022001-07-24 Alan Modra <amodra@bigpond.net.au>
2803
2804 * Makefile.am: Update dependencies with "make dep-am".
2805 * Makefile.in: Regenerate
2806
e14ec88b
AM
28072001-07-23 Alan Modra <amodra@bigpond.net.au>
2808
2809 * ldcref.c (check_section_sym_xref): New function.
2810 (check_nocrossrefs): Call it.
2811 (check_nocrossref): Interate over h->refs here instead of..
2812 (check_refs): ..here. Pass in the symbol name, section, and bfd
2813 rather than hash_entry pointers.
2814 (struct check_refs_info): Keep symbol name rather than hash entry.
2815 Remove "same".
2816 (check_reloc_refs): Tweak for above changes in check_refs_info.
2817 Only report references to section syms when symname is NULL to
2818 prevent duplicate messages for the same reloc.
2819
1b577b00
NC
28202001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2821
c7d701b0
NC
2822 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2823 available. Do not print NULL trees.
2824 (exp_print_token): Print unknown tokens with values > 126 as
2825 decimal values not ASCII characters.
2826
1545243b
NC
2827 * ldlang.c (lang_leave_overlay): If a region is specified assign
2828 it to all sections inside the overlay unless they have been
2829 assigned to the own, non-default, memory region.
2830
1b577b00
NC
2831 * README: Add header for consistency with other README files.
2832
5030876b
L
28332001-07-14 H.J. Lu <hjl@gnu.org>
2834
2835 * emultempl/elf32.em (output_prev_sec_find): Never return
2836 bfd_abs_section_ptr, bfd_com_section_ptr nor
2837 bfd_und_section_ptr.
2838
18c7a9a5
NC
28392001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2840
22af9fd3 2841 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
2842 elf32.em.
2843 * Makefile.in: Regenerate.
2844
9ffecff1
MG
28452001-07-14 matthew green <mrg@eterna.com.au>
2846
2847 * configure.tgt (i386-*-netbsdelf*): New target.
2848 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2849
95500e1c
JJ
28502001-07-13 Jakub Jelinek <jakub@redhat.com>
2851
2852 * emultempl/elf32.em (output_prev_sec_find): New.
2853 (place_orphan): Use it.
2854
e97cb84f
L
28552001-07-11 H.J. Lu <hjl@gnu.org>
2856
2857 * ldmain.c (main): Fix typos in the last change.
2858
7333607e
JJ
28592001-07-11 Jakub Jelinek <jakub@redhat.com>
2860
2861 * ldmain.c (main): Disallow -F and -f without -shared.
2862
d29d80f2
NC
28632001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2864
2865 * emultempl/pe.em (after_open): Check for the output_bfd not
2866 having any coff_data structure allocated to it.
2867
c2a1a436
DB
28682001-07-09 David O'Brien <obrien@FreeBSD.org>
2869
2870 * emultempl/elf32.em: Do not assuming that contents of the buffer
2871 returned from basename function will remain unchanged accross other
2872 function calls.
2873
63653551
L
28742001-07-03 H.J. Lu <hjl@gnu.org>
2875
2876 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2877 2001-07-03. It creates dynamic entries even for static binaries.
2878
d303a449
L
28792001-07-03 Jakub Jelinek <jakub@redhat.com>
2880
2881 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2882 (DYNAMIC): Use it to reserve few dynamic entries for
2883 post-linking tools.
2884
9f22353f
AM
28852001-06-27 Alan Modra <amodra@bigpond.net.au>
2886
2887 * emulparams/hppa64linux.sh: New file.
2888 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2889 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2890 (ehppa64linux.c): Add rule to make it.
2891 Run "make dep-am".
2892 * Makefile.in: Regenerate.
2893
62bf86b4
HPN
28942001-06-21 Hans-Peter Nilsson <hp@axis.com>
2895
2896 * ld.texinfo (Options, -r): Mention restrictions when using
2897 different object formats.
2898
429d935d
HPN
28992001-06-19 Hans-Peter Nilsson <hp@axis.com>
2900
2901 * ldlang.c (lang_check): Emit fatal error if relocatable link
2902 between different object flavours with relocations in input.
2903
cb840a31
L
29042001-06-19 H.J. Lu <hjl@gnu.org>
2905
2906 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2907 (--version-script): Mention the language support.
2908
9bf03acc
L
29092001-06-19 H.J. Lu <hjl@gnu.org>
2910
2911 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2912
c45021f2
NC
29132001-06-18 H.J. Lu <hjl@gnu.org>
2914
b6bf44ba
AM
2915 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2916 (diststuff): Add $(MANS).
2917 * Makefile.in: Regenerated.
c45021f2 2918
b6bf44ba 2919 * ld.1: Removed.
c45021f2 2920
6caa99ab
HPN
29212001-06-18 Hans-Peter Nilsson <hp@axis.com>
2922
605d9b3a
HPN
2923 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2924 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2925 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2926 * ld.h (args_type): Remove member export_dynamic. All users
2927 changed to use struct bfd_link_info member.
2928
6caa99ab
HPN
2929 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2930 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2931 * Makefile.in: Regenerate.
2932
6f9efd97
L
29332001-06-18 H.J. Lu <hjl@gnu.org>
2934
2935 * ldlang.c (init_os): Add the newline to the einfo call.
2936 (lang_check): Likewise.
2937 (lang_do_version_exports_section): Likewise.
2938
5af9fd8b
L
29392001-06-15 H.J. Lu <hjl@gnu.org>
2940
2941 * lexsup.c (parse_args); Save optind to report unrecognized
2942 option.
2943
2a096f04
HPN
29442001-06-15 Hans-Peter Nilsson <hp@axis.com>
2945
7e66c3f5
HPN
2946 * ldlang.c (lang_check): Emit fatal error if relocatable link
2947 between different object flavours.
2948
2a096f04
HPN
2949 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2950 Set new link_info member export_dynamic.
2951 * ldmain.c (main): Initialize new link_info member export_dynamic.
2952
6770ec8c
NC
29532001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2954
2955 * ldlang.c (walk_wild): Only call walk_wild_file if
2956 lookup_name returns something.
b6bf44ba 2957 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 2958 (load_symbols): Change to a boolean function.
b6bf44ba 2959 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
2960 executable.
2961
8529105a
AM
29622001-06-08 Alan Modra <amodra@bigpond.net.au>
2963
2964 * ldlang.c (record_bfd_errors): Remove.
2965
2966 * emultempl/aix.em: Fix copyright dates.
2967
8f3aa7a0
AJ
29682001-06-07 Andreas Jaeger <aj@suse.de>
2969
2970 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2971 (TEXT_START_ADDR): Likewise.
2972
3277f888
AM
29732001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2974
2975 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2976
3763134d
DD
29772001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2978
2979 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2980
5929ebc0
L
29812001-05-31 H.J. Lu <hjl@gnu.org>
2982
2983 * ldlang.c (open_input_bfds): Don't change the bfd error
2984 handler whilst loading symbols.
2985
c04a062d
NC
29862001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2987
2988 * configure.tgt: Remove i370-mvs architecture, it is not currently
2989 supported.
2990
96fcab3e
L
29912001-05-25 H.J. Lu <hjl@gnu.org>
2992
2993 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2994 like emulparams/aixppc.sh.
2995
db8d4f23
L
29962001-05-25 H.J. Lu <hjl@gnu.org>
2997
2998 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2999 setting of output_filename after bfd_scan_arch.
3000 * emultempl/pe.em: Likewise.
3001
5f642101
L
30022001-05-25 H.J. Lu <hjl@gnu.org>
3003
3004 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3005 like emulparams/aixppc.sh.
3006
3007 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3008 instead of ${srcdir}/emultempl/stringify.sed.
3009
64e9ece0
TW
30102001-05-25 Timothy Wall <twall@oculustech.com>
3011
3012 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 3013 output.
64e9ece0 3014
c709b096
AM
30152001-05-25 Alan Modra <amodra@one.net.au>
3016
3017 * configure.host: Replace linuxoldld with linux*oldld.
3018 * configure.tgt: Likewise.
3019
6cbdcc6f
L
30202001-05-24 H.J. Lu <hjl@gnu.org>
3021
3022 * emultempl/stringify.sed: Removed again.
3023
86af25fe
L
30242001-05-24 H.J. Lu <hjl@gnu.org>
3025
3026 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3027 (gld${EMULATION_NAME}_before_parse): Initialize
3028 ldfile_output_architecture, ldfile_output_machine and
3029 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3030 * emultempl/beos.em: Likewise.
3031 * emultempl/elf32.em: Likewise.
3032 * emultempl/linux.em: Likewise.
3033 * emultempl/mipsecoff.em: Likewise.
3034 * emultempl/pe.em: Likewise.
3035 * emultempl/sunos.em: Likewise.
3036
3b1b01cf
TR
30372001-05-24 Tom Rix <trix@redhat.com>
3038
8f3aa7a0 3039 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
3040 udate import file format.
3041 (change_symbol_mode) New, same
3042 (is_syscall) New, same
3043 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3044 * emulparams/aixppc64.sh : same
3045 * emulparams/aixrs6.sh : same
3046 * emulparams/ppcmacos.sh : same
3047 * emultempl/aix.em : use strtoull to parse options
3048 * Makefile.am : add eaixppc64 emulation for xcoff64
3049 * Makefile.in : same
3050 * configure.tgt : same
3051
3052 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 3053 default data section offset to 0x20000000
3b1b01cf 3054 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 3055 loader and debug sections use the currect section offset.
3b1b01cf
TR
3056
3057 * emultempl/aix.em : Add xcoff64 support
3058 Add -binitfini support
8f3aa7a0 3059 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 3060 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 3061 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
3062 sections
3063
3064 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 3065
57e6abd2
AO
30662001-05-23 Alexandre Oliva <aoliva@redhat.com>
3067
3068 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3069 variable to avoid non-portable shell construct.
3070
d1cf510e
NC
30712001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3072
3073 * ldmain.c (get_emulation): Add -mips5 command line argument.
3074
506eee22
NC
30752001-05-22 Alexandre Oliva <aoliva@redhat.com>
3076
3077 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3078 (ELF_INTERPRETER_NAME): Define it.
3079 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3080 it.
3081 * configure.tgt (targ_emul, targ_extra_emuls)
3082 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3083 as primary, elf_i386 as extra.
3084 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3085 (eelf_i386_ldso.c): New rule.
3086 * Makefile.in: Rebuilt.
3087
30882001-05-22 Nick Clifton <nickc@redhat.com>
3089
3090 * lexsup.c (ld_options): Allow -I to be an alias for
3091 --dynamic-linker. This is for Solaris compatability.
3092 * ld.texinfo: Document that -I can be used.
3093 * ld.1: Regenerate.
3094
d1778b88
AM
30952001-05-16 Alan Modra <amodra@one.net.au>
3096
3097 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3098 whether an input section is the first one assigned to an output
3099 section.
3100 Assorted formatting fixes.
3101
02649152
DD
31022001-05-14 DJ Delorie <dj@delorie.com>
3103
3104 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3105 * Makefile.in: Ditto.
3106
579f31ac
JJ
31072001-05-11 Jakub Jelinek <jakub@redhat.com>
3108
3109 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3110 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3111 output sections.
3112 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3113
8550eb6e
JJ
31142001-05-11 Jakub Jelinek <jakub@redhat.com>
3115
3116 * ldlang.c (lang_process): Call bfd_merge_sections.
3117
8e5a525c
AM
31182001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3119
3120 * ldgram.y: Fix typo.
3121
1c9acd94
L
31222001-05-03 H.J. Lu <hjl@gnu.org>
3123
3124 * emultempl/elf32.em: Include "libiberty.h".
3125 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3126 basename of the bfd filename.
3127 (gld${EMULATION_NAME}_stat_needed): Likewise.
3128 (gld${EMULATION_NAME}_try_needed): Likewise.
3129 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3130
14fe918e
L
31312001-05-02 H.J. Lu <hjl@gnu.org>
3132
3133 * emultempl/pe.em: Include <ctype.h>.
3134
c7e40348
NC
31352001-05-02 Johan Rydberg <jrydberg@opencores.org>
3136
b6bf44ba 3137 * emulparams/elf32openrisc.sh: New file.
c7e40348 3138
b6bf44ba
AM
3139 * Makefile.am: Add OpenRISC target.
3140 * Makefile.in: Regenerated.
c7e40348 3141
b6bf44ba 3142 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
3143
31442001-05-02 Nick Clifton <nickc@redhat.com>
3145
3146 * emultempl/aix.em: Replace buystring with xstrdup.
3147 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 3148
d1b2b2dc
L
31492001-05-02 H.J. Lu <hjl@gnu.org>
3150
3151 * ldfile.c: Include "libiberty.h".
3152 * ldlex.l: Likewise.
3153
3154 * ldmisc.c (buystring): Removed.
3155 * ldmisc.h: Likewise.
3156
3157 * ldfile.c: Replace buystring with xstrdup.
3158 * ldlang.c: Likewise.
3159 * ldlex.l: Likewise.
3160 * ldmain.c: Likewise.
3161 * ldmisc.c: Likewise.
3162 * lexsup.c: Likewise.
3163 * mpw-eppcmac.c: Likewise.
3164
35714f2a
AJ
31652001-04-30 Andreas Jaeger <aj@suse.de>
3166
3167 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3168
884fb58e
NC
31692001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3170
b6bf44ba
AM
3171 * ldlang.c (load_symbols): Give emulation a chance
3172 to process unrecognized file before fatal error is
3173 reported, not after.
884fb58e 3174
87748b32
NC
31752001-04-27 Sean McNeil <sean@mcneil.com>
3176
3177 * configure.tgt: Add arm-vxworks target.
3178 * scripttempl/armcoff.sc: Support .text or .data as a section name
3179 prefix.
3180 Define _etext.
35714f2a 3181
7ce691ae
C
31822001-04-13 J.T. Conklin <jtc@redback.com>
3183
3184 * ld.texinfo: Document --fatal-warnings.
3185 * ld.1: Regenerate.
3186
3187 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 3188 warnings have been turned into errors.
7ce691ae
C
3189 * lexsup.c (OPTION_WARN_FATAL): Define.
3190 (ld_options): Entry for --fatal-warnings.
3191 (parse_args): Handle OPTION_WARN_FATAL.
3192 * ld.h (ld_config_type): Add fatal_warnings field.
3193
f5fa8ca2
JJ
31942001-04-13 Jakub Jelinek <jakub@redhat.com>
3195
3196 * ldmain.c (main): Default to discard_sec_merge.
3197 * lexsup.c (OPTION_DISCARD_NONE): Define.
3198 (ld_options): Add --discard-none.
3199 (parse_args): Handle OPTION_DISCARD_NONE.
3200 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3201 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3202 all its input sections match.
3203
fdec3cfc
L
32042001-04-05 Steven J. Hill <sjhill@cotw.com>
3205
3206 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3207 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3208 (eelf32ltsmip.c): New target.
3209 (eelf64btsmip.c): Likewise.
3210 (eelf64ltsmip.c): Likewise.
3211 * Makefile.in: Regenerated.
3212
3213 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3214 target.
3215 (mips*-*-linux-gnu*): Likewise.
3216
3217 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3218 MIPS taget.
35714f2a 3219 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
3220 target.
3221 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3222 endian target.
3223
589bad82
HPN
32242001-04-05 Hans-Peter Nilsson <hp@axis.com>
3225
3226 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3227 correct value of __Stext here.
3228 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3229 .startup section.
3230
3231 * emulparams/crislinux.sh: Remove FIXME.
3232
94202e16
AM
32332001-04-02 Alan Modra <alan@linuxcare.com.au>
3234
3235 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3236 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3237
1268a053
HPN
32382001-03-27 Hans-Peter Nilsson <hp@axis.com>
3239
3240 * configure.tgt (cris-*-*): Change default emulation to criself.
3241 (cris-*-*aout*): New rule.
3242
d85e9ff7
AM
32432001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3244
3245 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3246 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3247
0879a67a
AJ
32482001-03-26 Andreas Jaeger <aj@suse.de>
3249
3250 * ld.texinfo (Overview): Fix syntax in texi code.
3251
0285c67d
NC
32522001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3253
3254 * ld.texinfo: Put @c man indications to generate the ld man page.
3255 When generating man, define all the variables. Define SEEALSO
3256 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3257 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3258 (ld.1): Generate from ld.texinfo.
3259 * Makefile.in: Regenerate.
3260
c20ec07b
NC
32612001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3262
3263 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 3264 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 3265
cc5ce052
UD
32662001-03-17 Ulrich Drepper <drepper@redhat.com>
3267
3268 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3269 is an absolute path look only for this file and not along the path.
3270
a1ab1d2a
UD
32712001-03-17 Ulrich Drepper <drepper@redhat.com>
3272
3273 * emultempl/elf32.em (OPTION_GROUP): New macro.
3274 Add new option Bgroup to longopts.
3275 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3276 (gld*_list_options): Add -Bgroup and -z defs.
3277 * ld.1: Document -Bgroup and -z defs.
3278 * ld.texinfo: Likewise.
3279
788fca5a
MM
32802001-03-07 Michael Meissner <meissner@redhat.com>
3281
3282 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3283 with sections created by -fdata-sections.
3284 (.dynbss,.bss): Ditto.
3285
1c7566d1
AM
32862001-03-05 Alan Modra <alan@linuxcare.com.au>
3287
3288 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3289 after_allocation_default, not gld..._before_allocation.
3290
27b7e12d
AM
32912001-02-27 Alan Modra <alan@linuxcare.com.au>
3292
3293 * configure.in (BFD_VERSION): New.
3294 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3295 * configure: Regenerate.
3296 * Makefile.am: Run "make dep-am"
3297 * Makefile.in: Regenerate.
3298
2bc551c7
TW
32992001-02-26 Timothy Wall <twall@cygnus.com>
3300
3301 * emulparams/elf64_aix.sh: Add additional read-only sections;
3302 uncomment lines which are now required.
3303
1276aefa
NC
33042001-02-26 H.J. Lu <hjl@gnu.org>
3305
3306 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
3307 that problems can be caught whilst loading symbols.
3308 (record_bfd_errors): New function: Report BFD errors and mark
3309 the executable output as being invalid.
1276aefa 3310
41c49998
TW
33112001-02-22 Timothy Wall <twall@cygnus.com>
3312
3313 * configure.host: Add configuration for ia64-*-aix*.
3314 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3315 Add dependencies for eelf64_aix.c.
3316 * Makefile.in: Regenerate.
3317 * configure.tgt: Add ia64-*-aix* mapping.
3318 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 3319 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
3320 AIX-specific test.
3321
78f85fd7
L
33222001-02-20 H.J. Lu <hjl@gnu.org>
3323
3324 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3325 false if we found the file.
3326
1ac7e077 33272001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
3328
3329 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3330 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3331
e135f41b
NC
33322001-02-18 lars brinkhoff <lars@nocrew.org>
3333
3334 * Makefile.am: Add PDP-11 target.
3335 * configure.tgt: Likewise.
3336 * emulparams/pdp11.sh: New file.
3337
a842aceb
DB
33382001-02-17 David O'Brien <obrien@FreeBSD.org>
3339
3340 * configure.host: Add a generic FreeBSD configuration entry such that
3341 all [modern] FreeBSD systems on all platforms will look the same.
3342
24174db0
L
33432001-02-14 H.J. Lu <hjl@gnu.org>
3344
3345 * configure.tgt: Remove mention of earmelf_linux26.
3346
30c3c13a
RH
33472001-02-13 Richard Henderson <rth@redhat.com>
3348
3349 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3350
b46a87b1
L
33512001-02-13 H.J. Lu <hjl@gnu.org>
3352
3353 * ldexp.h (node_type): Add etree_provided.
3354 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3355 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 3356 for etree_provided.
b46a87b1
L
3357 (exp_print_tree): Handle etree_provided.
3358 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3359 etree_provided.
3360
f3988fd9
RH
33612001-02-09 David Mosberger <davidm@hpl.hp.com>
3362
3363 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3364 .IA_64.unwind.* pattern to unwind table section and
3365 .IA_64.unwind_info* pattern to unwind info section.
3366
a85d7ed0
NC
33672001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3368
3369 * Makefile.am: Add linux target for S/390.
3370 * Makefile.in: Likewise.
3371 * configure.host: Likewise.
3372 * configure.tgt: Likewise.
3373 * emulparams/elf64_s390.sh: New file.
3374 * emulparams/elf_s390.sh: New file.
3375
780248c4
JJ
33762001-02-09 Jakub Jelinek <jakub@redhat.com>
3377
3378 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3379 targ_extra_libpath.
3380 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3381
0e2534bd
PB
33822001-02-06 Philip Blundell <philb@gnu.org>
3383
3384 * Makefile.am: Remove mention of earmelf_linux26.
3385 * Makefile.in: Regenerate.
3386
46c1ea57
PB
33872001-02-04 Philip Blundell <philb@gnu.org>
3388
3389 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3390 * emulparams/armelf_linux26.sh: Delete.
3391 * configure.tgt: Remove mention of armelf_linux26 emulation.
3392
0088edd2
NC
33932001-02-01 Nick Clifton <nickc@redhat.com>
3394
3395 * ld.1: Replace occurances of -oformat with --oformat.
3396
02aa14fb
AM
33972001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3398
3399 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3400 load_base is specified.
3401
f813923c
HPN
34022001-01-24 Hans-Peter Nilsson <hp@axis.com>
3403
3404 * emultempl/elf32.em: Correct spelling in comments and listed
3405 options.
3406
c1eb1488
AM
34072001-01-23 Alan Modra <alan@linuxcare.com.au>
3408
3409 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3410 default for the first section of a group of overlay sections.
3411
d9fc3714
AM
34122001-01-22 Alan Modra <alan@linuxcare.com.au>
3413
3414 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3415 * Makefile.in: Regenerate.
3416 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3417 Check for null tool_dir.
3418
6be0ca94
JW
34192001-01-16 Jim Wilson <wilson@redhat.com>
3420
3421 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3422 and IA_64.unwind.info.
3423
b9247304
L
34242001-01-16 H.J. Lu <hjl@gnu.org>
3425
3426 * ldlang.c (lang_check): Merge the private data only if the
3427 input file has contents.
3428
577a0623
AM
34292001-01-14 Alan Modra <alan@linuxcare.com.au>
3430
d952f17a
AM
3431 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3432
ffd6e9de
AM
3433 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3434 enabling search for libmilli. On a relocatable link, make .text
3435 sections unique.
3436 (LDEMUL_AFTER_PARSE): Define.
3437 (hppaelf_finish): Correct spelling of relocatable in comments.
3438
577a0623
AM
3439 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3440 rummage through the script for sections on the unique list.
3441 Correct length of strncmp for ".note".
3442 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3443
3444 * ldlang.c (unique_section_list): New var.
3445 (unique_section_p): New function.
3446 (walk_wild_section): Don't match sections on unique_section_list.
3447 (lang_add_unique): New function.
ffd6e9de 3448 Correct spelling of relocatable in comments.
577a0623
AM
3449
3450 * ldlang.h (struct unique_sections): Declare.
3451 (unique_section_list): Declare.
3452 (unique_section_p): Declare.
3453 (lang_add_unique): Declare.
3454
3455 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3456 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3457
3458 * ld.texinfo (--unique): Update.
3459
b7ed8fad
NC
34602001-01-13 Nick Clifton <nickc@redhat.com>
3461
3462 * lexsup.c (parse_args): Remove spurious white space.
3463
d0398d6a
NC
34642001-01-12 Nick Clifton <nickc@redhat.com>
3465
3466 * lexsup.c (parse_args): Update copyright date.
3467
350fdb00
PB
34682001-01-12 Philip Blundell <pb@futuretv.com>
3469
3470 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3471
60c6797e
KH
34722001-01-10 Kazu Hirata <kazu@hxi.com>
3473
3474 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3475 * scripttempl/h8300h.sc: Fix formatting.
3476 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
3477 * scripttempl/h8500.sc: Likewise.
3478 * scripttempl/h8500b.sc: Likewise.
3479 * scripttempl/h8500c.sc: Likewise.
3480 * scripttempl/h8500m.sc: Likewise.
3481 * scripttempl/h8500s.sc: Likewise.
60c6797e 3482
482e8b32
DB
34832000-01-07 David O'Brien <obrien@BSDi.com>
3484
3485 * emultempl/elf32.em: Only perform Linux ld hints processing when
3486 targeting Linux.
3487
d7ed7ca6
PB
34882001-01-07 Philip Blundell <philb@gnu.org>
3489
3490 * ld.texinfo (Bug Reporting): Update email address for reports.
3491
0fc3347a
NC
34922000-12-31 Nick Clifton <nickc@redhat.com>
3493
3494 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3495 options by checking for a return value of '?' not -1.
3496
e4897a32
NC
34972000-12-28 Nick Clifton <nickc@redhat.com>
3498
3499 * lexsup.c (struct ld_option): Add new enum value:
3500 EXACTLY_TWO_DASHES.
3501 (ld_options[]): Change -omagic, -output and -oformat options
3502 to be EXACTLY_TWO_DASHES.
3503 (OUTPUT_COUNT): Use ARRAY_SIZE.
3504 (parse_args): Change parameter 'argc' to unsigned.
3505 Place EXACTLY_TWO_DASHES options into new really_longopts
3506 array.
3507 If getopt_long_only fails, try calling getopt_long using the
3508 really_longopts array.
3509 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3510 TWO_DASHES options.
3511
3512 * ldlex.h: Fix prototype of parse_args.
3513
3514 * ld.texinfo: Document that long options starting with 'o'
3515 must be preceeded by two dashes. Change example of a single
3516 dashed long option from -oformat to -trace-symbol.
3517
1122a5fc
NC
35182000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3519
3520 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3521 (longopts[]): New --no-default-excludes option.
3522 (gld_${EMULATION_NAME}_list_options): Document.
3523 (gld_${EMULATION_NAME}_parse_args): Handle.
3524
037849a9
NC
35252000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3526
3527 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3528 whitespace, it breaks the K&R C preprocessor.
3529
7ec229ce
DD
35302000-12-11 DJ Delorie <dj@redhat.com>
3531
3532 * ld.texinfo: Add notes about --whole-archive and gcc.
3533
b79e8c78
NC
35342000-11-18 Fred Fish <fnf@be.com>
3535
3536 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3537 (ld_options): Entry for --allow-shlib-undefined.
3538 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3539 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3540 to false.
3541 * ld.texinfo: Document new command line switch.
d952f17a 3542
9a8e2505
GK
35432000-12-12 Geoffrey Keating <geoffk@redhat.com>
3544
3545 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3546 .fixup is actually read/write.
3547 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3548 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3549 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3550
3b16e843 35512000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
3552
3553 * NEWS: Add note about x86_64 architecture.
3554
93b63cd3
DD
35552000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3556
3557 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3558 Set DWARF2 sections to a VMA of zero.
3559
68b2fc7a 35602000-12-01 Joel Sherrill <joel@OARcorp.com>
24f6971a 3561
d952f17a 3562 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
3563 New targets.
3564 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3565 (sparc*-*-rtems*): Switched from a.out to ELF.
3566
2be3aa03
NC
35672000-11-30 Jan Hubicka <jh@suse.cz>
3568
3569 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3570 (eelf_x86_64.c): New.
3571 * Makefile.in: Regenerate.
3572 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3573 * emulparams/elf_x86_64.sh: New.
3574
8c899858
HPN
35752000-11-30 Hans-Peter Nilsson <hp@axis.com>
3576
3577 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3578 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3579
3580 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3581 merging non-a.out sections into CONSTRUCTING.
3582
e47b9e39
NC
35832000-11-28 Nick Clifton <nickc@redhat.com>
3584
3585 * ld.1 (COPYING): Mention that the GNU Free Documentation
3586 License is present in the sources, but not the output, and
3587 also available from the GNU website.
3588 (GNU Free Documentation License): Comment out this section.
3589
ad95f82a
DB
35902000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3591
3592 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3593 does not use them.
3594
fd89e65f
DB
35952000-11-25 David O'Brien <obrien@FreeBSD.org>
3596
3597 * ld.1: Remove old date so it does not give the impression the manpage
3598 is way out of date.
3599
077b8428
NC
36002000-11-24 Nick Clifton <nickc@redhat.com>
3601
3602 * configure.tgt (xscale-coff): Add target.
3603 (xscale-elf): Add target.
3604
49425d28
NC
36052000-11-24 Fred Fish <fnf@be.com>
3606
d952f17a
AM
3607 * ldmain.c (main): Remove redundant init of config.make_executable
3608 to true.
49425d28 3609
d3480244
RH
36102000-11-15 Richard Henderson <rth@redhat.com>
3611
3612 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3613
1ce7de8b
KH
36142000-11-14 Kazu Hirata <kazu@hxi.com>
3615
3616 * scripttempl/h8300.sc: Fix formatting.
3617 * scripttempl/h8300h.sc: Likewise.
3618 * scripttempl/h8300s.sc: Likewise.
3619
3b16e843 36202000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
3621
3622 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3623
2e418547
PB
36242000-11-09 Philip Blundell <pb@futuretv.com>
3625
3626 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3627 around orphan sections whose names can be represented in C.
3628
c940e6fc
JW
36292000-11-07 Jim Wilson <wilson@redhat.com>
3630
3631 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3632 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3633
704c465c
NC
36342000-11-06 Nick Clifton <nickc@redhat.com>
3635
3636 * ld.texinfo: Add GNU Free Documentation License.
3637 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 3638 * ld.1: Add GNU Free Documentation License.
704c465c 3639
dca7760f
AM
36402000-11-05 Alan Modra <alan@linuxcare.com.au>
3641
3642 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3643 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3644
3645 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3646 Move 2000-11-02 Makefile.in changes to this file.
3647 * Makefile.in: Regenerate.
3648
40a633d5
NC
36492000-11-03 Nick Clifton <nickc@redhat.com>
3650
3651 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3652 constructors and destructors.
3653 * scripttempl/h8300h.sc: Ditto.
3654 * scripttempl/h8300s.sc: Ditto.
3655 * scripttempl/h8500.sc: Ditto.
3656 * scripttempl/h8500b.sc: Ditto.
3657 * scripttempl/h8500c.sc: Ditto.
3658 * scripttempl/h8500m.sc: Ditto.
3659 * scripttempl/h8500s.sc: Ditto.
3660 * scripttempl/v850.sc: Ditto.
3661 * scripttempl/w65.sc: Ditto.
3662 * scripttempl/z8000.sc: Ditto.
3663
59ff2774
NC
36642000-11-02 Per Lundberg <plundis@chaosdev.org>
3665
3666 * Makefile.in (e_i386_chaos.c): New rule.
3667 (ALL_EMULATIONS): Added e_i386_chaos.o.
3668 * emulparams/elf_i386_chaos.sh: New file.
3669 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3670
645571e1
JJ
36712000-10-20 Jakub Jelinek <jakub@redhat.com>
3672
3673 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3674 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3675 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3676 library path suffix.
3677 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3678
c5975a45
HPN
36792000-10-18 Hans-Peter Nilsson <hp@axis.com>
3680
3681 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3682 for consecutive sections.
3683
ea20a7da
CC
36842000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3685
d952f17a
AM
3686 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3687 options.
3688 * ld.texinfo: Added notes about this new option.
ea20a7da 3689
6e45556a
NC
36902000-10-16 Nick Clifton <nickc@redhat.com>
3691
3692 * emultempl/pe.em (_after_open): Add tests of return values from
3693 bfd functions. Emit appropriate error messages if necessary.
3694
b9a69188
NC
36952000-10-13 Nick Clifton <nickc@redhat.com>
3696
3697 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
3698 local variables - they are not used, but leave in the call to
3699 bfd_canonicalize_symtab.
b9a69188
NC
3700 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3701 pe_dll_search_prefix.
3702
627427de 37032000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 3704
627427de
DD
3705 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3706 (longopts): New --dll-search-prefix option.
3707 (gld_${EMULATION_NAME}_list_options): Document.
3708 (gld_${EMULATION_NAME}_parse_args): Handle.
3709 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3710 dynamically, search for a dll named '<prefix><basename>.dll'
3711 in preference to 'lib<basename>.dll' if --dll-search-prefix
3712 is specified.
3713
24376d1b
AM
37142000-10-12 Alan Modra <alan@linuxcare.com.au>
3715
3716 * ldlang.c (section_already_linked): Set kept_section instead of
3717 sec->comdat->sec.
3718
e47d05ad
KH
37192000-10-10 Kazu Hirata <kazu@hxi.com>
3720
3721 * deffile.h: Fix formatting.
3722 * lexsup.c: Likewise.
3723 * mri.c: Likewise.
3724
23a87948
DD
37252000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3726
3727 * pe-dll.c (make_one): Do not generate code thunk for DATA
3728 exports.
3729 (process_def_file): deduce DATA flag for auto-export sumbols.
3730
86b1cc60
KH
37312000-10-09 Kazu Hirata <kazu@hxi.com>
3732
89cdebba
KH
3733 * ld.h: Fix formatting.
3734 * ldcref.c: Likewise.
3735 * ldctor.h: Likewise.
3736 * ldemul.c: Likewise.
3737 * ldemul.h: Likewise.
3738 * ldexp.c: Likewise.
3739 * ldexp.h: Likewise.
3740 * ldfile.c: Likewise.
3741 * ldfile.h: Likewise.
3742 * ldlang.c: Likewise.
3743 * ldlang.h: Likewise.
3744 * ldmain.c: Likewise.
7bfd51a3
KH
3745 * pe-dll.c: Likewise.
3746
3747 * pe-dll.c: Revert some formatting fixes.
86b1cc60 3748
d643799d
KH
37492000-10-08 Kazu Hirata <kazu@hxi.com>
3750
3751 * pe-dll.c: Fix formatting.
3752
08da4cac
KH
37532000-10-05 Kazu Hirata <kazu@hxi.com>
3754
3755 * ldlang.c: Fix formatting.
3756
c2a94a7a
DD
37572000-10-03 DJ Delorie <dj@redhat.com>
3758
3759 * pe-dll.c (fill_edata): initialize entire block
3760 (make_one): fill in correct section.
3761
8c95a62e
KH
37622000-10-03 Kazu Hirata <kazu@hxi.com>
3763
3764 * ldexp.c: Fix formatting.
3765
486e80e2
DD
37662000-10-02 DJ Delorie <dj@redhat.com>
3767
3768 * emultempl/pe.em (gld_*_after_open): detect case where there two
3769 import libraries for same dll; rename one to ensure proper link
3770 order.
3771
3772 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3773 typo
3774 (generate_edata): fix typo
3775
24dd9f75
HPN
37762000-09-29 Hans-Peter Nilsson <hp@axis.com>
3777
3778 * scripttempl/crisaout.sc (ENTRY): Now __start.
3779 (.text): Add default setting for __start.
3780 Remove CONSTRUCTORS handling.
3781 (/DISCARD/): Add .gnu.warning.*.
3782 * emulparams/crislinux.sh (ENTRY): Now __start.
3783 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3784 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3785 (ENTRY): Now __start.
3786 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3787 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3788
4de2d33d
KH
37892000-09-29 Kazu Hirata <kazu@hxi.com>
3790
5cc18311
KH
3791 * deffile.h: Fix formatting.
3792 * ld.h: Likewise.
3793 * ldcref.c: Likewise.
4de2d33d 3794 * ldctor.c: Likewise.
5cc18311 3795 * ldctor.h: Likewise.
4de2d33d 3796 * ldemul.c: Likewise.
5cc18311 3797 * ldemul.h: Likewise.
4de2d33d 3798 * ldexp.c: Likewise.
5cc18311 3799 * ldexp.h: Likewise.
4de2d33d 3800 * ldfile.c: Likewise.
5cc18311 3801 * ldfile.h: Likewise.
4de2d33d 3802 * ldlang.c: Likewise.
5cc18311
KH
3803 * ldlang.h: Likewise.
3804 * lexsup.c: Likewise.
3805 * mri.c: Likewise.
3806 * pe-dll.c: Likewise.
4de2d33d 3807
45b1f63c
DD
38082000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3809
3810 * pe-dll.c (process_def_file): Uninitialized data wasn't
3811 exported with --export-all-symbols switch.
d952f17a 3812
45b1f63c
DD
38132000-09-28 DJ Delorie <dj@redhat.com>
3814
3815 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3816 noname work properly.
3817
47d89dba
AM
38182000-09-28 Alan Modra <alan@linuxcare.com.au>
3819
3820 * ld.texinfo (HPPA ELF32): New section.
3821
3822 * emultempl/hppaelf.em (group_size): New.
3823 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3824 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3825 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3826 options to prevent abbreviations matching.
3827 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3828 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3829
36bdbeec
NC
38302000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3831
3832 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3833 on the m68*-*-elf target. Make it support COFF input objects.
3834
6d5e62f8
KH
38352000-09-21 Kazu Hirata <kazu@hxi.com>
3836
3837 * ldmain.c: Fix formatting.
3838 * ldmisc.c: Likewise.
3839 * ldver.c: Likewise.
3840 * ldwrite.c: Likewise.
3841
e2eb67d9
AM
38422000-09-21 Alan Modra <alan@linuxcare.com.au>
3843
3844 * ldwrite.c (clone_section): Silence gcc warnings.
3845
b3ea3584
AM
38462000-09-20 Alan Modra <alan@linuxcare.com.au>
3847
3848 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3849 out of memory failure.
3850
3851 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3852 (clone_section): Handle out of memory failures. Rename var to
3853 avoid c++ reserved word.
3854
25f72752
AM
38552000-09-18 Alan Modra <alan@linuxcare.com.au>
3856
3857 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3858 stub_name param to stub_sec_name.
3859 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3860
0752970e
NC
38612000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3862
3863 * emultempl/m68kelf.em: New file.
3864 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3865 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3866 * Makefile.in: Regenerate.
3867
92b7e9d8
AM
38682000-09-15 Alan Modra <alan@linuxcare.com.au>
3869
3870 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3871 only as needed.
3872
9b14b192
NC
38732000-09-13 Nick Clifton <nickc@redhat.com>
3874
3875 * ldmain.c (multiple_definition): Disable relaxation if
3876 multiple symbol definitions are encountered - otherwise the
3877 linker could abort with an assertion failure.
3878
891fa266
NC
38792000-09-10 Nick Clifton <nickc@redhat.com>
3880
3881 * mri.c: Fix formatting.
3882
5d64ca4e
L
38832000-09-07 H.J. Lu <hjl@gnu.org>
3884
3885 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3886 * configure: Rebuild.
3887
dd94604f
L
38882000-09-07 H.J. Lu <hjl@gnu.org>
3889
3890 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3891 * Makefile.in: Rebuild.
3892
71bfc0ae
AM
38932000-09-07 Alan Modra <alan@linuxcare.com.au>
3894
3895 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3896 broken list handling. Create __start_SECNAME and __stop_SECNAME
3897 when no place-holder. Add some comments. Test both SEC_CODE and
3898 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 3899 Handle case where no output section statement created.
71bfc0ae 3900
4a428502
AO
39012000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3902
3903 * configure.tgt (sh-*-linux*): Added.
3904 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3905 * Makefile.in: Rebuilt.
3906 * emulparams/shelf_linux.sh: New file.
3907 * emulparams/shlelf_linux.sh: New file.
3908
f9989030
AM
39092000-09-06 Alan Modra <alan@linuxcare.com.au>
3910
3911 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3912 try shuffling sections when the orphan happens to be the place
3913 holder. Keep count of unique section names generated so we speed
3914 the search for a new name.
3915
58cccadb
AO
39162000-09-06 Alexandre Oliva <aoliva@redhat.com>
3917
3918 * configure: Rebuilt with new libtool.m4.
3919
5b343f5a
NC
39202000-09-05 Nick Clifton <nickc@redhat.com>
3921
3922 * Makefile.in: Regenerate.
3923 * aclocal.m4: Regenerate.
3924 * configure: Regenerate.
3925 * config.in: Regenerate.
3926 * po/ld.pot: Regenerate.
3927
3928 * ldint.texinfo: Remove CVS revision marker - it foils local
3929 comparisons.
3930
3931 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 3932
a854a4a7
AM
39332000-09-05 Alan Modra <alan@linuxcare.com.au>
3934
3231d22e
AM
3935 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3936 to stub section flags.
3937 (hppa_for_each_input_file_wrapper): New.
3938 (hppa_lang_for_each_input_file): New.
3939 (lang_for_each_input_file): Define to call above.
3940 (multi_subspace): New.
3941 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3942 (PARSE_AND_LIST_PROLOGUE): Define.
3943 (PARSE_AND_LIST_LONGOPTS): Define.
3944 (PARSE_AND_LIST_OPTIONS): Define.
3945 (PARSE_AND_LIST_ARGS_CASES): Define.
3946 (hppaelf_finish): Call elf32_hppa_set_gp.
3947 (hppaelf_set_output_arch): Remove.
3948 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3949
3950 * emulparams/hppalinux.sh (ELFSIZE): Define.
3951 (MACHINE): Define.
3952 (OTHER_READONLY_SECTIONS): Define.
3953 (DATA_PLT): Define.
3954 (GENERATE_SHLIB_SCRIPT): Define.
3955
5f992e62
AM
3956 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3957 to const throughout. Change `void *' to `PTR' throughout.
3958 (lang_memory_default): Function is local to file, add `static'.
3959
3960 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3961 (ehppalinux.c): Likewise.
3962 (earmelf.c): Likewise.
3963 (earmelf_linux.c): Likewise.
3964 (earmelf_linux26.c): Likewise.
3965 * Makefile.in: Regenerate.
3966
a854a4a7
AM
3967 * ld.h (ld_config_type): Add unique_orphan_sections.
3968 * lexsup.c (OPTION_UNIQUE): Define.
3969 (ld_options): Add "--unique".
3970 (parse_args): Handle it.
3971 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3972 search for an existing output section if unique_orphan_sections is
3973 set. Make use of bfd_get_unique_section_name rather than
3974 duplicating code here.
3975 * ld.texinfo: Describe --unique.
3976
3977 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3978 optional arg to split-by-file.
3979 (parse_args): Handle them.
3980 * ld.texinfo: Update description of these options.
3981 * ldwrite.c (clone_section): Pass in the section name. Replace
3982 local code with bfd_get_unique_section_name.
3983 (split_sections): Tidy code and comments. Use a list traversal
3984 more appropriate to the list construction. Handle cooked section
3985 sizes. Split when split_by_reloc reached rather than exceeded.
3986 Track section size and split when split_by_file reached. Fix
3987 link_order_tail (even though it's not used).
3988 (ldwrite): Modify condition for calling split_sections to suit
3989 changed split_by_reloc and split_by_file.
3990 * ldmain.c (main): Init config.split_by_reloc and
3991 config.split_by_file to -1.
3992 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3993 Change split_by_file to bfd_size_type.
3994
18e03609
NC
39952000-09-02 Nick Clifton <nickc@redhat.com>
3996
3997 * configure.in: Increase version number to 2.10.91.
3998 * NEWS: Mention new ability to support removal of duplicate DWARF2
3999 debug information.
4000 * configure: Regenerate.
4001 * aclocal.m4: Regenerate.
4002 * config.in: Regenerate.
4003
3a9d486c
NC
40042000-09-02 Daniel Berlin <dberlin@redhat.com>
4005
4006 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4007 sections.
a2b64bed 4008 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
4009 * scripttempl/elfd10v.sc: Ditto.
4010 * scripttempl/elfd30v.sc: Ditto.
4011 * scripttempl/elfi370.sc: Ditto.
4012 * scripttempl/elfm68hc11.sc: Ditto.
4013 * scripttempl/elfm68hc12.sc: Ditto.
4014 * scripttempl/elfi386beos.sc: Ditto.
4015 * scripttempl/v850.sc: Ditto.
50bbae35 4016
ac48eca1
AO
40172000-08-31 Alexandre Oliva <aoliva@redhat.com>
4018
4019 * acinclude.m4: Include libtool and gettext macros from the
4020 top level.
4021 * aclocal.m4, configure: Rebuilt.
4022
c13b1b77
NC
40232000-08-25 Nick Clifton <nickc@redhat.com>
4024
4025 * ldlang.c (open_output): When choosing the target for a
4026 particular endianness, do nothing if the target is not
4027 supported.
4028
dcb0bd0e
L
40292000-08-25 H.J. Lu <hjl@gnu.org>
4030
4031 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4032 check -rpath nor LD_RUN_PATH for cross link.
4033 * ld.texinfo: Document the change.
4034
5bcac8a4
HPN
40352000-08-24 Hans-Peter Nilsson <hp@axis.com>
4036
4037 * NEWS: Mention support for CRIS.
4038
6dd8c765
L
40392000-08-23 H.J. Lu <hjl@gnu.org>
4040
4041 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4042 the current runpath list from bfd_elf_get_runpath_list ()
4043 before search.
4044
ec4eb78a
L
40452000-08-22 H.J. Lu <hjl@gnu.org>
4046
4047 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4048 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4049 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4050 trace_file_tries is non-zero.
4051 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4052 if trace_file_tries is non-zero.
4053
4054 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 4055 * NEWS: Mention it.
ec4eb78a 4056
22b36938
JE
40572000-08-14 Jason Eckhardt <jle@cygnus.com>
4058
4059 * NEWS: Mention i860 support.
4060
d73e9da0
AS
40612000-08-14 Andreas Schwab <schwab@suse.de>
4062
4063 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 4064 syntax.
d73e9da0 4065
9ac4db9c
GK
40662000-08-10 Geoff Keating <geoffk@cygnus.com>
4067
4068 * scripttempl/elf.sc: Add a comment giving the correspondence
4069 between sections, per-datum sections, and linkonce sections. Make
4070 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4071 .sbss2.
4072
165589e4
JE
40732000-08-10 Jason Eckhardt <jle@cygnus.com>
4074
4075 * emulparams/elf32_i860.sh: New file.
4076 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4077 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4078 (eelf32_i860.c): New rule.
4079 * Makefile.in: Regenerate.
4080
345a835d
NC
40812000-08-10 Nick Clifton <nickc@cygnus.com>
4082
4083 * emulparams/mipspe.sh (ENTRY): Add definition.
4084
e374f1d9
NC
40852000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4086
4087 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4088 in error message.
4089
236d5abf
NC
40902000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4091
4092 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4093 the final size of .bss section.
4094 * scripttempl/elfm68hc12.sc: Likewise.
4095
4b209b22
AM
40962000-08-04 Alan Modra <alan@linuxcare.com.au>
4097
4098 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4099 gld${EMULATION_NAME}_parse_args for consistency. Combine
4100 lastoptind and prevoptind vars, and keep track of last optind.
4101 (gld_${EMULATION_NAME}_list_options): Rename to
4102 gld${EMULATION_NAME}_list_options.
4103
28423a68
AM
41042000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4105
4106 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4107 (i586-sco-sysv5uw7.1.0).
4108
b2009ff7
L
41092000-07-27 H.J. Lu <hjl@gnu.org>
4110
4111 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4112 (PARSE_AND_LIST_PROLOGUE): New.
4113 (PARSE_AND_LIST_LONGOPTS): Likewise.
4114 (PARSE_AND_LIST_OPTIONS): Likewise.
4115 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4116 (PARSE_AND_LIST_EPILOGUE): Likewise.
4117
04925e1e
AM
41182000-07-28 Alan Modra <alan@linuxcare.com.au>
4119
41392f03
AM
4120 * emultempl/armelf.em: Elide functions common to elf32.em,
4121 ie. most of the file.
4122 (arm_elf_after_open): New. Do arm specific things then call
4123 gld${EMULATION_NAME}_after_open.
4124 (arm_elf_before_allocation): New. Call
4125 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4126 (PARSE_AND_LIST_PROLOGUE): Define.
4127 (PARSE_AND_LIST_SHORTOPTS): Define.
4128 (PARSE_AND_LIST_LONGOPTS): Define.
4129 (PARSE_AND_LIST_OPTIONS): Define.
4130 (PARSE_AND_LIST_ARGS_CASES): Define.
4131 (LDEMUL_AFTER_OPEN): Define.
4132 (LDEMUL_BEFORE_ALLOCATION): Define.
4133 (LDEMUL_BEFORE_PARSE): Define.
4134 (LDEMUL_FINISH): Define.
4135
4136 * emultempl/hppaelf.em: Similarly zap most of this file.
4137 (hppaelf_add_stub_section): Prototype.
4138 (hppaelf_layaout_sections_again): Prototype.
4139 (hook_in_stub): Prototype.
4140 (LDEMUL_SET_OUTPUT_ARCH): Define.
4141 (LDEMUL_FINISH): Define.
4142 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4143
4144 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4145 (EXTRA_EM_FILE): New.
4146 * emulparams/armelf_linux.sh: Likewise.
4147 * emulparams/armelf_linux26.sh: Likewise.
4148 * emulparams/hppalinux.sh: Likewise.
4149 * emulparams/hppaelf.sh: Likewise.
4150 (NOP): Define.
4151
4152 * emultempl/elf32.em: Fix formatting.
4153 (EXTRA_EM_FILE): Source it.
4154 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4155 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4156 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4157 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4158 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4159 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4160 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4161 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4162 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4163 allow functions in this file to be overridden.
4164 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4165
4166 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4167
04925e1e
AM
4168 * emultempl/elf32.em: Reorganize file.
4169
88cdf297
NC
41702000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4171
4172 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4173 specific option to fit 64-bit executable in the lower
4174 31-bit address range. This is done by changing start
4175 address of .interp (the very first section of executable)
4176 and then setting EF_ALPHA_32BIT elf header flag.
4177
20bccb34
NC
41782000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4179
4180 * emultempl/m68kcoff.em: New file.
4181 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4182 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4183 generic.em.
4184 * Makefile.in: Regenerate.
4185
699845ef
L
41862000-07-20 H.J. Lu <hjl@gnu.org>
4187
4188 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4189 and "disable-new-dtags" to stop getopt from treating -d/-e as
4190 abbreviations for these options.
4191
6c1439be
L
41922000-07-20 H.J. Lu <hjl@gnu.org>
4193
4194 * ld.texinfo: Add documentation for --disable-new-dtags and
4195 --enable-new-dtags.
4196
4197 * ldmain.c (main): Initialize link_info.new_dtags to false.
4198
4199 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4200 --disable-new-dtags and --enable-new-dtags.
4201 (gld_${EMULATION_NAME}_list_options): Likewise.
4202
28c309a2
NC
42032000-07-05 Kenneth Block <krblock@computer.org>
4204
a2b64bed
NC
4205 * lexsup.c: Add optional style to demangle switch
4206 * ld.texinfo: Document optional style to demangle switch.
50bbae35 4207
9d06555c
HPN
42082000-07-20 Hans-Peter Nilsson <hp@axis.com>
4209
4210 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4211 ecrislinux.o.
4212 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4213 Regenerate dependencies.
4214 * Makefile.in: Rebuild.
4215 * configure.tgt (cris-*-*): New target.
4216 * emulparams/crisaout.sh, emulparams/criself.sh,
4217 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4218 * po/POTFILES.in, po/ld.pot: Regenerate.
4219
19e3be22
L
42202000-07-20 H.J. Lu <hjl@gnu.org>
4221
4222 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4223 Print out ignored -z options.
4224
e0ee487b
L
42252000-07-19 H.J. Lu <hjl@gnu.org>
4226
19e3be22
L
4227 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4228 (PARSE_AND_LIST_PROLOGUE): New.
4229 (PARSE_AND_LIST_LONGOPTS): Likewise.
4230 (PARSE_AND_LIST_OPTIONS): Likewise.
4231 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4232
4233 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4234
4235 * lexsup.c (ld_options): Comment out 'z'.
4236 (parse_args): Likewise.
4237
4238 * emultempl/elf32.em: Include "elf/common.h".
4239 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4240 options.
4241 (gld_${EMULATION_NAME}_list_options): Likewise.
4242
4243 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 4244
49e56c49
L
42452000-07-19 H.J. Lu <hjl@gnu.org>
4246
4247 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4248 bfd_elf_set_dt_needed_soname ().
4249
9d68bc82
DD
42502000-07-18 DJ Delorie <dj@cygnus.com>
4251
4252 * pe-dll.c (pe_dll_id_target): check object target name also
4253
53db15ed
HPN
42542000-07-18 Hans-Peter Nilsson <hp@axis.com>
4255
4256 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4257 ${INIT_END} if relocating.
4258 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4259
0ad8cf4c
DD
42602000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4261
a2b64bed 4262 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
4263 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4264 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4265 errors introduced by the old dynamic lib search order.
4266
874c8c99
DD
42672000-07-17 DJ Delorie <dj@cygnus.com>
4268
4269 * pe-dll.c (process_def_file): auto-export data items also
4270 (pe_process_import_defs): also see if _imp_ form needed
4271
5b4cf3f4
DD
42722000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4273
4274 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4275 for dll import libraries
4276
062739d1
NC
42772000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4278
4279 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 4280 gcc 2.95.2 and later.
062739d1 4281
1c64c4ed
NC
42822000-07-11 Kazu Hirata <kazu@hxi.com>
4283
50bbae35
AM
4284 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4285 message.
1c64c4ed 4286
b71e2778
AM
42872000-07-10 Alan Modra <alan@linuxcare.com.au>
4288
4289 * ldemul.h (struct lang_input_statement_struct): Remove forward
4290 declaration.
4291 (struct search_dirs): Likewise.
4292 * ldfile.h (struct lang_input_statement_struct): Likewise.
4293 Protect file from multiple inclusion.
4294 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4295 declaration from macro to file scope.
4296
4297 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4298 * ldgram.y: Likewise here.
4299 * ldlang.c: And here.
4300 * ldmain.c: And here.
4301 * mpw-elfmips.c: And here.
4302 * mpw-eppcmac.c: And here.
4303 * emultempl/aix.em: And here.
4304 * emultempl/armcoff.em: And here.
4305 * emultempl/armelf.em: And here.
4306 * emultempl/armelf_oabi.em: And here.
4307 * emultempl/beos.em: And here.
4308 * emultempl/elf32.em: And here.
4309 * emultempl/hppaelf.em: And here.
4310 * emultempl/linux.em: And here.
4311 * emultempl/lnk960.em: And here.
4312 * emultempl/pe.em: And here.
4313 * emultempl/sunos.em: And here.
4314 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4315 * mpw-idtmips.c: Ditto.
4316 * emultempl/generic.em: Ditto.
4317 * emultempl/gld960.em: Ditto.
4318 * emultempl/gld960c.em: Ditto.
4319 * emultempl/mipsecoff.em: Ditto.
4320 * emultempl/ticoff.em: Ditto.
4321 * emultempl/vanilla.em: Ditto.
4322
4323 * pe-dll.c: Include ldfile.h
4324 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4325
4326 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4327 arguments to bfd_elf32_size_dynamic_sections call.
4328 (gldelf32ebmip_place_orphan): Add missing arguments to
4329 lang_leave_output_section_statement call.
4330
2ef53d66
L
43312000-07-10 H.J. Lu <hjl@gnu.org>
4332
4333 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4334 DLL_SUPPORT.
4335 (strhash): Likewise.
4336 (compute_dll_image_base): Likewise.
4337 (pe_undef_found_sym): Likewise.
4338 (pe_undef_cdecl_match): Likewise.
4339 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4340 argument "arch" with ATTRIBUTE_UNUSED.
4341
9a8cbb09
AM
43422000-07-10 Alan Modra <alan@linuxcare.com.au>
4343
4344 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4345
4346 From Ryan Bradetich <rbradetich@uswest.net>
4347 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 4348
4900fc06
AM
43492000-07-09 Alan Modra <alan@linuxcare.com.au>
4350
4351 Changes to create multiple linker stubs, positioned immediately
4352 before the section where they are required.
4353 * emultempl/hppaelf.em: Include elf32-hppa.h.
4354 (stub_sec, file_chain): Delete.
4355 (hppaelf_create_output_section_statements): Don't make a stub
4356 section here.
4357 (hook_stub_info): New struct.
4358 (hook_in_stub): New function.
4359 (hppaelf_add_stub_section): New function.
4360 (hppaelf_finish): Do nothing for relocateable links. Modify the
4361 call to elf32_hppa_size_stubs. Move code for updating section
4362 layout from here...
4363 (hppaelf_layaout_sections_again): ..to here, a new function.
4364
4365 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4366 broken list handling. Pass in a pointer to the list.
4367 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4368 for above changes.
4369 (hppaelf_before_parse): Prototype.
4370 (hppaelf_set_output_arch): Prototype.
4371 (hppaelf_create_output_section_statements): Prototype.
4372 (hppaelf_delete_padding_statements): Prototype.
4373 (hppaelf_finish): Prototype.
4374
4375 Merge from elf32.em
4376 * emultempl/hppaelf.em: Include ctype.h.
4377 (struct orphan_save): New.
4378 (gld${EMULATION_NAME}_place_orphan): New.
4379 (output_rel_find): New.
4380 (hppaelf_get_script): Update from elf32.em.
4381 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4382 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 4383 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
4384
4385 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4386 ehppalinux.o, sort it. Regenerate dependencies.
4387 (ehppalinux.c): Depend on hppaelf.em
4388 * Makefile.in: Regenerate.
4389
4390 * configure.tgt: targ_emul=hppalinux for hppa*linux
4391
4392 * emulparams/hppalinux.sh: New.
4393 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4394
227aeb07
AM
43952000-07-08 Alan Modra <alan@linuxcare.com.au>
4396
4397 * lexsup.c (parse_args): Copy section name.
4398
28609fd4 43992000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 4400
2ef53d66 4401 * emultempl/pe.em: institute the following search order for
602e90d3
DD
4402 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4403 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4404 static lib (libfoo.a) if none of the above are found.
4405
5f577f7d
DD
44062000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4407
50bbae35 4408 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 4409 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 4410 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
4411 (gld_${EMULATION_NAME}_parse): Handle.
4412 (strhash): New static function.
50bbae35 4413 (compute_dll_image_base): New static function.
5f577f7d
DD
4414 (gld_${EMULATION_NAME}_set_symbols): Use.
4415
9a8cbb09 44162000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
4417
4418 * MAINTAINERS: new
4419
3548145d 44202000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
4421
4422 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4423 * emulparams/elf32btsmip.sh: New file.
4424 * Makefile.am: Add traditional mips target.
4425 * Makefile.in: Rebuild.
4426
67798033
L
44272000-07-01 H.J. Lu <hjl@gnu.org>
4428
4429 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4430 automake to use YLWRAP.
4431 * Makefile.in: Rebuild.
4432
0bdaf48b
AM
44332000-07-01 Alan Modra <alan@linuxcare.com.au>
4434
4435 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4436 (CLEANFILES): Add DEPA.
4437 * Makefile.in: Regenerate.
4438
c9e769c2
TW
44392000-06-30 Timothy Wall <twall@ppc>
4440
4441 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4442 the page in the upper octet of the address.
4443
65aa24b6
NC
44442000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4445
4446 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4447
4667035e
AM
44482000-06-24 Alan Modra <alan@linuxcare.com.au>
4449
4450 * NEWS: arm-elf does --gc-sections too.
4451
1581f8c9
AM
44522000-06-22 Alan Modra <alan@linuxcare.com.au>
4453
4454 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4455 find one.
4456 * Makefile.in: Regenerate.
4457
01580992
L
44582000-06-21 H.J. Lu <hjl@gnu.org>
4459
4460 * Makefile.am: Rebuild dependency.
4461 * Makefile.in: Rebuild.
4462
bbeb2e03
L
44632000-06-20 H.J. Lu <hjl@gnu.org>
4464
4465 * Makefile.am: Rebuild dependency.
4466 * Makefile.in: Rebuild.
4467
74459f0e
TW
44682000-06-20 Timothy Wall <twall@cygnus.com>
4469
4470 * scripttempl/tic54xcoff.sc: New.
4471 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4472 * gen-doc.texi: Add flag for TI COFF.
4473 * ld.texinfo: Add documentation for TI COFF handling switches.
4474 * emultempl/ticoff.em: New. TI COFF handling.
4475 * configure.tgt: Add tic54x target.
4476 * Makefile.am: Add tic54x target.
4477 * Makefile.in: Ditto.
4478
2ab47eed
AM
44792000-06-20 Alan Modra <alan@linuxcare.com.au>
4480
4481 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4482 checking for backslashes.
4483
919e4093
AM
44842000-06-19 Alan Modra <alan@linuxcare.com.au>
4485
4486 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4487
987fd5b4
AM
44882000-06-18 Alan Modra <alan@linuxcare.com.au>
4489
4490 * NEWS: Update list of targets supporting --gc-sections.
4491
4492 * scripttempl/elf.sc: KEEP .eh_frame contents.
4493 * scripttempl/elfd30v.sc: Same here.
4494
60bcf0fa
NC
44952000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4496
4497 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4498 and m68hc11 (elf).
4499 * Makefile.in: Rebuild.
4500 * configure.tgt: Recognize m68hc12 and m68hc11.
4501 * scripttempl/elfm68hc12.sc: New file.
4502 * emulparams/m68hc12elfb: New emulation.
4503 * emulparams/m68hc12elf: New emulation.
4504 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4505 (includes a memory.x script to define the ROM and RAM banks).
4506 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4507 New configuration files for support of Motorola 68hc11
4508
c7c54483
AM
45092000-06-15 Alan Modra <alan@linuxcare.com.au>
4510
4511 * ldmain.c (main): Only change SEC_READONLY for final link.
4512
bcef29e6
L
45132000-06-13 H.J. Lu <hjl@gnu.org>
4514
4515 * configure: Regenerate.
4516
946efd95
DB
45172000-06-08 David O'Brien <obrien@FreeBSD.org>
4518
4519 * configure.in (VERSION): Update to show this is the CVS mainline.
4520
57a6fd07
DB
45212000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4522
4523 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4524 input objects to be ECOFF.
4525 (check_sections): einfo takes %B, not %P, to print a BFD name.
4526
e06cae36
L
45272000-06-05 Michael Matz <matz@ifh.de>
4528
4529 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 4530 version scripts.
e06cae36 4531
d952f17a 4532 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 4533
2f0b56c0
DC
45342000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4535
4536 * emulparams/avr1200.sh (STACK): Define as 0.
4537 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4538 * emulparams/avr4433.sh (STACK): Likewise.
4539 * emulparams/avr44x4.sh (STACK): Likewise.
4540 * emulparams/avr85xx.sh (STACK): Likewise.
4541 * emulparams/avrmega103.sh (STACK): Likewise.
4542 * emulparams/avrmega161.sh (STACK): Likewise.
4543 * emulparams/avrmega603.sh (STACK): Likewise.
4544 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4545 (__stack): Define from ${STACK} for main().
4546
2114f57b
AM
45472000-05-26 Alan Modra <alan@linuxcare.com.au>
4548
4549 * Makefile.am: Update dependencies with "make dep-am"
4550 * Makefile.in: Regenerate.
4551
5af11cab
AM
45522000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4553
4554 * ldmain.c: Include filenames.h.
4555 (set_scripts_dir): Support backslashes in program name.
4556
1f0df59a
NC
45572000-05-22 Igor Shevlyakov <igor@windriver.com>
4558
4559 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
4560 read-only, don't forget to reset SEC_READONLY because it
4561 could be already set.
1f0df59a 4562
176355da
NC
45632000-05-22 Thomas de Lellis <tdel@windriver.com>
4564
50bbae35
AM
4565 * ld.1: Add documentation for new command line option:
4566 --section-start <sectionname>=<sectionorg>
4567 This is a generic version of -Ttext etc. which accepts
4568 any section name as a parameter instead of just text/data/
4569 bss.
4570 * ld.texinfo: More docs.
4571 * NEWS: More docs.
4572 * lexsup.c: (parse_args): Recognize new command line option.
176355da 4573 (ld_options): Add new option.
50bbae35 4574
8c5ff972
L
45752000-05-18 H.J. Lu <hjl@gnu.org>
4576
4577 * lexsup.c (parse_args): `i' == `r', not `q'.
4578
3b16e843 45792000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
4580
4581 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4582
a712da20
NC
45832000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4584 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 4585
a712da20
NC
4586 Add support for '-q' == '--emit-relocs' switch.
4587 * ldmain.c (main): Default to false.
4588 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4589 * NEWS: Describe the emitrelocations switch.
4590 * ld.texinfo: Describe the emitrelocations switch.
4591
690a460e
NC
45922000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4593
a2b64bed 4594 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
4595 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4596 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4597 link options.
50bbae35 4598
c2f1343c
AM
45992000-05-15 David O'Brien <obrien@FreeBSD.org>
4600
4601 * lexsup.c (parse_args): Update the year in the copyright notice.
4602
897083bd
AM
46032000-05-13 Alan Modra <alan@linuxcare.com.au>
4604
4605 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4606 Replace defines with those from intl/libgettext.h to quieten gcc
4607 warnings.
4608
cd4c806a
L
46092000-05-10 H.J. Lu <hjl@gnu.org>
4610
4611 * ldlang.c (open_input_bfds): Don't load the same file within
4612 a group again if the whole archive has been loaded already.
4613
93697284
AM
46142000-05-03 Alan Modra <alan@linuxcare.com.au>
4615
4616 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4617 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4618 strtoul.
4619
3b16e843 46202000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 4621
99a4150f 4622 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 4623
ebd6fc29
JW
4624 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4625 host "ia64-*-linux-gnu*".
4626
a1934524
AM
46272000-04-29 Andreas Jaeger <aj@suse.de>
4628
4629 * ld.h: Correctly check GCC version.
4630
3b16e843 46312000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
4632
4633 * Makefile.am: Add PA64 support. Add missing dependencies for
4634 PA32 elf support.
4635 * Makefile.in: Rebuilt.
4636 * configure.tgt: Add PA64 support (currently disabled).
4637
aea4bd9d
AM
46382000-04-25 Alan Modra <alan@linuxcare.com.au>
4639
4640 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4641 (output_rel_find): New function.
4642 (hold_section, hold_use): Delete.
4643 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4644 hold_interp): Make local to place_orphan.
4645 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4646 rather than place_section to find possible previous use of orphan.
4647 Similarly find the place-holder output sections. Use returned
4648 value from lang_enter_output_section_statement rather than calling
4649 lang_output_section_statement_lookup.
4650 * emultempl/armelf.em: Same here.
4651 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4652
4653 * ldlang.c (lang_enter_output_section_statement): Return output
4654 section statement.
4655 * ldlang.h (lang_enter_output_section_statement): Change
4656 declaration too.
4657
4658 * ldlang.h (lang_output_section_statement): Export it.
4659 * ldlang.c (lang_output_section_statement): Ditto.
4660
2b5fc1f5
NC
46612000-04-24 Nick Clifton <nickc@cygnus.com>
4662
4663 * ld.texinfo (Output Section Data): Add note that section data
4664 commands cannot appear outside of section directives.
4665
d8475ff6
JL
46662000-04-2 Matthew Green <mrg@cygnus.com>
4667
4668 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4669
3b16e843
NC
46702000-04-21 Richard Henderson <rth@cygnus.com>
4671 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
4672
4673 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4674 (eelf64_ia64.c): New rule.
4675 * Makefile.in: Rebuild.
4676 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4677 * emulparams/elf64_ia64.sh: New file.
50bbae35 4678
c9637625
RH
46792000-04-21 Richard Henderson <rth@cygnus.com>
4680
4681 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4682
28ea9521
AM
46832000-04-19 Alan Modra <alan@linuxcare.com.au>
4684
4685 * dep-in.sed: Match space at start of file name, not at end.
4686
20d04697
L
46872000-04-18 H.J. Lu <hjl@gnu.org>
4688
4689 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4690 lang_leave_output_section_statement () after calling
4691 lang_enter_output_section_statement ().
4692 * emultempl/armelf.em: Likewise.
4693
5ba47421
AM
46942000-04-18 Alan Modra <alan@linuxcare.com.au>
4695
4696 * emultempl/elf32.em (struct orphan_save): Add section field.
4697 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4698 better order, and place first orphan section as we did before the
4699 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4700 Don't call make_bfd_section here, let wild_doit do the job for us.
4701 Don't build a statement list when we'll only throw it away.
4702 * emultempl/armelf.em: Ditto.
4703 * emultempl/pe.em: Similarly.
4704
bdbe5705
GK
47052000-04-14 Geoff Keating <geoffk@cygnus.com>
4706
4707 * scripttempl/elfppc.sc: Remove.
4708 * emulparams/elf32ppc.sh: Use elf.sc.
4709 * emulparams/elf32lppc.sh: Use elf.sc.
4710 * emulparams/elf32ppclinux.sh: Use elf.sc.
4711 * emulparams/elf32ppcsim.sh: New file.
4712 * emulparams/elf32lppcsim.sh: New file.
4713 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4714 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4715 * Makefile.in: Regenerate.
4716 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4717
01cc8ff8
AM
47182000-04-14 Alan Modra <alan@linuxcare.com.au>
4719
5ba47421 4720 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 4721 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
4722 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4723 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
4724 Also set all relocateable section start addresses.
4725
6c86c541
GK
47262000-04-13 Geoff Keating <geoffk@cygnus.com>
4727
4728 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4729 Add new BSS_PLT variable for when .plt need not be contained in
4730 the file. Move _etext so that it is also after .fini, and provide
4731 both etext and _etext with a leading underscore. Mark the start
4732 and end of .sbss.
4733
6a345e87
AM
47342000-04-12 Alan Modra <alan@linuxcare.com.au>
4735
4736 * emultempl/elf32.em (struct orphan_save): New.
4737 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4738 hold_interp): Make them struct orphan_save.
4739 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4740 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4741 the end of the relevant section list. Also add associated section
4742 statements to the end of any previous orphan statements.
4743 * emultempl/armelf.em: Similarly.
4744 * emultempl/pe.em: Similarly.
4745
8be86746
AM
47462000-04-11 Alan Modra <alan@linuxcare.com.au>
4747
4748 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4749
3b16e843 47502000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 4751
a2d91340 4752 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 4753 --enable-build-warnings option.
a2d91340
AC
4754 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4755 * Makefile.in, configure: Re-generate.
4756
41b49281
AM
47572000-04-04 Alan Modra <alan@linuxcare.com.au>
4758
8ad3436c
AM
4759 * po/ld.pot: Regenerate.
4760
4761 * lexsup.c (help): Restore translated part of bug string.
4762
41b49281
AM
4763 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4764 (DEP): Quote when passing vars to sub-make. Add warning message
4765 to end.
4766 (DEP1): Rewrite for "gcc -MM".
4767 (CLEANFILES): Add DEP2.
4768 Update dependencies.
4769 * Makefile.in: Regenerate.
4770
c20f4f8c
AM
47712000-04-03 Alan Modra <alan@linuxcare.com.au>
4772
4773 * ld.h: #include "bin-bugs.h"
4774 * lexsup.c (help): Use REPORT_BUGS_TO.
4775
adde6300
AM
47762000-03-27 Denis Chertykov <denisc@overta.ru>
4777
4778 * configure.tgt (avr-*-*): New target support.
4779 * Makefile.am: Likewise.
4780 * scripttempl/elf32avr.sc: New script file.
4781 * emulparams/avr1200.sh: New file.
4782 * emulparams/avr23xx.sh: New file.
4783 * emulparams/avr4433.sh New file.
4784 * emulparams/avr44x4.sh New file.
4785 * emulparams/avr85xx.sh New file.
4786 * emulparams/avrmega103.sh New file.
4787 * emulparams/avrmega161.sh New file.
4788 * emulparams/avrmega603.sh New file.
4789 * Makefile.in: Regenerate.
4790
9282ff41
L
47912000-03-09 Andreas Jaeger <aj@suse.de>
4792
4793 * Makefile.am (check-DEJAGNU): Also unset LANG.
4794 * Makefile.in: Rebuild.
4795
a9998805
ILT
47962000-03-06 Ian Lance Taylor <ian@zembu.com>
4797
4798 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4799 archive.
4800
f9bc20e7
NC
48012000-03-02 H.J. Lu <hjl@gnu.org>
4802
4803 * emulparams/elf32mcore.sh: Include "getopt.h".
4804
4e277b38
ILT
48052000-03-01 Ian Lance Taylor <ian@zembu.com>
4806
4807 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4808
f0c87f88
NC
48092000-03-01 H.J. Lu <hjl@gnu.org>
4810
4811 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4812 * emulparams/shpe.sh: Likewise.
4813
48142000-03-01 Nick Clifton <nickc@cygnus.com>
4815
4816 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4817 to unused parameters.
4818
4819 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4820 functions only used by DLL code.
4821 (_place_orphan): Initialise 'dollar'.
4822
b6f29aaa
L
48232000-03-01 H.J. Lu <hjl@gnu.org>
4824
4825 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4826 indicate if the undefined symbol is a fatal error or not.
4827 Don't delete the output file if "fatal" is false.
4828
af28fce3
L
48292000-02-29 H.J. Lu <hjl@gnu.org>
4830
50bbae35 4831 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
4832 Set LC_COLLATE and LC_ALL to null and export them. It is for
4833 sort which expects the C locale.
4834 Add $(LIBS) to all $(HOSTING_LIBS).
4835 * Makefile.in: Rebuild.
4836
40d109bf
AM
48372000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4838
4839 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4840 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4841 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4842 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4843 find_potential_libraries.
4844
db5be682
JB
48452000-02-28 Jim Blandy <jimb@redhat.com>
4846
4847 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 4848 list entries; the lexer considers commas to be valid part of a
db5be682
JB
4849 filename, so in something like `foo, bar' the comma is considered
4850 part of the first filename, `foo,'.
4851 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4852
3558ff4c
ILT
48532000-02-27 Loren J. Rittle <ljrittle@acm.org>
4854
4855 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4856 host "i[3456]86-*-freebsdelf*".
4857
4eee2681
ILT
48582000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4859
4860 * scripttempl/i386go32.sc: Move misplaced semicolons.
4861
8d75d12d
ILT
48622000-02-25 Ian Lance Taylor <ian@zembu.com>
4863
4864 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4865 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4866 (eelf64hppa.c, ehppaelf.c): Remove targets.
4867 * Makefile.in: Rebuild.
4868
a1836d49
AO
48692000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4870
ad51fb57
AO
4871 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4872 GNU/Linux/sparc, but keep the default as 32.
4873
a1836d49
AO
4874 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4875 it default if sparcv9 or sparc64.
4876
344a211f
NC
48772000-02-24 Nick Clifton <nickc@cygnus.com>
4878
4879 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4880 * Makefile.in: Regenerate.
4881 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4882
4883 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4884 find_potential_libraries.
4885 * ldemul.c (ldemul_find_potential_libraries): New function.
4886
4887 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 4888 exported.
344a211f
NC
4889 (ldfile_open_file): Call ldemul_find_potential_libraries.
4890 * ldfile.h: Add prototype for ldfile_open_file_search.
4891
4892 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4893
4894 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4895 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4896
4897 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4898 (gld_X_find_potential_libraries): New function. Search for
4899 libraries called "*.lib".
4900
a2b64bed 4901 * scripttempl/pe.sc: Add .pdata section.
344a211f 4902
eaba1dd3
RH
49032000-02-23 Richard Henderson <rth@cygnus.com>
4904
4905 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4906 Add and use memory regions.
4907
5b93d8bb
AM
49082000-02-23 Linas Vepstas (linas@linas.org)
4909
4910 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4911
4912 * Makefile.am: Add support for Linux/IBM 370.
4913 * configure.tgt: Likewise.
4914
4915 * Makefile.in: Regenerate.
4916
f6af82bd
AM
49172000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4918
4919 * ldlang.c (print_input_section, print_data_statement,
4920 print_reloc_statement, print_padding_statement, insert_pad,
4921 size_input_section, lang_check_section_addresses,
4922 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 4923 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
4924 (lang_do_assignments): Also change `size' to unsigned.
4925
9e673ad1
RH
49262000-02-16 Richard Henderson <rth@cygnus.com>
4927
4928 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4929
562d3460
TW
49302000-02-16 Timothy Wall <twall@cygnus.com>
4931
4932 * mri.c (mri_draw_tree): Add default LMA region argument to call
4933 to lang_leave_output_section_statement.
4934 * ldlang.h: Update prototypes with LMA region arguments.
4935 * ldlang.c (lang_size_sections): Encapsulate region bounds
4936 checking in os_check_region call.
4937 (os_check_region): New function.
4938 (lang_output_section_statement_lookup): Initialize lma_region.
4939 (lang_leave_output_section_statement): Add LMA region argument.
4940 (lang_leave_overlay): Ditto.
4941 * ldgram.y: Handle LMA region syntax.
4942 * ld.texinfo (Output Section Description): Describe LMA region usage.
4943 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 4944 lma region in call to lang_leave_output_section_statement.
562d3460 4945 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 4946 lma region in call to lang_leave_output_section_statement.
562d3460 4947 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 4948 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
4949
4950
9e4ed18c
TW
49512000-02-04 Timothy Wall <twall@redhat.com>
4952
4953 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4954 octets when calculating section end addresses.
4955
32edc927
TW
49562000-02-04 Timothy Wall <twall@redhat.com>
4957
4958 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4959
4cbfc3ac
TW
49602000-02-03 Timothy Wall <twall@redhat.com>
4961
a2b64bed 4962 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 4963 octet count.
a2b64bed 4964 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
4965 print_reloc_statement, print_padding_statement): Print target
4966 address values and section sizes as bytes, not octets.
4967 (insert_pad) Calculate padding size in octets, and adjust "dot"
4968 by bytes.
4969 (size_input_section) Always adjust "dot" by bytes, not octets.
4970 (lang_check_section_addresses, lang_do_assignments) Adjust
4971 "dot" by bytes, not octets. Use the larger of the directive size
4972 or octets_per_byte for the number of octets actually allocated in
4973 the output section.
4974 (lang_set_startof) Make sure STARTOF returns a target address.
4975 (lang_one_common) Record size changes in octets.
4976 (lang_abs_symbol_at_end_of) Section end symbol's value is
4977 recorded in target bytes.
68b2fc7a 4978 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4cbfc3ac 4979 to be clear about behavior when an octet is smaller than one byte.
50bbae35 4980
305c7206
AM
49812000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4982
4983 * ldcref.c (output_cref): Don't pass message strings to printf
4984 as format arg.
4985 Update copyright.
4986
4987 * ldmisc.c (vfinfo): Same here.
4988 Update copyright.
4989
e1c47aa4
AM
49902000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4991
4992 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4993 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4994 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4995 Add missing NULL initialisers, and comments.
4996
4997 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4998
13392b77
NC
49992000-01-21 Nick Clifton <nickc@cygnus.com>
5000
5001 * ldlang.c (lang_size_sections): Fix typo in comment.
5002
cce4c4c5
NC
50032000-01-18 H.J. Lu <hjl@gnu.org>
5004
5005 * ldlang.c (lang_size_sections): Also update the current
5006 address of a region if the SEC_NEVER_LOAD bit is not set.
5007
0decc840
NC
50082000-01-10 Philip Blundell <pb@futuretv.com>
5009
5010 * configure.tgt (arm*-*-conix*): New target.
5011
4e53152f
NC
50122000-01-07 Nick Clifton <nickc@cygnus.com>
5013
5014 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
5015 line switches with -Wl, (or whatever is appropriate) if it is
5016 being invoked by a comnpiler driver program.
50bbae35 5017 Fix description of the behaviour of the -n command line switch.
4e53152f 5018
3b16e843 50192000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
5020
5021 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5022 (name_list): New.
5023 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5024 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5025 (exclude_name_list): New.
5026 ldlang.c (walk_wild_section): Support list of excluded files.
5027 (print_wild_statement): Likewise.
5028 (lang_add_wild): Likewise.
5029 * ldlang.h (lang_wild_statement_type): Likewise.
5030 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 5031
5aaace27
NC
50322000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5033
870df5dc
NC
5034 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5035 (process_def_file): Use.
5036 (pe_dll_compat_implib): New variable.
5037 (make_one): Use.
50bbae35 5038
870df5dc
NC
5039 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5040 pe_dll_compat_implib.
50bbae35
AM
5041
5042 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
5043 compat-implib options.
5044 (gld_${EMULATION_NAME}_list_options): List new options.
5045 (gld_${EMULATION_NAME}_parse_args): Handle.
5046
50bbae35 5047 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 5048 dll.
50bbae35
AM
5049
5050 * deffilep.y (opt_name): Allow "." in name.
5aaace27 5051
2f6d2f85 5052For older changes see ChangeLog-9899
252b5132
RH
5053\f
5054Local Variables:
5055mode: change-log
5056left-margin: 8
5057fill-column: 74
5058version-control: never
5059End:
This page took 0.413173 seconds and 4 git commands to generate.