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