* Makefile.am: Run "make dep-am".
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
e1026ffb
SC
12002-10-13 Stephane Carrez <stcarrez@nerim.fr>
2
3 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
4 .finiN section.
5 * scripttempl/elfm68hc12.sc: Likewise.
6
2d801b0f
AM
72002-10-11 Alan Modra <amodra@bigpond.net.au>
8
fe213ce2
AM
9 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
10
2d801b0f
AM
11 * ldgram.y (memory_spec): Provide empty action.
12 (section <NAME>): Likewise.
13
599917b8
JJ
142002-10-10 Jakub Jelinek <jakub@redhat.com>
15
16 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
17 they have OUTPUT_FORMAT not matching actual output format.
18 * ldlang.c (lang_get_output_target): New function.
19 (open_output): Use it.
20 * ldlang.h (lang_get_output_target): New prototype.
21
24cdb50a
AM
222002-10-10 Alan Modra <amodra@bigpond.net.au>
23
24 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
25 when orphan is .rel, .rela when orphan is .rela.
26 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
27 first. Remove outsecname var.
28
a2b3c630
SC
292002-10-09 Richard Shann <richard.shann@superh.com>
30 Stephen Clarke <stephen.clarke@superh.com>
31
32 * Makefile.am: Add eshelf32_linux.o and
33 eshlelf32_linux.o, new emulations for sh64 Linux.
34 * Makefile.in: Regenerate.
35 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
36 * emulparams/shelf32_linux.sh: New file.
37 * emulparams/shlelf32_linux.sh: New file.
38
c04c9586
L
392002-10-08 H.J. Lu <hjl@gnu.org>
40
41 * ldlang.c (lang_file_exist): Removed.
42 (new_afile): Revert the last change.
43 * ldlang.h (lang_file_exist): Removed.
44 * lexsup.c (parse_args): Revert the last change.
45
39cebe23
NC
462002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
47
48 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
49 auto-import symbols.
50 (make_one): Create _nm_<symbol> for data only.
51
53b2a62f
NC
522002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
53
54 * ldlang.c (lang_file_exist): New function.
55 (new_afile): Abort if the filename to be added matches the linker
56 output filename.
57 * ldlang.h: Add prototype for lang_file_exist.
58 * lexsup.c (parse_args): Abort if the output filename matches
59 one of the input filenames.
60
a86a09cc
AM
612002-10-02 Alan Modra <amodra@bigpond.net.au>
62
63 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
64
ba493122
AM
652002-09-30 Alan Modra <amodra@bigpond.net.au>
66
1bf0a4d9
AM
67 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
68 * scripttempl/elfm68hc11.sc: Likewise.
69 * scripttempl/elfm68hc12.sc: Likewise.
70
ba493122
AM
71 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
72 reloc sections just before .rel.plt/.rela.plt.
73 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
74 Only put loadable reloc sections in hold_rel.
75
fdb9132d
L
762002-09-29 H.J. Lu <hjl@gnu.org>
77
42f98619 78 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
fdb9132d 79
ff326826
DJ
802002-09-25 Daniel Jacobowitz <drow@mvista.com>
81
82 From "Anita Kulkarni" <AnitaK@kpit.com>
83 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
84 sections.
85
0ae1cf52
AM
862002-09-25 Alan Modra <amodra@bigpond.net.au>
87
1ddd7b13
AM
88 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
89 TARGET_PAGE_SIZE.
90 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
91 SEGMENT_SIZE alignment.
92 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
93 (SEGMENT_SIZE): Define.
94
0ae1cf52
AM
95 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
96 (fold_binary): Correct abs - non-abs case.
97 (fold_trinary): New. Split out from exp_fold_tree.
98
06143382
AM
992002-09-24 Alan Modra <amodra@bigpond.net.au>
100
101 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
102 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
103 for start of .data, instead align up to 256M boundary.
104 * scripttempl/aix.sc: Likewise.
105
8e616ecc
DD
1062002-09-22 Mark Elbrecht <snowball3@softhome.net>
107
108 * scripttempl/i386go32.sc: Handle bss unique sections.
109
5cfb2bb2
AM
1102002-09-21 Alan Modra <amodra@bigpond.net.au>
111
112 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
113
dd2e0905
SC
1142002-09-17 Stan Cox <scox@redhat.com>
115
116 * emulparams/elf32bmipn32-defs.sh: New file.
117 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
118 * emulparams/elf32btsmipn32.sh: Likewise.
119 * emulparams/elf64bmip.sh: Likewise.
120 * emulparams/elf64btsmip.sh: Likewise.
121
4ada7262
DB
1222002-09-16 Bruno Haible <bruno@clisp.org>
123
124 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
125 elf32-i386-freebsd.
126 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
127 elf64-alpha-freebsd.
128
e09f4395
NC
1292002-09-11 Nick Clifton <nickc@redhat.com>
130
004d9caf
NC
131 * NEWS: New TI port supports both C4x and C3x series of DSPs.
132
e09f4395
NC
133 * po/tr.po: Updated Turkish translation.
134
004d9caf 1352002-09-06 Jeffrey A Law (law@redhat.com)
0b3a6a28
JL
136
137 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
138
3e369e96
NC
1392002-09-02 Nick Clifton <nickc@redhat.com>
140
67010b46
NC
141 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
142 __ep.
143 * emulparams/v850.sh (TEMPLATE_NAME): Define.
3e369e96 144
5435462c
NC
1452002-08-30 Nick Clifton <nickc@redhat.com>
146
147 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
148 used. Change INSN to start at 0x01000000 and extend for
149 256K (ignoring holes). Start the STACK on a word aligned
150 boundary.
151 (.rodata): Start it at the READONLY_START_ADDR.
152
5c368657
AM
1532002-08-30 Alan Modra <amodra@bigpond.net.au>
154
155 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
156
026df7c5
NC
1572002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
158
159 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
160 added makefile targets for this file.
161 * Makefile.in: Regenerate.
162 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
163 * NEWS: Mention new port.
164
1652002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
166
167 * emulparams/tic3xcoff.sh: New file.
168 * emulparams/tic4xcoff.sh: New file.
169 * scripttempl/tic3xcoff.sc: New file.
170 * scripttempl/tic4xcoff.sc: New file.
171
c89e8944
AM
1722002-08-28 Alan Modra <amodra@bigpond.net.au>
173
174 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
175 strtoul and strtoull with bfd_scan_vma.
176 (gld${EMULATION_NAME}_read_file): Likewise.
177
6459ecfa
AM
1782002-08-28 Alan Modra <amodra@bigpond.net.au>
179
180 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
181
ad5211be
NC
1822002-08-27 Egor Duda <deo@logos-m.ru>
183
184 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
185 Add symbols for application to access them.
186
88f7bcd5
NC
1872002-08-27 Nick Clifton <nickc@redhat.com>
188
189 * emultempl/armelf.em: Revert this patch, it is not needed.
190
191 2002-08-22 Adam Nemet <anemet@lnxw.com>
192
8e523c23
NC
1932002-08-20 Dan Kegel <dank@kegel.com>
194
195 * configure.in: added --with-lib-path argument to ld's configure
196 to set LIB_PATH.
197 * ld/NEWS: Document new switch.
198 * ld/README: Mention new switch.
199 * configure: Regenerate.
200 * Makefile.in: Regenerate.
201
202 Based on this patch:
203 2001-04-25 Christopher Faylor <cgf@cygnus.com>
204
205 * Makefile.in (LIB_PATH): Make configurable.
206 (GENSCRIPTS): Set LIB_PATH in environment.
207 * configure.in: Substitute LIB_PATH.
208
d9a7f7ab
NC
2092002-08-22 Adam Nemet <anemet@lnxw.com>
210
211 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
212 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
213 depending on the type of the function.
214 (arm_elf_convert_thumb_symbol_to_address): New function.
215
ed71e111
NC
2162002-08-22 Graeme Peterson <gp@qnx.com>
217
218 * Makefile.am: Add esh{l}elf_nto.o files.
219 * Makefile.in: Regenerate.
220 * configure.tgt: Add support for sh-**-nto* targets.
221 * emulparams/shelf_nto.sh: New file.
222 * emulparams/shlelf_nto.sh: New file.
223
7abb6dea
AM
2242002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
225
226 * ldlang.c (offsetof): Define if not defined.
227
e9229007
L
2282002-08-14 H.J. Lu <hjl@gnu.org>
229
230 * configure.tgt: Always enable 64bit emulations for 32bit
231 Linux/mips.
232
c553bb91
AM
2332002-08-13 Alan Modra <amodra@bigpond.net.au>
234
235 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
236 (MAXPAGESIZE): Set to 1.
237
238 * ld.h (ALIGN_N): Delete.
239 * ldexp.h (align_n): Declare.
240 * ldexp.c (align_n): New function.
241 (fold_binary): Use align_n instead of ALIGN_N.
242 (exp_fold_tree): Likewise.
243 * ldlang.c (lang_size_sections_1): Likewise.
244 (lang_one_common): Likewise.
3c6706bb 245 * ld.texinfo (ALIGN): Remove power of 2 restriction.
c553bb91 246
59bc061d
NC
2472002-07-31 Graeme Peterson <gp@qnx.com>
248
249 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
250 * Makefile.am: Add eelf32{l}ppcnto.o files.
251 * Makefile.in: Regenerate.
252 * emulparams/elf32lppcnto.sh: New file.
253 * emulparams/elf32ppcnto.sh: New file.
254
31941635
L
2552002-08-07 H.J. Lu <hjl@gnu.org>
256
257 * ld.texinfo: Document --no-undefined-version.
258
259 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
260 `script.' fields to 0.
261
262 * ldmain.c (main): Initialize the allow_undefined_version to
263 true.
264
265 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
266 (ld_options): Add --no-undefined-version.
267 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
268
2004afbc
NC
2692002-08-07 Nick Clifton <nickc@redhat.com>
270
271 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
272 an interworking bfd if there are input bfds. (107501)
273
7fc44b9c
AM
2742002-08-06 Alan Modra <amodra@bigpond.net.au>
275
276 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
277 2002-05-10 change.
278
24a1ba0f
NC
2792002-08-01 Nick Clifton <nickc@redhat.com>
280
281 * emulparams/armelf.sh: Revert previous delta.
282 * scripttempl/elf.sc: Revert previous delta.
283
ebc6e014
L
2842002-07-31 H.J. Lu <hjl@gnu.org>
285
286 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
287 --enable-64-bit-bfd.
288
39a2a3eb
L
2892002-07-31 H.J. Lu <hjl@gnu.org>
290
291 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
292 64bit BFD is selected.
293
a0dfa6a8
L
2942002-07-31 H.J. Lu <hjl@gnu.org>
295
296 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
297 if 64bit BFD is selected.
298
f7c33884
NC
2992002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
300
301 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
302 link_info.common_skip_ar_aymbols.
303 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
304
305 * ldmain.c (main): Initialize new field
306 link_info.common_skip_ar_aymbols.
307
8f64befb
NC
3082002-07-31 Adam Nemet <anemet@lnxw.com>
309
310 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
311 to .plt.thumb.
312 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
313 used.
314
500800ca
NC
3152002-07-31 Nick Clifton <nickc@redhat.com>
316
317 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
318 of the PDP-11 and 2.11BSD a.out support.
319
7808a785
TS
3202002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
321
322 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
323 for n32 ABI support.
324 * Makefile.in: Regenerate.
325 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
326 n32 ABI emulations for these 64 bit targets.
327 * emulparams/elf32bmipn32.sh: Expand comment.
328 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
329 n32 ABI.
330 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
331
7e392df6
NC
3322002-07-30 Graeme Peterson <gp@qnx.com>
333
334 * configure.tgt: Add support for arm-*-nto target.
335 * Makefile.am: Add earmnto.o file.
336 * Makefile.in: Regenerate.
337 * NEWS: Mention port of ARM support to QNX.
338 * emulparams/armnto.sh: New file.
339
704afa60
JJ
3402002-07-30 Jakub Jelinek <jakub@redhat.com>
341
342 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
343 for relocatable link.
344 (lang_size_sections_1): Don't make .tbss zero size for relocatable
345 link.
346
7dcd22c2
BS
3472002-07-26 Bernd Schmidt <bernds@redhat.com>
348
349 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
350 (STACK_ADDR): New.
351
219576a4
NC
3522002-07-25 Nick Clifton <nickc@redhat.com>
353
354 * po/sv.po: Updated Swedish translation.
355 * po/es.po: Updated Spanish translation.
356 * po/fr.po: Updated French translation.
357
ff3063f5
NC
3582002-07-24 Nick Clifton <nickc@redhat.com>
359
360 * po/sv.po: Updated Swedish translation.
361 * po/es.po: Updated Spanish translation.
362
0461a601
NC
3632002-07-23 Nick Clifton <nickc@redhat.com>
364
ff3063f5 365 * po/fr.po: Updated French translation.
0461a601 366
25844aae
AM
3672002-07-20 Alan Modra <amodra@bigpond.net.au>
368
369 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
370 bomb on /DISCARD/ input section.
371 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
372 * emultempl/mmo.em (mmo_place_orphan): Likewise.
373
3595bd6e
HPN
3742002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
375
376 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
377 output section.
378
cf88bb9f
NC
3792002-07-16 Denis Chertykov <denisc@overta.ru>
380 Nick Clifton <nickc@redhat.com>
381 Frank Ch. Eigler <fche@redhat.com>
382 John Healy <jhealy@redhat.com>
383
384 * configure.tgt: Add support for ip2k-elf.
385 * Makefile.am: Add support for ip2k-elf.
386 * Makefile.in: Regenerate.
387 * emulparams/elf32ip2k.sh: New file.
388 * scripttempl/ip2k.sc: New file
389 * NEWS: Mention support for new port.
390
2cbb2eef
NC
3912002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
392
393 * NEWS: Add 'Changes in 2.13'.
394
96a94295
L
3952002-07-14 H.J. Lu <hjl@gnu.org>
396
397 * ld.texinfo: Document a .symver takes precedence over a
398 version script.
399
120d20f2
AM
4002002-07-12 Alan Modra <amodra@bigpond.net.au>
401
402 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
403 (COMMONPAGESIZE): Define.
404
0d2ddeb2
AM
4052002-07-09 Alan Modra <amodra@bigpond.net.au>
406
407 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
408
554690ed
AM
4092002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
410
411 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
412 powerpc-*-openbsd* and sparc64-*-openbsd*.
413 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
414 * Makefile.in: Regenerate.
415 * emulparams/hppaobsd.sh: New file.
416
34786259
AM
4172002-07-05 Alan Modra <amodra@bigpond.net.au>
418
419 * ldlang.c (print_wild_statement): Fix output formatting.
420
4bd5a393
AM
4212002-07-04 Alan Modra <amodra@bigpond.net.au>
422
423 * ldlang.c: (strip_excluded_output_sections): New function.
424 (lang_process): Call it.
425 (lang_size_sections_1): Revert 2002-06-10 change.
426
ce4f7385
AM
4272002-07-03 Alan Modra <amodra@bigpond.net.au>
428
429 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
430 Run "make dep-am".
431 * Makefile.in: Regenerate.
432
b7b482a3
AM
4332002-07-02 Alan Modra <amodra@bigpond.net.au>
434
71daf8b4
AM
435 * ldfile.c (ldfile_try_open_bfd): Formatting.
436
b7b482a3
AM
437 * ldmisc.c (demangle): Move so that it doesn't intrude between
438 vfinfo comment and body. Add comment.
439
29e2951e
AM
4402002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
441
442 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
443
e3e942e9
AM
4442002-07-01 Alan Modra <amodra@bigpond.net.au>
445
446 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
447 * ldlang.c (entry_sym): Likewise.
448 (ldlang_undef_chain_list_type): Likewise.
449 (lang_finish): Adjust references to entry_symbol.
450 (lang_add_entry): Likewise.
451 (lang_gc_sections): Use link_info.gc_sym_list.
452 (lang_process): Set link_info.gc_sym_list.
453 * ldlex.l: Include bfdlink.h.
454 * ldmain.c (main): Init link_info.gc_sym_list.
455 * emultempl/aix.em: Adjust references to entry_symbol.
456 * emultempl/armcoff.em: Likewise.
457 * emultempl/armelf.em: Likewise.
458 * emultempl/pe.em: Likewise.
459 * emultempl/ppc64elf.em (ppc_after_open): New function.
460 (LDEMUL_AFTER_OPEN): Define.
461 * emulparams/elf64ppc.sh: KEEP .opd sections.
462
a66c0f2c
SC
4632002-06-29 Stephane Carrez <stcarrez@nerim.fr>
464
465 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
466 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
467 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
468 (EEPROM_START_ADDR): Define.
469 (EEPROM_MEMORY): Define.
470 * emulparams/m68hc12elf.sh: Likewise.
471 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
472 section to put soft registers in .page0.
473 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
474
2b67cf00
JL
4752002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
476
477 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
478 section. Add ${RELOCATING-0}.
479
219576a4 4802002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
164c4054
JR
481
482 * emulparams/shelf.sh (STACK_ADDR): Don't define.
483 (OTHER_SECTIONS): Define.
484 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
485 (OTHER_SECTIONS): Undef.
486
fc28fbc2
AM
4872002-06-26 Alan Modra <amodra@bigpond.net.au>
488
489 * ldmisc.c (demangle): Restore dots stripped from sym name.
490
a13a0de8
L
4912002-06-25 H.J. Lu <hjl@gnu.org>
492
493 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
494 * Makefile.in: Regenerated.
495
b553b183
NC
4962002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
497
498 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
499 the size of attached object files, to allow make the object files
500 available via FTP or HTTP and to mention that the mail will be
501 sent to a mailing list.
502
2755afba
NC
5032002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
504
505 * ld/configure.host (romp): Drop support.
506
7d0a848e
CD
5072002-06-18 Chris Demetriou <cgd@broadcom.com>
508
509 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
510 section flags for SEC_DATA, rather than for SEC_CODE being unset.
511
8505f884
CD
5122002-06-18 Chris Demetriou <cgd@broadcom.com>
513
514 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
515 format specifier used to print BFD name.
516
7d553a40
DB
5172002-06-18 Dave Brolley <brolley@redhat.com>
518
519 From Catherine Moore, Michael Meissner, Jim Blandy:
520 * emulparams/elf32frv.sh: New file.
521 * configure.tgt: Support frv-*-*.
522 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
523 (eelf32frv.c): New target.
524
82434356
TR
5252002-06-17 Tom Rix <trix@redhat.com>
526
a59f3d35 527 * emultempl/elf32.em: gld*_get_script: Check for
82434356
TR
528 GENERATE_COMBRELOC_SCRIPT.
529 * scripttempl/elfd10v.sc : Fix STACK and INSN.
530 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
531
219576a4 5322002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
5d9b5481
JR
533
534 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
535
c4bb8067
L
5362002-06-12 H.J. Lu <hjl@gnu.org>
537
538 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
539 false if xvec doesn't match.
540
e052cfbe
RS
5412002-06-10 Richard Sandiford <rsandifo@redhat.com>
542
543 * ldlang.c (lang_size_sections_1): Skip removed output sections.
544
4da711b1
AM
5452002-06-08 Alan Modra <amodra@bigpond.net.au>
546
547 * ldexp.c: Replace CONST with const.
548 * ldfile.c: Likewise.
549 * ldfile.h: Likewise.
550 * ldlex.l: Likewise.
551 * mri.c: Likewise.
552 * pe-dll.h: Likewise.
553
eb95bb9a
AM
5542002-06-07 Alan Modra <amodra@bigpond.net.au>
555
556 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
557
e0076ab3
NC
5582002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
559
560 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
561 to -1 == implicit enable.
562 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
563 initialize link_info.pei386_auto_import to -1 == implicit
564 enable.
565 (gld_${EMULATION_NAME}_parse_args): When processing
566 --enable-auto-import and --disable-auto-import options, use
567 '1' and '0' instead of 'true' and 'false'.
568 (pe_find_data_imports): Only issue message about auto-import
569 when the feature is implicitly enabled. Downgrade message to
570 informational instead of warning.
571
f13a5424
AM
5722002-06-07 Alan Modra <amodra@bigpond.net.au>
573
574 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
575
1abffd82
JL
5762002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
577
578 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
579 HOSTING_CRT0 and HOSTING_LIBS.
580
e0076ab3 5812002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
7a33bc10
JR
582
583 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
584
4a5e698d
JT
5852002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
586
587 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
588 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
589
1d475d82
AM
5902002-06-05 Alan Modra <amodra@bigpond.net.au>
591
592 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
593 SEC_EXCLUDE sections when doing a relocatable link.
594
5b0e55b6
JT
5952002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
596
597 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
598 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
599 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
600 (eshlelf64_nbsd.c): New rules.
601 * Makefile.in: Regenerate.
602 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
603 (sh64-*-netbsd*): New targets.
604 * emulparams/shelf32_nbsd.sh: New file.
605 * emulparams/shelf64_nbsd.sh: New file.
606 * emulparams/shlelf32_nbsd.sh: New file.
607 * emulparams/shlelf64_nbsd.sh: New file.
608
9ad85d9b
AM
6092002-06-04 Alan Modra <amodra@bigpond.net.au>
610
611 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
612
0c9b4fee
MM
6132002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
614
615 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
616 C++ constructors/destructors, loosely based on the m68hc11 port.
617
2c538bde
AM
6182002-05-31 Alan Modra <amodra@bigpond.net.au>
619
620 * Makefile.in: Regenerate.
621 * aclocal.m4: Regenerate.
622 * config.in: Regenerate.
623 * configure: Regenerate.
624
a0cb91c6
AM
6252002-05-31 Graeme Peterson <gp@qnx.com>
626
627 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
628 (ei386nto.c): Add rule.
629 * Makefile.in: Regenerate.
630 * configure.tgt: Add i[3456]86-*-nto-qnx*.
631 * emulparams/i386nto.sh: New file.
632
37020578
JT
6332002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
634
635 * NEWS: Add entry for VAX ELF support.
636
ab68f3e0 6372002-05-29 Matt Thomas <matt@3am-software.com>
a59f3d35 638 Jason Thorpe <thorpej@wasabisystems.com>
ab68f3e0
JT
639
640 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
641 (eelf32vax.c)
642 (evaxnbsd.c): New rules.
643 * Makefile.in: Regenerate.
644 * configure.tgt (vax-*-netbsdelf*)
645 (vax-*-netbsdaout*)
646 (vax-*-netbsd*): New targets.
647 * emulparams/elf32vax.sh: New file.
648 * emulparams/vaxnbsd.sh: New file.
649
8afb0e02
NC
6502002-05-29 Adam Nemet <anemet@lnxw.com>
651
652 * emultempl/armelf.em (arm_elf_after_open): Don't determine
653 bfd_for_interwork, instead add glue sections to each input bfd.
654 (bfd_for_interwork): New global.
655 (arm_elf_set_bfd_for_interworking): New function.
656 (arm_elf_before_allocation): Use it.
657
d172d4ba
NC
6582002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
659
660 * Makefile.am: Add DLX make target.
661 * configure.tgt: Add DLX configuration.
662 * Makefile.in: Regenerate.
663 * emulparams/elf32_dlx.sh: New file
664 * scripttempl/dlx.sc: New file
665
b4477fa8
NC
6662002-05-27 Per Lundberg <per@caleb.dnsalias.org>
667
668 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
669 * Makefile.in: Regenerate.
670 * emulparams/elf_chaos.sh: Use elf_chaos script.
671 * scripttempl/elf_chaos.sc: New file.
672
ee3cc2e2
RS
6732002-05-27 Richard Sandiford <rsandifo@redhat.com>
674
675 * ldlang.c (lang_size_sections_1): Move check for conflicting load
676 addresses and regions from here...
677 (lang_get_regions): ...to this new function.
678 (lang_leave_output_section_statement): Use lang_get_regions.
679 (lang_leave_overlay): Likewise.
680 * mri.c (mri_draw_tree): Pass null as last argument to
681 lang_leave_output_section_statement.
682 * emultempl/elf32.em (gld*_place_orphan): Likewise.
683 * emultempl/mmo.em (mmo_place_orphan): Likewise.
684 * emultempl/pe.em (gld*_place_orphan): Likewise.
685
aa501e5c
JT
6862002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
687
688 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
689
658957db
KH
6902002-05-25 Kazu Hirata <kazu@cs.umass.edu>
691
692 * ldemul.c: Fix formatting.
693 * ldfile.c: Likewise.
694 * pe-dll.c: Likewise.
695 * pe-dll.h: Likewise.
696
3511b595
AM
6972002-05-25 Alan Modra <amodra@bigpond.net.au>
698
0d6d936f
AM
699 * ldlang.c (lang_process): Formatting, grammar.
700
3511b595
AM
701 * ldlex.l: Use #include "" instead of <> for local header files.
702
436e8db0
NC
7032002-05-24 TAMURA Kent <kent@netbsd.org>
704
705 * configure.tgt: Add a target for i386-netbsdpe.
706
13ae64f3
JJ
7072002-05-23 Jakub Jelinek <jakub@redhat.com>
708
709 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
710 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
711 output section if necessary. Handle .tbss.
712 (lang_size_sections): Clear _raw_size for .tbss section
713 (it allocates space in PT_TLS segment only).
714 * ldwrite.c (build_link_order): Build link order for .tbss too.
715
68b2fc7a
AM
7162002-05-23 Alan Modra <amodra@bigpond.net.au>
717
718 * configure.in: Correct spelling of AC_PREREQ.
719
70b0be79
CF
7202002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
721
722 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
723 default.
724 (autofilter_objlist): Add crtbegin.o, crtend.o.
725
7262002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
727
728 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
729 (longopts): Add new option --exclude-libs.
730 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
731 (gld_${EMULATION_NAME}_parse_args): Use it.
732 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
733 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
734 from whole archives.
735 (pe_dll_add_excludes): Set excludes->type.
736 (auto_export): Add new variable libname and set to archive basename if
737 abfd. Use it when filtering default and user-specified libarary
738 excludes. Let string "ALL" mean all libs when filtering user-specified
739 libs.
740 * ld.texinfo: Document --exclude-libs.
741
fac1652d
AM
7422002-05-22 Alan Modra <amodra@bigpond.net.au>
743
744 * ldemul.c (ldemul_new_vers_pattern): New function.
745 * ldemul.h (ldemul_new_vers_pattern): Declare.
746 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
747 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
748 * emultempl/ppc64elf.em (dotsyms): New static var.
749 (gld${EMULATION_NAME}_new_vers_pattern): New function.
750 (LDEMUL_NEW_VERS_PATTERN): Define.
751 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
752 (PARSE_AND_LIST_LONGOPTS): Likewise.
753 (PARSE_AND_LIST_ARGS_CASES): Handle them.
754 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
755 initialiser.
756 * emultempl/armcoff.em: Likewise.
757 * emultempl/armelf_oabi.em: Likewise.
758 * emultempl/beos.em: Likewise.
759 * emultempl/elf32.em: Likewise.
760 * emultempl/generic.em: Likewise.
761 * emultempl/gld960.em: Likewise.
762 * emultempl/gld960c.em: Likewise.
763 * emultempl/linux.em: Likewise.
764 * emultempl/lnk960.em: Likewise.
765 * emultempl/m68kcoff.em: Likewise.
766 * emultempl/mipsecoff.em: Likewise.
767 * emultempl/pe.em: Likewise.
768 * emultempl/sunos.em: Likewise.
769 * emultempl/ticoff.em: Likewise.
770 * emultempl/vanilla.em: Likewise.
771
eb3d6bb8
AM
7722002-05-22 Alan Modra <amodra@bigpond.net.au>
773
774 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
775 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
776 (LIB_SEARCH_DIRS): No need to use "tr".
777 (COMPILE_IN): Only set for native targets.
778 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
779 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
780 * configure.tgt (powerpc*): Set tdir_*.
781 (powerpcle*): Correct targ_extra_emuls.
782 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
783 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
784
54f24647
AM
7852002-05-22 Alan Modra <amodra@bigpond.net.au>
786
787 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
788 calling lang_add_entry.
789
aa713662
L
7902002-05-21 H.J. Lu (hjl@gnu.org)
791
792 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
793 "-z muldefs".
794 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
795
796 * ld.texinfo: Updated for --allow-multiple-definition and
797 "-z muldefs".
798
799 * ldmain.c (main): Initialize the allow_multiple_definition
800 field to false.
801
802 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
803 (ld_options): Add --allow-multiple-definition.
804 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
805
658f2588
JT
8062002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
807
808 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
809 (earmelfb_nbsd.c): New rule.
a59f3d35 810 * Makefile.in: Regenerate.
658f2588 811 * configure.tgt (armeb-*-netbsdelf*): New target.
a59f3d35 812 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
658f2588
JT
813 (arm-*-netbsd*): Likewise.
814 * emulparams/armelfb_nbsd.sh: New file.
815
ca10c62d
TR
8162002-05-18 Tom Rix <trix@redhat.com>
817
a59f3d35 818 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
ca10c62d
TR
819 support.
820
fae1e84f
MM
8212002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
822
823 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
824 * Makefile.in: Regenerate.
825 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
826
7c8bf1e8
MM
8272002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
828
829 * emulparams/avr1.sh: New file.
830 * emulparams/avr2.sh: New file.
831 * emulparams/avr3.sh: New file.
832 * emulparams/avr4.sh: New file.
833 * emulparams/avr5.sh: New file.
834 * scripttempl/avr.sc: New file.
835
c2c01aa7
AM
8362002-05-15 Alan Modra <amodra@bigpond.net.au>
837
838 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
839 (lang_place_orphans): Abort if just_syms_flag.
840
f1f0d9ab
TR
8412002-05-10 Tom Rix <trix@redhat.com>
842
a59f3d35 843 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
f1f0d9ab
TR
844 architecture and machine information in the output bfd.
845 (gld*_before_parse): Remove old arch and machine code.
846 (choose_target): Rename to gld*_choose_target.
a59f3d35
AM
847 (rtld): Change type to int.
848 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
f1f0d9ab
TR
849 objects in XCOFF archives.
850 * ldfile.h: Update copyright date.
851
f4d73366
JJ
8522002-05-10 Jakub Jelinek <jakub@redhat.com>
853
854 * ldmain.c (main): Enable -z combreloc by default.
855
d3d8a9ee
NC
8562002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
857
858 * Makefile.am: Honour DESTDIR.
859 * Makefile.in: Regenerate.
860
9f88b410
RS
8612002-05-07 Richard Sandiford <rsandifo@redhat.com>
862
863 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
864 (lang_enter_overlay): Remove the last two parameters.
865 (lang_leave_overlay): Take them here instead.
866 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
867 (section): Pass LMA and crossref flag to lang_leave_overlay rather
868 than lang_enter_overlay.
869 * ldlang.c (lang_memory_region_lookup): Return null for null names.
870 (lang_output_section_statement_lookup): Initialize update_dot_tree.
871 (lang_size_sections_1): Evaluate it.
872 (lang_leave_output_section_statement): Rework LMA lookup.
873 (overlay_lma, overlay_nocrossrefs): Remove.
3511b595 874 (lang_enter_overlay): Remove LMA and crossref arguments.
9f88b410
RS
875 (lang_enter_overlay_section): Don't set the LMA here.
876 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
877 assignment to the last section's update_dot_tree. Unconditionally
878 use the load and run-time regions specified in the OVERLAY statement.
879 Likewise the first section's LMA. Only set the other sections' LMAs
880 when no load region is given.
881
b9a743c8
NC
8822002-05-06 Nick Clifton <nickc@redhat.com>
883
884 * po/sv.po: New translation.
885
a3d60be3
AM
8862002-05-04 Alan Modra <amodra@bigpond.net.au>
887
888 * emultempl/hppaelf.em (build_section_lists): New function.
889 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
890 and build_section_lists.
891
b7a26f91
KH
8922002-05-03 Kazu Hirata <kazu@cs.umass.edu>
893
894 * ld.h: Fix formatting.
895 * ldexp.c: Likewise.
896 * ldfile.c: Likewise.
897 * ldlang.c: Likewise.
898 * ldmain.c: Likewise.
899 * lexsup.c: Likewise.
900 * pe-dll.c: Likewise.
901
805fc799
AM
9022002-05-02 Alan Modra <amodra@bigpond.net.au>
903
904 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
905 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
906 (build_section_lists): Do output_section tests here.
907
cc7e59b2
TR
9082002-04-30 Tom Rix <trix@redhat.com>
909
910 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
911
9c1d81c1
AM
9122002-05-01 Alan Modra <amodra@bigpond.net.au>
913
914 Long branch stubs, multiple stub sections.
915 * emultempl/ppc64elf.em: Include ldctor.h.
916 (stub_file): New var.
917 (group_size): New var.
918 (ppc_create_output_section_statements): New function.
919 (struct hook_stub_info): New.
920 (hook_in_stub): New function.
921 (ppc_add_stub_section): New function.
922 (ppc_layout_sections_again): New function.
923 (build_section_lists): New function.
924 (gld${EMULATION_NAME}_finish): Rewrite.
925 (real_func): New var.
926 (ppc_for_each_input_file_wrapper): New function.
927 (ppc_lang_for_each_input_file): New function.
928 (lang_for_each_input_file): Define.
929 (PARSE_AND_LIST_PROLOGUE): Define.
930 (PARSE_AND_LIST_LONGOPTS): Define.
931 (PARSE_AND_LIST_OPTIONS): Define.
932 (PARSE_AND_LIST_ARGS_CASES): Define.
933 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
934
aa67bccf
TR
9352002-04-30 Tom Rix <trix@redhat.com>
936
a59f3d35
AM
937 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
938 -blibpath, -bnolibpath support.
939
94349e12
MM
9402002-04-30 Mark Mitchell <mark@codesourcery.com>
941
942 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
943 (eelf32ppcwindiss.c): New target.
944 * Makefile.in: Regenerated.
945 * configure.tgt: Add support for powerpc-*-windiss.
946 * emulparams/elf32ppcwindiss.sh: New file.
a59f3d35 947
7b17f854
RS
9482002-04-30 Richard Sandiford <rsandifo@redhat.com>
949
950 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
951 * ldexp.c (exp_print_token): Add "infix_p" argument.
952 (exp_print_tree): Update accordingly.
953
596dafeb
AM
9542002-04-28 Alan Modra <amodra@bigpond.net.au>
955
956 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
957 * Makefile.in: Regenerate.
958 * mpw-elfmips.c: Delete.
959 * mpw-eppcmac.c: Delete.
960 * mpw-esh.c: Delete.
961 * mpw-idtmips.c: Delete.
962
219576a4 9632002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
964
965 * emulparams/shelf32.sh (MACHINE): Now sh5.
966
944cd72c
TS
9672002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
968
969 * ldgram.y: Fix syntax warning.
970
5835c212
NC
9712002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
972
973 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
974 to prevent "-n" from being taken as an abbreviation for
975 "--no-pipeline-knowledge".
976
024531e2
AM
9772002-04-08 Alan Modra <amodra@bigpond.net.au>
978
d08a14c3
AM
979 * ldlang.c (lang_size_sections_1): Don't complain about
980 SEC_NEVER_LOAD sections having no memory region specified.
981
024531e2
AM
982 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
983
c657a1f0
MG
9842002-04-07 matthew green <mrg@redhat.com>
985
986 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
987
61bef6f1
AM
9882002-04-04 Alan Modra <amodra@bigpond.net.au>
989
990 * dep-in.sed: Cope with absolute paths.
991 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
992 Run "make dep-am".
993 * Makefile.in: Regenerate.
994
49ba2791
TS
9952002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
996
997 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
998
50e60fb5
JJ
9992002-04-03 Jakub Jelinek <jakub@redhat.com>
1000
1001 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1002 is smaller than maximum, round dot up to common page boundary.
1003
6f12f4ca
AM
10042002-03-28 Alan Modra <amodra@bigpond.net.au>
1005
1006 * configure.host: Set up for generic hosts first, then tweak as
1007 necessary in more specific targets.
1008 (HOSTING_LIBS): Include libgcc_eh.a if found.
1009
a8f1f017
AJ
10102002-03-23 Andreas Jaeger <aj@suse.de>
1011
1012 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1013
1d3fdf38
AM
10142002-03-21 Alan Modra <amodra@bigpond.net.au>
1015
1016 * Makefile.am: Run "make dep-am".
1017 * Makefile.in: Regenerate.
1018
79b1faa8
AM
10192002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1020
1021 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1022
fcf0e35b
AM
10232002-03-20 Alan Modra <amodra@bigpond.net.au>
1024
1025 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1026 add the symbol to the linker hash table immediately.
1027 (lang_place_undefineds): Split symbol creation out..
1028 (insert_undefined): ..to here.
1029
fed2999d
DB
10302002-03-18 David O'Brien <obrien@FreeBSD.org>
1031
1032 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1033 the contents of the buffer returned from basename function will are
1034 getting overwritten while still being used.
1035
219576a4
NC
10362002-03-18 Jan Hubicka <jh@suse.cz>
1037 Andreas Jaeger <aj@suse.de>
1038 Andreas Schwab <schwab@suse.de>
beb43bb9
JH
1039
1040 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1041 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1042 set libraries to default to lib64 paths.
1043
eb1e0e80
NC
10442002-03-18 Tom Rix <trix@redhat.com>
1045
1046 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1047 * configure.tgt : Same.
1048 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1049 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1050 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1051 emulation parameters for better -b32, -b64 support.
1052 * emulparms/aixrs6.sh : Same.
1053 * emulparms/ppcmacos.sh : Same.
1054 * emultempl/aix.em (choose_target) : Use new emulation parameters
1055 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1056 * Makefile.in : Regenerate.
1057
a1c259a1
NC
10582002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1059
1060 * po/fr.po: Updated version.
1061
862120bd
AM
10622002-03-18 Alan Modra <amodra@bigpond.net.au>
1063
1064 * ldmain.c (main): Move .text readonly flag fudges from here..
1065 * ldlang.c (lang_process): ..to here.
1066
d35a52e2
AM
10672002-03-14 Alan Modra <amodra@bigpond.net.au>
1068
1069 * ldlang.c (lang_check): Remove the word size check added in last
1070 change. Treat emitrelocations case as for relocatable links.
1071
9ce88e60
NC
10722002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1073
1074 * po/fr.po: Updated version.
1075
30cba025
AM
10762002-03-13 Alan Modra <amodra@bigpond.net.au>
1077
1078 * ldlang.c (lang_check): Do relocatable link checks first, so that
1079 warn_mismatch can't override. Check compatible and word size too.
1080
84ec0e6d
DJ
10812002-03-07 Daniel Jacobowitz <drow@mvista.com>
1082
1083 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1084
2d13d8c5
JJ
10852002-03-05 Jakub Jelinek <jakub@redhat.com>
1086
1087 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1088 DATA_SEGMENT_ALIGN.
1089
b5090659
L
10902002-03-04 H.J. Lu <hjl@gnu.org>
1091
1092 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1093 .fini_array in the data segment.
1094
f42ce16e
AM
10952002-03-04 Alan Modra <amodra@bigpond.net.au>
1096
1097 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1098
de77b6ac
RH
10992002-03-01 David Mosberger <davidm@hpl.hp.com>
1100
1101 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1102 .init_array, and .fini_array.
1103
997e08c0
AS
11042002-02-20 Andreas Schwab <schwab@suse.de>
1105
1106 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1107 .IA64_unwind* in a relocatable link.
1108
9a66911f
NC
11092002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1110
1111 * NEWS: Mark 2.12 branch.
1112
d86bcc10
MS
11132002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1114
1115 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1116 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1117
69f284c7
TR
11182002-02-18 Tom Rix <trix@redhat.com>
1119
1120 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1121 (gld*_before_allocation): Same.
a8f1f017 1122 (gld*_create_output_section_statements): Generate
69f284c7
TR
1123 __rtinit if run time linking. Add librtl.a to the link.
1124 (gld*_read_file): Clean.
1125
82bd7b59
AM
11262002-02-18 Alan Modra <amodra@bigpond.net.au>
1127
1128 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1129
ac3e50bf
DB
11302002-02-18 David O'Brien <obrien@FreeBSD.org>
1131
6a7f963b 1132 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
ac3e50bf
DB
1133 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1134 and eelf64alpha_fbsd.
6a7f963b 1135 * Makefile.in: Regenerate.
ac3e50bf
DB
1136 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1137 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1138 use a FreeBSD-specific emulation rather than the psABI one.
1139 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1140 for all FreeBSD ELF systems.
1141 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1142 emulation.
1143 * emulparams/elf32ppc_fbsd.sh: Likewise.
1144 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1145 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1146 * emulparams/elf64alpha_fbsd.sh: Likewise.
1147 * emulparams/elf_i386_fbsd.sh: Likewise.
1148 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1149
6ad738c5
NC
11502002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1151
1152 * po/tr.po: Updated version.
1153
9673c93c
AM
11542002-02-18 Alan Modra <amodra@bigpond.net.au>
1155
1156 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1157 (FILL): Likewise.
1158
1c5e6447
HPN
11592002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1160
1161 * emultempl/mmo.em (mmo_after_open): Don't call
1162 _bfd_mmix_check_all_relocs when producing ELF output.
1163
8bb57516
RH
11642002-02-15 Richard Henderson <rth@redhat.com>
1165
de77b6ac 1166 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
8bb57516
RH
1167 definition. Emit a unop+nop pair.
1168
49fda6c8
HPN
11692002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1170
83c2d653
HPN
1171 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1172 for presence of .MMIX.reg_contents.linker_allocated before early
1173 exit.
1174
49fda6c8
HPN
1175 * NEWS: Mention support for MMIX.
1176
2c382fb6
AM
11772002-02-15 Alan Modra <amodra@bigpond.net.au>
1178
1179 Support arbitrary length fill patterns.
a139d329
AM
1180 * ld.texinfo (Output Section Fill): Describe fill expressions.
1181 (FILL): Refer to the above.
2c382fb6
AM
1182 * ldexp.h (etree_value_type): Add "str" field.
1183 (union etree_union): Add "str" to "value" struct.
1184 (exp_bigintop): Declare.
1185 (exp_get_fill): Declare.
1186 * ldexp.c: Include "safe-ctype.h".
1187 (exp_intop): Set value.str to NULL.
1188 (exp_bigintop): New function.
1189 (new_rel): Pass in "str", and set new.str from it.
1190 (new_rel_from_section): Set new.str to NULL.
1191 (fold_name): Adjust calls to new_rel.
1192 (exp_fold_tree): Likewise.
1193 (exp_get_fill): New function.
1194 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1195 (INT): Returns a "bigint". Adjust all code handling INTs.
1196 (fill_opt): Returns a "fill".
1197 (fill_exp): Split out of fill_opt, use for FILL.
1198 * ldlang.h (struct _fill_type): New.
1199 (fill_type): Move typedef to ldexp.h.
1200 (lang_output_section_statement_type): "fill" is now a pointer.
1201 (lang_fill_statement_type): Likewise.
1202 (lang_padding_statement_type): Likewise.
1203 (lang_add_fill): Now takes a "fill_type *" param.
1204 (lang_leave_output_section_statement): Likewise.
1205 (lang_do_assignments): Likewise.
1206 (lang_size_sections): Likewise.
1207 (lang_leave_overlay_section): Likewise.
1208 (lang_leave_overlay): Likewise.
1209 * ldlang.c: Include ldgram.h after ldexp.h.
1210 (lang_output_section_statement_lookup): Adjust for fill_type change.
1211 (print_fill_statement): Likewise.
1212 (print_padding_statement): Likewise.
1213 (insert_pad): Now takes a "fill_type *" arg.
1214 (size_input_section): Likewise.
1215 (lang_size_sections_1): Likewise.
1216 (lang_size_sections): Likewise.
1217 (lang_do_assignments): Likewise.
1218 (lang_add_fill): Likewise.
1219 (lang_leave_output_section_statement): Likewise.
1220 (lang_leave_overlay_section): Likewise.
1221 (lang_leave_overlay): Likewise.
1222 Adjust all callers of the above function.
1223 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1224 starting with "0X" as well as "0x". Return bigint.str for hex
1225 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1226 Always use base 16 for numbers starting with "$".
1227 * ldmain.c: Include ldgram.h after ldexp.h.
1228 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1229 of bfd_fill_link_order.
1230 * pe-dll.c: Adjust lang_do_assignments calls.
1231 * emultempl/elf32.em: Likewise.
1232 * emultempl/hppaelf.em: Likewise.
1233 * emultempl/ppc64elf.em: Likewise.
1234 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1235 lang_add_assignment call.
1236 * emultempl/pe.em: Likewise.
1237
313e35ee
AM
12382002-02-14 Phil Edwards <pme@gcc.gnu.org>
1239
a139d329 1240 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
313e35ee
AM
1241 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1242 the pattern in question is not a regexp.
1243 * ldlang.c: Likewise.
1244 * ldlang.h: Likewise.
1245 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1246
2d20f7bf
JJ
12472002-02-12 Jakub Jelinek <jakub@redhat.com>
1248
1249 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1250 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1251 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1252 * ldexp.c (exp_data_seg): New variable.
1253 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1254 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1255 (exp_fold_tree): Handle DATA_SEGMENT_END.
1256 Pass allocation_done when recursing instead of hardcoding
1257 lang_allocating_phase_enum.
1258 * ldexp.h (exp_data_seg): New.
1259 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1260 (lang_size_sections): New.
1261 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1262 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1263 if COMMONPAGESIZE is defined.
1264 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1265 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1266 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1267 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1268 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1269 libraries only.
1270
06880219
AM
12712002-02-11 Alan Modra <amodra@bigpond.net.au>
1272
1273 * Makefile.in: Regenerate.
1274
37b0ac0f
DJ
12752002-02-10 Daniel Jacobowitz <drow@mvista.com>
1276
1277 * lexsup.c: Remove strtoul declaration.
1278
4e5bae56
DJ
12792002-02-10 Daniel Jacobowitz <drow@mvista.com>
1280
1281 * ldmain.c: Add prototype for main ().
1282 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1283 * emultempl/lnk960.em (lnk960_choose_target): Function should
1284 take two arguments.
1285
1e281515
AM
12862002-02-10 Alan Modra <amodra@bigpond.net.au>
1287
1288 * ldlang.c (entry_section): New initialised variable.
1289 (lang_finish): Use it.
1290 * ldlang.h (entry_section): Declare.
1291 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1292 entry_section to ".opd".
1293
f92d92ff 12942002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
1295
1296 * ld.texinfo (Options): Add back in -nostdlib documentation,
1297 which had been inadvertently removed.
1298
74c44237
HPN
12992002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1300
1301 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1302 register section vma to a sane value after emitting error. Make
1303 fatal conditions cause program exit when emitting message.
1304
5e37cc46
NC
13052002-02-08 Ivan Guzvinec <ivang@opencores.org>
1306
1307 * configure.tgt: Add or32-*-rtems target.
1308
2d92cb7d
AO
13092002-02-08 Alexandre Oliva <aoliva@redhat.com>
1310
1311 Contribute sh64-elf.
1312 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1313 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1314 in OTHER_RELOCATABLE_SECTIONS.
1315 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1316 * emulparams/shelf32.sh (STACK_ADDR): Define.
1317 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1318 (OTHER_SECTIONS): this. Removed stack settings.
1319 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1320 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1321 2001-03-12 DJ Delorie <dj@redhat.com>
1322 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1323 relaxing if any shmedia or mixed sections are found.
1324 2001-03-07 DJ Delorie <dj@redhat.com>
1325 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1326 einfo. Gracefully decline to output to non-elf formats.
1327 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1328 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1329 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1330 * emulparams/shelf32.sh: Ditto.
1331 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1332 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1333 comment.
1334 2001-01-10 Ben Elliston <bje@redhat.com>
1335 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1336 non-portable shell constructs. From Hans-Peter Nilsson.
1337 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1338 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1339 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1340 dependencies to the shell script include chain.
1341 * Makefile.in: Regenerate.
1342 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1343 * emultempl/sh64elf.em: Update and tweak comments.
1344 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1345 make a .cranges section SEC_IN_MEMORY.
1346 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1347 * emultempl/sh64elf.em
1348 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1349 .cranges section found to be necessary; continue and set stored
1350 section contents flags for sections with non-mixed contents.
1351 Use a struct sh64_section_data container and sh64_elf_section_data
1352 to store contents-type flags.
1353 Remove unused update of "isec".
1354 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1355 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1356 access contents-type flags. Assert that the associated container
1357 is initialized. Use that container, not elf_gp_size, to hold size
1358 of linker-generated cranges contents.
1359 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1360 * emultempl/sh64elf.em
1361 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1362 there's already a .cranges section. When section flag difference
1363 is found, don't NULL-check cranges a second time. Tweak comments.
1364 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1365 merging, not max size, as size of ld-generated .cranges contents.
1366 Don't set ELF section flags in output section. When checking for
1367 needed .cranges descriptors, don't use a variable; compare
1368 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1369 comments.
1370 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1371 * emultempl/sh64elf.em: New file.
1372 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1373 * Makefile.in: Regenerate.
1374 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1375 (OTHER_RELOCATING_SECTIONS): Ditto.
1376 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1377 * emulparams/shlelf32.sh: Stub out all settings except
1378 OUTPUT_FORMAT. Source shelf32.sh.
1379 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1380 OTHER_RELOCATING_SECTIONS.
1381 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1382 * emulparams/shlelf64.sh: Stub out all settings except
1383 OUTPUT_FORMAT. Source shelf64.sh.
1384 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1385 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1386 .cranges section.
1387 (DATA_START_SYMBOLS): Define, provide ___data.
1388 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1389 for consecutive .data section.
1390 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1391 section after .data section.
1392 * emulparams/shlelf64.sh: Ditto.
1393 * emulparams/shelf32.sh: Ditto.
1394 (ALIGNMENT): Define to 8.
1395 * emulparams/shelf32.sh: Ditto.
1396 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1397 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1398 built-in linker scripts.
1399 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1400 * emulparams/shlelf64.sh: New.
1401 * emulparams/shelf64.sh: New.
1402 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1403 targ_extra_emuls.
1404 * Makefile.am: Add support for shlelf64 and shelf64.
1405 * Makefile.in: Regenerate.
1406 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1407 * configure.tgt (sh64-*-elf*): Add shelf as default.
1408 Add shlelf to targ_extra_emuls.
1409 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1410 * emulparams/shelf32.sh: New file.
1411 * emulparams/shlelf32.sh: New file.
1412 * Makefile.am: Add support for shlelf32 and shelf32.
1413 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1414 * Makefile.in: Regenerate.
1415
e3dc8847
HPN
14162002-02-05 Hans-Peter Nilsson <hp@axis.com>
1417
1418 * ldlang.c (lang_reset_memory_regions): Rename from
1419 reset_memory_regions. Change all callers. Make public.
1420 * ldlang.h (lang_reset_memory_regions): Prototype.
1421 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1422 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
1423 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1424 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 1425
8017dbcb
HPN
14262002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1427
1428 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1429 arithmetic when checking for too many global registers.
1430
006336b8
JT
14312002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1432
1433 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1434 (ehppanbsd.c): New rule.
1435 * Makefile.in: Regenerate.
1436 * configure.tgt (hppa*-*-netbsd*): New target.
1437 * emulparams/hppalinux.sh: Add comment to check other files
1438 that source this file it is modified, and list which
1439 files that do.
1440 * emulparams/hppanbsd.sh: New file.
1441
da1f2fec
GK
14422002-02-01 Geoffrey Keating <geoffk@redhat.com>
1443
1444 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1445 stack.
1446
48fa4a5d
HPN
14472002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1448
1449 Support on-demand global register allocation from
1450 R_MMIX_BASE_PLUS_OFFSET relocs.
1451 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1452 mmix_set_reg_section_vma. Call
1453 _bfd_mmix_finalize_linker_allocated_gregs.
1454 (mmix_before_allocation): New function.
1455 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1456 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1457 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1458 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1459 before .MMIX.reg_contents.
1460 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1461 (mmo_after_open): New function.
1462 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1463 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1464 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1465
3b16e843
NC
14662002-01-31 Ivan Guzvinec <ivang@opencores.org>
1467
1468 * emulparams/or32.sh: New file.
1469 * emulparams/or32elf.sh: New file.
1470 * scripttempl/or32.sc: New file.
1471 * configure.tgt : Add support for or32.
1472 * configure: Regenerate
1473 * Makefile.am: Add support for or32.
1474 * Makefile.in: Regenerate.
1475 * NEWS: Mention support for or32.
1476 * po/ld.pot: Regenerate.
1477
f744d540 14782002-01-29 Chris Demetriou <cgd@broadcom.com>
313e35ee 1479 Mitch Lichtenberg <mpl@broadcom.com>
f744d540
CD
1480
1481 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1482 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1483 reloc creation (ld --embedded-relocs).
1484
4867be41
DJ
14852002-01-27 Daniel Jacobowitz <drow@mvista.com>
1486
1487 * configure: Regenerated.
1488
cd8e197b
HPN
14892002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1490
1491 * Makefile.am (install): Depend on install-info.
1492 * Makefile.in: Regenerate.
1493
9cb61eab
AM
14942002-01-26 Christian Rose <menthos@menthos.com>
1495
1496 * ldmain.c (main): Use full sentences to ease translation.
1497
1caa7b23
NC
14982002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1499
1500 * po/fr.po: Updated version.
1501
1ddbd152
NC
15022002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1503
1504 * po/es.po: Updated version.
1505
1e84433f
AJ
15062002-01-25 Andreas Jaeger <aj@suse.de>
1507
1508 * ldlex.l (yy_input): Correct error check.
1509
6d39955e
AM
15102002-01-25 Alan Modra <amodra@bigpond.net.au>
1511
1512 * ldmisc.c (demangle): Put back dots when string not demangled.
1513
a9ed1e1b
RH
15142002-01-22 Richard Henderson <rth@redhat.com>
1515
1516 * emulparams/elf64alpha.sh (NOP): Use unop.
1517
968ec2b9
AJ
15182002-01-21 Andreas Jaeger <aj@suse.de>
1519
1520 * ldlex.l: Use fread instead of read.
1521
9596feea
JT
15222002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1523
1524 * configure.tgt (ia64-*-netbsd*): New target.
1525
493a6d47
L
15262002-01-21 H.J. Lu <hjl@gnu.org>
1527
1528 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1529 0.
1530 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1531
2a538ba5
AJ
15322002-01-18 Andreas Jaeger <aj@suse.de>
1533
1534 * ldver.c (ldversion): Update year.
1535
328577ad
NC
15362002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1537
1538 * po/ld.pot: Regenerate.
1539
1f808cd5
AM
15402002-01-16 Alan Modra <amodra@bigpond.net.au>
1541
1542 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1543 * Makefile.in: Regenerate.
1544 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1545 * emultempl/ppc64elf.em: New file.
1546
335c5610
DD
15472002-01-15 DJ Delorie <dj@redhat.com>
1548
1549 * scripttempl/pe.sc: Add support for constructor priorities.
1550
c40bbade
DC
15512002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1552
1553 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1554 * emulparams/avr23xx.sh: Likewise.
1555 * emulparams/avr4433.sh: Likewise.
1556 * emulparams/avr44x4.sh: Likewise.
1557 * emulparams/avr85xx.sh: Likewise.
1558 * emulparams/avrmega103.sh: Likewise.
1559 * emulparams/avrmega161.sh: Likewise.
1560 * emulparams/avrmega603.sh: Likewise.
1561 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1562
34efb449
AO
15632002-01-08 Alexandre Oliva <aoliva@redhat.com>
1564
1565 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1566 archive is excluded.
1567
8d05742f
JT
15682002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1569
1570 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 1571 (eshelf_nbsd.c): New rule.
8d05742f
JT
1572 (eshlelf_nbsd.c): New rule.
1573 * Makefile.in: Regenerate.
1574 * configure.tgt (sh*le-*-netbsdelf*): New target.
1575 (sh*-*-netbsdelf*): New target.
1576 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1577 * ld/emulparams/shelf_nbsd.sh: New emulation.
1578 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1579
be2d1673
NC
15802002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1581
1582 * po/es.po: New file: Spanish translation.
1583 * configure.in (ALL_LINGUAS): Add es.
1584 * configure: Regenerate.
1585
dbab7a7b
NC
15862002-01-06 John Marshall <jmarshall@acm.org>
1587
1588 * ld.texinfo: Note that --emit-relocs is currently only
1589 implemented for ELF.
1590
3dfe7a8c
AM
15912002-01-05 Alan Modra <amodra@bigpond.net.au>
1592
1593 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1594 of bfd_section_list_remove and bfd_section_list_insert macros.
1595 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1596 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1597
8a8b2d4b
AJ
15982002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1599
1600 * configure.tgt (x86_64-*-netbsd*): New target.
1601
9a4c7f16
TR
16022001-12-21 Tom Rix <trix@redhat.com>
1603
8a8b2d4b 1604 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
1605 For -binitfini support.
1606 * emultempl/aix.em (gld*_before_parse): Fix comment.
1607 * emultempl/aix.em (gld*_parse_args): Fix comment.
1608
3695c299
AM
16092001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1610
cf86e6df
AM
1611 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1612 mips*el-*-netbsd*.
1613 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1614
3695c299
AM
1615 * configure.tgt (arm-*-netbsdelf*): Add target.
1616 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1617 * emulparams/armelf_nbsd.sh: Added.
1618 * Makefile.am: Add rules for earmelf_nbsd.
1619 * Makefile.in: Regenerate.
1620
97cb79ae
AJ
16212001-12-19 Andreas Jaeger <aj@suse.de>,
1622 Susanne Oberhauser <froh@suse.de>
1623
1624 * configure.host: Add rules for x86_64-*linux-gnu. Change
1625 s390x-linux entry to use gcc to report configuration, replace gcc
1626 with $CC in s390-linux
1627
9d201f2f
AJ
16282001-12-19 Andreas Jaeger <aj@suse.de>
1629
1630 * ld.texinfo (VERSION): Fix markup.
1631
0b69cd08
MG
16322001-12-18 matthew green <mrg@eterna.com.au>
1633
1634 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1635 (m68kelfnbsd.c): New rule.
1636 * Makefile.in: Regenerate.
1637 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1638 (m68*-*-netbsd*4k*): .. this.
1639 (m68*-*-netbsdelf*): New target.
1640 (m68*-*-netbsd*): Also include ELF support.
1641 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1642 * emulparams/m68kelfnbsd.sh: New emulation.
1643
6b9b879a
JJ
16442001-12-18 Jakub Jelinek <jakub@redhat.com>
1645
1646 * ldgram.y (vers_node): Support anonymous version tags.
1647 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1648 tag is not defined together with non-anonymous versions.
1649 * ld.texinfo: Document it.
1650
9fc877ed
NC
16512001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1652
1653 * po/tr.po: New file: Turkish translation.
1654 * configure.in (ALL_LINGUAS): Add tr.
1655 * configure: Regenerate.
1656
fc18a3f3
RH
16572001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1658
1659 * Makefile.am: Add rules for eelf64alpha_nbsd.
1660 * Makefile.in: Regenerate.
1661 * configure.tgt (alpha*-*-netbsd*): Set
1662 targ_emul to elf64alpha_nbsd.
1663 * emulparams/elf64alpha_nbsd.sh: Added.
1664
76f63e91
AM
16652001-12-17 Alan Modra <amodra@bigpond.net.au>
1666
1667 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1668 section_tail when fiddling with section list.
1669 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1670 broken into separate strings to make translation easier.
1671 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1672 fiddling with section list.
1673 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1674
d03b89bd
HPN
16752001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1676
1677 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1678
320fec9a
AM
16792001-12-15 Alan Modra <amodra@bigpond.net.au>
1680
1681 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1682
65765700
JJ
16832001-12-13 Jakub Jelinek <jakub@redhat.com>
1684
1685 * emultempl/elf32.em (finish): Supply output_bfd
1686 to bfd_elf*_discard_info.
1687 (OPTION_EH_FRAME_HDR): Define.
1688 (longopts): Add --eh-frame-hdr.
1689 (parse_args): Handle it.
1690 (list_options): Add --eh-frame-hdr to help.
1691 * emultempl/hppaelf.em (finish): Supply output_bfd
1692 to bfd_elf*_discard_info.
1693 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1694
89894c62
AM
16952001-12-13 Alan Modra <amodra@bigpond.net.au>
1696
1697 * lexsup.c (parse_args): Don't pass shortopts to second call to
1698 getopt functions. Restore optind rather than decrementing before
1699 second call. Remove errind as it now duplicates last_optind.
1700
583f1926
CF
17012001-12-11 Christopher Faylor <cgf@redhat.com>
1702
1703 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1704
93fbbb04
GK
17052001-12-07 Geoffrey Keating <geoffk@redhat.com>
1706 Richard Henderson <rth@redhat.com>
1707
1708 * Makefile.am: Add support for xstormy16.
1709 * configure.tgt: Add support for xstormy16.
1710 * Makefile.in: Regenerate.
1711 * emulparams/elf32xstormy16.sh: New file.
1712 * scripttempl/xstormy16.sc: New file.
1713
583f1926
CF
17142001-10-01 Christopher Faylor <cgf@cygnus.com>
1715
fc18a3f3
RH
1716 * Makefile.in (LIB_PATH): Make configurable.
1717 (GENSCRIPTS): Set LIB_PATH in environment.
1718 * configure.in: Substitute LIB_PATH.
1719 * configure: Regenerate.
1720 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1721 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 1722
ff291a48
NC
17232001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1724
1725 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1726 describing the -N option so that it is easier to translate into
1727 foreign languages.
1728
e3c8793a
NC
17292001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1730
1731 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1732 statements describing a single option with a single, newline
1733 escaped fprintf. This allows better translation into other
1734 languages.
9d201f2f 1735
fc18a3f3
RH
1736 * ldmain.c (add_archive_element): Combine multiple strings
1737 into a single string to permit better translation into other
1738 languages.
e3c8793a 1739
f2eab0af
TR
17402001-12-05 Tom Rix <trix@redhat.com>
1741
1742 * Makefile.am: Remove eaixppc64.
9d201f2f 1743 * Makefile.in: Regenerate.
f2eab0af 1744
249172c3
TR
17452001-12-04 Tom Rix <trix@redhat.com>
1746
9d201f2f 1747 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
1748 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1749 warning.
1750 (gld*_read_file): Fix typo.
1751 (change_symbol_mode): Add prototype.
1752 (is_syscall): Same.
9d201f2f 1753
249172c3
TR
1754 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1755 * emulparams/aixrs6.sh : Same.
1756 * emulparams/ppcmacos.sh : Same.
1757 * emulparams/aixppc64.sh : Delete file.
1758 * emultempl/aix.em : Formatting changes.
1759
5b5cd1b0
HPN
17602001-12-04 Hans-Peter Nilsson <hp@axis.com>
1761
1762 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1763 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1764 __Sbss.
1765 (OTHER_END_SYMBOLS): Fix formatting.
1766 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1767 (OTHER_END_SYMBOLS): Fix formatting.
1768
7cecdbff
AM
17692001-12-04 Alan Modra <amodra@bigpond.net.au>
1770
1771 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1772
742aeb63 17732001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 1774
742aeb63 1775 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 1776 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
1777 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1778 (ldemul_default_target): Same.
1779 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
1780 * emultempl/gld960c.em (gld960_choose_target): Same.
1781 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
1782 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1783 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1784 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 1785 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
1786 -b32 and -b64.
1787
48459341
L
17882001-11-27 H.J. Lu <hjl@gnu.org>
1789
1790 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1791 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1792 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1793 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1794 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1795 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1796 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1797 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1798
7cecdbff 1799 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
1800 is not empty.
1801 (SDATA): Likewise.
1802 (REL_SDATA): Likewise.
1803 (REL_SBSS): Likewise.
1804 (REL_SDATA2): Likewise.
1805 (REL_SBSS2): Likewise.
1806 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1807 (SDATA2): Likewise.
1808
ecfdd20c
SC
18092001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1810
1811 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1812 destructor in rom.
7cecdbff 1813 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 1814
da54c6eb
L
18152001-11-22 H.J. Lu <hjl@gnu.org>
1816
1817 * Makefile.in: Regenerated with automake based on automake
1818 1.4-8 in RedHat 7.1.
1819
465bc359
AM
18202001-11-22 Alan Modra <amodra@bigpond.net.au>
1821
1822 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1823 (config.status): Delete rule.
1824 Add extra dependencies to cover sourced emulparams files.
1825 * Makefile.in: Regenerate.
1826
1827 * scripttempl/elf.sc: Order <section>, <section>.* and
1828 corresponding linkonce sections as seen in input files.
1829 Formatting fixes. Zero vma of all sections if not relocating.
1830 (STACK): Define and insert if STACK_ADDR defined.
1831 (OTHER_RELOCATING_SECTIONS): Delete.
1832 (OTHER_END_SYMBOLS): Define.
1833 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1834 (OTHER_READWRITE_SECTIONS): Likewise.
1835 (OTHER_GOT_SECTIONS): Likewise.
1836 (OTHER_SDATA_SECTIONS): Likewise.
1837 (OTHER_BSS_SECTIONS): Likewise.
1838 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1839 (OTHER_READWRITE_SECTIONS): Likewise.
1840 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1841 (OTHER_READWRITE_SECTIONS): Likewise
1842
1843 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1844 (STACK_ADDR): Define.
1845 * emulparams/armelf_oabi.sh: As for armelf.sh.
1846 * emulparams/elf32mcore.sh: As for armelf.sh.
1847 * emulparams/h8300elf.sh: As for armelf.sh.
1848 * emulparams/mn10200.sh: As for armelf.sh.
1849 * emulparams/shelf.sh: As for armelf.sh.
1850
1851 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1852 (OTHER_END_SYMBOLS): Define.
1853 * emulparams/m32relf.sh: As for elf32fr30.sh.
1854 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1855 * emulparams/h8300self.sh: As for elf32fr30.sh.
1856
1857 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1858 defines with RELOCATING test.
1859 (OTHER_SDATA_SECTIONS): Likewise.
1860 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1861 (OTHER_END_SYMBOLS): ..this.
1862 * emulparams/crislinux.sh: As for criself.sh.
1863
1864 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1865 if not relocating.
1866 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1867 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1868 normal and linkonce sections as seen in input files.
1869 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1870 (TEXT_DYNAMIC): Likewise.
1871 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1872 (OTHER_SDATA_SECTIONS): Likewise.
1873 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1874 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1875 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1876 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1877 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1878 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1879 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1880 sections as seen in input files.
1881 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1882 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1883 if not relocating.
1884 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1885 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1886 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1887 (OTHER_SECTIONS): Instead, use this..
1888 (OTHER_END_SYMBOLS): ..and this.
1889
1890 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1891 * emulparams/elf32bsmip.sh: Likewise.
1892 * emulparams/elf32btsmip.sh: Likewise.
1893 * emulparams/elf32ebmip.sh: Likewise.
1894 * emulparams/elf32lmip.sh: Likewise.
1895 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1896 * emulparams/elf32lsmip.sh: Likewise.
1897 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1898 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1899 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1900 * emulparams/elf64btsmip.sh: Likewise.
1901 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1902 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1903 * emulparams/elf32ppclinux.sh: Likewise.
1904 * emulparams/elf32ppcsim.sh: Likewise.
1905 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1906 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1907 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1908 * emulparams/h8300self.sh: Likewise.
1909 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1910 * emulparams/sh.sh: Comment.
1911 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1912 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1913 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1914
abc6ab0a
AM
19152001-11-21 David Heine <dlheine@tensilica.com>
1916 Alan Modra <amodra@bigpond.net.au>
1917
1918 * ldlang.c (map_input_to_output_sections): Replace "break"
1919 accidentally removed with 2001-08-03 change.
1920 (lang_gc_sections_1): Likewise.
1921
2181f54f
AM
19222001-11-21 Alan Modra <amodra@bigpond.net.au>
1923
1924 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1925
ca0b5847
AM
19262001-11-20 Angela Marie Thomas <angela@redhat.com>
1927
1928 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
1929 of false when calling lang_size_sections.
1930 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 1931
c56feb2b
AM
19322001-11-15 Alan Modra <amodra@bigpond.net.au>
1933
1934 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1935 function when LDEMUL_FINISH isn't set to the same name. Don't
1936 call ${LDEMUL_FINISH}.
1937 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1938 * emultempl/armelf.em (arm_elf_finish): Call
1939 gld${EMULATION_NAME}_finish.
1940 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1941 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1942 hppaelf_layout_sections_again if necessary.
1943 (need_laying_out): New var.
1944 (hppaelf_layaout_sections_again): Rename to
1945 hppaelf_layout_sections_again. Clear need_laying_out.
1946 (PARSE_AND_LIST_OPTIONS): Format text.
1947
a48ca7f2
L
19482001-11-14 H.J. Lu <hjl@gnu.org>
1949
1950 * emultempl/armelf.em (arm_elf_finish): Renamed from
1951 gld${EMULATION_NAME}_finish.
1952 (LDEMUL_FINISH): Set to arm_elf_finish.
1953
73d074b4
DJ
19542001-11-14 Daniel Jacobowitz <drow@mvista.com>
1955
1956 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1957 (struct ld_emulation_xfer_struct): Use it.
1958
3b16e843 19592001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 1960
465bc359 1961 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
1962 additional symbols referenced by newer crt0.o files from HP.
1963
f11b7027
NC
19642001-11-12 Anthony Green <green@redhat.com>
1965
1966 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1967
3bf2994f
AM
19682001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1969
1970 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1971 * Makefile.in: Regenerate.
1972
ff5dcc92
SC
19732001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1974
1975 * ld.texinfo: Use @command for commands, @option for options.
1976 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1977 the page man title.
1978 * Makefile.in: Rebuild.
1979
9fb9af6e
CD
19802001-11-04 Chris Demetriou <cgd@broadcom.com>
1981
1982 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1983 Add support for targets.
2181f54f 1984
3c62831e
NC
19852001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1986
1987 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1988 * configure: Regernate.
1989 * po/fr.po: New file.
1990 * po/sv.po: New file.
1991
3a9091c4
NC
19922001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1993
1994 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1995 as little endian default and to support big endian.
2181f54f 1996
361b220e
CD
19972001-11-01 Chris Demetriou <cgd@broadcom.com>
1998
1999 * ld.texinfo (Options): Document new option, -nostdlib.
2000 * lexsup.c (OPTION_NOSTDLIB): New definition.
2001 (ld_options): Add entry for "nostdlib".
2002 (parse_args): Handle OPTIONS_NOSTDLIB.
2003 * ldfile.c (ldfile_add_library_path): Don't add directories
2004 to the search path if they weren't specified on the command line
2005 and -nostdlib was specified.
2006 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2007
210a7bd1
NC
20082001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2009
2010 * lexsup.c (parse_args): Prevent infinite parsing loop when
2011 "-rpath.a" is specified on the command line.
2012 Replace calls to fprintf with calls to einfo.
2013
114283d8
NC
20142001-10-31 John Marshall <jmarshall@acm.org>
2015
2016 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2017 appear only once across all the linker scripts involved in a link
2018 invocation no longer applies. Make the documentation reflect
2019 that.
2020
7649aa50
NC
20212001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2022
2023 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2024 targets.
2025 (sh-*-linux*): Added targ_extra_libpath.
2026
6e814ff8
AM
20272001-10-31 David Heine <dlheine@tensilica.com>
2028
2029 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2030 for padding statements.
2031
3c3bdf30
NC
20322001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2033
2034 * configure.tgt (mmix-*-*): New target.
2035 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2036 Add dependencies to match.
2037 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2038 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2039 scripttempl/mmo.sc: New files.
2040 * gen-doc.texi: @set MMIX.
2041 * ld.texinfo: Ditto.
6e814ff8 2042 [MMIX] Add MMIX node.
3c3bdf30
NC
2043 * Makefile.in: Regenerate.
2044
ca0c1d3e
KH
20452001-10-29 Kazu Hirata <kazu@hxi.com>
2046
2047 * ldlang.c: Fix a comment typo.
2048
1a3d33ce
AM
20492001-10-23 Alan Modra <amodra@bigpond.net.au>
2050
2051 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2052 entries, and match *-*-linux*.
2053
b47c4208
AM
20542001-10-20 Alan Modra <amodra@bigpond.net.au>
2055
2056 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2057 with ldlex_script, ldlex_popstate.
2058 (ifile_p1): Likewise.
2059 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2060 correct slot.
2061 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2062 to 1. Don't BEGIN(SCRIPT).
2063 (lex_redirect): Similarly.
2064 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2065
fd521b47
NC
20662001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2067
2068 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2069 __EH_FRAME_END__ and accept eh frames into data section.
2070 Add ctor and dtor sections.
2071
59d28a94
DD
20722001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2073
2074 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2075 (auto-export): Fix indentation.
2076
663dd378
DD
20772001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2078
2079 * pe-dll.c (autofilter_objectlist): Add startup objects
2080 for profiling.
2081 (auto-export): Constify char * p.
6e814ff8 2082 Extract file basename and use strcmp rather than ststr
663dd378
DD
2083 for object lookup.
2084
31d677f9
CD
20852001-10-18 Chris Demetriou <cgd@broadcom.com>
2086
2087 * ldmain.c (get_emulation): Improve comment about the handling
2088 of -mipsN options.
2089
aa200fe8
AM
20902001-10-17 Alan Modra <amodra@bigpond.net.au>
2091
2092 * po/POTFILES.in: Regenerate.
2093
146e7110
AM
20942001-10-16 Vassili Karpov <malc@pulsesoft.com>
2095
2096 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2097 -z nocopyreloc and -z nocombreloc usage strings.
2098
b4330e85
NC
20992001-10-12 Vassili Karpov <malc@pulsesoft.com>
2100
146e7110 2101 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
2102 in usage.
2103
5af8a2fb
NC
21042001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2105
2106 * scripttempl/armaout.sc: Place .bss section after end of aligned
2107 data section to match behaviour of aout code in constructrion of
2108 header.
2109
5b784096
DD
21102001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2111
2112 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2113 startup files for mingw32 dlls to list.
2114
61585df2
CD
21152001-10-10 Chris Demetriou <cgd@broadcom.com>
2116
2117 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2118
45cf6f3e
AH
21192001-10-08 Aldy Hernandez <aldyh@redhat.com>
2120
2121 * configure.tgt (targ): Add arm9e-*-elf.
2122
e24d7c12
L
21232001-10-05 H.J. Lu <hjl@gnu.org>
2124
2125 * genscripts.sh: Fix a typo in the last change.
2126
ec38dd05
JJ
21272001-10-05 Jakub Jelinek <jakub@redhat.com>
2128
2129 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2130 -z nocombreloc in usage.
2131
cedd6b0d
JB
21322001-10-03 Jim Blandy <jimb@redhat.com>
2133
2134 * genscripts.sh: Include a comment at the top of each generated
2135 script, explaining its purpose.
2136
8bd621d8
AM
21372001-10-03 Vassili Karpov <malc@pulsesoft.com>
2138
2139 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2140 * NEWS: Mention -z nocopyreloc.
2141 * ld.texinfo (Options): Describe nocopyreloc.
2142
fcd8210c
AM
21432001-10-03 Alan Modra <amodra@bigpond.net.au>
2144
2145 * configure: Regenerate.
2146
d32820f2
AM
21472001-10-02 Alan Modra <amodra@bigpond.net.au>
2148
2149 * ldver.h (ld_program_version): Remove declaration.
2150 * lexsup.c (parse_args): Move printing of copyright message..
2151 * ldver.c (ldversion): .. to here.
2152 Use BFD_VERSION_STRING in place of BFD_VERSION.
2153 (ld_program_version): Remove.
2154 * Makefile.am (Makefile): Depend on bfd/configure.in.
2155 Run "make dep-am".
2156 * Makefile.in: Regenerate.
2157
af46bcdc
HPN
21582001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2159
2160 * Makefile.am: Update dependencies with "make dep-am".
2161 * Makefile.in: Regenerate.
2162
4818e05f 21632001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 2164
4818e05f
AM
2165 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2166 * lexsup.c: Add --no-define-common commandline option.
2167 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2168 * ldlex.l: Likewise.
2169 * ld.h: Add command_line.inhibit_common_definition.
2170 * ldmain.c (main): Initialize.
2171 * ld.texinfo: Document.
862517b6 2172
a59f3d35
AM
21732001-09-29 Alan Modra <amodra@bigpond.net.au>
2174
2175 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2176
d5e0ebeb
AM
21772001-09-26 Alan Modra <amodra@bigpond.net.au>
2178
2179 * ldmisc.c (USE_STDARG): Remove.
2180 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2181 (einfo): Likewise.
2182 (minfo): Likewise.
2183 (lfinfo): Likewise.
2184
2185 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2186 declarations. Update copyright.
2187
2f8d8971
NC
21882001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2189
85c77458
NC
2190 * pe-dll.c: Remove obsoleted declaration of
2191 pe_get_data_import_dll_name.
2192 (pe_create_import_fixup): Fix thinko.
2193
2f8d8971
NC
2194 * ld.texinfo(enable-auto-import): Clarify the explanation.
2195
21962001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2197
2198 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2199 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2200 DLL_SUPPORT controlled code.
2201
72358f65 22022001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 2203
72358f65
NC
2204 * emultempl/pe.em(pe_data_import_dll): Make static.
2205 (pe_get_data_import_dll_name): New accessor function.
146e7110 2206 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
2207 pe_get_data_import_dll_name() from pe.em, instead of
2208 directly accessing pe_data_import_dll variable from pe.em.
2209
3882b010
L
22102001-09-18 Bruno Haible <haible@clisp.cons.org>
2211
2212 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2213 (def_file_add_directive): Use ISSPACE instead of isspace.
2214 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2215 isdigit/isxdigit/isalpha/isalnum.
2216 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2217 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2218 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2219 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2220 isalnum.
2221 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2222 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2223 isupper/tolower.
2224 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2225 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2226 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2227 (ctor_prio): Use ISDIGIT instead of isdigit.
2228 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2229 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2230 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2231 isupper/tolower.
2232 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2233 (stricpy): Use TOLOWER instead of isupper/tolower.
2234 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2235 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2236 (lex_warn_invalid): Use ISPRINT instead of isprint.
2237 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2238 (main): For gettext, also set the LC_CTYPE locate facet.
2239 (add_keepsyms_file): Use ISSPACE instead of isspace.
2240 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2241 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2242 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2243 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2244 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2245 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2246 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2247 (quoteput): Use ISSPACE instead of isspace.
2248 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2249 instead of isalnum.
2250
db09f25b
AM
22512001-09-18 Alan Modra <amodra@bigpond.net.au>
2252
2253 * deffilep.y (def_stash_module): Constify "name" param.
2254
2255 * pe-dll.c: Replace CONST with const throughout.
2256 (quick_symbol): Constify "n1", "n2", "n3" params.
2257 (make_singleton_name_thunk): Constify "import" param. Make
2258 "buffer_len" a size_t.
2259 (make_import_fixup_entry): Constify "name", "fixup_name",
2260 "dll_symname" params.
2261 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2262 (pe_get32): Likewise.
2263 (pe_implied_import_dll): Likewise.
2264
2265 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2266 (sort_by_section_name): Likewise.
2267
2268 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2269 (make_import_fixup): Cast printf arg, rel->address to long rather
2270 than int.
2271 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2272
74699268
AM
22732001-09-15 Alan Modra <amodra@bigpond.net.au>
2274
2275 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2276 defines BufferSize. Increase buffer size by one.
2277
775cabad
NC
22782001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2279
2280 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2281
056a1d49
NC
22822001-09-14 Kevin Lo <kevlo@openbsd.org>
2283
2284 * configure.tgt: Add arm-openbsd target.
2285
a7d792bb
L
22862001-09-12 H.J. Lu <hjl@gnu.org>
2287
2288 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2289 eelf64lppc.o to ...
2290 (ALL_64_EMULATIONS): Here.
2291 * Makefile.in: Regenerated.
2292
0d888aac
CW
22932001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2294
2295 * emultempl/pe.em(make_import_fixup): change signature to
2296 take asection as well as arelec; we need this for proper
146e7110 2297 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
2298 there is no attempt to add a constant addend to the reloc;
2299 otherwise, report error condition.
2300 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2301 since final argument is a pointer to make_import_fixup().
2302 Change call to cb() to match make_import_fixup() signature.
2303 (make_import_fixup_mark): make buffer_len unsigned.
2304 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2305
23062001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2307
2308 * ld.texinfo: add verbose documentation for auto-import
146e7110 2309 direct-addressing workaround, to compliment the terse
0d888aac
CW
2310 error message.
2311
cedacdc0
CM
23122001-09-12 Andrew MacLeod <amacleod@redhat.com>
2313
146e7110 2314 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 2315
3b16e843 23162001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
2317
2318 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2319 * emulparams/h8300self.sh: Similarly.
2320
559e4713
NC
23212001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2322
2323 * ld.texinfo (Options, --stack): Correct default value for stack
2324 reserve.
2325
1fdf0249
TR
23262001-09-05 Tom Rix <trix@redhat.com>
2327
2328 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 2329
9b5799b8
AJ
23302001-09-03 Andreas Jaeger <aj@suse.de>
2331
2332 * emultempl/beos.em: Declare prototypes for comparions functions,
2333 adjust definitions.
2334
48f6162b
AJ
23352001-09-02 Andreas Jaeger <aj@suse.de>
2336
2337 * emultempl/aix.em: Add missing prototype.
2338 * emultempl/lnk960.em: Likewise.
2339 * emultempl/vanilla.em: Likewise.
2340 * emultempl/armcoff.em: Likewise.
2341 * emultempl/armelf_oabi.em: Likewise.
2342 * emultempl/beos.em: Likewise.
2343 * emultempl/gld960c.em: Likewise.
2344 * emultempl/gld960.em: Likewise.
2345
2346 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2347 for prototype declaration.
2348
39e5585e
EC
23492001-08-31 Eric Christopher <echristo@redhat.com>
2350 Jason Eckhardt <jle@redhat.com>
2351
2352 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2353
3fc90ddb
AJ
23542001-08-31 Andreas Jaeger <aj@suse.de>
2355
2356 * emultempl/pe.em: Add missing prototypes.
2357 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2358 pe_find_data_imports.
2359 (pr_sym): Add unused attribute.
2360
d43ded80
PB
23612001-08-29 Joel Sherrill <joel@OARcorp.com>
2362
39e5585e 2363 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
2364 default from coff to elf.
2365
3946dd2f
JL
23662001-08-29 Jeff Law <law@redhat.com>
2367
2368 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2369 ARCH specification.
2370 * emulparams/h8300self.sh: Similarly.
2371
3b16e843 23722001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
2373
2374 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2375 eh8300self.o .
2376 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2377 * configure.tgt (h8300-*-elf*): New case.
2378 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2379 * emulparams/h8300self.sh: New file.
2380 * Makefile.in: Regenerated.
2381
70d0c6e9
NC
23822001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2383
2384 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2385 with macro name.
2386
5c67d4bb
AM
23872001-08-27 Linus Nordberg <linus@swox.com>
2388 Alan Modra <amodra@bigpond.net.au>
2389
2390 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2391 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2392 Run "make dep-am"
2393 * Makefile.in: Regenerate.
2394 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2395 entries to correct alphabetical position.
2396 * emulparams/elf64ppc.sh: New.
2397 * emulparams/elf64lppc.sh: New.
2398
08131015
NC
23992001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2400
2401 * ldmain.c (main): Declare BSIZE as static.
2402
db6751f2
JJ
24032001-08-23 Jakub Jelinek <jakub@redhat.com>
2404
2405 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2406 into .rel.dyn resp. .rela.dyn if combreloc.
2407 (get_script): If .x linker script is equal to .xn, only put it
2408 once into the binary.
2409 Add .xc and .xsc scripts.
2410 (parse_args): Handle -z combreloc and -z nocombreloc.
2411 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2412 For .xc and .xsc scripts put all .rel* or .rela* input sections
2413 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2414 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2415 is elf.
2416 Strip trailing whitespace from script.
2417 Generate .xc and .xsc scripts if requested.
2418 * ldmain.c (main): Initialize link_info.combreloc and
2419 link_info.spare_dynamic_tags.
2420 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2421 (ld_options): Add --spare-dynamic-tags option.
2422 (parse_args): Likewise.
2423 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2424 * ldint.texinfo: Document .xc and .xsc linker scripts.
2425 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2426
63d069c0
L
24272001-08-22 H.J. Lu <hjl@gnu.org>
2428
2429 * emulparams/elf32fr30.sh: Add a newline.
2430
948f9114
AJ
24312001-08-21 Andreas Jaeger <aj@suse.de>
2432
2433 * deffilep.y: Add missing prototypes.
2434 * pe-dll.c: Likewise.
2435
ae7fb08f
AM
24362001-08-20 Alan Modra <amodra@bigpond.net.au>
2437
2af02257
AM
2438 * ldlang.c (insert_pad): Fix typos in last patch.
2439
2440 * ldlang.c: When traversing lang_statement_union_type lists,
2441 consistently use "header.next" rather than "next".
2442 * mpw-eppcmac.c: Likewise.
2443 * emultempl/beos.em: Likewise.
2444 * emultempl/hppaelf.em: Likewise.
2445 * emultempl/pe.em: Likewise.
2446 * ldlang.h (union lang_statement_union): Remove "next" field.
2447
c0c330a7
AM
2448 * ldlang.c (insert_pad): Use offsetof macro.
2449 (lang_size_sections): Always neuter padding statements.
2450 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2451
ae7fb08f
AM
2452 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2453 passed to lang_size_sections.
2454 (pe_exe_fill_sections): Likewise.
2455 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2456 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2457
fab80407
AM
24582001-08-18 Alan Modra <amodra@bigpond.net.au>
2459
2460 * emultempl/aix.em: Formatting fixes.
2461
b3327aad
AM
24622001-08-18 Alan Modra <amodra@bigpond.net.au>
2463
2464 * ldlang.c (insert_pad): Make use of an existing pad statement if
2465 available. Move code calculating alignment, adjusting section
2466 alignment power, and adjusting dot to ..
2467 (size_input_section): .. here. Remove unused relax param.
2468 (lang_size_sections): Change boolean `relax' param to boolean *.
2469 Adjust call to size_input_section. Make use of insert_pad to
2470 place pad after the assignment statement. If relaxing, zap
2471 padding statements.
2472 (reset_memory_regions): Reset output_bfd section sizes too.
2473 (relax_again): Move to..
2474 (lang_process): ..here. Adjust call to lang_size_sections, and
2475 remove duplicated code.
2476 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2477
563e308f
AM
24782001-08-17 Alan Modra <amodra@bigpond.net.au>
2479
2480 * ld.texinfo: Document that fill values now use the four least
2481 significant bytes.
2482 * emulparams/elf32fr30.sh (NOP): Update.
2483 * emulparams/elf32mcore.sh: Likewise.
2484 * emulparams/elf64_s390.sh: Likewise.
2485 * emulparams/elf_i386.sh: Likewise.
2486 * emulparams/elf_i386_be.sh: Likewise.
2487 * emulparams/elf_i386_chaos.sh: Likewise.
2488 * emulparams/elf_i386_ldso.sh: Likewise.
2489 * emulparams/elf_s390.sh: Likewise.
2490 * emulparams/elf_x86_64.sh: Likewise.
2491 * emulparams/i386moss.sh: Likewise.
2492 * emulparams/i386nw.sh: Likewise.
2493 * emulparams/m68kelf.sh: Likewise.
2494 * scripttempl/elf.sc: Update NOP comment.
2495 * scripttempl/elfi370.sc: Likewise.
2496 * scripttempl/elfm68hc11.sc: Likewise.
2497 * scripttempl/elfm68hc12.sc: Likewise.
2498 * scripttempl/nw.sc: Likewise.
2499
b90e1c6f
TR
25002001-08-15 Tom Rix <trix@redhat.com>
2501
2502 * ldgram.y (saved_script_handle): Initialize to NULL.
2503 * ldmain.c (main): Change check on saved_script_handle.
948f9114 2504
39dcfe18
AM
25052001-08-14 Alan Modra <amodra@bigpond.net.au>
2506
cde43e70
AM
2507 * emultempl/elf32.em: Formatting fixes.
2508 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2509 looking at sec->owner.
2510 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2511 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2512 unused code, and reorganize orphan section placement code.
2513
39dcfe18
AM
2514 * ldlang.c (wild_doit): Rename to lang_add_section.
2515 * ldlang.h: Here too.
2516 * mpw-elfmips.c: And here.
2517 * emultempl/beos.em: And here.
2518 * emultempl/elf32.em: And here.
2519 * emultempl/hppaelf.em: And here.
2520 * emultempl/pe.em: And here.
2521
908d20b3
RH
25222001-08-13 Richard Henderson <rth@redhat.com>
2523
2524 * emultempl/needrelax.em: New file.
2525 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2526 * Makefile.am (eelf64_ia64.c): Depend on it.
2527 * Makefile.in: Rebuild.
2528
0f33d40b
AM
25292001-08-13 Alan Modra <amodra@bigpond.net.au>
2530
22af9fd3
AM
2531 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2532 output_section is set non-NULL.
2533
0f33d40b
AM
2534 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2535 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2536 needlessly create an output_section_statement. Treat a correctly
2537 named output_section_statement with NULL bfd_section as compatible.
2538
55ab6103
HPN
25392001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2540
2541 * emultempl/generic.em: Support EXTRA_EM_FILE.
2542 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2543 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2544 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2545 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2546 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2547 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2548 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2549 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2550 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2551 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2552
24098abb
RH
25532001-08-12 Richard Henderson <rth@redhat.com>
2554
2555 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2556 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2557 scripttempl/v850.sc: Keep .jcr data.
2558
b9a8de1e 25592001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
2560 Andrew Haley <aph@cambridge.redhat.com>
2561 Nick Clifton <nickc@redhat.com>
b9a8de1e 2562
146e7110 2563 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
2564 Change type to file handle.
2565 * ld.h (had_script): Rename and retype.
2566 * ldfile.c (ldfile_open_command_file): Save the file handle
2567 used in saved_script_handle.
2568 * lexsup.c (parse_args): Do not allow -c option to alter
2569 saved_script_handle.
2570 * ldmain.c (main): Print out the linker script used if
2571 --verbose is given. Check saved_script_handle to obtain the
2572 external linker script used, or if NULL, dump the builtin
2573 script.
2574 * ld.texinfo: Document that --verbose now dumps the linker
2575 script used, regardless of whether it was an internal or an
2576 external script.
2577
0218d1e4
AJ
25782001-08-10 Andreas Jaeger <aj@suse.de>
2579
2580 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2581 to build warnings.
2582 * configure: Regenerate.
2583
5253f23b
AM
25842001-08-09 Alan Modra <amodra@bigpond.net.au>
2585
73810896
AM
2586 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2587
5253f23b
AM
2588 * scripttempl/elf.sc: Move non-text .dynamic section before
2589 .plt/.got/.sdata* group.
2590 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2591 (OTHER_SDATA_SECTIONS): Add.
2592 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2593 OTHER_GOT_SECTIONS.
2594 * emulparams/crislinux.sh: Likewise.
2595 * emulparams/elf32b4300.sh: Likewise.
2596 * emulparams/elf32bmip.sh: Likewise.
2597 * emulparams/elf32bmipn32.sh: Likewise.
2598 * emulparams/elf32bsmip.sh: Likewise.
2599 * emulparams/elf32btsmip.sh: Likewise.
2600 * emulparams/elf32ebmip.sh: Likewise.
2601 * emulparams/elf32elmip.sh: Likewise.
2602 * emulparams/elf32l4300.sh: Likewise.
2603 * emulparams/elf32lmip.sh: Likewise.
2604 * emulparams/elf32lsmip.sh: Likewise.
2605 * emulparams/elf32ltsmip.sh: Likewise.
2606 * emulparams/elf64bmip.sh: Likewise.
2607 * emulparams/elf64btsmip.sh: Likewise.
2608 * emulparams/elf64ltsmip.sh: Likewise.
2609
179c732c
AM
26102001-08-08 Alan Modra <amodra@bigpond.net.au>
2611
2612 * genscripts.sh: Source the emulparams script before each output
2613 script is generated so that variables like `RELOCATING' may affect
2614 variables defined in the emulparams script.
2615
3fd36710
AM
26162001-08-04 Alan Modra <amodra@bigpond.net.au>
2617
20713691
AM
2618 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2619 order.
2620
3fd36710
AM
2621 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2622 ie. iterate over wild_statement.section_list.
2623 (gld${EMULATION_NAME}_place_orphan): Likewise.
2624
de0b1853
SC
26252001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2626
2627 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2628 .fini[0-4] sections used by _exit
2629 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2630 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2631 * scripttempl/elfm68hc11.sc: Likewise.
2632
ff7e6f88
L
26332001-08-03 H.J. Lu <hjl@gnu.org>
2634
2635 * emultempl/beos.em (init): Add the missing initialization.
2636
b6bf44ba
AM
26372001-08-03 Alan Modra <amodra@bigpond.net.au>
2638
2639 * ld.texinfo (Input Section Basics): Clarify ordering of output
2640 sections.
2641 * ldlang.c (callback_t): Add wildcard_list param.
2642 (walk_wild_section): Remove "section" param. Rewrite for
2643 lang_wild_statement_type change. Remove unique_section_p test.
2644 (walk_wild_file): Remove "section" param.
2645 (walk_wild): Remove "section" and "file" params.
2646 (lang_gc_wild): Likewise.
2647 (wild): Likewise. Modify for lang_wild_statement_type change.
2648 (wild_sort): Likewise. Add "sec" param.
2649 (gc_section_callback): Likewise.
2650 (output_section_callback): Likewise. Do unique_section_p test.
2651 (map_input_to_output_sections): Modify call to wild.
2652 (lang_gc_sections_1): Likewise.
2653 (print_wild_statement): Modify for lang_wild_statement_type
2654 change.
2655 (lang_add_wild): Replace filename, filenames_sorted param with
2656 filespec. Replace section_name, sections_sorted,
2657 exclude_filename_list with section_list.
2658 * ldlang.h (lang_add_wild): Here too.
2659 (lang_wild_statement_type): Replace section_name, sections_sorted,
2660 and exclude_filename_list with section_list.
2661 * ldgram.y (current_file): Delete.
2662 (%union): Add wildcard_list.
2663 (file_NAME_list): Set type to wildcard_list. Build a linked list
2664 rather than calling lang_add_wild for each entry.
2665 (input_section_spec_no_keep): Call lang_add_wild here instead.
2666 * ld.h (struct wildcard_list): Declare.
2667 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2668
b044cda1
CW
26692001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2670
2671 * ldmain.c (main): initialize link_info.pei386_auto_import
2672 * pe-dll.c: new tables for auto-export filtering
2673 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 2674 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
2675 "by hand".
2676
26772001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2678
b6bf44ba
AM
2679 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2680 static variable current_sec (static struct sec *). Add
b044cda1 2681 forward declaration for add_bfd_to_link.
b6bf44ba
AM
2682 (process_def_file): Don't export undefined symbols. Do not
2683 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
2684 with new API.
2685 (pe_walk_relocs_of_symbol): New function.
2686 (generate_reloc): add optional extra debugging
b6bf44ba 2687 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 2688 line in output
b6bf44ba 2689 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
2690 (DATA auto-import support).
2691 (make_singleton_name_thunk): New function.
2692 (make_import_fixup_mark): New function.
2693 (make_import_fixup_entry): New function.
2694 (pe_create_import_fixup): New function.
b6bf44ba 2695 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 2696 char *.
b6bf44ba
AM
2697 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2698 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
2699 pe_create_import_fixup.
2700 * emultempl/pe.em: add new options --enable-auto-import,
2701 --disable-auto-import, and --enable-extra-pe-debug.
2702 (make_import_fixup): New function.
2703 (pe_find_data_imports): New function.
2704 (pr_sym): New function.
b6bf44ba 2705 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
2706 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2707 CODE.
2708
27092001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 2710
b044cda1
CW
2711 * ld.texinfo: add additional documentation for
2712 --export-all-symbols. Document --out-implib,
2713 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
2714 --dll-search-prefix, --enable-auto-import, and
2715 --disable-auto-import.
b044cda1
CW
2716 * ldint.texinfo: Add detailed documentation on auto-import
2717 implementation.
2718
156e34dd
NC
27192001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2720
2721 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2722 example.
2723
d6231427
AM
27242001-07-24 Alan Modra <amodra@bigpond.net.au>
2725
2726 * Makefile.am: Update dependencies with "make dep-am".
2727 * Makefile.in: Regenerate
2728
e14ec88b
AM
27292001-07-23 Alan Modra <amodra@bigpond.net.au>
2730
2731 * ldcref.c (check_section_sym_xref): New function.
2732 (check_nocrossrefs): Call it.
2733 (check_nocrossref): Interate over h->refs here instead of..
2734 (check_refs): ..here. Pass in the symbol name, section, and bfd
2735 rather than hash_entry pointers.
2736 (struct check_refs_info): Keep symbol name rather than hash entry.
2737 Remove "same".
2738 (check_reloc_refs): Tweak for above changes in check_refs_info.
2739 Only report references to section syms when symname is NULL to
2740 prevent duplicate messages for the same reloc.
2741
1b577b00
NC
27422001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2743
c7d701b0
NC
2744 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2745 available. Do not print NULL trees.
2746 (exp_print_token): Print unknown tokens with values > 126 as
2747 decimal values not ASCII characters.
2748
1545243b
NC
2749 * ldlang.c (lang_leave_overlay): If a region is specified assign
2750 it to all sections inside the overlay unless they have been
2751 assigned to the own, non-default, memory region.
2752
1b577b00
NC
2753 * README: Add header for consistency with other README files.
2754
5030876b
L
27552001-07-14 H.J. Lu <hjl@gnu.org>
2756
2757 * emultempl/elf32.em (output_prev_sec_find): Never return
2758 bfd_abs_section_ptr, bfd_com_section_ptr nor
2759 bfd_und_section_ptr.
2760
18c7a9a5
NC
27612001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2762
22af9fd3 2763 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
2764 elf32.em.
2765 * Makefile.in: Regenerate.
2766
9ffecff1
MG
27672001-07-14 matthew green <mrg@eterna.com.au>
2768
2769 * configure.tgt (i386-*-netbsdelf*): New target.
2770 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2771
95500e1c
JJ
27722001-07-13 Jakub Jelinek <jakub@redhat.com>
2773
2774 * emultempl/elf32.em (output_prev_sec_find): New.
2775 (place_orphan): Use it.
2776
e97cb84f
L
27772001-07-11 H.J. Lu <hjl@gnu.org>
2778
2779 * ldmain.c (main): Fix typos in the last change.
2780
7333607e
JJ
27812001-07-11 Jakub Jelinek <jakub@redhat.com>
2782
2783 * ldmain.c (main): Disallow -F and -f without -shared.
2784
d29d80f2
NC
27852001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2786
2787 * emultempl/pe.em (after_open): Check for the output_bfd not
2788 having any coff_data structure allocated to it.
2789
c2a1a436
DB
27902001-07-09 David O'Brien <obrien@FreeBSD.org>
2791
2792 * emultempl/elf32.em: Do not assuming that contents of the buffer
2793 returned from basename function will remain unchanged accross other
2794 function calls.
2795
63653551
L
27962001-07-03 H.J. Lu <hjl@gnu.org>
2797
2798 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2799 2001-07-03. It creates dynamic entries even for static binaries.
2800
d303a449
L
28012001-07-03 Jakub Jelinek <jakub@redhat.com>
2802
2803 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2804 (DYNAMIC): Use it to reserve few dynamic entries for
2805 post-linking tools.
2806
9f22353f
AM
28072001-06-27 Alan Modra <amodra@bigpond.net.au>
2808
2809 * emulparams/hppa64linux.sh: New file.
2810 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2811 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2812 (ehppa64linux.c): Add rule to make it.
2813 Run "make dep-am".
2814 * Makefile.in: Regenerate.
2815
62bf86b4
HPN
28162001-06-21 Hans-Peter Nilsson <hp@axis.com>
2817
2818 * ld.texinfo (Options, -r): Mention restrictions when using
2819 different object formats.
2820
429d935d
HPN
28212001-06-19 Hans-Peter Nilsson <hp@axis.com>
2822
2823 * ldlang.c (lang_check): Emit fatal error if relocatable link
2824 between different object flavours with relocations in input.
2825
cb840a31
L
28262001-06-19 H.J. Lu <hjl@gnu.org>
2827
2828 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2829 (--version-script): Mention the language support.
2830
9bf03acc
L
28312001-06-19 H.J. Lu <hjl@gnu.org>
2832
2833 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2834
c45021f2
NC
28352001-06-18 H.J. Lu <hjl@gnu.org>
2836
b6bf44ba
AM
2837 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2838 (diststuff): Add $(MANS).
2839 * Makefile.in: Regenerated.
c45021f2 2840
b6bf44ba 2841 * ld.1: Removed.
c45021f2 2842
6caa99ab
HPN
28432001-06-18 Hans-Peter Nilsson <hp@axis.com>
2844
605d9b3a
HPN
2845 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2846 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2847 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2848 * ld.h (args_type): Remove member export_dynamic. All users
2849 changed to use struct bfd_link_info member.
2850
6caa99ab
HPN
2851 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2852 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2853 * Makefile.in: Regenerate.
2854
6f9efd97
L
28552001-06-18 H.J. Lu <hjl@gnu.org>
2856
2857 * ldlang.c (init_os): Add the newline to the einfo call.
2858 (lang_check): Likewise.
2859 (lang_do_version_exports_section): Likewise.
2860
5af9fd8b
L
28612001-06-15 H.J. Lu <hjl@gnu.org>
2862
2863 * lexsup.c (parse_args); Save optind to report unrecognized
2864 option.
2865
2a096f04
HPN
28662001-06-15 Hans-Peter Nilsson <hp@axis.com>
2867
7e66c3f5
HPN
2868 * ldlang.c (lang_check): Emit fatal error if relocatable link
2869 between different object flavours.
2870
2a096f04
HPN
2871 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2872 Set new link_info member export_dynamic.
2873 * ldmain.c (main): Initialize new link_info member export_dynamic.
2874
6770ec8c
NC
28752001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2876
2877 * ldlang.c (walk_wild): Only call walk_wild_file if
2878 lookup_name returns something.
b6bf44ba 2879 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 2880 (load_symbols): Change to a boolean function.
b6bf44ba 2881 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
2882 executable.
2883
8529105a
AM
28842001-06-08 Alan Modra <amodra@bigpond.net.au>
2885
2886 * ldlang.c (record_bfd_errors): Remove.
2887
2888 * emultempl/aix.em: Fix copyright dates.
2889
8f3aa7a0
AJ
28902001-06-07 Andreas Jaeger <aj@suse.de>
2891
2892 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2893 (TEXT_START_ADDR): Likewise.
2894
3277f888
AM
28952001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2896
2897 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2898
3763134d
DD
28992001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2900
2901 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2902
5929ebc0
L
29032001-05-31 H.J. Lu <hjl@gnu.org>
2904
2905 * ldlang.c (open_input_bfds): Don't change the bfd error
2906 handler whilst loading symbols.
2907
c04a062d
NC
29082001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2909
2910 * configure.tgt: Remove i370-mvs architecture, it is not currently
2911 supported.
2912
96fcab3e
L
29132001-05-25 H.J. Lu <hjl@gnu.org>
2914
2915 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2916 like emulparams/aixppc.sh.
2917
db8d4f23
L
29182001-05-25 H.J. Lu <hjl@gnu.org>
2919
2920 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2921 setting of output_filename after bfd_scan_arch.
2922 * emultempl/pe.em: Likewise.
2923
5f642101
L
29242001-05-25 H.J. Lu <hjl@gnu.org>
2925
2926 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2927 like emulparams/aixppc.sh.
2928
2929 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2930 instead of ${srcdir}/emultempl/stringify.sed.
2931
64e9ece0
TW
29322001-05-25 Timothy Wall <twall@oculustech.com>
2933
2934 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 2935 output.
64e9ece0 2936
c709b096
AM
29372001-05-25 Alan Modra <amodra@one.net.au>
2938
2939 * configure.host: Replace linuxoldld with linux*oldld.
2940 * configure.tgt: Likewise.
2941
6cbdcc6f
L
29422001-05-24 H.J. Lu <hjl@gnu.org>
2943
2944 * emultempl/stringify.sed: Removed again.
2945
86af25fe
L
29462001-05-24 H.J. Lu <hjl@gnu.org>
2947
2948 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2949 (gld${EMULATION_NAME}_before_parse): Initialize
2950 ldfile_output_architecture, ldfile_output_machine and
2951 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2952 * emultempl/beos.em: Likewise.
2953 * emultempl/elf32.em: Likewise.
2954 * emultempl/linux.em: Likewise.
2955 * emultempl/mipsecoff.em: Likewise.
2956 * emultempl/pe.em: Likewise.
2957 * emultempl/sunos.em: Likewise.
2958
3b1b01cf
TR
29592001-05-24 Tom Rix <trix@redhat.com>
2960
8f3aa7a0 2961 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
2962 udate import file format.
2963 (change_symbol_mode) New, same
2964 (is_syscall) New, same
2965 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2966 * emulparams/aixppc64.sh : same
2967 * emulparams/aixrs6.sh : same
2968 * emulparams/ppcmacos.sh : same
2969 * emultempl/aix.em : use strtoull to parse options
2970 * Makefile.am : add eaixppc64 emulation for xcoff64
2971 * Makefile.in : same
2972 * configure.tgt : same
2973
2974 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 2975 default data section offset to 0x20000000
3b1b01cf 2976 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 2977 loader and debug sections use the currect section offset.
3b1b01cf
TR
2978
2979 * emultempl/aix.em : Add xcoff64 support
2980 Add -binitfini support
8f3aa7a0 2981 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 2982 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 2983 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
2984 sections
2985
2986 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 2987
57e6abd2
AO
29882001-05-23 Alexandre Oliva <aoliva@redhat.com>
2989
2990 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2991 variable to avoid non-portable shell construct.
2992
d1cf510e
NC
29932001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2994
2995 * ldmain.c (get_emulation): Add -mips5 command line argument.
2996
506eee22
NC
29972001-05-22 Alexandre Oliva <aoliva@redhat.com>
2998
2999 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3000 (ELF_INTERPRETER_NAME): Define it.
3001 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3002 it.
3003 * configure.tgt (targ_emul, targ_extra_emuls)
3004 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3005 as primary, elf_i386 as extra.
3006 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3007 (eelf_i386_ldso.c): New rule.
3008 * Makefile.in: Rebuilt.
3009
30102001-05-22 Nick Clifton <nickc@redhat.com>
3011
3012 * lexsup.c (ld_options): Allow -I to be an alias for
3013 --dynamic-linker. This is for Solaris compatability.
3014 * ld.texinfo: Document that -I can be used.
3015 * ld.1: Regenerate.
3016
d1778b88
AM
30172001-05-16 Alan Modra <amodra@one.net.au>
3018
3019 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3020 whether an input section is the first one assigned to an output
3021 section.
3022 Assorted formatting fixes.
3023
02649152
DD
30242001-05-14 DJ Delorie <dj@delorie.com>
3025
3026 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3027 * Makefile.in: Ditto.
3028
579f31ac
JJ
30292001-05-11 Jakub Jelinek <jakub@redhat.com>
3030
3031 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3032 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3033 output sections.
3034 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3035
8550eb6e
JJ
30362001-05-11 Jakub Jelinek <jakub@redhat.com>
3037
3038 * ldlang.c (lang_process): Call bfd_merge_sections.
3039
8e5a525c
AM
30402001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3041
3042 * ldgram.y: Fix typo.
3043
1c9acd94
L
30442001-05-03 H.J. Lu <hjl@gnu.org>
3045
3046 * emultempl/elf32.em: Include "libiberty.h".
3047 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3048 basename of the bfd filename.
3049 (gld${EMULATION_NAME}_stat_needed): Likewise.
3050 (gld${EMULATION_NAME}_try_needed): Likewise.
3051 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3052
14fe918e
L
30532001-05-02 H.J. Lu <hjl@gnu.org>
3054
3055 * emultempl/pe.em: Include <ctype.h>.
3056
c7e40348
NC
30572001-05-02 Johan Rydberg <jrydberg@opencores.org>
3058
b6bf44ba 3059 * emulparams/elf32openrisc.sh: New file.
c7e40348 3060
b6bf44ba
AM
3061 * Makefile.am: Add OpenRISC target.
3062 * Makefile.in: Regenerated.
c7e40348 3063
b6bf44ba 3064 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
3065
30662001-05-02 Nick Clifton <nickc@redhat.com>
3067
3068 * emultempl/aix.em: Replace buystring with xstrdup.
3069 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 3070
d1b2b2dc
L
30712001-05-02 H.J. Lu <hjl@gnu.org>
3072
3073 * ldfile.c: Include "libiberty.h".
3074 * ldlex.l: Likewise.
3075
3076 * ldmisc.c (buystring): Removed.
3077 * ldmisc.h: Likewise.
3078
3079 * ldfile.c: Replace buystring with xstrdup.
3080 * ldlang.c: Likewise.
3081 * ldlex.l: Likewise.
3082 * ldmain.c: Likewise.
3083 * ldmisc.c: Likewise.
3084 * lexsup.c: Likewise.
3085 * mpw-eppcmac.c: Likewise.
3086
35714f2a
AJ
30872001-04-30 Andreas Jaeger <aj@suse.de>
3088
3089 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3090
884fb58e
NC
30912001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3092
b6bf44ba
AM
3093 * ldlang.c (load_symbols): Give emulation a chance
3094 to process unrecognized file before fatal error is
3095 reported, not after.
884fb58e 3096
87748b32
NC
30972001-04-27 Sean McNeil <sean@mcneil.com>
3098
3099 * configure.tgt: Add arm-vxworks target.
3100 * scripttempl/armcoff.sc: Support .text or .data as a section name
3101 prefix.
3102 Define _etext.
35714f2a 3103
7ce691ae
C
31042001-04-13 J.T. Conklin <jtc@redback.com>
3105
3106 * ld.texinfo: Document --fatal-warnings.
3107 * ld.1: Regenerate.
3108
3109 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 3110 warnings have been turned into errors.
7ce691ae
C
3111 * lexsup.c (OPTION_WARN_FATAL): Define.
3112 (ld_options): Entry for --fatal-warnings.
3113 (parse_args): Handle OPTION_WARN_FATAL.
3114 * ld.h (ld_config_type): Add fatal_warnings field.
3115
f5fa8ca2
JJ
31162001-04-13 Jakub Jelinek <jakub@redhat.com>
3117
3118 * ldmain.c (main): Default to discard_sec_merge.
3119 * lexsup.c (OPTION_DISCARD_NONE): Define.
3120 (ld_options): Add --discard-none.
3121 (parse_args): Handle OPTION_DISCARD_NONE.
3122 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3123 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3124 all its input sections match.
3125
fdec3cfc
L
31262001-04-05 Steven J. Hill <sjhill@cotw.com>
3127
3128 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3129 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3130 (eelf32ltsmip.c): New target.
3131 (eelf64btsmip.c): Likewise.
3132 (eelf64ltsmip.c): Likewise.
3133 * Makefile.in: Regenerated.
3134
3135 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3136 target.
3137 (mips*-*-linux-gnu*): Likewise.
3138
3139 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3140 MIPS taget.
35714f2a 3141 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
3142 target.
3143 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3144 endian target.
3145
589bad82
HPN
31462001-04-05 Hans-Peter Nilsson <hp@axis.com>
3147
3148 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3149 correct value of __Stext here.
3150 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3151 .startup section.
3152
3153 * emulparams/crislinux.sh: Remove FIXME.
3154
94202e16
AM
31552001-04-02 Alan Modra <alan@linuxcare.com.au>
3156
3157 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3158 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3159
1268a053
HPN
31602001-03-27 Hans-Peter Nilsson <hp@axis.com>
3161
3162 * configure.tgt (cris-*-*): Change default emulation to criself.
3163 (cris-*-*aout*): New rule.
3164
d85e9ff7
AM
31652001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3166
3167 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3168 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3169
0879a67a
AJ
31702001-03-26 Andreas Jaeger <aj@suse.de>
3171
3172 * ld.texinfo (Overview): Fix syntax in texi code.
3173
0285c67d
NC
31742001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3175
3176 * ld.texinfo: Put @c man indications to generate the ld man page.
3177 When generating man, define all the variables. Define SEEALSO
3178 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3179 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3180 (ld.1): Generate from ld.texinfo.
3181 * Makefile.in: Regenerate.
3182
c20ec07b
NC
31832001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3184
3185 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 3186 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 3187
cc5ce052
UD
31882001-03-17 Ulrich Drepper <drepper@redhat.com>
3189
3190 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3191 is an absolute path look only for this file and not along the path.
3192
a1ab1d2a
UD
31932001-03-17 Ulrich Drepper <drepper@redhat.com>
3194
3195 * emultempl/elf32.em (OPTION_GROUP): New macro.
3196 Add new option Bgroup to longopts.
3197 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3198 (gld*_list_options): Add -Bgroup and -z defs.
3199 * ld.1: Document -Bgroup and -z defs.
3200 * ld.texinfo: Likewise.
3201
788fca5a
MM
32022001-03-07 Michael Meissner <meissner@redhat.com>
3203
3204 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3205 with sections created by -fdata-sections.
3206 (.dynbss,.bss): Ditto.
3207
1c7566d1
AM
32082001-03-05 Alan Modra <alan@linuxcare.com.au>
3209
3210 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3211 after_allocation_default, not gld..._before_allocation.
3212
27b7e12d
AM
32132001-02-27 Alan Modra <alan@linuxcare.com.au>
3214
3215 * configure.in (BFD_VERSION): New.
3216 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3217 * configure: Regenerate.
3218 * Makefile.am: Run "make dep-am"
3219 * Makefile.in: Regenerate.
3220
2bc551c7
TW
32212001-02-26 Timothy Wall <twall@cygnus.com>
3222
3223 * emulparams/elf64_aix.sh: Add additional read-only sections;
3224 uncomment lines which are now required.
3225
1276aefa
NC
32262001-02-26 H.J. Lu <hjl@gnu.org>
3227
3228 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
3229 that problems can be caught whilst loading symbols.
3230 (record_bfd_errors): New function: Report BFD errors and mark
3231 the executable output as being invalid.
1276aefa 3232
41c49998
TW
32332001-02-22 Timothy Wall <twall@cygnus.com>
3234
3235 * configure.host: Add configuration for ia64-*-aix*.
3236 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3237 Add dependencies for eelf64_aix.c.
3238 * Makefile.in: Regenerate.
3239 * configure.tgt: Add ia64-*-aix* mapping.
3240 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 3241 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
3242 AIX-specific test.
3243
78f85fd7
L
32442001-02-20 H.J. Lu <hjl@gnu.org>
3245
3246 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3247 false if we found the file.
3248
1ac7e077 32492001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
3250
3251 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3252 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3253
e135f41b
NC
32542001-02-18 lars brinkhoff <lars@nocrew.org>
3255
3256 * Makefile.am: Add PDP-11 target.
3257 * configure.tgt: Likewise.
3258 * emulparams/pdp11.sh: New file.
3259
a842aceb
DB
32602001-02-17 David O'Brien <obrien@FreeBSD.org>
3261
3262 * configure.host: Add a generic FreeBSD configuration entry such that
3263 all [modern] FreeBSD systems on all platforms will look the same.
3264
24174db0
L
32652001-02-14 H.J. Lu <hjl@gnu.org>
3266
3267 * configure.tgt: Remove mention of earmelf_linux26.
3268
30c3c13a
RH
32692001-02-13 Richard Henderson <rth@redhat.com>
3270
3271 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3272
b46a87b1
L
32732001-02-13 H.J. Lu <hjl@gnu.org>
3274
3275 * ldexp.h (node_type): Add etree_provided.
3276 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3277 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 3278 for etree_provided.
b46a87b1
L
3279 (exp_print_tree): Handle etree_provided.
3280 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3281 etree_provided.
3282
f3988fd9
RH
32832001-02-09 David Mosberger <davidm@hpl.hp.com>
3284
3285 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3286 .IA_64.unwind.* pattern to unwind table section and
3287 .IA_64.unwind_info* pattern to unwind info section.
3288
a85d7ed0
NC
32892001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3290
3291 * Makefile.am: Add linux target for S/390.
3292 * Makefile.in: Likewise.
3293 * configure.host: Likewise.
3294 * configure.tgt: Likewise.
3295 * emulparams/elf64_s390.sh: New file.
3296 * emulparams/elf_s390.sh: New file.
3297
780248c4
JJ
32982001-02-09 Jakub Jelinek <jakub@redhat.com>
3299
3300 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3301 targ_extra_libpath.
3302 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3303
0e2534bd
PB
33042001-02-06 Philip Blundell <philb@gnu.org>
3305
3306 * Makefile.am: Remove mention of earmelf_linux26.
3307 * Makefile.in: Regenerate.
3308
46c1ea57
PB
33092001-02-04 Philip Blundell <philb@gnu.org>
3310
3311 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3312 * emulparams/armelf_linux26.sh: Delete.
3313 * configure.tgt: Remove mention of armelf_linux26 emulation.
3314
0088edd2
NC
33152001-02-01 Nick Clifton <nickc@redhat.com>
3316
3317 * ld.1: Replace occurances of -oformat with --oformat.
3318
02aa14fb
AM
33192001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3320
3321 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3322 load_base is specified.
3323
f813923c
HPN
33242001-01-24 Hans-Peter Nilsson <hp@axis.com>
3325
3326 * emultempl/elf32.em: Correct spelling in comments and listed
3327 options.
3328
c1eb1488
AM
33292001-01-23 Alan Modra <alan@linuxcare.com.au>
3330
3331 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3332 default for the first section of a group of overlay sections.
3333
d9fc3714
AM
33342001-01-22 Alan Modra <alan@linuxcare.com.au>
3335
3336 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3337 * Makefile.in: Regenerate.
3338 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3339 Check for null tool_dir.
3340
6be0ca94
JW
33412001-01-16 Jim Wilson <wilson@redhat.com>
3342
3343 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3344 and IA_64.unwind.info.
3345
b9247304
L
33462001-01-16 H.J. Lu <hjl@gnu.org>
3347
3348 * ldlang.c (lang_check): Merge the private data only if the
3349 input file has contents.
3350
577a0623
AM
33512001-01-14 Alan Modra <alan@linuxcare.com.au>
3352
d952f17a
AM
3353 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3354
ffd6e9de
AM
3355 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3356 enabling search for libmilli. On a relocatable link, make .text
3357 sections unique.
3358 (LDEMUL_AFTER_PARSE): Define.
3359 (hppaelf_finish): Correct spelling of relocatable in comments.
3360
577a0623
AM
3361 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3362 rummage through the script for sections on the unique list.
3363 Correct length of strncmp for ".note".
3364 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3365
3366 * ldlang.c (unique_section_list): New var.
3367 (unique_section_p): New function.
3368 (walk_wild_section): Don't match sections on unique_section_list.
3369 (lang_add_unique): New function.
ffd6e9de 3370 Correct spelling of relocatable in comments.
577a0623
AM
3371
3372 * ldlang.h (struct unique_sections): Declare.
3373 (unique_section_list): Declare.
3374 (unique_section_p): Declare.
3375 (lang_add_unique): Declare.
3376
3377 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3378 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3379
3380 * ld.texinfo (--unique): Update.
3381
b7ed8fad
NC
33822001-01-13 Nick Clifton <nickc@redhat.com>
3383
3384 * lexsup.c (parse_args): Remove spurious white space.
3385
d0398d6a
NC
33862001-01-12 Nick Clifton <nickc@redhat.com>
3387
3388 * lexsup.c (parse_args): Update copyright date.
3389
350fdb00
PB
33902001-01-12 Philip Blundell <pb@futuretv.com>
3391
3392 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3393
60c6797e
KH
33942001-01-10 Kazu Hirata <kazu@hxi.com>
3395
3396 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3397 * scripttempl/h8300h.sc: Fix formatting.
3398 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
3399 * scripttempl/h8500.sc: Likewise.
3400 * scripttempl/h8500b.sc: Likewise.
3401 * scripttempl/h8500c.sc: Likewise.
3402 * scripttempl/h8500m.sc: Likewise.
3403 * scripttempl/h8500s.sc: Likewise.
60c6797e 3404
482e8b32
DB
34052000-01-07 David O'Brien <obrien@BSDi.com>
3406
3407 * emultempl/elf32.em: Only perform Linux ld hints processing when
3408 targeting Linux.
3409
d7ed7ca6
PB
34102001-01-07 Philip Blundell <philb@gnu.org>
3411
3412 * ld.texinfo (Bug Reporting): Update email address for reports.
3413
0fc3347a
NC
34142000-12-31 Nick Clifton <nickc@redhat.com>
3415
3416 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3417 options by checking for a return value of '?' not -1.
3418
e4897a32
NC
34192000-12-28 Nick Clifton <nickc@redhat.com>
3420
3421 * lexsup.c (struct ld_option): Add new enum value:
3422 EXACTLY_TWO_DASHES.
3423 (ld_options[]): Change -omagic, -output and -oformat options
3424 to be EXACTLY_TWO_DASHES.
3425 (OUTPUT_COUNT): Use ARRAY_SIZE.
3426 (parse_args): Change parameter 'argc' to unsigned.
3427 Place EXACTLY_TWO_DASHES options into new really_longopts
3428 array.
3429 If getopt_long_only fails, try calling getopt_long using the
3430 really_longopts array.
3431 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3432 TWO_DASHES options.
3433
3434 * ldlex.h: Fix prototype of parse_args.
3435
3436 * ld.texinfo: Document that long options starting with 'o'
3437 must be preceeded by two dashes. Change example of a single
3438 dashed long option from -oformat to -trace-symbol.
3439
1122a5fc
NC
34402000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3441
3442 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3443 (longopts[]): New --no-default-excludes option.
3444 (gld_${EMULATION_NAME}_list_options): Document.
3445 (gld_${EMULATION_NAME}_parse_args): Handle.
3446
037849a9
NC
34472000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3448
3449 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3450 whitespace, it breaks the K&R C preprocessor.
3451
7ec229ce
DD
34522000-12-11 DJ Delorie <dj@redhat.com>
3453
3454 * ld.texinfo: Add notes about --whole-archive and gcc.
3455
b79e8c78
NC
34562000-11-18 Fred Fish <fnf@be.com>
3457
3458 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3459 (ld_options): Entry for --allow-shlib-undefined.
3460 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3461 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3462 to false.
3463 * ld.texinfo: Document new command line switch.
d952f17a 3464
9a8e2505
GK
34652000-12-12 Geoffrey Keating <geoffk@redhat.com>
3466
3467 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3468 .fixup is actually read/write.
3469 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3470 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3471 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3472
3b16e843 34732000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
3474
3475 * NEWS: Add note about x86_64 architecture.
3476
93b63cd3
DD
34772000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3478
3479 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3480 Set DWARF2 sections to a VMA of zero.
3481
68b2fc7a 34822000-12-01 Joel Sherrill <joel@OARcorp.com>
24f6971a 3483
d952f17a 3484 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
3485 New targets.
3486 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3487 (sparc*-*-rtems*): Switched from a.out to ELF.
3488
2be3aa03
NC
34892000-11-30 Jan Hubicka <jh@suse.cz>
3490
3491 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3492 (eelf_x86_64.c): New.
3493 * Makefile.in: Regenerate.
3494 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3495 * emulparams/elf_x86_64.sh: New.
3496
8c899858
HPN
34972000-11-30 Hans-Peter Nilsson <hp@axis.com>
3498
3499 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3500 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3501
3502 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3503 merging non-a.out sections into CONSTRUCTING.
3504
e47b9e39
NC
35052000-11-28 Nick Clifton <nickc@redhat.com>
3506
3507 * ld.1 (COPYING): Mention that the GNU Free Documentation
3508 License is present in the sources, but not the output, and
3509 also available from the GNU website.
3510 (GNU Free Documentation License): Comment out this section.
3511
ad95f82a
DB
35122000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3513
3514 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3515 does not use them.
3516
fd89e65f
DB
35172000-11-25 David O'Brien <obrien@FreeBSD.org>
3518
3519 * ld.1: Remove old date so it does not give the impression the manpage
3520 is way out of date.
3521
077b8428
NC
35222000-11-24 Nick Clifton <nickc@redhat.com>
3523
3524 * configure.tgt (xscale-coff): Add target.
3525 (xscale-elf): Add target.
3526
49425d28
NC
35272000-11-24 Fred Fish <fnf@be.com>
3528
d952f17a
AM
3529 * ldmain.c (main): Remove redundant init of config.make_executable
3530 to true.
49425d28 3531
d3480244
RH
35322000-11-15 Richard Henderson <rth@redhat.com>
3533
3534 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3535
1ce7de8b
KH
35362000-11-14 Kazu Hirata <kazu@hxi.com>
3537
3538 * scripttempl/h8300.sc: Fix formatting.
3539 * scripttempl/h8300h.sc: Likewise.
3540 * scripttempl/h8300s.sc: Likewise.
3541
3b16e843 35422000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
3543
3544 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3545
2e418547
PB
35462000-11-09 Philip Blundell <pb@futuretv.com>
3547
3548 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3549 around orphan sections whose names can be represented in C.
3550
c940e6fc
JW
35512000-11-07 Jim Wilson <wilson@redhat.com>
3552
3553 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3554 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3555
704c465c
NC
35562000-11-06 Nick Clifton <nickc@redhat.com>
3557
3558 * ld.texinfo: Add GNU Free Documentation License.
3559 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 3560 * ld.1: Add GNU Free Documentation License.
704c465c 3561
dca7760f
AM
35622000-11-05 Alan Modra <alan@linuxcare.com.au>
3563
3564 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3565 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3566
3567 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3568 Move 2000-11-02 Makefile.in changes to this file.
3569 * Makefile.in: Regenerate.
3570
40a633d5
NC
35712000-11-03 Nick Clifton <nickc@redhat.com>
3572
3573 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3574 constructors and destructors.
3575 * scripttempl/h8300h.sc: Ditto.
3576 * scripttempl/h8300s.sc: Ditto.
3577 * scripttempl/h8500.sc: Ditto.
3578 * scripttempl/h8500b.sc: Ditto.
3579 * scripttempl/h8500c.sc: Ditto.
3580 * scripttempl/h8500m.sc: Ditto.
3581 * scripttempl/h8500s.sc: Ditto.
3582 * scripttempl/v850.sc: Ditto.
3583 * scripttempl/w65.sc: Ditto.
3584 * scripttempl/z8000.sc: Ditto.
3585
59ff2774
NC
35862000-11-02 Per Lundberg <plundis@chaosdev.org>
3587
3588 * Makefile.in (e_i386_chaos.c): New rule.
3589 (ALL_EMULATIONS): Added e_i386_chaos.o.
3590 * emulparams/elf_i386_chaos.sh: New file.
3591 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3592
645571e1
JJ
35932000-10-20 Jakub Jelinek <jakub@redhat.com>
3594
3595 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3596 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3597 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3598 library path suffix.
3599 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3600
c5975a45
HPN
36012000-10-18 Hans-Peter Nilsson <hp@axis.com>
3602
3603 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3604 for consecutive sections.
3605
ea20a7da
CC
36062000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3607
d952f17a
AM
3608 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3609 options.
3610 * ld.texinfo: Added notes about this new option.
ea20a7da 3611
6e45556a
NC
36122000-10-16 Nick Clifton <nickc@redhat.com>
3613
3614 * emultempl/pe.em (_after_open): Add tests of return values from
3615 bfd functions. Emit appropriate error messages if necessary.
3616
b9a69188
NC
36172000-10-13 Nick Clifton <nickc@redhat.com>
3618
3619 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
3620 local variables - they are not used, but leave in the call to
3621 bfd_canonicalize_symtab.
b9a69188
NC
3622 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3623 pe_dll_search_prefix.
3624
627427de 36252000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 3626
627427de
DD
3627 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3628 (longopts): New --dll-search-prefix option.
3629 (gld_${EMULATION_NAME}_list_options): Document.
3630 (gld_${EMULATION_NAME}_parse_args): Handle.
3631 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3632 dynamically, search for a dll named '<prefix><basename>.dll'
3633 in preference to 'lib<basename>.dll' if --dll-search-prefix
3634 is specified.
3635
24376d1b
AM
36362000-10-12 Alan Modra <alan@linuxcare.com.au>
3637
3638 * ldlang.c (section_already_linked): Set kept_section instead of
3639 sec->comdat->sec.
3640
e47d05ad
KH
36412000-10-10 Kazu Hirata <kazu@hxi.com>
3642
3643 * deffile.h: Fix formatting.
3644 * lexsup.c: Likewise.
3645 * mri.c: Likewise.
3646
23a87948
DD
36472000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3648
3649 * pe-dll.c (make_one): Do not generate code thunk for DATA
3650 exports.
3651 (process_def_file): deduce DATA flag for auto-export sumbols.
3652
86b1cc60
KH
36532000-10-09 Kazu Hirata <kazu@hxi.com>
3654
89cdebba
KH
3655 * ld.h: Fix formatting.
3656 * ldcref.c: Likewise.
3657 * ldctor.h: Likewise.
3658 * ldemul.c: Likewise.
3659 * ldemul.h: Likewise.
3660 * ldexp.c: Likewise.
3661 * ldexp.h: Likewise.
3662 * ldfile.c: Likewise.
3663 * ldfile.h: Likewise.
3664 * ldlang.c: Likewise.
3665 * ldlang.h: Likewise.
3666 * ldmain.c: Likewise.
7bfd51a3
KH
3667 * pe-dll.c: Likewise.
3668
3669 * pe-dll.c: Revert some formatting fixes.
86b1cc60 3670
d643799d
KH
36712000-10-08 Kazu Hirata <kazu@hxi.com>
3672
3673 * pe-dll.c: Fix formatting.
3674
08da4cac
KH
36752000-10-05 Kazu Hirata <kazu@hxi.com>
3676
3677 * ldlang.c: Fix formatting.
3678
c2a94a7a
DD
36792000-10-03 DJ Delorie <dj@redhat.com>
3680
3681 * pe-dll.c (fill_edata): initialize entire block
3682 (make_one): fill in correct section.
3683
8c95a62e
KH
36842000-10-03 Kazu Hirata <kazu@hxi.com>
3685
3686 * ldexp.c: Fix formatting.
3687
486e80e2
DD
36882000-10-02 DJ Delorie <dj@redhat.com>
3689
3690 * emultempl/pe.em (gld_*_after_open): detect case where there two
3691 import libraries for same dll; rename one to ensure proper link
3692 order.
3693
3694 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3695 typo
3696 (generate_edata): fix typo
3697
24dd9f75
HPN
36982000-09-29 Hans-Peter Nilsson <hp@axis.com>
3699
3700 * scripttempl/crisaout.sc (ENTRY): Now __start.
3701 (.text): Add default setting for __start.
3702 Remove CONSTRUCTORS handling.
3703 (/DISCARD/): Add .gnu.warning.*.
3704 * emulparams/crislinux.sh (ENTRY): Now __start.
3705 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3706 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3707 (ENTRY): Now __start.
3708 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3709 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3710
4de2d33d
KH
37112000-09-29 Kazu Hirata <kazu@hxi.com>
3712
5cc18311
KH
3713 * deffile.h: Fix formatting.
3714 * ld.h: Likewise.
3715 * ldcref.c: Likewise.
4de2d33d 3716 * ldctor.c: Likewise.
5cc18311 3717 * ldctor.h: Likewise.
4de2d33d 3718 * ldemul.c: Likewise.
5cc18311 3719 * ldemul.h: Likewise.
4de2d33d 3720 * ldexp.c: Likewise.
5cc18311 3721 * ldexp.h: Likewise.
4de2d33d 3722 * ldfile.c: Likewise.
5cc18311 3723 * ldfile.h: Likewise.
4de2d33d 3724 * ldlang.c: Likewise.
5cc18311
KH
3725 * ldlang.h: Likewise.
3726 * lexsup.c: Likewise.
3727 * mri.c: Likewise.
3728 * pe-dll.c: Likewise.
4de2d33d 3729
45b1f63c
DD
37302000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3731
3732 * pe-dll.c (process_def_file): Uninitialized data wasn't
3733 exported with --export-all-symbols switch.
d952f17a 3734
45b1f63c
DD
37352000-09-28 DJ Delorie <dj@redhat.com>
3736
3737 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3738 noname work properly.
3739
47d89dba
AM
37402000-09-28 Alan Modra <alan@linuxcare.com.au>
3741
3742 * ld.texinfo (HPPA ELF32): New section.
3743
3744 * emultempl/hppaelf.em (group_size): New.
3745 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3746 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3747 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3748 options to prevent abbreviations matching.
3749 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3750 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3751
36bdbeec
NC
37522000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3753
3754 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3755 on the m68*-*-elf target. Make it support COFF input objects.
3756
6d5e62f8
KH
37572000-09-21 Kazu Hirata <kazu@hxi.com>
3758
3759 * ldmain.c: Fix formatting.
3760 * ldmisc.c: Likewise.
3761 * ldver.c: Likewise.
3762 * ldwrite.c: Likewise.
3763
e2eb67d9
AM
37642000-09-21 Alan Modra <alan@linuxcare.com.au>
3765
3766 * ldwrite.c (clone_section): Silence gcc warnings.
3767
b3ea3584
AM
37682000-09-20 Alan Modra <alan@linuxcare.com.au>
3769
3770 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3771 out of memory failure.
3772
3773 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3774 (clone_section): Handle out of memory failures. Rename var to
3775 avoid c++ reserved word.
3776
25f72752
AM
37772000-09-18 Alan Modra <alan@linuxcare.com.au>
3778
3779 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3780 stub_name param to stub_sec_name.
3781 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3782
0752970e
NC
37832000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3784
3785 * emultempl/m68kelf.em: New file.
3786 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3787 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3788 * Makefile.in: Regenerate.
3789
92b7e9d8
AM
37902000-09-15 Alan Modra <alan@linuxcare.com.au>
3791
3792 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3793 only as needed.
3794
9b14b192
NC
37952000-09-13 Nick Clifton <nickc@redhat.com>
3796
3797 * ldmain.c (multiple_definition): Disable relaxation if
3798 multiple symbol definitions are encountered - otherwise the
3799 linker could abort with an assertion failure.
3800
891fa266
NC
38012000-09-10 Nick Clifton <nickc@redhat.com>
3802
3803 * mri.c: Fix formatting.
3804
5d64ca4e
L
38052000-09-07 H.J. Lu <hjl@gnu.org>
3806
3807 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3808 * configure: Rebuild.
3809
dd94604f
L
38102000-09-07 H.J. Lu <hjl@gnu.org>
3811
3812 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3813 * Makefile.in: Rebuild.
3814
71bfc0ae
AM
38152000-09-07 Alan Modra <alan@linuxcare.com.au>
3816
3817 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3818 broken list handling. Create __start_SECNAME and __stop_SECNAME
3819 when no place-holder. Add some comments. Test both SEC_CODE and
3820 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 3821 Handle case where no output section statement created.
71bfc0ae 3822
4a428502
AO
38232000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3824
3825 * configure.tgt (sh-*-linux*): Added.
3826 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3827 * Makefile.in: Rebuilt.
3828 * emulparams/shelf_linux.sh: New file.
3829 * emulparams/shlelf_linux.sh: New file.
3830
f9989030
AM
38312000-09-06 Alan Modra <alan@linuxcare.com.au>
3832
3833 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3834 try shuffling sections when the orphan happens to be the place
3835 holder. Keep count of unique section names generated so we speed
3836 the search for a new name.
3837
58cccadb
AO
38382000-09-06 Alexandre Oliva <aoliva@redhat.com>
3839
3840 * configure: Rebuilt with new libtool.m4.
3841
5b343f5a
NC
38422000-09-05 Nick Clifton <nickc@redhat.com>
3843
3844 * Makefile.in: Regenerate.
3845 * aclocal.m4: Regenerate.
3846 * configure: Regenerate.
3847 * config.in: Regenerate.
3848 * po/ld.pot: Regenerate.
3849
3850 * ldint.texinfo: Remove CVS revision marker - it foils local
3851 comparisons.
3852
3853 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 3854
a854a4a7
AM
38552000-09-05 Alan Modra <alan@linuxcare.com.au>
3856
3231d22e
AM
3857 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3858 to stub section flags.
3859 (hppa_for_each_input_file_wrapper): New.
3860 (hppa_lang_for_each_input_file): New.
3861 (lang_for_each_input_file): Define to call above.
3862 (multi_subspace): New.
3863 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3864 (PARSE_AND_LIST_PROLOGUE): Define.
3865 (PARSE_AND_LIST_LONGOPTS): Define.
3866 (PARSE_AND_LIST_OPTIONS): Define.
3867 (PARSE_AND_LIST_ARGS_CASES): Define.
3868 (hppaelf_finish): Call elf32_hppa_set_gp.
3869 (hppaelf_set_output_arch): Remove.
3870 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3871
3872 * emulparams/hppalinux.sh (ELFSIZE): Define.
3873 (MACHINE): Define.
3874 (OTHER_READONLY_SECTIONS): Define.
3875 (DATA_PLT): Define.
3876 (GENERATE_SHLIB_SCRIPT): Define.
3877
5f992e62
AM
3878 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3879 to const throughout. Change `void *' to `PTR' throughout.
3880 (lang_memory_default): Function is local to file, add `static'.
3881
3882 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3883 (ehppalinux.c): Likewise.
3884 (earmelf.c): Likewise.
3885 (earmelf_linux.c): Likewise.
3886 (earmelf_linux26.c): Likewise.
3887 * Makefile.in: Regenerate.
3888
a854a4a7
AM
3889 * ld.h (ld_config_type): Add unique_orphan_sections.
3890 * lexsup.c (OPTION_UNIQUE): Define.
3891 (ld_options): Add "--unique".
3892 (parse_args): Handle it.
3893 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3894 search for an existing output section if unique_orphan_sections is
3895 set. Make use of bfd_get_unique_section_name rather than
3896 duplicating code here.
3897 * ld.texinfo: Describe --unique.
3898
3899 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3900 optional arg to split-by-file.
3901 (parse_args): Handle them.
3902 * ld.texinfo: Update description of these options.
3903 * ldwrite.c (clone_section): Pass in the section name. Replace
3904 local code with bfd_get_unique_section_name.
3905 (split_sections): Tidy code and comments. Use a list traversal
3906 more appropriate to the list construction. Handle cooked section
3907 sizes. Split when split_by_reloc reached rather than exceeded.
3908 Track section size and split when split_by_file reached. Fix
3909 link_order_tail (even though it's not used).
3910 (ldwrite): Modify condition for calling split_sections to suit
3911 changed split_by_reloc and split_by_file.
3912 * ldmain.c (main): Init config.split_by_reloc and
3913 config.split_by_file to -1.
3914 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3915 Change split_by_file to bfd_size_type.
3916
18e03609
NC
39172000-09-02 Nick Clifton <nickc@redhat.com>
3918
3919 * configure.in: Increase version number to 2.10.91.
3920 * NEWS: Mention new ability to support removal of duplicate DWARF2
3921 debug information.
3922 * configure: Regenerate.
3923 * aclocal.m4: Regenerate.
3924 * config.in: Regenerate.
3925
3a9d486c
NC
39262000-09-02 Daniel Berlin <dberlin@redhat.com>
3927
3928 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3929 sections.
a2b64bed 3930 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
3931 * scripttempl/elfd10v.sc: Ditto.
3932 * scripttempl/elfd30v.sc: Ditto.
3933 * scripttempl/elfi370.sc: Ditto.
3934 * scripttempl/elfm68hc11.sc: Ditto.
3935 * scripttempl/elfm68hc12.sc: Ditto.
3936 * scripttempl/elfi386beos.sc: Ditto.
3937 * scripttempl/v850.sc: Ditto.
50bbae35 3938
ac48eca1
AO
39392000-08-31 Alexandre Oliva <aoliva@redhat.com>
3940
3941 * acinclude.m4: Include libtool and gettext macros from the
3942 top level.
3943 * aclocal.m4, configure: Rebuilt.
3944
c13b1b77
NC
39452000-08-25 Nick Clifton <nickc@redhat.com>
3946
3947 * ldlang.c (open_output): When choosing the target for a
3948 particular endianness, do nothing if the target is not
3949 supported.
3950
dcb0bd0e
L
39512000-08-25 H.J. Lu <hjl@gnu.org>
3952
3953 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3954 check -rpath nor LD_RUN_PATH for cross link.
3955 * ld.texinfo: Document the change.
3956
5bcac8a4
HPN
39572000-08-24 Hans-Peter Nilsson <hp@axis.com>
3958
3959 * NEWS: Mention support for CRIS.
3960
6dd8c765
L
39612000-08-23 H.J. Lu <hjl@gnu.org>
3962
3963 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3964 the current runpath list from bfd_elf_get_runpath_list ()
3965 before search.
3966
ec4eb78a
L
39672000-08-22 H.J. Lu <hjl@gnu.org>
3968
3969 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3970 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3971 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3972 trace_file_tries is non-zero.
3973 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3974 if trace_file_tries is non-zero.
3975
3976 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 3977 * NEWS: Mention it.
ec4eb78a 3978
22b36938
JE
39792000-08-14 Jason Eckhardt <jle@cygnus.com>
3980
3981 * NEWS: Mention i860 support.
3982
d73e9da0
AS
39832000-08-14 Andreas Schwab <schwab@suse.de>
3984
3985 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 3986 syntax.
d73e9da0 3987
9ac4db9c
GK
39882000-08-10 Geoff Keating <geoffk@cygnus.com>
3989
3990 * scripttempl/elf.sc: Add a comment giving the correspondence
3991 between sections, per-datum sections, and linkonce sections. Make
3992 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3993 .sbss2.
3994
165589e4
JE
39952000-08-10 Jason Eckhardt <jle@cygnus.com>
3996
3997 * emulparams/elf32_i860.sh: New file.
3998 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3999 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4000 (eelf32_i860.c): New rule.
4001 * Makefile.in: Regenerate.
4002
345a835d
NC
40032000-08-10 Nick Clifton <nickc@cygnus.com>
4004
4005 * emulparams/mipspe.sh (ENTRY): Add definition.
4006
e374f1d9
NC
40072000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4008
4009 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4010 in error message.
4011
236d5abf
NC
40122000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4013
4014 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4015 the final size of .bss section.
4016 * scripttempl/elfm68hc12.sc: Likewise.
4017
4b209b22
AM
40182000-08-04 Alan Modra <alan@linuxcare.com.au>
4019
4020 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4021 gld${EMULATION_NAME}_parse_args for consistency. Combine
4022 lastoptind and prevoptind vars, and keep track of last optind.
4023 (gld_${EMULATION_NAME}_list_options): Rename to
4024 gld${EMULATION_NAME}_list_options.
4025
28423a68
AM
40262000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4027
4028 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4029 (i586-sco-sysv5uw7.1.0).
4030
b2009ff7
L
40312000-07-27 H.J. Lu <hjl@gnu.org>
4032
4033 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4034 (PARSE_AND_LIST_PROLOGUE): New.
4035 (PARSE_AND_LIST_LONGOPTS): Likewise.
4036 (PARSE_AND_LIST_OPTIONS): Likewise.
4037 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4038 (PARSE_AND_LIST_EPILOGUE): Likewise.
4039
04925e1e
AM
40402000-07-28 Alan Modra <alan@linuxcare.com.au>
4041
41392f03
AM
4042 * emultempl/armelf.em: Elide functions common to elf32.em,
4043 ie. most of the file.
4044 (arm_elf_after_open): New. Do arm specific things then call
4045 gld${EMULATION_NAME}_after_open.
4046 (arm_elf_before_allocation): New. Call
4047 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4048 (PARSE_AND_LIST_PROLOGUE): Define.
4049 (PARSE_AND_LIST_SHORTOPTS): Define.
4050 (PARSE_AND_LIST_LONGOPTS): Define.
4051 (PARSE_AND_LIST_OPTIONS): Define.
4052 (PARSE_AND_LIST_ARGS_CASES): Define.
4053 (LDEMUL_AFTER_OPEN): Define.
4054 (LDEMUL_BEFORE_ALLOCATION): Define.
4055 (LDEMUL_BEFORE_PARSE): Define.
4056 (LDEMUL_FINISH): Define.
4057
4058 * emultempl/hppaelf.em: Similarly zap most of this file.
4059 (hppaelf_add_stub_section): Prototype.
4060 (hppaelf_layaout_sections_again): Prototype.
4061 (hook_in_stub): Prototype.
4062 (LDEMUL_SET_OUTPUT_ARCH): Define.
4063 (LDEMUL_FINISH): Define.
4064 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4065
4066 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4067 (EXTRA_EM_FILE): New.
4068 * emulparams/armelf_linux.sh: Likewise.
4069 * emulparams/armelf_linux26.sh: Likewise.
4070 * emulparams/hppalinux.sh: Likewise.
4071 * emulparams/hppaelf.sh: Likewise.
4072 (NOP): Define.
4073
4074 * emultempl/elf32.em: Fix formatting.
4075 (EXTRA_EM_FILE): Source it.
4076 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4077 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4078 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4079 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4080 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4081 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4082 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4083 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4084 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4085 allow functions in this file to be overridden.
4086 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4087
4088 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4089
04925e1e
AM
4090 * emultempl/elf32.em: Reorganize file.
4091
88cdf297
NC
40922000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4093
4094 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4095 specific option to fit 64-bit executable in the lower
4096 31-bit address range. This is done by changing start
4097 address of .interp (the very first section of executable)
4098 and then setting EF_ALPHA_32BIT elf header flag.
4099
20bccb34
NC
41002000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4101
4102 * emultempl/m68kcoff.em: New file.
4103 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4104 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4105 generic.em.
4106 * Makefile.in: Regenerate.
4107
699845ef
L
41082000-07-20 H.J. Lu <hjl@gnu.org>
4109
4110 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4111 and "disable-new-dtags" to stop getopt from treating -d/-e as
4112 abbreviations for these options.
4113
6c1439be
L
41142000-07-20 H.J. Lu <hjl@gnu.org>
4115
4116 * ld.texinfo: Add documentation for --disable-new-dtags and
4117 --enable-new-dtags.
4118
4119 * ldmain.c (main): Initialize link_info.new_dtags to false.
4120
4121 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4122 --disable-new-dtags and --enable-new-dtags.
4123 (gld_${EMULATION_NAME}_list_options): Likewise.
4124
28c309a2
NC
41252000-07-05 Kenneth Block <krblock@computer.org>
4126
a2b64bed
NC
4127 * lexsup.c: Add optional style to demangle switch
4128 * ld.texinfo: Document optional style to demangle switch.
50bbae35 4129
9d06555c
HPN
41302000-07-20 Hans-Peter Nilsson <hp@axis.com>
4131
4132 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4133 ecrislinux.o.
4134 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4135 Regenerate dependencies.
4136 * Makefile.in: Rebuild.
4137 * configure.tgt (cris-*-*): New target.
4138 * emulparams/crisaout.sh, emulparams/criself.sh,
4139 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4140 * po/POTFILES.in, po/ld.pot: Regenerate.
4141
19e3be22
L
41422000-07-20 H.J. Lu <hjl@gnu.org>
4143
4144 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4145 Print out ignored -z options.
4146
e0ee487b
L
41472000-07-19 H.J. Lu <hjl@gnu.org>
4148
19e3be22
L
4149 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4150 (PARSE_AND_LIST_PROLOGUE): New.
4151 (PARSE_AND_LIST_LONGOPTS): Likewise.
4152 (PARSE_AND_LIST_OPTIONS): Likewise.
4153 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4154
4155 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4156
4157 * lexsup.c (ld_options): Comment out 'z'.
4158 (parse_args): Likewise.
4159
4160 * emultempl/elf32.em: Include "elf/common.h".
4161 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4162 options.
4163 (gld_${EMULATION_NAME}_list_options): Likewise.
4164
4165 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 4166
49e56c49
L
41672000-07-19 H.J. Lu <hjl@gnu.org>
4168
4169 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4170 bfd_elf_set_dt_needed_soname ().
4171
9d68bc82
DD
41722000-07-18 DJ Delorie <dj@cygnus.com>
4173
4174 * pe-dll.c (pe_dll_id_target): check object target name also
4175
53db15ed
HPN
41762000-07-18 Hans-Peter Nilsson <hp@axis.com>
4177
4178 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4179 ${INIT_END} if relocating.
4180 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4181
0ad8cf4c
DD
41822000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4183
a2b64bed 4184 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
4185 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4186 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4187 errors introduced by the old dynamic lib search order.
4188
874c8c99
DD
41892000-07-17 DJ Delorie <dj@cygnus.com>
4190
4191 * pe-dll.c (process_def_file): auto-export data items also
4192 (pe_process_import_defs): also see if _imp_ form needed
4193
5b4cf3f4
DD
41942000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4195
4196 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4197 for dll import libraries
4198
062739d1
NC
41992000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4200
4201 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 4202 gcc 2.95.2 and later.
062739d1 4203
1c64c4ed
NC
42042000-07-11 Kazu Hirata <kazu@hxi.com>
4205
50bbae35
AM
4206 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4207 message.
1c64c4ed 4208
b71e2778
AM
42092000-07-10 Alan Modra <alan@linuxcare.com.au>
4210
4211 * ldemul.h (struct lang_input_statement_struct): Remove forward
4212 declaration.
4213 (struct search_dirs): Likewise.
4214 * ldfile.h (struct lang_input_statement_struct): Likewise.
4215 Protect file from multiple inclusion.
4216 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4217 declaration from macro to file scope.
4218
4219 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4220 * ldgram.y: Likewise here.
4221 * ldlang.c: And here.
4222 * ldmain.c: And here.
4223 * mpw-elfmips.c: And here.
4224 * mpw-eppcmac.c: And here.
4225 * emultempl/aix.em: And here.
4226 * emultempl/armcoff.em: And here.
4227 * emultempl/armelf.em: And here.
4228 * emultempl/armelf_oabi.em: And here.
4229 * emultempl/beos.em: And here.
4230 * emultempl/elf32.em: And here.
4231 * emultempl/hppaelf.em: And here.
4232 * emultempl/linux.em: And here.
4233 * emultempl/lnk960.em: And here.
4234 * emultempl/pe.em: And here.
4235 * emultempl/sunos.em: And here.
4236 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4237 * mpw-idtmips.c: Ditto.
4238 * emultempl/generic.em: Ditto.
4239 * emultempl/gld960.em: Ditto.
4240 * emultempl/gld960c.em: Ditto.
4241 * emultempl/mipsecoff.em: Ditto.
4242 * emultempl/ticoff.em: Ditto.
4243 * emultempl/vanilla.em: Ditto.
4244
4245 * pe-dll.c: Include ldfile.h
4246 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4247
4248 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4249 arguments to bfd_elf32_size_dynamic_sections call.
4250 (gldelf32ebmip_place_orphan): Add missing arguments to
4251 lang_leave_output_section_statement call.
4252
2ef53d66
L
42532000-07-10 H.J. Lu <hjl@gnu.org>
4254
4255 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4256 DLL_SUPPORT.
4257 (strhash): Likewise.
4258 (compute_dll_image_base): Likewise.
4259 (pe_undef_found_sym): Likewise.
4260 (pe_undef_cdecl_match): Likewise.
4261 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4262 argument "arch" with ATTRIBUTE_UNUSED.
4263
9a8cbb09
AM
42642000-07-10 Alan Modra <alan@linuxcare.com.au>
4265
4266 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4267
4268 From Ryan Bradetich <rbradetich@uswest.net>
4269 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 4270
4900fc06
AM
42712000-07-09 Alan Modra <alan@linuxcare.com.au>
4272
4273 Changes to create multiple linker stubs, positioned immediately
4274 before the section where they are required.
4275 * emultempl/hppaelf.em: Include elf32-hppa.h.
4276 (stub_sec, file_chain): Delete.
4277 (hppaelf_create_output_section_statements): Don't make a stub
4278 section here.
4279 (hook_stub_info): New struct.
4280 (hook_in_stub): New function.
4281 (hppaelf_add_stub_section): New function.
4282 (hppaelf_finish): Do nothing for relocateable links. Modify the
4283 call to elf32_hppa_size_stubs. Move code for updating section
4284 layout from here...
4285 (hppaelf_layaout_sections_again): ..to here, a new function.
4286
4287 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4288 broken list handling. Pass in a pointer to the list.
4289 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4290 for above changes.
4291 (hppaelf_before_parse): Prototype.
4292 (hppaelf_set_output_arch): Prototype.
4293 (hppaelf_create_output_section_statements): Prototype.
4294 (hppaelf_delete_padding_statements): Prototype.
4295 (hppaelf_finish): Prototype.
4296
4297 Merge from elf32.em
4298 * emultempl/hppaelf.em: Include ctype.h.
4299 (struct orphan_save): New.
4300 (gld${EMULATION_NAME}_place_orphan): New.
4301 (output_rel_find): New.
4302 (hppaelf_get_script): Update from elf32.em.
4303 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4304 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 4305 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
4306
4307 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4308 ehppalinux.o, sort it. Regenerate dependencies.
4309 (ehppalinux.c): Depend on hppaelf.em
4310 * Makefile.in: Regenerate.
4311
4312 * configure.tgt: targ_emul=hppalinux for hppa*linux
4313
4314 * emulparams/hppalinux.sh: New.
4315 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4316
227aeb07
AM
43172000-07-08 Alan Modra <alan@linuxcare.com.au>
4318
4319 * lexsup.c (parse_args): Copy section name.
4320
28609fd4 43212000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 4322
2ef53d66 4323 * emultempl/pe.em: institute the following search order for
602e90d3
DD
4324 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4325 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4326 static lib (libfoo.a) if none of the above are found.
4327
5f577f7d
DD
43282000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4329
50bbae35 4330 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 4331 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 4332 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
4333 (gld_${EMULATION_NAME}_parse): Handle.
4334 (strhash): New static function.
50bbae35 4335 (compute_dll_image_base): New static function.
5f577f7d
DD
4336 (gld_${EMULATION_NAME}_set_symbols): Use.
4337
9a8cbb09 43382000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
4339
4340 * MAINTAINERS: new
4341
3548145d 43422000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
4343
4344 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4345 * emulparams/elf32btsmip.sh: New file.
4346 * Makefile.am: Add traditional mips target.
4347 * Makefile.in: Rebuild.
4348
67798033
L
43492000-07-01 H.J. Lu <hjl@gnu.org>
4350
4351 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4352 automake to use YLWRAP.
4353 * Makefile.in: Rebuild.
4354
0bdaf48b
AM
43552000-07-01 Alan Modra <alan@linuxcare.com.au>
4356
4357 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4358 (CLEANFILES): Add DEPA.
4359 * Makefile.in: Regenerate.
4360
c9e769c2
TW
43612000-06-30 Timothy Wall <twall@ppc>
4362
4363 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4364 the page in the upper octet of the address.
4365
65aa24b6
NC
43662000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4367
4368 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4369
4667035e
AM
43702000-06-24 Alan Modra <alan@linuxcare.com.au>
4371
4372 * NEWS: arm-elf does --gc-sections too.
4373
1581f8c9
AM
43742000-06-22 Alan Modra <alan@linuxcare.com.au>
4375
4376 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4377 find one.
4378 * Makefile.in: Regenerate.
4379
01580992
L
43802000-06-21 H.J. Lu <hjl@gnu.org>
4381
4382 * Makefile.am: Rebuild dependency.
4383 * Makefile.in: Rebuild.
4384
bbeb2e03
L
43852000-06-20 H.J. Lu <hjl@gnu.org>
4386
4387 * Makefile.am: Rebuild dependency.
4388 * Makefile.in: Rebuild.
4389
74459f0e
TW
43902000-06-20 Timothy Wall <twall@cygnus.com>
4391
4392 * scripttempl/tic54xcoff.sc: New.
4393 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4394 * gen-doc.texi: Add flag for TI COFF.
4395 * ld.texinfo: Add documentation for TI COFF handling switches.
4396 * emultempl/ticoff.em: New. TI COFF handling.
4397 * configure.tgt: Add tic54x target.
4398 * Makefile.am: Add tic54x target.
4399 * Makefile.in: Ditto.
4400
2ab47eed
AM
44012000-06-20 Alan Modra <alan@linuxcare.com.au>
4402
4403 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4404 checking for backslashes.
4405
919e4093
AM
44062000-06-19 Alan Modra <alan@linuxcare.com.au>
4407
4408 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4409
987fd5b4
AM
44102000-06-18 Alan Modra <alan@linuxcare.com.au>
4411
4412 * NEWS: Update list of targets supporting --gc-sections.
4413
4414 * scripttempl/elf.sc: KEEP .eh_frame contents.
4415 * scripttempl/elfd30v.sc: Same here.
4416
60bcf0fa
NC
44172000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4418
4419 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4420 and m68hc11 (elf).
4421 * Makefile.in: Rebuild.
4422 * configure.tgt: Recognize m68hc12 and m68hc11.
4423 * scripttempl/elfm68hc12.sc: New file.
4424 * emulparams/m68hc12elfb: New emulation.
4425 * emulparams/m68hc12elf: New emulation.
4426 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4427 (includes a memory.x script to define the ROM and RAM banks).
4428 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4429 New configuration files for support of Motorola 68hc11
4430
c7c54483
AM
44312000-06-15 Alan Modra <alan@linuxcare.com.au>
4432
4433 * ldmain.c (main): Only change SEC_READONLY for final link.
4434
bcef29e6
L
44352000-06-13 H.J. Lu <hjl@gnu.org>
4436
4437 * configure: Regenerate.
4438
946efd95
DB
44392000-06-08 David O'Brien <obrien@FreeBSD.org>
4440
4441 * configure.in (VERSION): Update to show this is the CVS mainline.
4442
57a6fd07
DB
44432000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4444
4445 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4446 input objects to be ECOFF.
4447 (check_sections): einfo takes %B, not %P, to print a BFD name.
4448
e06cae36
L
44492000-06-05 Michael Matz <matz@ifh.de>
4450
4451 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 4452 version scripts.
e06cae36 4453
d952f17a 4454 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 4455
2f0b56c0
DC
44562000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4457
4458 * emulparams/avr1200.sh (STACK): Define as 0.
4459 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4460 * emulparams/avr4433.sh (STACK): Likewise.
4461 * emulparams/avr44x4.sh (STACK): Likewise.
4462 * emulparams/avr85xx.sh (STACK): Likewise.
4463 * emulparams/avrmega103.sh (STACK): Likewise.
4464 * emulparams/avrmega161.sh (STACK): Likewise.
4465 * emulparams/avrmega603.sh (STACK): Likewise.
4466 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4467 (__stack): Define from ${STACK} for main().
4468
2114f57b
AM
44692000-05-26 Alan Modra <alan@linuxcare.com.au>
4470
4471 * Makefile.am: Update dependencies with "make dep-am"
4472 * Makefile.in: Regenerate.
4473
5af11cab
AM
44742000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4475
4476 * ldmain.c: Include filenames.h.
4477 (set_scripts_dir): Support backslashes in program name.
4478
1f0df59a
NC
44792000-05-22 Igor Shevlyakov <igor@windriver.com>
4480
4481 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
4482 read-only, don't forget to reset SEC_READONLY because it
4483 could be already set.
1f0df59a 4484
176355da
NC
44852000-05-22 Thomas de Lellis <tdel@windriver.com>
4486
50bbae35
AM
4487 * ld.1: Add documentation for new command line option:
4488 --section-start <sectionname>=<sectionorg>
4489 This is a generic version of -Ttext etc. which accepts
4490 any section name as a parameter instead of just text/data/
4491 bss.
4492 * ld.texinfo: More docs.
4493 * NEWS: More docs.
4494 * lexsup.c: (parse_args): Recognize new command line option.
176355da 4495 (ld_options): Add new option.
50bbae35 4496
8c5ff972
L
44972000-05-18 H.J. Lu <hjl@gnu.org>
4498
4499 * lexsup.c (parse_args): `i' == `r', not `q'.
4500
3b16e843 45012000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
4502
4503 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4504
a712da20
NC
45052000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4506 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 4507
a712da20
NC
4508 Add support for '-q' == '--emit-relocs' switch.
4509 * ldmain.c (main): Default to false.
4510 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4511 * NEWS: Describe the emitrelocations switch.
4512 * ld.texinfo: Describe the emitrelocations switch.
4513
690a460e
NC
45142000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4515
a2b64bed 4516 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
4517 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4518 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4519 link options.
50bbae35 4520
c2f1343c
AM
45212000-05-15 David O'Brien <obrien@FreeBSD.org>
4522
4523 * lexsup.c (parse_args): Update the year in the copyright notice.
4524
897083bd
AM
45252000-05-13 Alan Modra <alan@linuxcare.com.au>
4526
4527 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4528 Replace defines with those from intl/libgettext.h to quieten gcc
4529 warnings.
4530
cd4c806a
L
45312000-05-10 H.J. Lu <hjl@gnu.org>
4532
4533 * ldlang.c (open_input_bfds): Don't load the same file within
4534 a group again if the whole archive has been loaded already.
4535
93697284
AM
45362000-05-03 Alan Modra <alan@linuxcare.com.au>
4537
4538 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4539 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4540 strtoul.
4541
3b16e843 45422000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 4543
99a4150f 4544 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 4545
ebd6fc29
JW
4546 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4547 host "ia64-*-linux-gnu*".
4548
a1934524
AM
45492000-04-29 Andreas Jaeger <aj@suse.de>
4550
4551 * ld.h: Correctly check GCC version.
4552
3b16e843 45532000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
4554
4555 * Makefile.am: Add PA64 support. Add missing dependencies for
4556 PA32 elf support.
4557 * Makefile.in: Rebuilt.
4558 * configure.tgt: Add PA64 support (currently disabled).
4559
aea4bd9d
AM
45602000-04-25 Alan Modra <alan@linuxcare.com.au>
4561
4562 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4563 (output_rel_find): New function.
4564 (hold_section, hold_use): Delete.
4565 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4566 hold_interp): Make local to place_orphan.
4567 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4568 rather than place_section to find possible previous use of orphan.
4569 Similarly find the place-holder output sections. Use returned
4570 value from lang_enter_output_section_statement rather than calling
4571 lang_output_section_statement_lookup.
4572 * emultempl/armelf.em: Same here.
4573 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4574
4575 * ldlang.c (lang_enter_output_section_statement): Return output
4576 section statement.
4577 * ldlang.h (lang_enter_output_section_statement): Change
4578 declaration too.
4579
4580 * ldlang.h (lang_output_section_statement): Export it.
4581 * ldlang.c (lang_output_section_statement): Ditto.
4582
2b5fc1f5
NC
45832000-04-24 Nick Clifton <nickc@cygnus.com>
4584
4585 * ld.texinfo (Output Section Data): Add note that section data
4586 commands cannot appear outside of section directives.
4587
d8475ff6
JL
45882000-04-2 Matthew Green <mrg@cygnus.com>
4589
4590 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4591
3b16e843
NC
45922000-04-21 Richard Henderson <rth@cygnus.com>
4593 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
4594
4595 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4596 (eelf64_ia64.c): New rule.
4597 * Makefile.in: Rebuild.
4598 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4599 * emulparams/elf64_ia64.sh: New file.
50bbae35 4600
c9637625
RH
46012000-04-21 Richard Henderson <rth@cygnus.com>
4602
4603 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4604
28ea9521
AM
46052000-04-19 Alan Modra <alan@linuxcare.com.au>
4606
4607 * dep-in.sed: Match space at start of file name, not at end.
4608
20d04697
L
46092000-04-18 H.J. Lu <hjl@gnu.org>
4610
4611 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4612 lang_leave_output_section_statement () after calling
4613 lang_enter_output_section_statement ().
4614 * emultempl/armelf.em: Likewise.
4615
5ba47421
AM
46162000-04-18 Alan Modra <alan@linuxcare.com.au>
4617
4618 * emultempl/elf32.em (struct orphan_save): Add section field.
4619 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4620 better order, and place first orphan section as we did before the
4621 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4622 Don't call make_bfd_section here, let wild_doit do the job for us.
4623 Don't build a statement list when we'll only throw it away.
4624 * emultempl/armelf.em: Ditto.
4625 * emultempl/pe.em: Similarly.
4626
bdbe5705
GK
46272000-04-14 Geoff Keating <geoffk@cygnus.com>
4628
4629 * scripttempl/elfppc.sc: Remove.
4630 * emulparams/elf32ppc.sh: Use elf.sc.
4631 * emulparams/elf32lppc.sh: Use elf.sc.
4632 * emulparams/elf32ppclinux.sh: Use elf.sc.
4633 * emulparams/elf32ppcsim.sh: New file.
4634 * emulparams/elf32lppcsim.sh: New file.
4635 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4636 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4637 * Makefile.in: Regenerate.
4638 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4639
01cc8ff8
AM
46402000-04-14 Alan Modra <alan@linuxcare.com.au>
4641
5ba47421 4642 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 4643 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
4644 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4645 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
4646 Also set all relocateable section start addresses.
4647
6c86c541
GK
46482000-04-13 Geoff Keating <geoffk@cygnus.com>
4649
4650 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4651 Add new BSS_PLT variable for when .plt need not be contained in
4652 the file. Move _etext so that it is also after .fini, and provide
4653 both etext and _etext with a leading underscore. Mark the start
4654 and end of .sbss.
4655
6a345e87
AM
46562000-04-12 Alan Modra <alan@linuxcare.com.au>
4657
4658 * emultempl/elf32.em (struct orphan_save): New.
4659 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4660 hold_interp): Make them struct orphan_save.
4661 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4662 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4663 the end of the relevant section list. Also add associated section
4664 statements to the end of any previous orphan statements.
4665 * emultempl/armelf.em: Similarly.
4666 * emultempl/pe.em: Similarly.
4667
8be86746
AM
46682000-04-11 Alan Modra <alan@linuxcare.com.au>
4669
4670 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4671
3b16e843 46722000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 4673
a2d91340 4674 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 4675 --enable-build-warnings option.
a2d91340
AC
4676 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4677 * Makefile.in, configure: Re-generate.
4678
41b49281
AM
46792000-04-04 Alan Modra <alan@linuxcare.com.au>
4680
8ad3436c
AM
4681 * po/ld.pot: Regenerate.
4682
4683 * lexsup.c (help): Restore translated part of bug string.
4684
41b49281
AM
4685 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4686 (DEP): Quote when passing vars to sub-make. Add warning message
4687 to end.
4688 (DEP1): Rewrite for "gcc -MM".
4689 (CLEANFILES): Add DEP2.
4690 Update dependencies.
4691 * Makefile.in: Regenerate.
4692
c20f4f8c
AM
46932000-04-03 Alan Modra <alan@linuxcare.com.au>
4694
4695 * ld.h: #include "bin-bugs.h"
4696 * lexsup.c (help): Use REPORT_BUGS_TO.
4697
adde6300
AM
46982000-03-27 Denis Chertykov <denisc@overta.ru>
4699
4700 * configure.tgt (avr-*-*): New target support.
4701 * Makefile.am: Likewise.
4702 * scripttempl/elf32avr.sc: New script file.
4703 * emulparams/avr1200.sh: New file.
4704 * emulparams/avr23xx.sh: New file.
4705 * emulparams/avr4433.sh New file.
4706 * emulparams/avr44x4.sh New file.
4707 * emulparams/avr85xx.sh New file.
4708 * emulparams/avrmega103.sh New file.
4709 * emulparams/avrmega161.sh New file.
4710 * emulparams/avrmega603.sh New file.
4711 * Makefile.in: Regenerate.
4712
9282ff41
L
47132000-03-09 Andreas Jaeger <aj@suse.de>
4714
4715 * Makefile.am (check-DEJAGNU): Also unset LANG.
4716 * Makefile.in: Rebuild.
4717
a9998805
ILT
47182000-03-06 Ian Lance Taylor <ian@zembu.com>
4719
4720 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4721 archive.
4722
f9bc20e7
NC
47232000-03-02 H.J. Lu <hjl@gnu.org>
4724
4725 * emulparams/elf32mcore.sh: Include "getopt.h".
4726
4e277b38
ILT
47272000-03-01 Ian Lance Taylor <ian@zembu.com>
4728
4729 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4730
f0c87f88
NC
47312000-03-01 H.J. Lu <hjl@gnu.org>
4732
4733 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4734 * emulparams/shpe.sh: Likewise.
4735
47362000-03-01 Nick Clifton <nickc@cygnus.com>
4737
4738 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4739 to unused parameters.
4740
4741 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4742 functions only used by DLL code.
4743 (_place_orphan): Initialise 'dollar'.
4744
b6f29aaa
L
47452000-03-01 H.J. Lu <hjl@gnu.org>
4746
4747 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4748 indicate if the undefined symbol is a fatal error or not.
4749 Don't delete the output file if "fatal" is false.
4750
af28fce3
L
47512000-02-29 H.J. Lu <hjl@gnu.org>
4752
50bbae35 4753 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
4754 Set LC_COLLATE and LC_ALL to null and export them. It is for
4755 sort which expects the C locale.
4756 Add $(LIBS) to all $(HOSTING_LIBS).
4757 * Makefile.in: Rebuild.
4758
40d109bf
AM
47592000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4760
4761 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4762 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4763 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4764 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4765 find_potential_libraries.
4766
db5be682
JB
47672000-02-28 Jim Blandy <jimb@redhat.com>
4768
4769 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 4770 list entries; the lexer considers commas to be valid part of a
db5be682
JB
4771 filename, so in something like `foo, bar' the comma is considered
4772 part of the first filename, `foo,'.
4773 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4774
3558ff4c
ILT
47752000-02-27 Loren J. Rittle <ljrittle@acm.org>
4776
4777 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4778 host "i[3456]86-*-freebsdelf*".
4779
4eee2681
ILT
47802000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4781
4782 * scripttempl/i386go32.sc: Move misplaced semicolons.
4783
8d75d12d
ILT
47842000-02-25 Ian Lance Taylor <ian@zembu.com>
4785
4786 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4787 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4788 (eelf64hppa.c, ehppaelf.c): Remove targets.
4789 * Makefile.in: Rebuild.
4790
a1836d49
AO
47912000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4792
ad51fb57
AO
4793 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4794 GNU/Linux/sparc, but keep the default as 32.
4795
a1836d49
AO
4796 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4797 it default if sparcv9 or sparc64.
4798
344a211f
NC
47992000-02-24 Nick Clifton <nickc@cygnus.com>
4800
4801 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4802 * Makefile.in: Regenerate.
4803 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4804
4805 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4806 find_potential_libraries.
4807 * ldemul.c (ldemul_find_potential_libraries): New function.
4808
4809 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 4810 exported.
344a211f
NC
4811 (ldfile_open_file): Call ldemul_find_potential_libraries.
4812 * ldfile.h: Add prototype for ldfile_open_file_search.
4813
4814 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4815
4816 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4817 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4818
4819 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4820 (gld_X_find_potential_libraries): New function. Search for
4821 libraries called "*.lib".
4822
a2b64bed 4823 * scripttempl/pe.sc: Add .pdata section.
344a211f 4824
eaba1dd3
RH
48252000-02-23 Richard Henderson <rth@cygnus.com>
4826
4827 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4828 Add and use memory regions.
4829
5b93d8bb
AM
48302000-02-23 Linas Vepstas (linas@linas.org)
4831
4832 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4833
4834 * Makefile.am: Add support for Linux/IBM 370.
4835 * configure.tgt: Likewise.
4836
4837 * Makefile.in: Regenerate.
4838
f6af82bd
AM
48392000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4840
4841 * ldlang.c (print_input_section, print_data_statement,
4842 print_reloc_statement, print_padding_statement, insert_pad,
4843 size_input_section, lang_check_section_addresses,
4844 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 4845 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
4846 (lang_do_assignments): Also change `size' to unsigned.
4847
9e673ad1
RH
48482000-02-16 Richard Henderson <rth@cygnus.com>
4849
4850 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4851
562d3460
TW
48522000-02-16 Timothy Wall <twall@cygnus.com>
4853
4854 * mri.c (mri_draw_tree): Add default LMA region argument to call
4855 to lang_leave_output_section_statement.
4856 * ldlang.h: Update prototypes with LMA region arguments.
4857 * ldlang.c (lang_size_sections): Encapsulate region bounds
4858 checking in os_check_region call.
4859 (os_check_region): New function.
4860 (lang_output_section_statement_lookup): Initialize lma_region.
4861 (lang_leave_output_section_statement): Add LMA region argument.
4862 (lang_leave_overlay): Ditto.
4863 * ldgram.y: Handle LMA region syntax.
4864 * ld.texinfo (Output Section Description): Describe LMA region usage.
4865 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 4866 lma region in call to lang_leave_output_section_statement.
562d3460 4867 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 4868 lma region in call to lang_leave_output_section_statement.
562d3460 4869 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 4870 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
4871
4872
9e4ed18c
TW
48732000-02-04 Timothy Wall <twall@redhat.com>
4874
4875 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4876 octets when calculating section end addresses.
4877
32edc927
TW
48782000-02-04 Timothy Wall <twall@redhat.com>
4879
4880 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4881
4cbfc3ac
TW
48822000-02-03 Timothy Wall <twall@redhat.com>
4883
a2b64bed 4884 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 4885 octet count.
a2b64bed 4886 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
4887 print_reloc_statement, print_padding_statement): Print target
4888 address values and section sizes as bytes, not octets.
4889 (insert_pad) Calculate padding size in octets, and adjust "dot"
4890 by bytes.
4891 (size_input_section) Always adjust "dot" by bytes, not octets.
4892 (lang_check_section_addresses, lang_do_assignments) Adjust
4893 "dot" by bytes, not octets. Use the larger of the directive size
4894 or octets_per_byte for the number of octets actually allocated in
4895 the output section.
4896 (lang_set_startof) Make sure STARTOF returns a target address.
4897 (lang_one_common) Record size changes in octets.
4898 (lang_abs_symbol_at_end_of) Section end symbol's value is
4899 recorded in target bytes.
68b2fc7a 4900 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4cbfc3ac 4901 to be clear about behavior when an octet is smaller than one byte.
50bbae35 4902
305c7206
AM
49032000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4904
4905 * ldcref.c (output_cref): Don't pass message strings to printf
4906 as format arg.
4907 Update copyright.
4908
4909 * ldmisc.c (vfinfo): Same here.
4910 Update copyright.
4911
e1c47aa4
AM
49122000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4913
4914 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4915 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4916 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4917 Add missing NULL initialisers, and comments.
4918
4919 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4920
13392b77
NC
49212000-01-21 Nick Clifton <nickc@cygnus.com>
4922
4923 * ldlang.c (lang_size_sections): Fix typo in comment.
4924
cce4c4c5
NC
49252000-01-18 H.J. Lu <hjl@gnu.org>
4926
4927 * ldlang.c (lang_size_sections): Also update the current
4928 address of a region if the SEC_NEVER_LOAD bit is not set.
4929
0decc840
NC
49302000-01-10 Philip Blundell <pb@futuretv.com>
4931
4932 * configure.tgt (arm*-*-conix*): New target.
4933
4e53152f
NC
49342000-01-07 Nick Clifton <nickc@cygnus.com>
4935
4936 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
4937 line switches with -Wl, (or whatever is appropriate) if it is
4938 being invoked by a comnpiler driver program.
50bbae35 4939 Fix description of the behaviour of the -n command line switch.
4e53152f 4940
3b16e843 49412000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
4942
4943 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4944 (name_list): New.
4945 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4946 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4947 (exclude_name_list): New.
4948 ldlang.c (walk_wild_section): Support list of excluded files.
4949 (print_wild_statement): Likewise.
4950 (lang_add_wild): Likewise.
4951 * ldlang.h (lang_wild_statement_type): Likewise.
4952 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 4953
5aaace27
NC
49542000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4955
870df5dc
NC
4956 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4957 (process_def_file): Use.
4958 (pe_dll_compat_implib): New variable.
4959 (make_one): Use.
50bbae35 4960
870df5dc
NC
4961 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4962 pe_dll_compat_implib.
50bbae35
AM
4963
4964 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
4965 compat-implib options.
4966 (gld_${EMULATION_NAME}_list_options): List new options.
4967 (gld_${EMULATION_NAME}_parse_args): Handle.
4968
50bbae35 4969 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 4970 dll.
50bbae35
AM
4971
4972 * deffilep.y (opt_name): Allow "." in name.
5aaace27 4973
2f6d2f85 4974For older changes see ChangeLog-9899
252b5132
RH
4975\f
4976Local Variables:
4977mode: change-log
4978left-margin: 8
4979fill-column: 74
4980version-control: never
4981End:
This page took 0.399728 seconds and 4 git commands to generate.