2002-11-19 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
48c5eb8a
SS
12002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2
3 * testsuite/ld-scripts/script.exp: Setup for tic4x testcase
4
2fa9fc65
NC
52002-11-14 Egor Duda <deo@logos-m.ru>
6
7 * ldmain.c (main): Make runtime relocs disabled by default. Remove
8 assignment which has no effect.
9 * pe-dll.h (pe_create_import_fixup): Change prototype.
10 * pe-dll.c (make_runtime_pseudo_reloc): New function.
11 (pe_create_runtime_relocator_reference): Ditto.
12 (pe_create_import_fixup): Handle relocations with non-zero addends.
13 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
14 --disable-runtime-pseudo-reloc.
15 (make_import_fixup): Handle relocations with non-zero addends. Create
16 an external reference to _pei386_runtime_relocator symbol if at least
17 one pseudo reloc was created.
18 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
19 --disable-runtime-pseudo-reloc options.
20
c4c41219
AM
212002-11-12 Earl Chew <earl_chew@agilent.com>
22
23 * ldlang.c (lang_add_section): Discard debugging sections that have
24 been marked SEC_EXCLUDE.
25
cd24c222
NC
262002-11-12 Nick Clifton <nickc@redhat.com>
27
28 * configure.in (ALL_LINGUAS): Add da.
29 * configure: Regenerate.
30 * po/da.po: New Danish translation.
31
836c6af1
AM
322002-11-12 Alan Modra <amodra@bigpond.net.au>
33
34 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
35 (LDEMUL_BEFORE_ALLOCATION): Define.
36 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
37 linking.
38 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
39
f8b0dbb8
CF
402002-11-11 Christopher Faylor <cgf@redhat.com>
41
42 * configure.tgt (LIB_PATH): Default to searching w32api directory under
43 cygwin.
44
9e8d33e7
CF
452002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
46
47 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
48 of restricted auto-export libs.
49
75c2ea5b
CF
502002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
51
52 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
53 creative library naming instances like, e.g., libstdc++-2.a.
54
426af4fe
AO
552002-11-06 Alexandre Oliva <aoliva@redhat.com>
56
57 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
58 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
59
c9e38879
NC
602002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
61
62 * deffilep.y (def_lex): Handle '@' as first character of an ID.
63 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
64 (make_one): Don't prefix decorated fastcall symbols with '_'.
65 (pe_process_import_defs): Likewise.
66 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
67 symbols to cdecl names or vise-versa.
68
836c6af1 692002-10-13 Eric Kohl <ekohl@rz-online.de>
c9e38879
NC
70
71 * pe-dll.c (process_def_file): Handle fastcall symbols when
72 generating undecorated aliases. Don't prefix decorated fastcall
73 symbols with '_'.
74 (fill_exported_offsets): Don't prefix decorated fastcall symbols
75 with '_'.
76
df2a7313
DJ
772002-10-29 Daniel Jacobowitz <drow@mvista.com>
78
79 * emultempl/aix.em: Use include <> for generated headers.
80 * emultempl/beos.em: Likewise.
81 * emultempl/elf32.em: Likewise.
82 * emultempl/pe.em: Likewise.
83 * ldctor.c: Likewise.
84 * ldexp.c: Likewise.
85 * ldfile.c: Likewise.
86 * ldlang.c: Likewise.
87 * ldlex.c: Likewise.
88 * ldlex.l: Likewise.
89 * ldmain.c: Likewise.
90 * ldmisc.c: Likewise.
91 * ldwrite.c: Likewise.
92 * lexsup.c: Likewise.
93 * mri.c: Likewise.
94 * pe-dll.c: Likewise.
95
a8927cfd
JJ
962002-10-23 Jakub Jelinek <jakub@redhat.com>
97
98 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
99 sections into .rel{,a}.dyn.
100
63fd3b82
NC
1012002-10-23 Nick Clifton <nickc@redhat.com>
102
103 * lexsup.c (OPTION_NO_OMAGIC): Define.
104 (ld_options): Add "no-omagic" option.
105 (parse_args): Parse --no-omagic.
106 * ld.texinfo: Document --no-omagic.
107 * NEWS: Mention new option.
108
36379167
NC
1092002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
110
111 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
112 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
113
3ffe58d9
AO
1142002-10-22 Alexandre Oliva <aoliva@redhat.com>
115
116 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
117 emulation name. Set LIB_PATH only for native tools, and
118 search the ABI-specific versions of NATIVE_LIB_DIRS before the
119 .../lib variants, not instead of them. Mostly copied from...
120 * emulparams/elf32ppc.sh: ... here. Fixed typo.
121 * emulparams/elf64bmip-defs.sh: Backed out.
122 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
123 * emulparams/elf64btsmip.sh: Likewise.
124 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
125 TEXT_DYNAMIC): Removed.
126
e316b3a0
AO
1272002-10-17 Alexandre Oliva <aoliva@redhat.com>
128
129 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
130 (GENERATE_SHLIB_SCRIPT): Set to yes.
131 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
132 * emulparams/elf32bmipn32.sh: here.
133 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
134 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
135 * emulparams/elf64bmip-defs.sh: New file. Extend
136 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
137 * emulparams/elf64bmip.sh: Bring in definitions from
138 elf64bmip-defs.sh.
139 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
140 settings.
141 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
142 * emulparams/elf64btsmip.sh: Bring in definitions from
143 elf64bmip-defs.sh.
144 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
145 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
146
f52d1d64
JJ
1472002-10-16 Jakub Jelinek <jakub@redhat.com>
148
149 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
150 (s390-*-linux*): Add elf64_s390 emulation if want64.
151 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
152 genscript.sh changes.
153 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
154 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
155
03bdc404
AM
1562002-10-15 Alan Modra <amodra@bigpond.net.au>
157
158 * ldlang.c (load_symbols): Revert last change.
159
c6db2f05
AM
1602002-10-14 Alan Modra <amodra@bigpond.net.au>
161
7c519c12
AM
162 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
163 just_syms_flag.
164 (lang_reasonable_defaults): Don't compare against false.
165 (size_input_section): Likewise.
166 (lang_size_sections_1): Likewise.
167 (lang_do_assignments): Likewise.
168 (lang_add_output): Likewise.
169
c6db2f05
AM
170 * Makefile.am: Run "make dep-am".
171 * Makefile.in: Regenerate.
172 * ldver.c: #include "bfdver.h".
173
e1026ffb
SC
1742002-10-13 Stephane Carrez <stcarrez@nerim.fr>
175
176 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
177 .finiN section.
178 * scripttempl/elfm68hc12.sc: Likewise.
179
2d801b0f
AM
1802002-10-11 Alan Modra <amodra@bigpond.net.au>
181
fe213ce2
AM
182 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
183
2d801b0f
AM
184 * ldgram.y (memory_spec): Provide empty action.
185 (section <NAME>): Likewise.
186
599917b8
JJ
1872002-10-10 Jakub Jelinek <jakub@redhat.com>
188
189 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
190 they have OUTPUT_FORMAT not matching actual output format.
191 * ldlang.c (lang_get_output_target): New function.
192 (open_output): Use it.
193 * ldlang.h (lang_get_output_target): New prototype.
194
24cdb50a
AM
1952002-10-10 Alan Modra <amodra@bigpond.net.au>
196
197 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
198 when orphan is .rel, .rela when orphan is .rela.
199 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
200 first. Remove outsecname var.
201
a2b3c630
SC
2022002-10-09 Richard Shann <richard.shann@superh.com>
203 Stephen Clarke <stephen.clarke@superh.com>
204
205 * Makefile.am: Add eshelf32_linux.o and
206 eshlelf32_linux.o, new emulations for sh64 Linux.
207 * Makefile.in: Regenerate.
208 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
209 * emulparams/shelf32_linux.sh: New file.
210 * emulparams/shlelf32_linux.sh: New file.
7c519c12 211
c04c9586
L
2122002-10-08 H.J. Lu <hjl@gnu.org>
213
214 * ldlang.c (lang_file_exist): Removed.
215 (new_afile): Revert the last change.
216 * ldlang.h (lang_file_exist): Removed.
217 * lexsup.c (parse_args): Revert the last change.
218
39cebe23
NC
2192002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
220
221 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
222 auto-import symbols.
223 (make_one): Create _nm_<symbol> for data only.
224
53b2a62f
NC
2252002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
226
227 * ldlang.c (lang_file_exist): New function.
7c519c12 228 (new_afile): Abort if the filename to be added matches the linker
53b2a62f
NC
229 output filename.
230 * ldlang.h: Add prototype for lang_file_exist.
231 * lexsup.c (parse_args): Abort if the output filename matches
232 one of the input filenames.
233
a86a09cc
AM
2342002-10-02 Alan Modra <amodra@bigpond.net.au>
235
236 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
237
ba493122
AM
2382002-09-30 Alan Modra <amodra@bigpond.net.au>
239
1bf0a4d9
AM
240 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
241 * scripttempl/elfm68hc11.sc: Likewise.
242 * scripttempl/elfm68hc12.sc: Likewise.
243
ba493122
AM
244 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
245 reloc sections just before .rel.plt/.rela.plt.
246 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
247 Only put loadable reloc sections in hold_rel.
248
fdb9132d
L
2492002-09-29 H.J. Lu <hjl@gnu.org>
250
42f98619 251 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
fdb9132d 252
ff326826
DJ
2532002-09-25 Daniel Jacobowitz <drow@mvista.com>
254
255 From "Anita Kulkarni" <AnitaK@kpit.com>
256 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
257 sections.
258
0ae1cf52
AM
2592002-09-25 Alan Modra <amodra@bigpond.net.au>
260
1ddd7b13
AM
261 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
262 TARGET_PAGE_SIZE.
263 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
264 SEGMENT_SIZE alignment.
265 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
266 (SEGMENT_SIZE): Define.
267
0ae1cf52
AM
268 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
269 (fold_binary): Correct abs - non-abs case.
270 (fold_trinary): New. Split out from exp_fold_tree.
271
06143382
AM
2722002-09-24 Alan Modra <amodra@bigpond.net.au>
273
274 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
275 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
276 for start of .data, instead align up to 256M boundary.
277 * scripttempl/aix.sc: Likewise.
278
8e616ecc
DD
2792002-09-22 Mark Elbrecht <snowball3@softhome.net>
280
281 * scripttempl/i386go32.sc: Handle bss unique sections.
282
5cfb2bb2
AM
2832002-09-21 Alan Modra <amodra@bigpond.net.au>
284
285 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
286
dd2e0905
SC
2872002-09-17 Stan Cox <scox@redhat.com>
288
289 * emulparams/elf32bmipn32-defs.sh: New file.
290 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
291 * emulparams/elf32btsmipn32.sh: Likewise.
292 * emulparams/elf64bmip.sh: Likewise.
293 * emulparams/elf64btsmip.sh: Likewise.
294
4ada7262
DB
2952002-09-16 Bruno Haible <bruno@clisp.org>
296
297 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
298 elf32-i386-freebsd.
299 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
300 elf64-alpha-freebsd.
301
e09f4395
NC
3022002-09-11 Nick Clifton <nickc@redhat.com>
303
004d9caf
NC
304 * NEWS: New TI port supports both C4x and C3x series of DSPs.
305
e09f4395
NC
306 * po/tr.po: Updated Turkish translation.
307
004d9caf 3082002-09-06 Jeffrey A Law (law@redhat.com)
0b3a6a28 309
7c519c12 310 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
0b3a6a28 311
3e369e96
NC
3122002-09-02 Nick Clifton <nickc@redhat.com>
313
67010b46
NC
314 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
315 __ep.
316 * emulparams/v850.sh (TEMPLATE_NAME): Define.
3e369e96 317
5435462c
NC
3182002-08-30 Nick Clifton <nickc@redhat.com>
319
320 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
321 used. Change INSN to start at 0x01000000 and extend for
322 256K (ignoring holes). Start the STACK on a word aligned
323 boundary.
7c519c12 324 (.rodata): Start it at the READONLY_START_ADDR.
5435462c 325
5c368657
AM
3262002-08-30 Alan Modra <amodra@bigpond.net.au>
327
328 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
329
026df7c5
NC
3302002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
331
332 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
333 added makefile targets for this file.
334 * Makefile.in: Regenerate.
335 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
336 * NEWS: Mention new port.
337
3382002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
339
340 * emulparams/tic3xcoff.sh: New file.
341 * emulparams/tic4xcoff.sh: New file.
342 * scripttempl/tic3xcoff.sc: New file.
343 * scripttempl/tic4xcoff.sc: New file.
344
c89e8944
AM
3452002-08-28 Alan Modra <amodra@bigpond.net.au>
346
347 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
348 strtoul and strtoull with bfd_scan_vma.
349 (gld${EMULATION_NAME}_read_file): Likewise.
350
6459ecfa
AM
3512002-08-28 Alan Modra <amodra@bigpond.net.au>
352
353 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
354
ad5211be
NC
3552002-08-27 Egor Duda <deo@logos-m.ru>
356
357 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
358 Add symbols for application to access them.
359
88f7bcd5
NC
3602002-08-27 Nick Clifton <nickc@redhat.com>
361
362 * emultempl/armelf.em: Revert this patch, it is not needed.
7c519c12 363
88f7bcd5
NC
364 2002-08-22 Adam Nemet <anemet@lnxw.com>
365
8e523c23 3662002-08-20 Dan Kegel <dank@kegel.com>
7c519c12 367
8e523c23
NC
368 * configure.in: added --with-lib-path argument to ld's configure
369 to set LIB_PATH.
370 * ld/NEWS: Document new switch.
371 * ld/README: Mention new switch.
372 * configure: Regenerate.
373 * Makefile.in: Regenerate.
7c519c12 374
8e523c23
NC
375 Based on this patch:
376 2001-04-25 Christopher Faylor <cgf@cygnus.com>
377
378 * Makefile.in (LIB_PATH): Make configurable.
379 (GENSCRIPTS): Set LIB_PATH in environment.
380 * configure.in: Substitute LIB_PATH.
381
d9a7f7ab
NC
3822002-08-22 Adam Nemet <anemet@lnxw.com>
383
384 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
385 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
386 depending on the type of the function.
387 (arm_elf_convert_thumb_symbol_to_address): New function.
388
ed71e111
NC
3892002-08-22 Graeme Peterson <gp@qnx.com>
390
391 * Makefile.am: Add esh{l}elf_nto.o files.
392 * Makefile.in: Regenerate.
393 * configure.tgt: Add support for sh-**-nto* targets.
394 * emulparams/shelf_nto.sh: New file.
395 * emulparams/shlelf_nto.sh: New file.
396
7abb6dea
AM
3972002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
398
399 * ldlang.c (offsetof): Define if not defined.
400
e9229007
L
4012002-08-14 H.J. Lu <hjl@gnu.org>
402
403 * configure.tgt: Always enable 64bit emulations for 32bit
404 Linux/mips.
405
c553bb91
AM
4062002-08-13 Alan Modra <amodra@bigpond.net.au>
407
408 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
409 (MAXPAGESIZE): Set to 1.
410
411 * ld.h (ALIGN_N): Delete.
412 * ldexp.h (align_n): Declare.
413 * ldexp.c (align_n): New function.
414 (fold_binary): Use align_n instead of ALIGN_N.
415 (exp_fold_tree): Likewise.
416 * ldlang.c (lang_size_sections_1): Likewise.
417 (lang_one_common): Likewise.
3c6706bb 418 * ld.texinfo (ALIGN): Remove power of 2 restriction.
c553bb91 419
59bc061d
NC
4202002-07-31 Graeme Peterson <gp@qnx.com>
421
422 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
423 * Makefile.am: Add eelf32{l}ppcnto.o files.
424 * Makefile.in: Regenerate.
425 * emulparams/elf32lppcnto.sh: New file.
426 * emulparams/elf32ppcnto.sh: New file.
427
31941635
L
4282002-08-07 H.J. Lu <hjl@gnu.org>
429
430 * ld.texinfo: Document --no-undefined-version.
431
432 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
433 `script.' fields to 0.
434
435 * ldmain.c (main): Initialize the allow_undefined_version to
436 true.
437
438 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
439 (ld_options): Add --no-undefined-version.
440 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
441
2004afbc
NC
4422002-08-07 Nick Clifton <nickc@redhat.com>
443
444 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
445 an interworking bfd if there are input bfds. (107501)
446
7fc44b9c
AM
4472002-08-06 Alan Modra <amodra@bigpond.net.au>
448
449 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
450 2002-05-10 change.
451
24a1ba0f
NC
4522002-08-01 Nick Clifton <nickc@redhat.com>
453
454 * emulparams/armelf.sh: Revert previous delta.
455 * scripttempl/elf.sc: Revert previous delta.
456
ebc6e014
L
4572002-07-31 H.J. Lu <hjl@gnu.org>
458
459 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
460 --enable-64-bit-bfd.
461
39a2a3eb
L
4622002-07-31 H.J. Lu <hjl@gnu.org>
463
464 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
465 64bit BFD is selected.
466
a0dfa6a8
L
4672002-07-31 H.J. Lu <hjl@gnu.org>
468
469 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
470 if 64bit BFD is selected.
471
f7c33884
NC
4722002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
473
474 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
475 link_info.common_skip_ar_aymbols.
476 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
477
478 * ldmain.c (main): Initialize new field
479 link_info.common_skip_ar_aymbols.
480
8f64befb
NC
4812002-07-31 Adam Nemet <anemet@lnxw.com>
482
483 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
484 to .plt.thumb.
485 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
486 used.
487
500800ca
NC
4882002-07-31 Nick Clifton <nickc@redhat.com>
489
490 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
491 of the PDP-11 and 2.11BSD a.out support.
492
7808a785
TS
4932002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
494
495 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
496 for n32 ABI support.
497 * Makefile.in: Regenerate.
498 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
499 n32 ABI emulations for these 64 bit targets.
500 * emulparams/elf32bmipn32.sh: Expand comment.
501 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
502 n32 ABI.
503 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
504
7e392df6
NC
5052002-07-30 Graeme Peterson <gp@qnx.com>
506
507 * configure.tgt: Add support for arm-*-nto target.
508 * Makefile.am: Add earmnto.o file.
509 * Makefile.in: Regenerate.
510 * NEWS: Mention port of ARM support to QNX.
511 * emulparams/armnto.sh: New file.
512
704afa60
JJ
5132002-07-30 Jakub Jelinek <jakub@redhat.com>
514
515 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
516 for relocatable link.
517 (lang_size_sections_1): Don't make .tbss zero size for relocatable
518 link.
519
7dcd22c2
BS
5202002-07-26 Bernd Schmidt <bernds@redhat.com>
521
522 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
523 (STACK_ADDR): New.
524
219576a4
NC
5252002-07-25 Nick Clifton <nickc@redhat.com>
526
527 * po/sv.po: Updated Swedish translation.
528 * po/es.po: Updated Spanish translation.
529 * po/fr.po: Updated French translation.
530
ff3063f5
NC
5312002-07-24 Nick Clifton <nickc@redhat.com>
532
533 * po/sv.po: Updated Swedish translation.
534 * po/es.po: Updated Spanish translation.
535
0461a601
NC
5362002-07-23 Nick Clifton <nickc@redhat.com>
537
ff3063f5 538 * po/fr.po: Updated French translation.
0461a601 539
25844aae
AM
5402002-07-20 Alan Modra <amodra@bigpond.net.au>
541
542 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
543 bomb on /DISCARD/ input section.
544 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
545 * emultempl/mmo.em (mmo_place_orphan): Likewise.
546
3595bd6e
HPN
5472002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
548
549 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
550 output section.
551
cf88bb9f
NC
5522002-07-16 Denis Chertykov <denisc@overta.ru>
553 Nick Clifton <nickc@redhat.com>
554 Frank Ch. Eigler <fche@redhat.com>
555 John Healy <jhealy@redhat.com>
556
557 * configure.tgt: Add support for ip2k-elf.
558 * Makefile.am: Add support for ip2k-elf.
559 * Makefile.in: Regenerate.
560 * emulparams/elf32ip2k.sh: New file.
561 * scripttempl/ip2k.sc: New file
562 * NEWS: Mention support for new port.
563
2cbb2eef
NC
5642002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
565
566 * NEWS: Add 'Changes in 2.13'.
567
96a94295
L
5682002-07-14 H.J. Lu <hjl@gnu.org>
569
570 * ld.texinfo: Document a .symver takes precedence over a
571 version script.
572
120d20f2
AM
5732002-07-12 Alan Modra <amodra@bigpond.net.au>
574
575 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
576 (COMMONPAGESIZE): Define.
577
0d2ddeb2
AM
5782002-07-09 Alan Modra <amodra@bigpond.net.au>
579
580 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
581
554690ed
AM
5822002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
583
584 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
585 powerpc-*-openbsd* and sparc64-*-openbsd*.
586 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
587 * Makefile.in: Regenerate.
588 * emulparams/hppaobsd.sh: New file.
589
34786259
AM
5902002-07-05 Alan Modra <amodra@bigpond.net.au>
591
592 * ldlang.c (print_wild_statement): Fix output formatting.
593
4bd5a393
AM
5942002-07-04 Alan Modra <amodra@bigpond.net.au>
595
596 * ldlang.c: (strip_excluded_output_sections): New function.
597 (lang_process): Call it.
598 (lang_size_sections_1): Revert 2002-06-10 change.
599
ce4f7385
AM
6002002-07-03 Alan Modra <amodra@bigpond.net.au>
601
602 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
603 Run "make dep-am".
604 * Makefile.in: Regenerate.
605
b7b482a3
AM
6062002-07-02 Alan Modra <amodra@bigpond.net.au>
607
71daf8b4
AM
608 * ldfile.c (ldfile_try_open_bfd): Formatting.
609
b7b482a3
AM
610 * ldmisc.c (demangle): Move so that it doesn't intrude between
611 vfinfo comment and body. Add comment.
612
29e2951e
AM
6132002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
614
615 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
616
e3e942e9
AM
6172002-07-01 Alan Modra <amodra@bigpond.net.au>
618
619 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
620 * ldlang.c (entry_sym): Likewise.
621 (ldlang_undef_chain_list_type): Likewise.
622 (lang_finish): Adjust references to entry_symbol.
623 (lang_add_entry): Likewise.
624 (lang_gc_sections): Use link_info.gc_sym_list.
625 (lang_process): Set link_info.gc_sym_list.
626 * ldlex.l: Include bfdlink.h.
627 * ldmain.c (main): Init link_info.gc_sym_list.
628 * emultempl/aix.em: Adjust references to entry_symbol.
629 * emultempl/armcoff.em: Likewise.
630 * emultempl/armelf.em: Likewise.
631 * emultempl/pe.em: Likewise.
632 * emultempl/ppc64elf.em (ppc_after_open): New function.
633 (LDEMUL_AFTER_OPEN): Define.
634 * emulparams/elf64ppc.sh: KEEP .opd sections.
635
a66c0f2c
SC
6362002-06-29 Stephane Carrez <stcarrez@nerim.fr>
637
638 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
639 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
640 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
641 (EEPROM_START_ADDR): Define.
642 (EEPROM_MEMORY): Define.
643 * emulparams/m68hc12elf.sh: Likewise.
644 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
645 section to put soft registers in .page0.
646 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
647
2b67cf00
JL
6482002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
649
650 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
651 section. Add ${RELOCATING-0}.
652
219576a4 6532002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
164c4054
JR
654
655 * emulparams/shelf.sh (STACK_ADDR): Don't define.
656 (OTHER_SECTIONS): Define.
657 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
658 (OTHER_SECTIONS): Undef.
659
fc28fbc2
AM
6602002-06-26 Alan Modra <amodra@bigpond.net.au>
661
662 * ldmisc.c (demangle): Restore dots stripped from sym name.
663
a13a0de8
L
6642002-06-25 H.J. Lu <hjl@gnu.org>
665
666 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
667 * Makefile.in: Regenerated.
668
b553b183
NC
6692002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
670
671 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
672 the size of attached object files, to allow make the object files
673 available via FTP or HTTP and to mention that the mail will be
674 sent to a mailing list.
675
2755afba
NC
6762002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
677
678 * ld/configure.host (romp): Drop support.
679
7d0a848e
CD
6802002-06-18 Chris Demetriou <cgd@broadcom.com>
681
682 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
683 section flags for SEC_DATA, rather than for SEC_CODE being unset.
684
8505f884
CD
6852002-06-18 Chris Demetriou <cgd@broadcom.com>
686
687 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
688 format specifier used to print BFD name.
689
7d553a40
DB
6902002-06-18 Dave Brolley <brolley@redhat.com>
691
692 From Catherine Moore, Michael Meissner, Jim Blandy:
693 * emulparams/elf32frv.sh: New file.
694 * configure.tgt: Support frv-*-*.
695 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
696 (eelf32frv.c): New target.
697
82434356
TR
6982002-06-17 Tom Rix <trix@redhat.com>
699
a59f3d35 700 * emultempl/elf32.em: gld*_get_script: Check for
82434356
TR
701 GENERATE_COMBRELOC_SCRIPT.
702 * scripttempl/elfd10v.sc : Fix STACK and INSN.
703 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
704
219576a4 7052002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
5d9b5481
JR
706
707 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
708
c4bb8067
L
7092002-06-12 H.J. Lu <hjl@gnu.org>
710
711 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
712 false if xvec doesn't match.
713
e052cfbe
RS
7142002-06-10 Richard Sandiford <rsandifo@redhat.com>
715
716 * ldlang.c (lang_size_sections_1): Skip removed output sections.
717
4da711b1
AM
7182002-06-08 Alan Modra <amodra@bigpond.net.au>
719
720 * ldexp.c: Replace CONST with const.
721 * ldfile.c: Likewise.
722 * ldfile.h: Likewise.
723 * ldlex.l: Likewise.
724 * mri.c: Likewise.
725 * pe-dll.h: Likewise.
726
eb95bb9a
AM
7272002-06-07 Alan Modra <amodra@bigpond.net.au>
728
729 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
730
e0076ab3
NC
7312002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
732
733 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
734 to -1 == implicit enable.
735 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
736 initialize link_info.pei386_auto_import to -1 == implicit
737 enable.
738 (gld_${EMULATION_NAME}_parse_args): When processing
739 --enable-auto-import and --disable-auto-import options, use
740 '1' and '0' instead of 'true' and 'false'.
741 (pe_find_data_imports): Only issue message about auto-import
742 when the feature is implicitly enabled. Downgrade message to
743 informational instead of warning.
744
f13a5424
AM
7452002-06-07 Alan Modra <amodra@bigpond.net.au>
746
747 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
748
1abffd82
JL
7492002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
750
751 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
752 HOSTING_CRT0 and HOSTING_LIBS.
753
e0076ab3 7542002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
7a33bc10
JR
755
756 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
757
4a5e698d
JT
7582002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
759
760 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
761 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
762
1d475d82
AM
7632002-06-05 Alan Modra <amodra@bigpond.net.au>
764
765 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
766 SEC_EXCLUDE sections when doing a relocatable link.
767
5b0e55b6
JT
7682002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
769
770 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
771 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
772 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
773 (eshlelf64_nbsd.c): New rules.
774 * Makefile.in: Regenerate.
775 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
776 (sh64-*-netbsd*): New targets.
777 * emulparams/shelf32_nbsd.sh: New file.
778 * emulparams/shelf64_nbsd.sh: New file.
779 * emulparams/shlelf32_nbsd.sh: New file.
780 * emulparams/shlelf64_nbsd.sh: New file.
781
9ad85d9b
AM
7822002-06-04 Alan Modra <amodra@bigpond.net.au>
783
784 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
785
0c9b4fee
MM
7862002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
787
788 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
789 C++ constructors/destructors, loosely based on the m68hc11 port.
790
2c538bde
AM
7912002-05-31 Alan Modra <amodra@bigpond.net.au>
792
793 * Makefile.in: Regenerate.
794 * aclocal.m4: Regenerate.
795 * config.in: Regenerate.
796 * configure: Regenerate.
797
a0cb91c6
AM
7982002-05-31 Graeme Peterson <gp@qnx.com>
799
800 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
801 (ei386nto.c): Add rule.
802 * Makefile.in: Regenerate.
803 * configure.tgt: Add i[3456]86-*-nto-qnx*.
804 * emulparams/i386nto.sh: New file.
805
37020578
JT
8062002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
807
808 * NEWS: Add entry for VAX ELF support.
809
ab68f3e0 8102002-05-29 Matt Thomas <matt@3am-software.com>
a59f3d35 811 Jason Thorpe <thorpej@wasabisystems.com>
ab68f3e0
JT
812
813 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
814 (eelf32vax.c)
815 (evaxnbsd.c): New rules.
816 * Makefile.in: Regenerate.
817 * configure.tgt (vax-*-netbsdelf*)
818 (vax-*-netbsdaout*)
819 (vax-*-netbsd*): New targets.
820 * emulparams/elf32vax.sh: New file.
821 * emulparams/vaxnbsd.sh: New file.
822
8afb0e02
NC
8232002-05-29 Adam Nemet <anemet@lnxw.com>
824
825 * emultempl/armelf.em (arm_elf_after_open): Don't determine
826 bfd_for_interwork, instead add glue sections to each input bfd.
827 (bfd_for_interwork): New global.
828 (arm_elf_set_bfd_for_interworking): New function.
829 (arm_elf_before_allocation): Use it.
830
d172d4ba
NC
8312002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
832
833 * Makefile.am: Add DLX make target.
834 * configure.tgt: Add DLX configuration.
835 * Makefile.in: Regenerate.
836 * emulparams/elf32_dlx.sh: New file
837 * scripttempl/dlx.sc: New file
838
b4477fa8
NC
8392002-05-27 Per Lundberg <per@caleb.dnsalias.org>
840
841 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
842 * Makefile.in: Regenerate.
843 * emulparams/elf_chaos.sh: Use elf_chaos script.
844 * scripttempl/elf_chaos.sc: New file.
845
ee3cc2e2
RS
8462002-05-27 Richard Sandiford <rsandifo@redhat.com>
847
848 * ldlang.c (lang_size_sections_1): Move check for conflicting load
849 addresses and regions from here...
850 (lang_get_regions): ...to this new function.
851 (lang_leave_output_section_statement): Use lang_get_regions.
852 (lang_leave_overlay): Likewise.
853 * mri.c (mri_draw_tree): Pass null as last argument to
854 lang_leave_output_section_statement.
855 * emultempl/elf32.em (gld*_place_orphan): Likewise.
856 * emultempl/mmo.em (mmo_place_orphan): Likewise.
857 * emultempl/pe.em (gld*_place_orphan): Likewise.
858
aa501e5c
JT
8592002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
860
861 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
862
658957db
KH
8632002-05-25 Kazu Hirata <kazu@cs.umass.edu>
864
865 * ldemul.c: Fix formatting.
866 * ldfile.c: Likewise.
867 * pe-dll.c: Likewise.
868 * pe-dll.h: Likewise.
869
3511b595
AM
8702002-05-25 Alan Modra <amodra@bigpond.net.au>
871
0d6d936f
AM
872 * ldlang.c (lang_process): Formatting, grammar.
873
3511b595
AM
874 * ldlex.l: Use #include "" instead of <> for local header files.
875
436e8db0
NC
8762002-05-24 TAMURA Kent <kent@netbsd.org>
877
878 * configure.tgt: Add a target for i386-netbsdpe.
879
13ae64f3
JJ
8802002-05-23 Jakub Jelinek <jakub@redhat.com>
881
882 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
883 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
884 output section if necessary. Handle .tbss.
885 (lang_size_sections): Clear _raw_size for .tbss section
886 (it allocates space in PT_TLS segment only).
887 * ldwrite.c (build_link_order): Build link order for .tbss too.
888
68b2fc7a
AM
8892002-05-23 Alan Modra <amodra@bigpond.net.au>
890
891 * configure.in: Correct spelling of AC_PREREQ.
892
70b0be79
CF
8932002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
894
895 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
896 default.
897 (autofilter_objlist): Add crtbegin.o, crtend.o.
898
8992002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
900
901 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
902 (longopts): Add new option --exclude-libs.
903 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
904 (gld_${EMULATION_NAME}_parse_args): Use it.
905 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
906 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
907 from whole archives.
908 (pe_dll_add_excludes): Set excludes->type.
909 (auto_export): Add new variable libname and set to archive basename if
910 abfd. Use it when filtering default and user-specified libarary
911 excludes. Let string "ALL" mean all libs when filtering user-specified
912 libs.
913 * ld.texinfo: Document --exclude-libs.
914
fac1652d
AM
9152002-05-22 Alan Modra <amodra@bigpond.net.au>
916
917 * ldemul.c (ldemul_new_vers_pattern): New function.
918 * ldemul.h (ldemul_new_vers_pattern): Declare.
919 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
920 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
921 * emultempl/ppc64elf.em (dotsyms): New static var.
922 (gld${EMULATION_NAME}_new_vers_pattern): New function.
923 (LDEMUL_NEW_VERS_PATTERN): Define.
924 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
925 (PARSE_AND_LIST_LONGOPTS): Likewise.
926 (PARSE_AND_LIST_ARGS_CASES): Handle them.
927 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
928 initialiser.
929 * emultempl/armcoff.em: Likewise.
930 * emultempl/armelf_oabi.em: Likewise.
931 * emultempl/beos.em: Likewise.
932 * emultempl/elf32.em: Likewise.
933 * emultempl/generic.em: Likewise.
934 * emultempl/gld960.em: Likewise.
935 * emultempl/gld960c.em: Likewise.
936 * emultempl/linux.em: Likewise.
937 * emultempl/lnk960.em: Likewise.
938 * emultempl/m68kcoff.em: Likewise.
939 * emultempl/mipsecoff.em: Likewise.
940 * emultempl/pe.em: Likewise.
941 * emultempl/sunos.em: Likewise.
942 * emultempl/ticoff.em: Likewise.
943 * emultempl/vanilla.em: Likewise.
944
eb3d6bb8
AM
9452002-05-22 Alan Modra <amodra@bigpond.net.au>
946
947 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
948 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
949 (LIB_SEARCH_DIRS): No need to use "tr".
950 (COMPILE_IN): Only set for native targets.
951 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
952 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
953 * configure.tgt (powerpc*): Set tdir_*.
954 (powerpcle*): Correct targ_extra_emuls.
955 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
956 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
957
54f24647
AM
9582002-05-22 Alan Modra <amodra@bigpond.net.au>
959
960 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
961 calling lang_add_entry.
962
aa713662
L
9632002-05-21 H.J. Lu (hjl@gnu.org)
964
965 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
966 "-z muldefs".
967 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
968
969 * ld.texinfo: Updated for --allow-multiple-definition and
970 "-z muldefs".
971
972 * ldmain.c (main): Initialize the allow_multiple_definition
973 field to false.
974
975 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
976 (ld_options): Add --allow-multiple-definition.
977 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
978
658f2588
JT
9792002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
980
981 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
982 (earmelfb_nbsd.c): New rule.
a59f3d35 983 * Makefile.in: Regenerate.
658f2588 984 * configure.tgt (armeb-*-netbsdelf*): New target.
a59f3d35 985 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
658f2588
JT
986 (arm-*-netbsd*): Likewise.
987 * emulparams/armelfb_nbsd.sh: New file.
988
ca10c62d
TR
9892002-05-18 Tom Rix <trix@redhat.com>
990
a59f3d35 991 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
ca10c62d
TR
992 support.
993
fae1e84f
MM
9942002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
995
996 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
997 * Makefile.in: Regenerate.
998 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
999
7c8bf1e8
MM
10002002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1001
1002 * emulparams/avr1.sh: New file.
1003 * emulparams/avr2.sh: New file.
1004 * emulparams/avr3.sh: New file.
1005 * emulparams/avr4.sh: New file.
1006 * emulparams/avr5.sh: New file.
1007 * scripttempl/avr.sc: New file.
1008
c2c01aa7
AM
10092002-05-15 Alan Modra <amodra@bigpond.net.au>
1010
1011 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1012 (lang_place_orphans): Abort if just_syms_flag.
1013
f1f0d9ab
TR
10142002-05-10 Tom Rix <trix@redhat.com>
1015
a59f3d35 1016 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
f1f0d9ab
TR
1017 architecture and machine information in the output bfd.
1018 (gld*_before_parse): Remove old arch and machine code.
1019 (choose_target): Rename to gld*_choose_target.
a59f3d35
AM
1020 (rtld): Change type to int.
1021 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
f1f0d9ab
TR
1022 objects in XCOFF archives.
1023 * ldfile.h: Update copyright date.
1024
f4d73366
JJ
10252002-05-10 Jakub Jelinek <jakub@redhat.com>
1026
1027 * ldmain.c (main): Enable -z combreloc by default.
1028
d3d8a9ee
NC
10292002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1030
1031 * Makefile.am: Honour DESTDIR.
1032 * Makefile.in: Regenerate.
1033
9f88b410
RS
10342002-05-07 Richard Sandiford <rsandifo@redhat.com>
1035
1036 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1037 (lang_enter_overlay): Remove the last two parameters.
1038 (lang_leave_overlay): Take them here instead.
1039 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1040 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1041 than lang_enter_overlay.
1042 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1043 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1044 (lang_size_sections_1): Evaluate it.
1045 (lang_leave_output_section_statement): Rework LMA lookup.
1046 (overlay_lma, overlay_nocrossrefs): Remove.
3511b595 1047 (lang_enter_overlay): Remove LMA and crossref arguments.
9f88b410
RS
1048 (lang_enter_overlay_section): Don't set the LMA here.
1049 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1050 assignment to the last section's update_dot_tree. Unconditionally
1051 use the load and run-time regions specified in the OVERLAY statement.
1052 Likewise the first section's LMA. Only set the other sections' LMAs
1053 when no load region is given.
1054
b9a743c8
NC
10552002-05-06 Nick Clifton <nickc@redhat.com>
1056
1057 * po/sv.po: New translation.
1058
a3d60be3
AM
10592002-05-04 Alan Modra <amodra@bigpond.net.au>
1060
1061 * emultempl/hppaelf.em (build_section_lists): New function.
1062 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1063 and build_section_lists.
1064
b7a26f91
KH
10652002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1066
1067 * ld.h: Fix formatting.
1068 * ldexp.c: Likewise.
1069 * ldfile.c: Likewise.
1070 * ldlang.c: Likewise.
1071 * ldmain.c: Likewise.
1072 * lexsup.c: Likewise.
1073 * pe-dll.c: Likewise.
1074
805fc799
AM
10752002-05-02 Alan Modra <amodra@bigpond.net.au>
1076
1077 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1078 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1079 (build_section_lists): Do output_section tests here.
1080
cc7e59b2
TR
10812002-04-30 Tom Rix <trix@redhat.com>
1082
1083 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1084
9c1d81c1
AM
10852002-05-01 Alan Modra <amodra@bigpond.net.au>
1086
1087 Long branch stubs, multiple stub sections.
1088 * emultempl/ppc64elf.em: Include ldctor.h.
1089 (stub_file): New var.
1090 (group_size): New var.
1091 (ppc_create_output_section_statements): New function.
1092 (struct hook_stub_info): New.
1093 (hook_in_stub): New function.
1094 (ppc_add_stub_section): New function.
1095 (ppc_layout_sections_again): New function.
1096 (build_section_lists): New function.
1097 (gld${EMULATION_NAME}_finish): Rewrite.
1098 (real_func): New var.
1099 (ppc_for_each_input_file_wrapper): New function.
1100 (ppc_lang_for_each_input_file): New function.
1101 (lang_for_each_input_file): Define.
1102 (PARSE_AND_LIST_PROLOGUE): Define.
1103 (PARSE_AND_LIST_LONGOPTS): Define.
1104 (PARSE_AND_LIST_OPTIONS): Define.
1105 (PARSE_AND_LIST_ARGS_CASES): Define.
1106 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1107
aa67bccf
TR
11082002-04-30 Tom Rix <trix@redhat.com>
1109
a59f3d35
AM
1110 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1111 -blibpath, -bnolibpath support.
1112
94349e12
MM
11132002-04-30 Mark Mitchell <mark@codesourcery.com>
1114
1115 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1116 (eelf32ppcwindiss.c): New target.
1117 * Makefile.in: Regenerated.
1118 * configure.tgt: Add support for powerpc-*-windiss.
1119 * emulparams/elf32ppcwindiss.sh: New file.
a59f3d35 1120
7b17f854
RS
11212002-04-30 Richard Sandiford <rsandifo@redhat.com>
1122
1123 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1124 * ldexp.c (exp_print_token): Add "infix_p" argument.
1125 (exp_print_tree): Update accordingly.
1126
596dafeb
AM
11272002-04-28 Alan Modra <amodra@bigpond.net.au>
1128
1129 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1130 * Makefile.in: Regenerate.
1131 * mpw-elfmips.c: Delete.
1132 * mpw-eppcmac.c: Delete.
1133 * mpw-esh.c: Delete.
1134 * mpw-idtmips.c: Delete.
1135
219576a4 11362002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
1137
1138 * emulparams/shelf32.sh (MACHINE): Now sh5.
1139
944cd72c
TS
11402002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1141
1142 * ldgram.y: Fix syntax warning.
1143
5835c212
NC
11442002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1145
1146 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1147 to prevent "-n" from being taken as an abbreviation for
1148 "--no-pipeline-knowledge".
1149
024531e2
AM
11502002-04-08 Alan Modra <amodra@bigpond.net.au>
1151
d08a14c3
AM
1152 * ldlang.c (lang_size_sections_1): Don't complain about
1153 SEC_NEVER_LOAD sections having no memory region specified.
1154
024531e2
AM
1155 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1156
c657a1f0
MG
11572002-04-07 matthew green <mrg@redhat.com>
1158
1159 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1160
61bef6f1
AM
11612002-04-04 Alan Modra <amodra@bigpond.net.au>
1162
1163 * dep-in.sed: Cope with absolute paths.
1164 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1165 Run "make dep-am".
1166 * Makefile.in: Regenerate.
1167
49ba2791
TS
11682002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1169
1170 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1171
50e60fb5
JJ
11722002-04-03 Jakub Jelinek <jakub@redhat.com>
1173
1174 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1175 is smaller than maximum, round dot up to common page boundary.
1176
6f12f4ca
AM
11772002-03-28 Alan Modra <amodra@bigpond.net.au>
1178
1179 * configure.host: Set up for generic hosts first, then tweak as
1180 necessary in more specific targets.
1181 (HOSTING_LIBS): Include libgcc_eh.a if found.
1182
a8f1f017
AJ
11832002-03-23 Andreas Jaeger <aj@suse.de>
1184
1185 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1186
1d3fdf38
AM
11872002-03-21 Alan Modra <amodra@bigpond.net.au>
1188
1189 * Makefile.am: Run "make dep-am".
1190 * Makefile.in: Regenerate.
1191
79b1faa8
AM
11922002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1193
1194 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1195
fcf0e35b
AM
11962002-03-20 Alan Modra <amodra@bigpond.net.au>
1197
1198 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1199 add the symbol to the linker hash table immediately.
1200 (lang_place_undefineds): Split symbol creation out..
1201 (insert_undefined): ..to here.
1202
fed2999d
DB
12032002-03-18 David O'Brien <obrien@FreeBSD.org>
1204
1205 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1206 the contents of the buffer returned from basename function will are
1207 getting overwritten while still being used.
1208
219576a4
NC
12092002-03-18 Jan Hubicka <jh@suse.cz>
1210 Andreas Jaeger <aj@suse.de>
1211 Andreas Schwab <schwab@suse.de>
beb43bb9
JH
1212
1213 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1214 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1215 set libraries to default to lib64 paths.
1216
eb1e0e80
NC
12172002-03-18 Tom Rix <trix@redhat.com>
1218
1219 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1220 * configure.tgt : Same.
1221 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1222 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1223 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1224 emulation parameters for better -b32, -b64 support.
1225 * emulparms/aixrs6.sh : Same.
1226 * emulparms/ppcmacos.sh : Same.
1227 * emultempl/aix.em (choose_target) : Use new emulation parameters
1228 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1229 * Makefile.in : Regenerate.
1230
a1c259a1
NC
12312002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1232
1233 * po/fr.po: Updated version.
1234
862120bd
AM
12352002-03-18 Alan Modra <amodra@bigpond.net.au>
1236
1237 * ldmain.c (main): Move .text readonly flag fudges from here..
1238 * ldlang.c (lang_process): ..to here.
1239
d35a52e2
AM
12402002-03-14 Alan Modra <amodra@bigpond.net.au>
1241
1242 * ldlang.c (lang_check): Remove the word size check added in last
1243 change. Treat emitrelocations case as for relocatable links.
1244
9ce88e60
NC
12452002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1246
1247 * po/fr.po: Updated version.
1248
30cba025
AM
12492002-03-13 Alan Modra <amodra@bigpond.net.au>
1250
1251 * ldlang.c (lang_check): Do relocatable link checks first, so that
1252 warn_mismatch can't override. Check compatible and word size too.
1253
84ec0e6d
DJ
12542002-03-07 Daniel Jacobowitz <drow@mvista.com>
1255
1256 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1257
2d13d8c5
JJ
12582002-03-05 Jakub Jelinek <jakub@redhat.com>
1259
1260 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1261 DATA_SEGMENT_ALIGN.
1262
b5090659
L
12632002-03-04 H.J. Lu <hjl@gnu.org>
1264
1265 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1266 .fini_array in the data segment.
1267
f42ce16e
AM
12682002-03-04 Alan Modra <amodra@bigpond.net.au>
1269
1270 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1271
de77b6ac
RH
12722002-03-01 David Mosberger <davidm@hpl.hp.com>
1273
1274 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1275 .init_array, and .fini_array.
1276
997e08c0
AS
12772002-02-20 Andreas Schwab <schwab@suse.de>
1278
1279 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1280 .IA64_unwind* in a relocatable link.
1281
9a66911f
NC
12822002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1283
1284 * NEWS: Mark 2.12 branch.
1285
d86bcc10
MS
12862002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1287
1288 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1289 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1290
69f284c7
TR
12912002-02-18 Tom Rix <trix@redhat.com>
1292
1293 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1294 (gld*_before_allocation): Same.
a8f1f017 1295 (gld*_create_output_section_statements): Generate
69f284c7
TR
1296 __rtinit if run time linking. Add librtl.a to the link.
1297 (gld*_read_file): Clean.
1298
82bd7b59
AM
12992002-02-18 Alan Modra <amodra@bigpond.net.au>
1300
1301 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1302
ac3e50bf
DB
13032002-02-18 David O'Brien <obrien@FreeBSD.org>
1304
6a7f963b 1305 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
ac3e50bf
DB
1306 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1307 and eelf64alpha_fbsd.
6a7f963b 1308 * Makefile.in: Regenerate.
ac3e50bf
DB
1309 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1310 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1311 use a FreeBSD-specific emulation rather than the psABI one.
1312 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1313 for all FreeBSD ELF systems.
1314 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1315 emulation.
1316 * emulparams/elf32ppc_fbsd.sh: Likewise.
1317 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1318 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1319 * emulparams/elf64alpha_fbsd.sh: Likewise.
1320 * emulparams/elf_i386_fbsd.sh: Likewise.
1321 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1322
6ad738c5
NC
13232002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1324
1325 * po/tr.po: Updated version.
1326
9673c93c
AM
13272002-02-18 Alan Modra <amodra@bigpond.net.au>
1328
1329 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1330 (FILL): Likewise.
1331
1c5e6447
HPN
13322002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1333
1334 * emultempl/mmo.em (mmo_after_open): Don't call
1335 _bfd_mmix_check_all_relocs when producing ELF output.
1336
8bb57516
RH
13372002-02-15 Richard Henderson <rth@redhat.com>
1338
de77b6ac 1339 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
8bb57516
RH
1340 definition. Emit a unop+nop pair.
1341
49fda6c8
HPN
13422002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1343
83c2d653
HPN
1344 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1345 for presence of .MMIX.reg_contents.linker_allocated before early
1346 exit.
1347
49fda6c8
HPN
1348 * NEWS: Mention support for MMIX.
1349
2c382fb6
AM
13502002-02-15 Alan Modra <amodra@bigpond.net.au>
1351
1352 Support arbitrary length fill patterns.
a139d329
AM
1353 * ld.texinfo (Output Section Fill): Describe fill expressions.
1354 (FILL): Refer to the above.
2c382fb6
AM
1355 * ldexp.h (etree_value_type): Add "str" field.
1356 (union etree_union): Add "str" to "value" struct.
1357 (exp_bigintop): Declare.
1358 (exp_get_fill): Declare.
1359 * ldexp.c: Include "safe-ctype.h".
1360 (exp_intop): Set value.str to NULL.
1361 (exp_bigintop): New function.
1362 (new_rel): Pass in "str", and set new.str from it.
1363 (new_rel_from_section): Set new.str to NULL.
1364 (fold_name): Adjust calls to new_rel.
1365 (exp_fold_tree): Likewise.
1366 (exp_get_fill): New function.
1367 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1368 (INT): Returns a "bigint". Adjust all code handling INTs.
1369 (fill_opt): Returns a "fill".
1370 (fill_exp): Split out of fill_opt, use for FILL.
1371 * ldlang.h (struct _fill_type): New.
1372 (fill_type): Move typedef to ldexp.h.
1373 (lang_output_section_statement_type): "fill" is now a pointer.
1374 (lang_fill_statement_type): Likewise.
1375 (lang_padding_statement_type): Likewise.
1376 (lang_add_fill): Now takes a "fill_type *" param.
1377 (lang_leave_output_section_statement): Likewise.
1378 (lang_do_assignments): Likewise.
1379 (lang_size_sections): Likewise.
1380 (lang_leave_overlay_section): Likewise.
1381 (lang_leave_overlay): Likewise.
1382 * ldlang.c: Include ldgram.h after ldexp.h.
1383 (lang_output_section_statement_lookup): Adjust for fill_type change.
1384 (print_fill_statement): Likewise.
1385 (print_padding_statement): Likewise.
1386 (insert_pad): Now takes a "fill_type *" arg.
1387 (size_input_section): Likewise.
1388 (lang_size_sections_1): Likewise.
1389 (lang_size_sections): Likewise.
1390 (lang_do_assignments): Likewise.
1391 (lang_add_fill): Likewise.
1392 (lang_leave_output_section_statement): Likewise.
1393 (lang_leave_overlay_section): Likewise.
1394 (lang_leave_overlay): Likewise.
1395 Adjust all callers of the above function.
1396 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1397 starting with "0X" as well as "0x". Return bigint.str for hex
1398 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1399 Always use base 16 for numbers starting with "$".
1400 * ldmain.c: Include ldgram.h after ldexp.h.
1401 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1402 of bfd_fill_link_order.
1403 * pe-dll.c: Adjust lang_do_assignments calls.
1404 * emultempl/elf32.em: Likewise.
1405 * emultempl/hppaelf.em: Likewise.
1406 * emultempl/ppc64elf.em: Likewise.
1407 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1408 lang_add_assignment call.
1409 * emultempl/pe.em: Likewise.
1410
313e35ee
AM
14112002-02-14 Phil Edwards <pme@gcc.gnu.org>
1412
a139d329 1413 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
313e35ee
AM
1414 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1415 the pattern in question is not a regexp.
1416 * ldlang.c: Likewise.
1417 * ldlang.h: Likewise.
1418 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1419
2d20f7bf
JJ
14202002-02-12 Jakub Jelinek <jakub@redhat.com>
1421
1422 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1423 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1424 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1425 * ldexp.c (exp_data_seg): New variable.
1426 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1427 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1428 (exp_fold_tree): Handle DATA_SEGMENT_END.
1429 Pass allocation_done when recursing instead of hardcoding
1430 lang_allocating_phase_enum.
1431 * ldexp.h (exp_data_seg): New.
1432 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1433 (lang_size_sections): New.
1434 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1435 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1436 if COMMONPAGESIZE is defined.
1437 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1438 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1439 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1440 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1441 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1442 libraries only.
1443
06880219
AM
14442002-02-11 Alan Modra <amodra@bigpond.net.au>
1445
1446 * Makefile.in: Regenerate.
1447
37b0ac0f
DJ
14482002-02-10 Daniel Jacobowitz <drow@mvista.com>
1449
1450 * lexsup.c: Remove strtoul declaration.
1451
4e5bae56
DJ
14522002-02-10 Daniel Jacobowitz <drow@mvista.com>
1453
1454 * ldmain.c: Add prototype for main ().
1455 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1456 * emultempl/lnk960.em (lnk960_choose_target): Function should
1457 take two arguments.
1458
1e281515
AM
14592002-02-10 Alan Modra <amodra@bigpond.net.au>
1460
1461 * ldlang.c (entry_section): New initialised variable.
1462 (lang_finish): Use it.
1463 * ldlang.h (entry_section): Declare.
1464 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1465 entry_section to ".opd".
1466
f92d92ff 14672002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
1468
1469 * ld.texinfo (Options): Add back in -nostdlib documentation,
1470 which had been inadvertently removed.
1471
74c44237
HPN
14722002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1473
1474 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1475 register section vma to a sane value after emitting error. Make
1476 fatal conditions cause program exit when emitting message.
1477
5e37cc46
NC
14782002-02-08 Ivan Guzvinec <ivang@opencores.org>
1479
1480 * configure.tgt: Add or32-*-rtems target.
1481
2d92cb7d
AO
14822002-02-08 Alexandre Oliva <aoliva@redhat.com>
1483
1484 Contribute sh64-elf.
1485 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1486 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1487 in OTHER_RELOCATABLE_SECTIONS.
1488 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1489 * emulparams/shelf32.sh (STACK_ADDR): Define.
1490 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1491 (OTHER_SECTIONS): this. Removed stack settings.
1492 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1493 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1494 2001-03-12 DJ Delorie <dj@redhat.com>
1495 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1496 relaxing if any shmedia or mixed sections are found.
1497 2001-03-07 DJ Delorie <dj@redhat.com>
1498 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1499 einfo. Gracefully decline to output to non-elf formats.
1500 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1501 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1502 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1503 * emulparams/shelf32.sh: Ditto.
1504 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1505 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1506 comment.
1507 2001-01-10 Ben Elliston <bje@redhat.com>
1508 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1509 non-portable shell constructs. From Hans-Peter Nilsson.
1510 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1511 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1512 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1513 dependencies to the shell script include chain.
1514 * Makefile.in: Regenerate.
1515 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1516 * emultempl/sh64elf.em: Update and tweak comments.
1517 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1518 make a .cranges section SEC_IN_MEMORY.
1519 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1520 * emultempl/sh64elf.em
1521 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1522 .cranges section found to be necessary; continue and set stored
1523 section contents flags for sections with non-mixed contents.
1524 Use a struct sh64_section_data container and sh64_elf_section_data
1525 to store contents-type flags.
1526 Remove unused update of "isec".
1527 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1528 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1529 access contents-type flags. Assert that the associated container
1530 is initialized. Use that container, not elf_gp_size, to hold size
1531 of linker-generated cranges contents.
1532 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1533 * emultempl/sh64elf.em
1534 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1535 there's already a .cranges section. When section flag difference
1536 is found, don't NULL-check cranges a second time. Tweak comments.
1537 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1538 merging, not max size, as size of ld-generated .cranges contents.
1539 Don't set ELF section flags in output section. When checking for
1540 needed .cranges descriptors, don't use a variable; compare
1541 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1542 comments.
1543 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1544 * emultempl/sh64elf.em: New file.
1545 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1546 * Makefile.in: Regenerate.
1547 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1548 (OTHER_RELOCATING_SECTIONS): Ditto.
1549 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1550 * emulparams/shlelf32.sh: Stub out all settings except
1551 OUTPUT_FORMAT. Source shelf32.sh.
1552 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1553 OTHER_RELOCATING_SECTIONS.
1554 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1555 * emulparams/shlelf64.sh: Stub out all settings except
1556 OUTPUT_FORMAT. Source shelf64.sh.
1557 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1558 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1559 .cranges section.
1560 (DATA_START_SYMBOLS): Define, provide ___data.
1561 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1562 for consecutive .data section.
1563 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1564 section after .data section.
1565 * emulparams/shlelf64.sh: Ditto.
1566 * emulparams/shelf32.sh: Ditto.
1567 (ALIGNMENT): Define to 8.
1568 * emulparams/shelf32.sh: Ditto.
1569 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1570 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1571 built-in linker scripts.
1572 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1573 * emulparams/shlelf64.sh: New.
1574 * emulparams/shelf64.sh: New.
1575 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1576 targ_extra_emuls.
1577 * Makefile.am: Add support for shlelf64 and shelf64.
1578 * Makefile.in: Regenerate.
1579 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1580 * configure.tgt (sh64-*-elf*): Add shelf as default.
1581 Add shlelf to targ_extra_emuls.
1582 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1583 * emulparams/shelf32.sh: New file.
1584 * emulparams/shlelf32.sh: New file.
1585 * Makefile.am: Add support for shlelf32 and shelf32.
1586 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1587 * Makefile.in: Regenerate.
1588
e3dc8847
HPN
15892002-02-05 Hans-Peter Nilsson <hp@axis.com>
1590
1591 * ldlang.c (lang_reset_memory_regions): Rename from
1592 reset_memory_regions. Change all callers. Make public.
1593 * ldlang.h (lang_reset_memory_regions): Prototype.
1594 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1595 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
1596 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1597 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 1598
8017dbcb
HPN
15992002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1600
1601 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1602 arithmetic when checking for too many global registers.
1603
006336b8
JT
16042002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1605
1606 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1607 (ehppanbsd.c): New rule.
1608 * Makefile.in: Regenerate.
1609 * configure.tgt (hppa*-*-netbsd*): New target.
1610 * emulparams/hppalinux.sh: Add comment to check other files
1611 that source this file it is modified, and list which
1612 files that do.
1613 * emulparams/hppanbsd.sh: New file.
1614
da1f2fec
GK
16152002-02-01 Geoffrey Keating <geoffk@redhat.com>
1616
1617 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1618 stack.
1619
48fa4a5d
HPN
16202002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1621
1622 Support on-demand global register allocation from
1623 R_MMIX_BASE_PLUS_OFFSET relocs.
1624 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1625 mmix_set_reg_section_vma. Call
1626 _bfd_mmix_finalize_linker_allocated_gregs.
1627 (mmix_before_allocation): New function.
1628 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1629 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1630 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1631 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1632 before .MMIX.reg_contents.
1633 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1634 (mmo_after_open): New function.
1635 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1636 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1637 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1638
3b16e843
NC
16392002-01-31 Ivan Guzvinec <ivang@opencores.org>
1640
1641 * emulparams/or32.sh: New file.
1642 * emulparams/or32elf.sh: New file.
1643 * scripttempl/or32.sc: New file.
1644 * configure.tgt : Add support for or32.
1645 * configure: Regenerate
1646 * Makefile.am: Add support for or32.
1647 * Makefile.in: Regenerate.
1648 * NEWS: Mention support for or32.
1649 * po/ld.pot: Regenerate.
1650
f744d540 16512002-01-29 Chris Demetriou <cgd@broadcom.com>
313e35ee 1652 Mitch Lichtenberg <mpl@broadcom.com>
f744d540
CD
1653
1654 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1655 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1656 reloc creation (ld --embedded-relocs).
1657
4867be41
DJ
16582002-01-27 Daniel Jacobowitz <drow@mvista.com>
1659
1660 * configure: Regenerated.
1661
cd8e197b
HPN
16622002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1663
1664 * Makefile.am (install): Depend on install-info.
1665 * Makefile.in: Regenerate.
1666
9cb61eab
AM
16672002-01-26 Christian Rose <menthos@menthos.com>
1668
1669 * ldmain.c (main): Use full sentences to ease translation.
1670
1caa7b23
NC
16712002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1672
1673 * po/fr.po: Updated version.
1674
1ddbd152
NC
16752002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1676
1677 * po/es.po: Updated version.
1678
1e84433f
AJ
16792002-01-25 Andreas Jaeger <aj@suse.de>
1680
1681 * ldlex.l (yy_input): Correct error check.
1682
6d39955e
AM
16832002-01-25 Alan Modra <amodra@bigpond.net.au>
1684
1685 * ldmisc.c (demangle): Put back dots when string not demangled.
1686
a9ed1e1b
RH
16872002-01-22 Richard Henderson <rth@redhat.com>
1688
1689 * emulparams/elf64alpha.sh (NOP): Use unop.
1690
968ec2b9
AJ
16912002-01-21 Andreas Jaeger <aj@suse.de>
1692
1693 * ldlex.l: Use fread instead of read.
1694
9596feea
JT
16952002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1696
1697 * configure.tgt (ia64-*-netbsd*): New target.
1698
493a6d47
L
16992002-01-21 H.J. Lu <hjl@gnu.org>
1700
1701 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1702 0.
1703 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1704
2a538ba5
AJ
17052002-01-18 Andreas Jaeger <aj@suse.de>
1706
1707 * ldver.c (ldversion): Update year.
1708
328577ad
NC
17092002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1710
1711 * po/ld.pot: Regenerate.
1712
1f808cd5
AM
17132002-01-16 Alan Modra <amodra@bigpond.net.au>
1714
1715 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1716 * Makefile.in: Regenerate.
1717 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1718 * emultempl/ppc64elf.em: New file.
1719
335c5610
DD
17202002-01-15 DJ Delorie <dj@redhat.com>
1721
1722 * scripttempl/pe.sc: Add support for constructor priorities.
1723
c40bbade
DC
17242002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1725
1726 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1727 * emulparams/avr23xx.sh: Likewise.
1728 * emulparams/avr4433.sh: Likewise.
1729 * emulparams/avr44x4.sh: Likewise.
1730 * emulparams/avr85xx.sh: Likewise.
1731 * emulparams/avrmega103.sh: Likewise.
1732 * emulparams/avrmega161.sh: Likewise.
1733 * emulparams/avrmega603.sh: Likewise.
1734 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1735
34efb449
AO
17362002-01-08 Alexandre Oliva <aoliva@redhat.com>
1737
1738 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1739 archive is excluded.
1740
8d05742f
JT
17412002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1742
1743 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 1744 (eshelf_nbsd.c): New rule.
8d05742f
JT
1745 (eshlelf_nbsd.c): New rule.
1746 * Makefile.in: Regenerate.
1747 * configure.tgt (sh*le-*-netbsdelf*): New target.
1748 (sh*-*-netbsdelf*): New target.
1749 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1750 * ld/emulparams/shelf_nbsd.sh: New emulation.
1751 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1752
be2d1673
NC
17532002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1754
1755 * po/es.po: New file: Spanish translation.
1756 * configure.in (ALL_LINGUAS): Add es.
1757 * configure: Regenerate.
1758
dbab7a7b
NC
17592002-01-06 John Marshall <jmarshall@acm.org>
1760
1761 * ld.texinfo: Note that --emit-relocs is currently only
1762 implemented for ELF.
1763
3dfe7a8c
AM
17642002-01-05 Alan Modra <amodra@bigpond.net.au>
1765
1766 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1767 of bfd_section_list_remove and bfd_section_list_insert macros.
1768 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1769 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1770
8a8b2d4b
AJ
17712002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1772
1773 * configure.tgt (x86_64-*-netbsd*): New target.
1774
9a4c7f16
TR
17752001-12-21 Tom Rix <trix@redhat.com>
1776
8a8b2d4b 1777 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
1778 For -binitfini support.
1779 * emultempl/aix.em (gld*_before_parse): Fix comment.
1780 * emultempl/aix.em (gld*_parse_args): Fix comment.
1781
3695c299
AM
17822001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1783
cf86e6df
AM
1784 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1785 mips*el-*-netbsd*.
1786 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1787
3695c299
AM
1788 * configure.tgt (arm-*-netbsdelf*): Add target.
1789 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1790 * emulparams/armelf_nbsd.sh: Added.
1791 * Makefile.am: Add rules for earmelf_nbsd.
1792 * Makefile.in: Regenerate.
1793
97cb79ae
AJ
17942001-12-19 Andreas Jaeger <aj@suse.de>,
1795 Susanne Oberhauser <froh@suse.de>
1796
1797 * configure.host: Add rules for x86_64-*linux-gnu. Change
1798 s390x-linux entry to use gcc to report configuration, replace gcc
1799 with $CC in s390-linux
1800
9d201f2f
AJ
18012001-12-19 Andreas Jaeger <aj@suse.de>
1802
1803 * ld.texinfo (VERSION): Fix markup.
1804
0b69cd08
MG
18052001-12-18 matthew green <mrg@eterna.com.au>
1806
1807 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1808 (m68kelfnbsd.c): New rule.
1809 * Makefile.in: Regenerate.
1810 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1811 (m68*-*-netbsd*4k*): .. this.
1812 (m68*-*-netbsdelf*): New target.
1813 (m68*-*-netbsd*): Also include ELF support.
1814 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1815 * emulparams/m68kelfnbsd.sh: New emulation.
1816
6b9b879a
JJ
18172001-12-18 Jakub Jelinek <jakub@redhat.com>
1818
1819 * ldgram.y (vers_node): Support anonymous version tags.
1820 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1821 tag is not defined together with non-anonymous versions.
1822 * ld.texinfo: Document it.
1823
9fc877ed
NC
18242001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1825
1826 * po/tr.po: New file: Turkish translation.
1827 * configure.in (ALL_LINGUAS): Add tr.
1828 * configure: Regenerate.
1829
fc18a3f3
RH
18302001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1831
1832 * Makefile.am: Add rules for eelf64alpha_nbsd.
1833 * Makefile.in: Regenerate.
1834 * configure.tgt (alpha*-*-netbsd*): Set
1835 targ_emul to elf64alpha_nbsd.
1836 * emulparams/elf64alpha_nbsd.sh: Added.
1837
76f63e91
AM
18382001-12-17 Alan Modra <amodra@bigpond.net.au>
1839
1840 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1841 section_tail when fiddling with section list.
1842 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1843 broken into separate strings to make translation easier.
1844 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1845 fiddling with section list.
1846 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1847
d03b89bd
HPN
18482001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1849
1850 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1851
320fec9a
AM
18522001-12-15 Alan Modra <amodra@bigpond.net.au>
1853
1854 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1855
65765700
JJ
18562001-12-13 Jakub Jelinek <jakub@redhat.com>
1857
1858 * emultempl/elf32.em (finish): Supply output_bfd
1859 to bfd_elf*_discard_info.
1860 (OPTION_EH_FRAME_HDR): Define.
1861 (longopts): Add --eh-frame-hdr.
1862 (parse_args): Handle it.
1863 (list_options): Add --eh-frame-hdr to help.
1864 * emultempl/hppaelf.em (finish): Supply output_bfd
1865 to bfd_elf*_discard_info.
1866 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1867
89894c62
AM
18682001-12-13 Alan Modra <amodra@bigpond.net.au>
1869
1870 * lexsup.c (parse_args): Don't pass shortopts to second call to
1871 getopt functions. Restore optind rather than decrementing before
1872 second call. Remove errind as it now duplicates last_optind.
1873
583f1926
CF
18742001-12-11 Christopher Faylor <cgf@redhat.com>
1875
1876 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1877
93fbbb04
GK
18782001-12-07 Geoffrey Keating <geoffk@redhat.com>
1879 Richard Henderson <rth@redhat.com>
1880
1881 * Makefile.am: Add support for xstormy16.
1882 * configure.tgt: Add support for xstormy16.
1883 * Makefile.in: Regenerate.
1884 * emulparams/elf32xstormy16.sh: New file.
1885 * scripttempl/xstormy16.sc: New file.
1886
583f1926
CF
18872001-10-01 Christopher Faylor <cgf@cygnus.com>
1888
fc18a3f3
RH
1889 * Makefile.in (LIB_PATH): Make configurable.
1890 (GENSCRIPTS): Set LIB_PATH in environment.
1891 * configure.in: Substitute LIB_PATH.
1892 * configure: Regenerate.
1893 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1894 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 1895
ff291a48
NC
18962001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1897
1898 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1899 describing the -N option so that it is easier to translate into
1900 foreign languages.
1901
e3c8793a
NC
19022001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1903
1904 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1905 statements describing a single option with a single, newline
1906 escaped fprintf. This allows better translation into other
1907 languages.
9d201f2f 1908
fc18a3f3
RH
1909 * ldmain.c (add_archive_element): Combine multiple strings
1910 into a single string to permit better translation into other
1911 languages.
e3c8793a 1912
f2eab0af
TR
19132001-12-05 Tom Rix <trix@redhat.com>
1914
1915 * Makefile.am: Remove eaixppc64.
9d201f2f 1916 * Makefile.in: Regenerate.
f2eab0af 1917
249172c3
TR
19182001-12-04 Tom Rix <trix@redhat.com>
1919
9d201f2f 1920 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
1921 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1922 warning.
1923 (gld*_read_file): Fix typo.
1924 (change_symbol_mode): Add prototype.
1925 (is_syscall): Same.
9d201f2f 1926
249172c3
TR
1927 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1928 * emulparams/aixrs6.sh : Same.
1929 * emulparams/ppcmacos.sh : Same.
1930 * emulparams/aixppc64.sh : Delete file.
1931 * emultempl/aix.em : Formatting changes.
1932
5b5cd1b0
HPN
19332001-12-04 Hans-Peter Nilsson <hp@axis.com>
1934
1935 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1936 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1937 __Sbss.
1938 (OTHER_END_SYMBOLS): Fix formatting.
1939 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1940 (OTHER_END_SYMBOLS): Fix formatting.
1941
7cecdbff
AM
19422001-12-04 Alan Modra <amodra@bigpond.net.au>
1943
1944 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1945
742aeb63 19462001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 1947
742aeb63 1948 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 1949 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
1950 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1951 (ldemul_default_target): Same.
1952 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
1953 * emultempl/gld960c.em (gld960_choose_target): Same.
1954 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
1955 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1956 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1957 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 1958 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
1959 -b32 and -b64.
1960
48459341
L
19612001-11-27 H.J. Lu <hjl@gnu.org>
1962
1963 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1964 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1965 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1966 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1967 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1968 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1969 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1970 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1971
7cecdbff 1972 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
1973 is not empty.
1974 (SDATA): Likewise.
1975 (REL_SDATA): Likewise.
1976 (REL_SBSS): Likewise.
1977 (REL_SDATA2): Likewise.
1978 (REL_SBSS2): Likewise.
1979 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1980 (SDATA2): Likewise.
1981
ecfdd20c
SC
19822001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1983
1984 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1985 destructor in rom.
7cecdbff 1986 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 1987
da54c6eb
L
19882001-11-22 H.J. Lu <hjl@gnu.org>
1989
1990 * Makefile.in: Regenerated with automake based on automake
1991 1.4-8 in RedHat 7.1.
1992
465bc359
AM
19932001-11-22 Alan Modra <amodra@bigpond.net.au>
1994
1995 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1996 (config.status): Delete rule.
1997 Add extra dependencies to cover sourced emulparams files.
1998 * Makefile.in: Regenerate.
1999
2000 * scripttempl/elf.sc: Order <section>, <section>.* and
2001 corresponding linkonce sections as seen in input files.
2002 Formatting fixes. Zero vma of all sections if not relocating.
2003 (STACK): Define and insert if STACK_ADDR defined.
2004 (OTHER_RELOCATING_SECTIONS): Delete.
2005 (OTHER_END_SYMBOLS): Define.
2006 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2007 (OTHER_READWRITE_SECTIONS): Likewise.
2008 (OTHER_GOT_SECTIONS): Likewise.
2009 (OTHER_SDATA_SECTIONS): Likewise.
2010 (OTHER_BSS_SECTIONS): Likewise.
2011 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2012 (OTHER_READWRITE_SECTIONS): Likewise.
2013 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2014 (OTHER_READWRITE_SECTIONS): Likewise
2015
2016 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2017 (STACK_ADDR): Define.
2018 * emulparams/armelf_oabi.sh: As for armelf.sh.
2019 * emulparams/elf32mcore.sh: As for armelf.sh.
2020 * emulparams/h8300elf.sh: As for armelf.sh.
2021 * emulparams/mn10200.sh: As for armelf.sh.
2022 * emulparams/shelf.sh: As for armelf.sh.
2023
2024 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2025 (OTHER_END_SYMBOLS): Define.
2026 * emulparams/m32relf.sh: As for elf32fr30.sh.
2027 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2028 * emulparams/h8300self.sh: As for elf32fr30.sh.
2029
2030 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2031 defines with RELOCATING test.
2032 (OTHER_SDATA_SECTIONS): Likewise.
2033 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2034 (OTHER_END_SYMBOLS): ..this.
2035 * emulparams/crislinux.sh: As for criself.sh.
2036
2037 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2038 if not relocating.
2039 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2040 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2041 normal and linkonce sections as seen in input files.
2042 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2043 (TEXT_DYNAMIC): Likewise.
2044 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2045 (OTHER_SDATA_SECTIONS): Likewise.
2046 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2047 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2048 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2049 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2050 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2051 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2052 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2053 sections as seen in input files.
2054 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2055 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2056 if not relocating.
2057 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2058 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2059 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2060 (OTHER_SECTIONS): Instead, use this..
2061 (OTHER_END_SYMBOLS): ..and this.
2062
2063 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2064 * emulparams/elf32bsmip.sh: Likewise.
2065 * emulparams/elf32btsmip.sh: Likewise.
2066 * emulparams/elf32ebmip.sh: Likewise.
2067 * emulparams/elf32lmip.sh: Likewise.
2068 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2069 * emulparams/elf32lsmip.sh: Likewise.
2070 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2071 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2072 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2073 * emulparams/elf64btsmip.sh: Likewise.
2074 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2075 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2076 * emulparams/elf32ppclinux.sh: Likewise.
2077 * emulparams/elf32ppcsim.sh: Likewise.
2078 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2079 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2080 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2081 * emulparams/h8300self.sh: Likewise.
2082 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2083 * emulparams/sh.sh: Comment.
2084 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2085 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2086 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2087
abc6ab0a
AM
20882001-11-21 David Heine <dlheine@tensilica.com>
2089 Alan Modra <amodra@bigpond.net.au>
2090
2091 * ldlang.c (map_input_to_output_sections): Replace "break"
2092 accidentally removed with 2001-08-03 change.
2093 (lang_gc_sections_1): Likewise.
2094
2181f54f
AM
20952001-11-21 Alan Modra <amodra@bigpond.net.au>
2096
2097 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2098
ca0b5847
AM
20992001-11-20 Angela Marie Thomas <angela@redhat.com>
2100
2101 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
2102 of false when calling lang_size_sections.
2103 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 2104
c56feb2b
AM
21052001-11-15 Alan Modra <amodra@bigpond.net.au>
2106
2107 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2108 function when LDEMUL_FINISH isn't set to the same name. Don't
2109 call ${LDEMUL_FINISH}.
2110 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2111 * emultempl/armelf.em (arm_elf_finish): Call
2112 gld${EMULATION_NAME}_finish.
2113 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2114 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2115 hppaelf_layout_sections_again if necessary.
2116 (need_laying_out): New var.
2117 (hppaelf_layaout_sections_again): Rename to
2118 hppaelf_layout_sections_again. Clear need_laying_out.
2119 (PARSE_AND_LIST_OPTIONS): Format text.
2120
a48ca7f2
L
21212001-11-14 H.J. Lu <hjl@gnu.org>
2122
2123 * emultempl/armelf.em (arm_elf_finish): Renamed from
2124 gld${EMULATION_NAME}_finish.
2125 (LDEMUL_FINISH): Set to arm_elf_finish.
2126
73d074b4
DJ
21272001-11-14 Daniel Jacobowitz <drow@mvista.com>
2128
2129 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2130 (struct ld_emulation_xfer_struct): Use it.
2131
3b16e843 21322001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 2133
465bc359 2134 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
2135 additional symbols referenced by newer crt0.o files from HP.
2136
f11b7027
NC
21372001-11-12 Anthony Green <green@redhat.com>
2138
2139 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2140
3bf2994f
AM
21412001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2142
2143 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2144 * Makefile.in: Regenerate.
2145
ff5dcc92
SC
21462001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2147
2148 * ld.texinfo: Use @command for commands, @option for options.
2149 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2150 the page man title.
2151 * Makefile.in: Rebuild.
2152
9fb9af6e
CD
21532001-11-04 Chris Demetriou <cgd@broadcom.com>
2154
2155 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2156 Add support for targets.
2181f54f 2157
3c62831e
NC
21582001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2159
2160 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2161 * configure: Regernate.
2162 * po/fr.po: New file.
2163 * po/sv.po: New file.
2164
3a9091c4
NC
21652001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2166
2167 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2168 as little endian default and to support big endian.
2181f54f 2169
361b220e
CD
21702001-11-01 Chris Demetriou <cgd@broadcom.com>
2171
2172 * ld.texinfo (Options): Document new option, -nostdlib.
2173 * lexsup.c (OPTION_NOSTDLIB): New definition.
2174 (ld_options): Add entry for "nostdlib".
2175 (parse_args): Handle OPTIONS_NOSTDLIB.
2176 * ldfile.c (ldfile_add_library_path): Don't add directories
2177 to the search path if they weren't specified on the command line
2178 and -nostdlib was specified.
2179 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2180
210a7bd1
NC
21812001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2182
2183 * lexsup.c (parse_args): Prevent infinite parsing loop when
2184 "-rpath.a" is specified on the command line.
2185 Replace calls to fprintf with calls to einfo.
2186
114283d8
NC
21872001-10-31 John Marshall <jmarshall@acm.org>
2188
2189 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2190 appear only once across all the linker scripts involved in a link
2191 invocation no longer applies. Make the documentation reflect
2192 that.
2193
7649aa50
NC
21942001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2195
2196 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2197 targets.
2198 (sh-*-linux*): Added targ_extra_libpath.
2199
6e814ff8
AM
22002001-10-31 David Heine <dlheine@tensilica.com>
2201
2202 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2203 for padding statements.
2204
3c3bdf30
NC
22052001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2206
2207 * configure.tgt (mmix-*-*): New target.
2208 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2209 Add dependencies to match.
2210 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2211 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2212 scripttempl/mmo.sc: New files.
2213 * gen-doc.texi: @set MMIX.
2214 * ld.texinfo: Ditto.
6e814ff8 2215 [MMIX] Add MMIX node.
3c3bdf30
NC
2216 * Makefile.in: Regenerate.
2217
ca0c1d3e
KH
22182001-10-29 Kazu Hirata <kazu@hxi.com>
2219
2220 * ldlang.c: Fix a comment typo.
2221
1a3d33ce
AM
22222001-10-23 Alan Modra <amodra@bigpond.net.au>
2223
2224 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2225 entries, and match *-*-linux*.
2226
b47c4208
AM
22272001-10-20 Alan Modra <amodra@bigpond.net.au>
2228
2229 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2230 with ldlex_script, ldlex_popstate.
2231 (ifile_p1): Likewise.
2232 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2233 correct slot.
2234 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2235 to 1. Don't BEGIN(SCRIPT).
2236 (lex_redirect): Similarly.
2237 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2238
fd521b47
NC
22392001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2240
2241 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2242 __EH_FRAME_END__ and accept eh frames into data section.
2243 Add ctor and dtor sections.
2244
59d28a94
DD
22452001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2246
2247 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2248 (auto-export): Fix indentation.
2249
663dd378
DD
22502001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2251
2252 * pe-dll.c (autofilter_objectlist): Add startup objects
2253 for profiling.
2254 (auto-export): Constify char * p.
6e814ff8 2255 Extract file basename and use strcmp rather than ststr
663dd378
DD
2256 for object lookup.
2257
31d677f9
CD
22582001-10-18 Chris Demetriou <cgd@broadcom.com>
2259
2260 * ldmain.c (get_emulation): Improve comment about the handling
2261 of -mipsN options.
2262
aa200fe8
AM
22632001-10-17 Alan Modra <amodra@bigpond.net.au>
2264
2265 * po/POTFILES.in: Regenerate.
2266
146e7110
AM
22672001-10-16 Vassili Karpov <malc@pulsesoft.com>
2268
2269 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2270 -z nocopyreloc and -z nocombreloc usage strings.
2271
b4330e85
NC
22722001-10-12 Vassili Karpov <malc@pulsesoft.com>
2273
146e7110 2274 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
2275 in usage.
2276
5af8a2fb
NC
22772001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2278
2279 * scripttempl/armaout.sc: Place .bss section after end of aligned
2280 data section to match behaviour of aout code in constructrion of
2281 header.
2282
5b784096
DD
22832001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2284
2285 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2286 startup files for mingw32 dlls to list.
2287
61585df2
CD
22882001-10-10 Chris Demetriou <cgd@broadcom.com>
2289
2290 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2291
45cf6f3e
AH
22922001-10-08 Aldy Hernandez <aldyh@redhat.com>
2293
2294 * configure.tgt (targ): Add arm9e-*-elf.
2295
e24d7c12
L
22962001-10-05 H.J. Lu <hjl@gnu.org>
2297
2298 * genscripts.sh: Fix a typo in the last change.
2299
ec38dd05
JJ
23002001-10-05 Jakub Jelinek <jakub@redhat.com>
2301
2302 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2303 -z nocombreloc in usage.
2304
cedd6b0d
JB
23052001-10-03 Jim Blandy <jimb@redhat.com>
2306
2307 * genscripts.sh: Include a comment at the top of each generated
2308 script, explaining its purpose.
2309
8bd621d8
AM
23102001-10-03 Vassili Karpov <malc@pulsesoft.com>
2311
2312 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2313 * NEWS: Mention -z nocopyreloc.
2314 * ld.texinfo (Options): Describe nocopyreloc.
2315
fcd8210c
AM
23162001-10-03 Alan Modra <amodra@bigpond.net.au>
2317
2318 * configure: Regenerate.
2319
d32820f2
AM
23202001-10-02 Alan Modra <amodra@bigpond.net.au>
2321
2322 * ldver.h (ld_program_version): Remove declaration.
2323 * lexsup.c (parse_args): Move printing of copyright message..
2324 * ldver.c (ldversion): .. to here.
2325 Use BFD_VERSION_STRING in place of BFD_VERSION.
2326 (ld_program_version): Remove.
2327 * Makefile.am (Makefile): Depend on bfd/configure.in.
2328 Run "make dep-am".
2329 * Makefile.in: Regenerate.
2330
af46bcdc
HPN
23312001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2332
2333 * Makefile.am: Update dependencies with "make dep-am".
2334 * Makefile.in: Regenerate.
2335
4818e05f 23362001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 2337
4818e05f
AM
2338 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2339 * lexsup.c: Add --no-define-common commandline option.
2340 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2341 * ldlex.l: Likewise.
2342 * ld.h: Add command_line.inhibit_common_definition.
2343 * ldmain.c (main): Initialize.
2344 * ld.texinfo: Document.
862517b6 2345
a59f3d35
AM
23462001-09-29 Alan Modra <amodra@bigpond.net.au>
2347
2348 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2349
d5e0ebeb
AM
23502001-09-26 Alan Modra <amodra@bigpond.net.au>
2351
2352 * ldmisc.c (USE_STDARG): Remove.
2353 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2354 (einfo): Likewise.
2355 (minfo): Likewise.
2356 (lfinfo): Likewise.
2357
2358 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2359 declarations. Update copyright.
2360
2f8d8971
NC
23612001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2362
85c77458
NC
2363 * pe-dll.c: Remove obsoleted declaration of
2364 pe_get_data_import_dll_name.
2365 (pe_create_import_fixup): Fix thinko.
2366
2f8d8971
NC
2367 * ld.texinfo(enable-auto-import): Clarify the explanation.
2368
23692001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2370
2371 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2372 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2373 DLL_SUPPORT controlled code.
2374
72358f65 23752001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 2376
72358f65
NC
2377 * emultempl/pe.em(pe_data_import_dll): Make static.
2378 (pe_get_data_import_dll_name): New accessor function.
146e7110 2379 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
2380 pe_get_data_import_dll_name() from pe.em, instead of
2381 directly accessing pe_data_import_dll variable from pe.em.
2382
3882b010
L
23832001-09-18 Bruno Haible <haible@clisp.cons.org>
2384
2385 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2386 (def_file_add_directive): Use ISSPACE instead of isspace.
2387 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2388 isdigit/isxdigit/isalpha/isalnum.
2389 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2390 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2391 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2392 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2393 isalnum.
2394 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2395 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2396 isupper/tolower.
2397 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2398 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2399 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2400 (ctor_prio): Use ISDIGIT instead of isdigit.
2401 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2402 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2403 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2404 isupper/tolower.
2405 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2406 (stricpy): Use TOLOWER instead of isupper/tolower.
2407 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2408 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2409 (lex_warn_invalid): Use ISPRINT instead of isprint.
2410 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2411 (main): For gettext, also set the LC_CTYPE locate facet.
2412 (add_keepsyms_file): Use ISSPACE instead of isspace.
2413 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2414 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2415 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2416 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2417 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2418 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2419 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2420 (quoteput): Use ISSPACE instead of isspace.
2421 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2422 instead of isalnum.
2423
db09f25b
AM
24242001-09-18 Alan Modra <amodra@bigpond.net.au>
2425
2426 * deffilep.y (def_stash_module): Constify "name" param.
2427
2428 * pe-dll.c: Replace CONST with const throughout.
2429 (quick_symbol): Constify "n1", "n2", "n3" params.
2430 (make_singleton_name_thunk): Constify "import" param. Make
2431 "buffer_len" a size_t.
2432 (make_import_fixup_entry): Constify "name", "fixup_name",
2433 "dll_symname" params.
2434 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2435 (pe_get32): Likewise.
2436 (pe_implied_import_dll): Likewise.
2437
2438 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2439 (sort_by_section_name): Likewise.
2440
2441 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2442 (make_import_fixup): Cast printf arg, rel->address to long rather
2443 than int.
2444 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2445
74699268
AM
24462001-09-15 Alan Modra <amodra@bigpond.net.au>
2447
2448 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2449 defines BufferSize. Increase buffer size by one.
2450
775cabad
NC
24512001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2452
2453 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2454
056a1d49
NC
24552001-09-14 Kevin Lo <kevlo@openbsd.org>
2456
2457 * configure.tgt: Add arm-openbsd target.
2458
a7d792bb
L
24592001-09-12 H.J. Lu <hjl@gnu.org>
2460
2461 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2462 eelf64lppc.o to ...
2463 (ALL_64_EMULATIONS): Here.
2464 * Makefile.in: Regenerated.
2465
0d888aac
CW
24662001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2467
2468 * emultempl/pe.em(make_import_fixup): change signature to
2469 take asection as well as arelec; we need this for proper
146e7110 2470 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
2471 there is no attempt to add a constant addend to the reloc;
2472 otherwise, report error condition.
2473 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2474 since final argument is a pointer to make_import_fixup().
2475 Change call to cb() to match make_import_fixup() signature.
2476 (make_import_fixup_mark): make buffer_len unsigned.
2477 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2478
24792001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2480
2481 * ld.texinfo: add verbose documentation for auto-import
146e7110 2482 direct-addressing workaround, to compliment the terse
0d888aac
CW
2483 error message.
2484
cedacdc0
CM
24852001-09-12 Andrew MacLeod <amacleod@redhat.com>
2486
146e7110 2487 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 2488
3b16e843 24892001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
2490
2491 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2492 * emulparams/h8300self.sh: Similarly.
2493
559e4713
NC
24942001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2495
2496 * ld.texinfo (Options, --stack): Correct default value for stack
2497 reserve.
2498
1fdf0249
TR
24992001-09-05 Tom Rix <trix@redhat.com>
2500
2501 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 2502
9b5799b8
AJ
25032001-09-03 Andreas Jaeger <aj@suse.de>
2504
2505 * emultempl/beos.em: Declare prototypes for comparions functions,
2506 adjust definitions.
2507
48f6162b
AJ
25082001-09-02 Andreas Jaeger <aj@suse.de>
2509
2510 * emultempl/aix.em: Add missing prototype.
2511 * emultempl/lnk960.em: Likewise.
2512 * emultempl/vanilla.em: Likewise.
2513 * emultempl/armcoff.em: Likewise.
2514 * emultempl/armelf_oabi.em: Likewise.
2515 * emultempl/beos.em: Likewise.
2516 * emultempl/gld960c.em: Likewise.
2517 * emultempl/gld960.em: Likewise.
2518
2519 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2520 for prototype declaration.
2521
39e5585e
EC
25222001-08-31 Eric Christopher <echristo@redhat.com>
2523 Jason Eckhardt <jle@redhat.com>
2524
2525 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2526
3fc90ddb
AJ
25272001-08-31 Andreas Jaeger <aj@suse.de>
2528
2529 * emultempl/pe.em: Add missing prototypes.
2530 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2531 pe_find_data_imports.
2532 (pr_sym): Add unused attribute.
2533
d43ded80
PB
25342001-08-29 Joel Sherrill <joel@OARcorp.com>
2535
39e5585e 2536 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
2537 default from coff to elf.
2538
3946dd2f
JL
25392001-08-29 Jeff Law <law@redhat.com>
2540
2541 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2542 ARCH specification.
2543 * emulparams/h8300self.sh: Similarly.
2544
3b16e843 25452001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
2546
2547 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2548 eh8300self.o .
2549 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2550 * configure.tgt (h8300-*-elf*): New case.
2551 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2552 * emulparams/h8300self.sh: New file.
2553 * Makefile.in: Regenerated.
2554
70d0c6e9
NC
25552001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2556
2557 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2558 with macro name.
2559
5c67d4bb
AM
25602001-08-27 Linus Nordberg <linus@swox.com>
2561 Alan Modra <amodra@bigpond.net.au>
2562
2563 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2564 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2565 Run "make dep-am"
2566 * Makefile.in: Regenerate.
2567 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2568 entries to correct alphabetical position.
2569 * emulparams/elf64ppc.sh: New.
2570 * emulparams/elf64lppc.sh: New.
2571
08131015
NC
25722001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2573
2574 * ldmain.c (main): Declare BSIZE as static.
2575
db6751f2
JJ
25762001-08-23 Jakub Jelinek <jakub@redhat.com>
2577
2578 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2579 into .rel.dyn resp. .rela.dyn if combreloc.
2580 (get_script): If .x linker script is equal to .xn, only put it
2581 once into the binary.
2582 Add .xc and .xsc scripts.
2583 (parse_args): Handle -z combreloc and -z nocombreloc.
2584 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2585 For .xc and .xsc scripts put all .rel* or .rela* input sections
2586 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2587 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2588 is elf.
2589 Strip trailing whitespace from script.
2590 Generate .xc and .xsc scripts if requested.
2591 * ldmain.c (main): Initialize link_info.combreloc and
2592 link_info.spare_dynamic_tags.
2593 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2594 (ld_options): Add --spare-dynamic-tags option.
2595 (parse_args): Likewise.
2596 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2597 * ldint.texinfo: Document .xc and .xsc linker scripts.
2598 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2599
63d069c0
L
26002001-08-22 H.J. Lu <hjl@gnu.org>
2601
2602 * emulparams/elf32fr30.sh: Add a newline.
2603
948f9114
AJ
26042001-08-21 Andreas Jaeger <aj@suse.de>
2605
2606 * deffilep.y: Add missing prototypes.
2607 * pe-dll.c: Likewise.
2608
ae7fb08f
AM
26092001-08-20 Alan Modra <amodra@bigpond.net.au>
2610
2af02257
AM
2611 * ldlang.c (insert_pad): Fix typos in last patch.
2612
2613 * ldlang.c: When traversing lang_statement_union_type lists,
2614 consistently use "header.next" rather than "next".
2615 * mpw-eppcmac.c: Likewise.
2616 * emultempl/beos.em: Likewise.
2617 * emultempl/hppaelf.em: Likewise.
2618 * emultempl/pe.em: Likewise.
2619 * ldlang.h (union lang_statement_union): Remove "next" field.
2620
c0c330a7
AM
2621 * ldlang.c (insert_pad): Use offsetof macro.
2622 (lang_size_sections): Always neuter padding statements.
2623 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2624
ae7fb08f
AM
2625 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2626 passed to lang_size_sections.
2627 (pe_exe_fill_sections): Likewise.
2628 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2629 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2630
fab80407
AM
26312001-08-18 Alan Modra <amodra@bigpond.net.au>
2632
2633 * emultempl/aix.em: Formatting fixes.
2634
b3327aad
AM
26352001-08-18 Alan Modra <amodra@bigpond.net.au>
2636
2637 * ldlang.c (insert_pad): Make use of an existing pad statement if
2638 available. Move code calculating alignment, adjusting section
2639 alignment power, and adjusting dot to ..
2640 (size_input_section): .. here. Remove unused relax param.
2641 (lang_size_sections): Change boolean `relax' param to boolean *.
2642 Adjust call to size_input_section. Make use of insert_pad to
2643 place pad after the assignment statement. If relaxing, zap
2644 padding statements.
2645 (reset_memory_regions): Reset output_bfd section sizes too.
2646 (relax_again): Move to..
2647 (lang_process): ..here. Adjust call to lang_size_sections, and
2648 remove duplicated code.
2649 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2650
563e308f
AM
26512001-08-17 Alan Modra <amodra@bigpond.net.au>
2652
2653 * ld.texinfo: Document that fill values now use the four least
2654 significant bytes.
2655 * emulparams/elf32fr30.sh (NOP): Update.
2656 * emulparams/elf32mcore.sh: Likewise.
2657 * emulparams/elf64_s390.sh: Likewise.
2658 * emulparams/elf_i386.sh: Likewise.
2659 * emulparams/elf_i386_be.sh: Likewise.
2660 * emulparams/elf_i386_chaos.sh: Likewise.
2661 * emulparams/elf_i386_ldso.sh: Likewise.
2662 * emulparams/elf_s390.sh: Likewise.
2663 * emulparams/elf_x86_64.sh: Likewise.
2664 * emulparams/i386moss.sh: Likewise.
2665 * emulparams/i386nw.sh: Likewise.
2666 * emulparams/m68kelf.sh: Likewise.
2667 * scripttempl/elf.sc: Update NOP comment.
2668 * scripttempl/elfi370.sc: Likewise.
2669 * scripttempl/elfm68hc11.sc: Likewise.
2670 * scripttempl/elfm68hc12.sc: Likewise.
2671 * scripttempl/nw.sc: Likewise.
2672
b90e1c6f
TR
26732001-08-15 Tom Rix <trix@redhat.com>
2674
2675 * ldgram.y (saved_script_handle): Initialize to NULL.
2676 * ldmain.c (main): Change check on saved_script_handle.
948f9114 2677
39dcfe18
AM
26782001-08-14 Alan Modra <amodra@bigpond.net.au>
2679
cde43e70
AM
2680 * emultempl/elf32.em: Formatting fixes.
2681 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2682 looking at sec->owner.
2683 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2684 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2685 unused code, and reorganize orphan section placement code.
2686
39dcfe18
AM
2687 * ldlang.c (wild_doit): Rename to lang_add_section.
2688 * ldlang.h: Here too.
2689 * mpw-elfmips.c: And here.
2690 * emultempl/beos.em: And here.
2691 * emultempl/elf32.em: And here.
2692 * emultempl/hppaelf.em: And here.
2693 * emultempl/pe.em: And here.
2694
908d20b3
RH
26952001-08-13 Richard Henderson <rth@redhat.com>
2696
2697 * emultempl/needrelax.em: New file.
2698 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2699 * Makefile.am (eelf64_ia64.c): Depend on it.
2700 * Makefile.in: Rebuild.
2701
0f33d40b
AM
27022001-08-13 Alan Modra <amodra@bigpond.net.au>
2703
22af9fd3
AM
2704 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2705 output_section is set non-NULL.
2706
0f33d40b
AM
2707 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2708 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2709 needlessly create an output_section_statement. Treat a correctly
2710 named output_section_statement with NULL bfd_section as compatible.
2711
55ab6103
HPN
27122001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2713
2714 * emultempl/generic.em: Support EXTRA_EM_FILE.
2715 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2716 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2717 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2718 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2719 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2720 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2721 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2722 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2723 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2724 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2725
24098abb
RH
27262001-08-12 Richard Henderson <rth@redhat.com>
2727
2728 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2729 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2730 scripttempl/v850.sc: Keep .jcr data.
2731
b9a8de1e 27322001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
2733 Andrew Haley <aph@cambridge.redhat.com>
2734 Nick Clifton <nickc@redhat.com>
b9a8de1e 2735
146e7110 2736 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
2737 Change type to file handle.
2738 * ld.h (had_script): Rename and retype.
2739 * ldfile.c (ldfile_open_command_file): Save the file handle
2740 used in saved_script_handle.
2741 * lexsup.c (parse_args): Do not allow -c option to alter
2742 saved_script_handle.
2743 * ldmain.c (main): Print out the linker script used if
2744 --verbose is given. Check saved_script_handle to obtain the
2745 external linker script used, or if NULL, dump the builtin
2746 script.
2747 * ld.texinfo: Document that --verbose now dumps the linker
2748 script used, regardless of whether it was an internal or an
2749 external script.
2750
0218d1e4
AJ
27512001-08-10 Andreas Jaeger <aj@suse.de>
2752
2753 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2754 to build warnings.
2755 * configure: Regenerate.
2756
5253f23b
AM
27572001-08-09 Alan Modra <amodra@bigpond.net.au>
2758
73810896
AM
2759 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2760
5253f23b
AM
2761 * scripttempl/elf.sc: Move non-text .dynamic section before
2762 .plt/.got/.sdata* group.
2763 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2764 (OTHER_SDATA_SECTIONS): Add.
2765 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2766 OTHER_GOT_SECTIONS.
2767 * emulparams/crislinux.sh: Likewise.
2768 * emulparams/elf32b4300.sh: Likewise.
2769 * emulparams/elf32bmip.sh: Likewise.
2770 * emulparams/elf32bmipn32.sh: Likewise.
2771 * emulparams/elf32bsmip.sh: Likewise.
2772 * emulparams/elf32btsmip.sh: Likewise.
2773 * emulparams/elf32ebmip.sh: Likewise.
2774 * emulparams/elf32elmip.sh: Likewise.
2775 * emulparams/elf32l4300.sh: Likewise.
2776 * emulparams/elf32lmip.sh: Likewise.
2777 * emulparams/elf32lsmip.sh: Likewise.
2778 * emulparams/elf32ltsmip.sh: Likewise.
2779 * emulparams/elf64bmip.sh: Likewise.
2780 * emulparams/elf64btsmip.sh: Likewise.
2781 * emulparams/elf64ltsmip.sh: Likewise.
2782
179c732c
AM
27832001-08-08 Alan Modra <amodra@bigpond.net.au>
2784
2785 * genscripts.sh: Source the emulparams script before each output
2786 script is generated so that variables like `RELOCATING' may affect
2787 variables defined in the emulparams script.
2788
3fd36710
AM
27892001-08-04 Alan Modra <amodra@bigpond.net.au>
2790
20713691
AM
2791 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2792 order.
2793
3fd36710
AM
2794 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2795 ie. iterate over wild_statement.section_list.
2796 (gld${EMULATION_NAME}_place_orphan): Likewise.
2797
de0b1853
SC
27982001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2799
2800 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2801 .fini[0-4] sections used by _exit
2802 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2803 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2804 * scripttempl/elfm68hc11.sc: Likewise.
2805
ff7e6f88
L
28062001-08-03 H.J. Lu <hjl@gnu.org>
2807
2808 * emultempl/beos.em (init): Add the missing initialization.
2809
b6bf44ba
AM
28102001-08-03 Alan Modra <amodra@bigpond.net.au>
2811
2812 * ld.texinfo (Input Section Basics): Clarify ordering of output
2813 sections.
2814 * ldlang.c (callback_t): Add wildcard_list param.
2815 (walk_wild_section): Remove "section" param. Rewrite for
2816 lang_wild_statement_type change. Remove unique_section_p test.
2817 (walk_wild_file): Remove "section" param.
2818 (walk_wild): Remove "section" and "file" params.
2819 (lang_gc_wild): Likewise.
2820 (wild): Likewise. Modify for lang_wild_statement_type change.
2821 (wild_sort): Likewise. Add "sec" param.
2822 (gc_section_callback): Likewise.
2823 (output_section_callback): Likewise. Do unique_section_p test.
2824 (map_input_to_output_sections): Modify call to wild.
2825 (lang_gc_sections_1): Likewise.
2826 (print_wild_statement): Modify for lang_wild_statement_type
2827 change.
2828 (lang_add_wild): Replace filename, filenames_sorted param with
2829 filespec. Replace section_name, sections_sorted,
2830 exclude_filename_list with section_list.
2831 * ldlang.h (lang_add_wild): Here too.
2832 (lang_wild_statement_type): Replace section_name, sections_sorted,
2833 and exclude_filename_list with section_list.
2834 * ldgram.y (current_file): Delete.
2835 (%union): Add wildcard_list.
2836 (file_NAME_list): Set type to wildcard_list. Build a linked list
2837 rather than calling lang_add_wild for each entry.
2838 (input_section_spec_no_keep): Call lang_add_wild here instead.
2839 * ld.h (struct wildcard_list): Declare.
2840 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2841
b044cda1
CW
28422001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2843
2844 * ldmain.c (main): initialize link_info.pei386_auto_import
2845 * pe-dll.c: new tables for auto-export filtering
2846 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 2847 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
2848 "by hand".
2849
28502001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2851
b6bf44ba
AM
2852 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2853 static variable current_sec (static struct sec *). Add
b044cda1 2854 forward declaration for add_bfd_to_link.
b6bf44ba
AM
2855 (process_def_file): Don't export undefined symbols. Do not
2856 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
2857 with new API.
2858 (pe_walk_relocs_of_symbol): New function.
2859 (generate_reloc): add optional extra debugging
b6bf44ba 2860 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 2861 line in output
b6bf44ba 2862 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
2863 (DATA auto-import support).
2864 (make_singleton_name_thunk): New function.
2865 (make_import_fixup_mark): New function.
2866 (make_import_fixup_entry): New function.
2867 (pe_create_import_fixup): New function.
b6bf44ba 2868 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 2869 char *.
b6bf44ba
AM
2870 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2871 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
2872 pe_create_import_fixup.
2873 * emultempl/pe.em: add new options --enable-auto-import,
2874 --disable-auto-import, and --enable-extra-pe-debug.
2875 (make_import_fixup): New function.
2876 (pe_find_data_imports): New function.
2877 (pr_sym): New function.
b6bf44ba 2878 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
2879 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2880 CODE.
2881
28822001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 2883
b044cda1
CW
2884 * ld.texinfo: add additional documentation for
2885 --export-all-symbols. Document --out-implib,
2886 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
2887 --dll-search-prefix, --enable-auto-import, and
2888 --disable-auto-import.
b044cda1
CW
2889 * ldint.texinfo: Add detailed documentation on auto-import
2890 implementation.
2891
156e34dd
NC
28922001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2893
2894 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2895 example.
2896
d6231427
AM
28972001-07-24 Alan Modra <amodra@bigpond.net.au>
2898
2899 * Makefile.am: Update dependencies with "make dep-am".
2900 * Makefile.in: Regenerate
2901
e14ec88b
AM
29022001-07-23 Alan Modra <amodra@bigpond.net.au>
2903
2904 * ldcref.c (check_section_sym_xref): New function.
2905 (check_nocrossrefs): Call it.
2906 (check_nocrossref): Interate over h->refs here instead of..
2907 (check_refs): ..here. Pass in the symbol name, section, and bfd
2908 rather than hash_entry pointers.
2909 (struct check_refs_info): Keep symbol name rather than hash entry.
2910 Remove "same".
2911 (check_reloc_refs): Tweak for above changes in check_refs_info.
2912 Only report references to section syms when symname is NULL to
2913 prevent duplicate messages for the same reloc.
2914
1b577b00
NC
29152001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2916
c7d701b0
NC
2917 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2918 available. Do not print NULL trees.
2919 (exp_print_token): Print unknown tokens with values > 126 as
2920 decimal values not ASCII characters.
2921
1545243b
NC
2922 * ldlang.c (lang_leave_overlay): If a region is specified assign
2923 it to all sections inside the overlay unless they have been
2924 assigned to the own, non-default, memory region.
2925
1b577b00
NC
2926 * README: Add header for consistency with other README files.
2927
5030876b
L
29282001-07-14 H.J. Lu <hjl@gnu.org>
2929
2930 * emultempl/elf32.em (output_prev_sec_find): Never return
2931 bfd_abs_section_ptr, bfd_com_section_ptr nor
2932 bfd_und_section_ptr.
2933
18c7a9a5
NC
29342001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2935
22af9fd3 2936 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
2937 elf32.em.
2938 * Makefile.in: Regenerate.
2939
9ffecff1
MG
29402001-07-14 matthew green <mrg@eterna.com.au>
2941
2942 * configure.tgt (i386-*-netbsdelf*): New target.
2943 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2944
95500e1c
JJ
29452001-07-13 Jakub Jelinek <jakub@redhat.com>
2946
2947 * emultempl/elf32.em (output_prev_sec_find): New.
2948 (place_orphan): Use it.
2949
e97cb84f
L
29502001-07-11 H.J. Lu <hjl@gnu.org>
2951
2952 * ldmain.c (main): Fix typos in the last change.
2953
7333607e
JJ
29542001-07-11 Jakub Jelinek <jakub@redhat.com>
2955
2956 * ldmain.c (main): Disallow -F and -f without -shared.
2957
d29d80f2
NC
29582001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2959
2960 * emultempl/pe.em (after_open): Check for the output_bfd not
2961 having any coff_data structure allocated to it.
2962
c2a1a436
DB
29632001-07-09 David O'Brien <obrien@FreeBSD.org>
2964
2965 * emultempl/elf32.em: Do not assuming that contents of the buffer
2966 returned from basename function will remain unchanged accross other
2967 function calls.
2968
63653551
L
29692001-07-03 H.J. Lu <hjl@gnu.org>
2970
2971 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2972 2001-07-03. It creates dynamic entries even for static binaries.
2973
d303a449
L
29742001-07-03 Jakub Jelinek <jakub@redhat.com>
2975
2976 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2977 (DYNAMIC): Use it to reserve few dynamic entries for
2978 post-linking tools.
2979
9f22353f
AM
29802001-06-27 Alan Modra <amodra@bigpond.net.au>
2981
2982 * emulparams/hppa64linux.sh: New file.
2983 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2984 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2985 (ehppa64linux.c): Add rule to make it.
2986 Run "make dep-am".
2987 * Makefile.in: Regenerate.
2988
62bf86b4
HPN
29892001-06-21 Hans-Peter Nilsson <hp@axis.com>
2990
2991 * ld.texinfo (Options, -r): Mention restrictions when using
2992 different object formats.
2993
429d935d
HPN
29942001-06-19 Hans-Peter Nilsson <hp@axis.com>
2995
2996 * ldlang.c (lang_check): Emit fatal error if relocatable link
2997 between different object flavours with relocations in input.
2998
cb840a31
L
29992001-06-19 H.J. Lu <hjl@gnu.org>
3000
3001 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3002 (--version-script): Mention the language support.
3003
9bf03acc
L
30042001-06-19 H.J. Lu <hjl@gnu.org>
3005
3006 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3007
c45021f2
NC
30082001-06-18 H.J. Lu <hjl@gnu.org>
3009
b6bf44ba
AM
3010 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3011 (diststuff): Add $(MANS).
3012 * Makefile.in: Regenerated.
c45021f2 3013
b6bf44ba 3014 * ld.1: Removed.
c45021f2 3015
6caa99ab
HPN
30162001-06-18 Hans-Peter Nilsson <hp@axis.com>
3017
605d9b3a
HPN
3018 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3019 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3020 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3021 * ld.h (args_type): Remove member export_dynamic. All users
3022 changed to use struct bfd_link_info member.
3023
6caa99ab
HPN
3024 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3025 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3026 * Makefile.in: Regenerate.
3027
6f9efd97
L
30282001-06-18 H.J. Lu <hjl@gnu.org>
3029
3030 * ldlang.c (init_os): Add the newline to the einfo call.
3031 (lang_check): Likewise.
3032 (lang_do_version_exports_section): Likewise.
3033
5af9fd8b
L
30342001-06-15 H.J. Lu <hjl@gnu.org>
3035
3036 * lexsup.c (parse_args); Save optind to report unrecognized
3037 option.
3038
2a096f04
HPN
30392001-06-15 Hans-Peter Nilsson <hp@axis.com>
3040
7e66c3f5
HPN
3041 * ldlang.c (lang_check): Emit fatal error if relocatable link
3042 between different object flavours.
3043
2a096f04
HPN
3044 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3045 Set new link_info member export_dynamic.
3046 * ldmain.c (main): Initialize new link_info member export_dynamic.
3047
6770ec8c
NC
30482001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3049
3050 * ldlang.c (walk_wild): Only call walk_wild_file if
3051 lookup_name returns something.
b6bf44ba 3052 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 3053 (load_symbols): Change to a boolean function.
b6bf44ba 3054 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
3055 executable.
3056
8529105a
AM
30572001-06-08 Alan Modra <amodra@bigpond.net.au>
3058
3059 * ldlang.c (record_bfd_errors): Remove.
3060
3061 * emultempl/aix.em: Fix copyright dates.
3062
8f3aa7a0
AJ
30632001-06-07 Andreas Jaeger <aj@suse.de>
3064
3065 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3066 (TEXT_START_ADDR): Likewise.
3067
3277f888
AM
30682001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3069
3070 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3071
3763134d
DD
30722001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3073
3074 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3075
5929ebc0
L
30762001-05-31 H.J. Lu <hjl@gnu.org>
3077
3078 * ldlang.c (open_input_bfds): Don't change the bfd error
3079 handler whilst loading symbols.
3080
c04a062d
NC
30812001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3082
3083 * configure.tgt: Remove i370-mvs architecture, it is not currently
3084 supported.
3085
96fcab3e
L
30862001-05-25 H.J. Lu <hjl@gnu.org>
3087
3088 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3089 like emulparams/aixppc.sh.
3090
db8d4f23
L
30912001-05-25 H.J. Lu <hjl@gnu.org>
3092
3093 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3094 setting of output_filename after bfd_scan_arch.
3095 * emultempl/pe.em: Likewise.
3096
5f642101
L
30972001-05-25 H.J. Lu <hjl@gnu.org>
3098
3099 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3100 like emulparams/aixppc.sh.
3101
3102 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3103 instead of ${srcdir}/emultempl/stringify.sed.
3104
64e9ece0
TW
31052001-05-25 Timothy Wall <twall@oculustech.com>
3106
3107 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 3108 output.
64e9ece0 3109
c709b096
AM
31102001-05-25 Alan Modra <amodra@one.net.au>
3111
3112 * configure.host: Replace linuxoldld with linux*oldld.
3113 * configure.tgt: Likewise.
3114
6cbdcc6f
L
31152001-05-24 H.J. Lu <hjl@gnu.org>
3116
3117 * emultempl/stringify.sed: Removed again.
3118
86af25fe
L
31192001-05-24 H.J. Lu <hjl@gnu.org>
3120
3121 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3122 (gld${EMULATION_NAME}_before_parse): Initialize
3123 ldfile_output_architecture, ldfile_output_machine and
3124 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3125 * emultempl/beos.em: Likewise.
3126 * emultempl/elf32.em: Likewise.
3127 * emultempl/linux.em: Likewise.
3128 * emultempl/mipsecoff.em: Likewise.
3129 * emultempl/pe.em: Likewise.
3130 * emultempl/sunos.em: Likewise.
3131
3b1b01cf
TR
31322001-05-24 Tom Rix <trix@redhat.com>
3133
8f3aa7a0 3134 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
3135 udate import file format.
3136 (change_symbol_mode) New, same
3137 (is_syscall) New, same
3138 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3139 * emulparams/aixppc64.sh : same
3140 * emulparams/aixrs6.sh : same
3141 * emulparams/ppcmacos.sh : same
3142 * emultempl/aix.em : use strtoull to parse options
3143 * Makefile.am : add eaixppc64 emulation for xcoff64
3144 * Makefile.in : same
3145 * configure.tgt : same
3146
3147 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 3148 default data section offset to 0x20000000
3b1b01cf 3149 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 3150 loader and debug sections use the currect section offset.
3b1b01cf
TR
3151
3152 * emultempl/aix.em : Add xcoff64 support
3153 Add -binitfini support
8f3aa7a0 3154 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 3155 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 3156 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
3157 sections
3158
3159 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 3160
57e6abd2
AO
31612001-05-23 Alexandre Oliva <aoliva@redhat.com>
3162
3163 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3164 variable to avoid non-portable shell construct.
3165
d1cf510e
NC
31662001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3167
3168 * ldmain.c (get_emulation): Add -mips5 command line argument.
3169
506eee22
NC
31702001-05-22 Alexandre Oliva <aoliva@redhat.com>
3171
3172 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3173 (ELF_INTERPRETER_NAME): Define it.
3174 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3175 it.
3176 * configure.tgt (targ_emul, targ_extra_emuls)
3177 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3178 as primary, elf_i386 as extra.
3179 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3180 (eelf_i386_ldso.c): New rule.
3181 * Makefile.in: Rebuilt.
3182
31832001-05-22 Nick Clifton <nickc@redhat.com>
3184
3185 * lexsup.c (ld_options): Allow -I to be an alias for
3186 --dynamic-linker. This is for Solaris compatability.
3187 * ld.texinfo: Document that -I can be used.
3188 * ld.1: Regenerate.
3189
d1778b88
AM
31902001-05-16 Alan Modra <amodra@one.net.au>
3191
3192 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3193 whether an input section is the first one assigned to an output
3194 section.
3195 Assorted formatting fixes.
3196
02649152
DD
31972001-05-14 DJ Delorie <dj@delorie.com>
3198
3199 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3200 * Makefile.in: Ditto.
3201
579f31ac
JJ
32022001-05-11 Jakub Jelinek <jakub@redhat.com>
3203
3204 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3205 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3206 output sections.
3207 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3208
8550eb6e
JJ
32092001-05-11 Jakub Jelinek <jakub@redhat.com>
3210
3211 * ldlang.c (lang_process): Call bfd_merge_sections.
3212
8e5a525c
AM
32132001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3214
3215 * ldgram.y: Fix typo.
3216
1c9acd94
L
32172001-05-03 H.J. Lu <hjl@gnu.org>
3218
3219 * emultempl/elf32.em: Include "libiberty.h".
3220 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3221 basename of the bfd filename.
3222 (gld${EMULATION_NAME}_stat_needed): Likewise.
3223 (gld${EMULATION_NAME}_try_needed): Likewise.
3224 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3225
14fe918e
L
32262001-05-02 H.J. Lu <hjl@gnu.org>
3227
3228 * emultempl/pe.em: Include <ctype.h>.
3229
c7e40348
NC
32302001-05-02 Johan Rydberg <jrydberg@opencores.org>
3231
b6bf44ba 3232 * emulparams/elf32openrisc.sh: New file.
c7e40348 3233
b6bf44ba
AM
3234 * Makefile.am: Add OpenRISC target.
3235 * Makefile.in: Regenerated.
c7e40348 3236
b6bf44ba 3237 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
3238
32392001-05-02 Nick Clifton <nickc@redhat.com>
3240
3241 * emultempl/aix.em: Replace buystring with xstrdup.
3242 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 3243
d1b2b2dc
L
32442001-05-02 H.J. Lu <hjl@gnu.org>
3245
3246 * ldfile.c: Include "libiberty.h".
3247 * ldlex.l: Likewise.
3248
3249 * ldmisc.c (buystring): Removed.
3250 * ldmisc.h: Likewise.
3251
3252 * ldfile.c: Replace buystring with xstrdup.
3253 * ldlang.c: Likewise.
3254 * ldlex.l: Likewise.
3255 * ldmain.c: Likewise.
3256 * ldmisc.c: Likewise.
3257 * lexsup.c: Likewise.
3258 * mpw-eppcmac.c: Likewise.
3259
35714f2a
AJ
32602001-04-30 Andreas Jaeger <aj@suse.de>
3261
3262 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3263
884fb58e
NC
32642001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3265
b6bf44ba
AM
3266 * ldlang.c (load_symbols): Give emulation a chance
3267 to process unrecognized file before fatal error is
3268 reported, not after.
884fb58e 3269
87748b32
NC
32702001-04-27 Sean McNeil <sean@mcneil.com>
3271
3272 * configure.tgt: Add arm-vxworks target.
3273 * scripttempl/armcoff.sc: Support .text or .data as a section name
3274 prefix.
3275 Define _etext.
35714f2a 3276
7ce691ae
C
32772001-04-13 J.T. Conklin <jtc@redback.com>
3278
3279 * ld.texinfo: Document --fatal-warnings.
3280 * ld.1: Regenerate.
3281
3282 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 3283 warnings have been turned into errors.
7ce691ae
C
3284 * lexsup.c (OPTION_WARN_FATAL): Define.
3285 (ld_options): Entry for --fatal-warnings.
3286 (parse_args): Handle OPTION_WARN_FATAL.
3287 * ld.h (ld_config_type): Add fatal_warnings field.
3288
f5fa8ca2
JJ
32892001-04-13 Jakub Jelinek <jakub@redhat.com>
3290
3291 * ldmain.c (main): Default to discard_sec_merge.
3292 * lexsup.c (OPTION_DISCARD_NONE): Define.
3293 (ld_options): Add --discard-none.
3294 (parse_args): Handle OPTION_DISCARD_NONE.
3295 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3296 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3297 all its input sections match.
3298
fdec3cfc
L
32992001-04-05 Steven J. Hill <sjhill@cotw.com>
3300
3301 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3302 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3303 (eelf32ltsmip.c): New target.
3304 (eelf64btsmip.c): Likewise.
3305 (eelf64ltsmip.c): Likewise.
3306 * Makefile.in: Regenerated.
3307
3308 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3309 target.
3310 (mips*-*-linux-gnu*): Likewise.
3311
3312 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3313 MIPS taget.
35714f2a 3314 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
3315 target.
3316 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3317 endian target.
3318
589bad82
HPN
33192001-04-05 Hans-Peter Nilsson <hp@axis.com>
3320
3321 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3322 correct value of __Stext here.
3323 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3324 .startup section.
3325
3326 * emulparams/crislinux.sh: Remove FIXME.
3327
94202e16
AM
33282001-04-02 Alan Modra <alan@linuxcare.com.au>
3329
3330 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3331 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3332
1268a053
HPN
33332001-03-27 Hans-Peter Nilsson <hp@axis.com>
3334
3335 * configure.tgt (cris-*-*): Change default emulation to criself.
3336 (cris-*-*aout*): New rule.
3337
d85e9ff7
AM
33382001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3339
3340 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3341 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3342
0879a67a
AJ
33432001-03-26 Andreas Jaeger <aj@suse.de>
3344
3345 * ld.texinfo (Overview): Fix syntax in texi code.
3346
0285c67d
NC
33472001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3348
3349 * ld.texinfo: Put @c man indications to generate the ld man page.
3350 When generating man, define all the variables. Define SEEALSO
3351 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3352 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3353 (ld.1): Generate from ld.texinfo.
3354 * Makefile.in: Regenerate.
3355
c20ec07b
NC
33562001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3357
3358 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 3359 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 3360
cc5ce052
UD
33612001-03-17 Ulrich Drepper <drepper@redhat.com>
3362
3363 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3364 is an absolute path look only for this file and not along the path.
3365
a1ab1d2a
UD
33662001-03-17 Ulrich Drepper <drepper@redhat.com>
3367
3368 * emultempl/elf32.em (OPTION_GROUP): New macro.
3369 Add new option Bgroup to longopts.
3370 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3371 (gld*_list_options): Add -Bgroup and -z defs.
3372 * ld.1: Document -Bgroup and -z defs.
3373 * ld.texinfo: Likewise.
3374
788fca5a
MM
33752001-03-07 Michael Meissner <meissner@redhat.com>
3376
3377 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3378 with sections created by -fdata-sections.
3379 (.dynbss,.bss): Ditto.
3380
1c7566d1
AM
33812001-03-05 Alan Modra <alan@linuxcare.com.au>
3382
3383 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3384 after_allocation_default, not gld..._before_allocation.
3385
27b7e12d
AM
33862001-02-27 Alan Modra <alan@linuxcare.com.au>
3387
3388 * configure.in (BFD_VERSION): New.
3389 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3390 * configure: Regenerate.
3391 * Makefile.am: Run "make dep-am"
3392 * Makefile.in: Regenerate.
3393
2bc551c7
TW
33942001-02-26 Timothy Wall <twall@cygnus.com>
3395
3396 * emulparams/elf64_aix.sh: Add additional read-only sections;
3397 uncomment lines which are now required.
3398
1276aefa
NC
33992001-02-26 H.J. Lu <hjl@gnu.org>
3400
3401 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
3402 that problems can be caught whilst loading symbols.
3403 (record_bfd_errors): New function: Report BFD errors and mark
3404 the executable output as being invalid.
1276aefa 3405
41c49998
TW
34062001-02-22 Timothy Wall <twall@cygnus.com>
3407
3408 * configure.host: Add configuration for ia64-*-aix*.
3409 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3410 Add dependencies for eelf64_aix.c.
3411 * Makefile.in: Regenerate.
3412 * configure.tgt: Add ia64-*-aix* mapping.
3413 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 3414 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
3415 AIX-specific test.
3416
78f85fd7
L
34172001-02-20 H.J. Lu <hjl@gnu.org>
3418
3419 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3420 false if we found the file.
3421
1ac7e077 34222001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
3423
3424 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3425 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3426
e135f41b
NC
34272001-02-18 lars brinkhoff <lars@nocrew.org>
3428
3429 * Makefile.am: Add PDP-11 target.
3430 * configure.tgt: Likewise.
3431 * emulparams/pdp11.sh: New file.
3432
a842aceb
DB
34332001-02-17 David O'Brien <obrien@FreeBSD.org>
3434
3435 * configure.host: Add a generic FreeBSD configuration entry such that
3436 all [modern] FreeBSD systems on all platforms will look the same.
3437
24174db0
L
34382001-02-14 H.J. Lu <hjl@gnu.org>
3439
3440 * configure.tgt: Remove mention of earmelf_linux26.
3441
30c3c13a
RH
34422001-02-13 Richard Henderson <rth@redhat.com>
3443
3444 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3445
b46a87b1
L
34462001-02-13 H.J. Lu <hjl@gnu.org>
3447
3448 * ldexp.h (node_type): Add etree_provided.
3449 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3450 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 3451 for etree_provided.
b46a87b1
L
3452 (exp_print_tree): Handle etree_provided.
3453 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3454 etree_provided.
3455
f3988fd9
RH
34562001-02-09 David Mosberger <davidm@hpl.hp.com>
3457
3458 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3459 .IA_64.unwind.* pattern to unwind table section and
3460 .IA_64.unwind_info* pattern to unwind info section.
3461
a85d7ed0
NC
34622001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3463
3464 * Makefile.am: Add linux target for S/390.
3465 * Makefile.in: Likewise.
3466 * configure.host: Likewise.
3467 * configure.tgt: Likewise.
3468 * emulparams/elf64_s390.sh: New file.
3469 * emulparams/elf_s390.sh: New file.
3470
780248c4
JJ
34712001-02-09 Jakub Jelinek <jakub@redhat.com>
3472
3473 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3474 targ_extra_libpath.
3475 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3476
0e2534bd
PB
34772001-02-06 Philip Blundell <philb@gnu.org>
3478
3479 * Makefile.am: Remove mention of earmelf_linux26.
3480 * Makefile.in: Regenerate.
3481
46c1ea57
PB
34822001-02-04 Philip Blundell <philb@gnu.org>
3483
3484 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3485 * emulparams/armelf_linux26.sh: Delete.
3486 * configure.tgt: Remove mention of armelf_linux26 emulation.
3487
0088edd2
NC
34882001-02-01 Nick Clifton <nickc@redhat.com>
3489
3490 * ld.1: Replace occurances of -oformat with --oformat.
3491
02aa14fb
AM
34922001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3493
3494 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3495 load_base is specified.
3496
f813923c
HPN
34972001-01-24 Hans-Peter Nilsson <hp@axis.com>
3498
3499 * emultempl/elf32.em: Correct spelling in comments and listed
3500 options.
3501
c1eb1488
AM
35022001-01-23 Alan Modra <alan@linuxcare.com.au>
3503
3504 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3505 default for the first section of a group of overlay sections.
3506
d9fc3714
AM
35072001-01-22 Alan Modra <alan@linuxcare.com.au>
3508
3509 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3510 * Makefile.in: Regenerate.
3511 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3512 Check for null tool_dir.
3513
6be0ca94
JW
35142001-01-16 Jim Wilson <wilson@redhat.com>
3515
3516 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3517 and IA_64.unwind.info.
3518
b9247304
L
35192001-01-16 H.J. Lu <hjl@gnu.org>
3520
3521 * ldlang.c (lang_check): Merge the private data only if the
3522 input file has contents.
3523
577a0623
AM
35242001-01-14 Alan Modra <alan@linuxcare.com.au>
3525
d952f17a
AM
3526 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3527
ffd6e9de
AM
3528 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3529 enabling search for libmilli. On a relocatable link, make .text
3530 sections unique.
3531 (LDEMUL_AFTER_PARSE): Define.
3532 (hppaelf_finish): Correct spelling of relocatable in comments.
3533
577a0623
AM
3534 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3535 rummage through the script for sections on the unique list.
3536 Correct length of strncmp for ".note".
3537 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3538
3539 * ldlang.c (unique_section_list): New var.
3540 (unique_section_p): New function.
3541 (walk_wild_section): Don't match sections on unique_section_list.
3542 (lang_add_unique): New function.
ffd6e9de 3543 Correct spelling of relocatable in comments.
577a0623
AM
3544
3545 * ldlang.h (struct unique_sections): Declare.
3546 (unique_section_list): Declare.
3547 (unique_section_p): Declare.
3548 (lang_add_unique): Declare.
3549
3550 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3551 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3552
3553 * ld.texinfo (--unique): Update.
3554
b7ed8fad
NC
35552001-01-13 Nick Clifton <nickc@redhat.com>
3556
3557 * lexsup.c (parse_args): Remove spurious white space.
3558
d0398d6a
NC
35592001-01-12 Nick Clifton <nickc@redhat.com>
3560
3561 * lexsup.c (parse_args): Update copyright date.
3562
350fdb00
PB
35632001-01-12 Philip Blundell <pb@futuretv.com>
3564
3565 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3566
60c6797e
KH
35672001-01-10 Kazu Hirata <kazu@hxi.com>
3568
3569 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3570 * scripttempl/h8300h.sc: Fix formatting.
3571 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
3572 * scripttempl/h8500.sc: Likewise.
3573 * scripttempl/h8500b.sc: Likewise.
3574 * scripttempl/h8500c.sc: Likewise.
3575 * scripttempl/h8500m.sc: Likewise.
3576 * scripttempl/h8500s.sc: Likewise.
60c6797e 3577
482e8b32
DB
35782000-01-07 David O'Brien <obrien@BSDi.com>
3579
3580 * emultempl/elf32.em: Only perform Linux ld hints processing when
3581 targeting Linux.
3582
d7ed7ca6
PB
35832001-01-07 Philip Blundell <philb@gnu.org>
3584
3585 * ld.texinfo (Bug Reporting): Update email address for reports.
3586
0fc3347a
NC
35872000-12-31 Nick Clifton <nickc@redhat.com>
3588
3589 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3590 options by checking for a return value of '?' not -1.
3591
e4897a32
NC
35922000-12-28 Nick Clifton <nickc@redhat.com>
3593
3594 * lexsup.c (struct ld_option): Add new enum value:
3595 EXACTLY_TWO_DASHES.
3596 (ld_options[]): Change -omagic, -output and -oformat options
3597 to be EXACTLY_TWO_DASHES.
3598 (OUTPUT_COUNT): Use ARRAY_SIZE.
3599 (parse_args): Change parameter 'argc' to unsigned.
3600 Place EXACTLY_TWO_DASHES options into new really_longopts
3601 array.
3602 If getopt_long_only fails, try calling getopt_long using the
3603 really_longopts array.
3604 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3605 TWO_DASHES options.
3606
3607 * ldlex.h: Fix prototype of parse_args.
3608
3609 * ld.texinfo: Document that long options starting with 'o'
3610 must be preceeded by two dashes. Change example of a single
3611 dashed long option from -oformat to -trace-symbol.
3612
1122a5fc
NC
36132000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3614
3615 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3616 (longopts[]): New --no-default-excludes option.
3617 (gld_${EMULATION_NAME}_list_options): Document.
3618 (gld_${EMULATION_NAME}_parse_args): Handle.
3619
037849a9
NC
36202000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3621
3622 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3623 whitespace, it breaks the K&R C preprocessor.
3624
7ec229ce
DD
36252000-12-11 DJ Delorie <dj@redhat.com>
3626
3627 * ld.texinfo: Add notes about --whole-archive and gcc.
3628
b79e8c78
NC
36292000-11-18 Fred Fish <fnf@be.com>
3630
3631 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3632 (ld_options): Entry for --allow-shlib-undefined.
3633 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3634 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3635 to false.
3636 * ld.texinfo: Document new command line switch.
d952f17a 3637
9a8e2505
GK
36382000-12-12 Geoffrey Keating <geoffk@redhat.com>
3639
3640 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3641 .fixup is actually read/write.
3642 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3643 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3644 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3645
3b16e843 36462000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
3647
3648 * NEWS: Add note about x86_64 architecture.
3649
93b63cd3
DD
36502000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3651
3652 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3653 Set DWARF2 sections to a VMA of zero.
3654
68b2fc7a 36552000-12-01 Joel Sherrill <joel@OARcorp.com>
24f6971a 3656
d952f17a 3657 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
3658 New targets.
3659 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3660 (sparc*-*-rtems*): Switched from a.out to ELF.
3661
2be3aa03
NC
36622000-11-30 Jan Hubicka <jh@suse.cz>
3663
3664 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3665 (eelf_x86_64.c): New.
3666 * Makefile.in: Regenerate.
3667 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3668 * emulparams/elf_x86_64.sh: New.
3669
8c899858
HPN
36702000-11-30 Hans-Peter Nilsson <hp@axis.com>
3671
3672 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3673 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3674
3675 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3676 merging non-a.out sections into CONSTRUCTING.
3677
e47b9e39
NC
36782000-11-28 Nick Clifton <nickc@redhat.com>
3679
3680 * ld.1 (COPYING): Mention that the GNU Free Documentation
3681 License is present in the sources, but not the output, and
3682 also available from the GNU website.
3683 (GNU Free Documentation License): Comment out this section.
3684
ad95f82a
DB
36852000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3686
3687 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3688 does not use them.
3689
fd89e65f
DB
36902000-11-25 David O'Brien <obrien@FreeBSD.org>
3691
3692 * ld.1: Remove old date so it does not give the impression the manpage
3693 is way out of date.
3694
077b8428
NC
36952000-11-24 Nick Clifton <nickc@redhat.com>
3696
3697 * configure.tgt (xscale-coff): Add target.
3698 (xscale-elf): Add target.
3699
49425d28
NC
37002000-11-24 Fred Fish <fnf@be.com>
3701
d952f17a
AM
3702 * ldmain.c (main): Remove redundant init of config.make_executable
3703 to true.
49425d28 3704
d3480244
RH
37052000-11-15 Richard Henderson <rth@redhat.com>
3706
3707 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3708
1ce7de8b
KH
37092000-11-14 Kazu Hirata <kazu@hxi.com>
3710
3711 * scripttempl/h8300.sc: Fix formatting.
3712 * scripttempl/h8300h.sc: Likewise.
3713 * scripttempl/h8300s.sc: Likewise.
3714
3b16e843 37152000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
3716
3717 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3718
2e418547
PB
37192000-11-09 Philip Blundell <pb@futuretv.com>
3720
3721 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3722 around orphan sections whose names can be represented in C.
3723
c940e6fc
JW
37242000-11-07 Jim Wilson <wilson@redhat.com>
3725
3726 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3727 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3728
704c465c
NC
37292000-11-06 Nick Clifton <nickc@redhat.com>
3730
3731 * ld.texinfo: Add GNU Free Documentation License.
3732 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 3733 * ld.1: Add GNU Free Documentation License.
704c465c 3734
dca7760f
AM
37352000-11-05 Alan Modra <alan@linuxcare.com.au>
3736
3737 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3738 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3739
3740 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3741 Move 2000-11-02 Makefile.in changes to this file.
3742 * Makefile.in: Regenerate.
3743
40a633d5
NC
37442000-11-03 Nick Clifton <nickc@redhat.com>
3745
3746 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3747 constructors and destructors.
3748 * scripttempl/h8300h.sc: Ditto.
3749 * scripttempl/h8300s.sc: Ditto.
3750 * scripttempl/h8500.sc: Ditto.
3751 * scripttempl/h8500b.sc: Ditto.
3752 * scripttempl/h8500c.sc: Ditto.
3753 * scripttempl/h8500m.sc: Ditto.
3754 * scripttempl/h8500s.sc: Ditto.
3755 * scripttempl/v850.sc: Ditto.
3756 * scripttempl/w65.sc: Ditto.
3757 * scripttempl/z8000.sc: Ditto.
3758
59ff2774
NC
37592000-11-02 Per Lundberg <plundis@chaosdev.org>
3760
3761 * Makefile.in (e_i386_chaos.c): New rule.
3762 (ALL_EMULATIONS): Added e_i386_chaos.o.
3763 * emulparams/elf_i386_chaos.sh: New file.
3764 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3765
645571e1
JJ
37662000-10-20 Jakub Jelinek <jakub@redhat.com>
3767
3768 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3769 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3770 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3771 library path suffix.
3772 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3773
c5975a45
HPN
37742000-10-18 Hans-Peter Nilsson <hp@axis.com>
3775
3776 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3777 for consecutive sections.
3778
ea20a7da
CC
37792000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3780
d952f17a
AM
3781 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3782 options.
3783 * ld.texinfo: Added notes about this new option.
ea20a7da 3784
6e45556a
NC
37852000-10-16 Nick Clifton <nickc@redhat.com>
3786
3787 * emultempl/pe.em (_after_open): Add tests of return values from
3788 bfd functions. Emit appropriate error messages if necessary.
3789
b9a69188
NC
37902000-10-13 Nick Clifton <nickc@redhat.com>
3791
3792 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
3793 local variables - they are not used, but leave in the call to
3794 bfd_canonicalize_symtab.
b9a69188
NC
3795 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3796 pe_dll_search_prefix.
3797
627427de 37982000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 3799
627427de
DD
3800 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3801 (longopts): New --dll-search-prefix option.
3802 (gld_${EMULATION_NAME}_list_options): Document.
3803 (gld_${EMULATION_NAME}_parse_args): Handle.
3804 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3805 dynamically, search for a dll named '<prefix><basename>.dll'
3806 in preference to 'lib<basename>.dll' if --dll-search-prefix
3807 is specified.
3808
24376d1b
AM
38092000-10-12 Alan Modra <alan@linuxcare.com.au>
3810
3811 * ldlang.c (section_already_linked): Set kept_section instead of
3812 sec->comdat->sec.
3813
e47d05ad
KH
38142000-10-10 Kazu Hirata <kazu@hxi.com>
3815
3816 * deffile.h: Fix formatting.
3817 * lexsup.c: Likewise.
3818 * mri.c: Likewise.
3819
23a87948
DD
38202000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3821
3822 * pe-dll.c (make_one): Do not generate code thunk for DATA
3823 exports.
3824 (process_def_file): deduce DATA flag for auto-export sumbols.
3825
86b1cc60
KH
38262000-10-09 Kazu Hirata <kazu@hxi.com>
3827
89cdebba
KH
3828 * ld.h: Fix formatting.
3829 * ldcref.c: Likewise.
3830 * ldctor.h: Likewise.
3831 * ldemul.c: Likewise.
3832 * ldemul.h: Likewise.
3833 * ldexp.c: Likewise.
3834 * ldexp.h: Likewise.
3835 * ldfile.c: Likewise.
3836 * ldfile.h: Likewise.
3837 * ldlang.c: Likewise.
3838 * ldlang.h: Likewise.
3839 * ldmain.c: Likewise.
7bfd51a3
KH
3840 * pe-dll.c: Likewise.
3841
3842 * pe-dll.c: Revert some formatting fixes.
86b1cc60 3843
d643799d
KH
38442000-10-08 Kazu Hirata <kazu@hxi.com>
3845
3846 * pe-dll.c: Fix formatting.
3847
08da4cac
KH
38482000-10-05 Kazu Hirata <kazu@hxi.com>
3849
3850 * ldlang.c: Fix formatting.
3851
c2a94a7a
DD
38522000-10-03 DJ Delorie <dj@redhat.com>
3853
3854 * pe-dll.c (fill_edata): initialize entire block
3855 (make_one): fill in correct section.
3856
8c95a62e
KH
38572000-10-03 Kazu Hirata <kazu@hxi.com>
3858
3859 * ldexp.c: Fix formatting.
3860
486e80e2
DD
38612000-10-02 DJ Delorie <dj@redhat.com>
3862
3863 * emultempl/pe.em (gld_*_after_open): detect case where there two
3864 import libraries for same dll; rename one to ensure proper link
3865 order.
3866
3867 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3868 typo
3869 (generate_edata): fix typo
3870
24dd9f75
HPN
38712000-09-29 Hans-Peter Nilsson <hp@axis.com>
3872
3873 * scripttempl/crisaout.sc (ENTRY): Now __start.
3874 (.text): Add default setting for __start.
3875 Remove CONSTRUCTORS handling.
3876 (/DISCARD/): Add .gnu.warning.*.
3877 * emulparams/crislinux.sh (ENTRY): Now __start.
3878 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3879 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3880 (ENTRY): Now __start.
3881 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3882 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3883
4de2d33d
KH
38842000-09-29 Kazu Hirata <kazu@hxi.com>
3885
5cc18311
KH
3886 * deffile.h: Fix formatting.
3887 * ld.h: Likewise.
3888 * ldcref.c: Likewise.
4de2d33d 3889 * ldctor.c: Likewise.
5cc18311 3890 * ldctor.h: Likewise.
4de2d33d 3891 * ldemul.c: Likewise.
5cc18311 3892 * ldemul.h: Likewise.
4de2d33d 3893 * ldexp.c: Likewise.
5cc18311 3894 * ldexp.h: Likewise.
4de2d33d 3895 * ldfile.c: Likewise.
5cc18311 3896 * ldfile.h: Likewise.
4de2d33d 3897 * ldlang.c: Likewise.
5cc18311
KH
3898 * ldlang.h: Likewise.
3899 * lexsup.c: Likewise.
3900 * mri.c: Likewise.
3901 * pe-dll.c: Likewise.
4de2d33d 3902
45b1f63c
DD
39032000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3904
3905 * pe-dll.c (process_def_file): Uninitialized data wasn't
3906 exported with --export-all-symbols switch.
d952f17a 3907
45b1f63c
DD
39082000-09-28 DJ Delorie <dj@redhat.com>
3909
3910 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3911 noname work properly.
3912
47d89dba
AM
39132000-09-28 Alan Modra <alan@linuxcare.com.au>
3914
3915 * ld.texinfo (HPPA ELF32): New section.
3916
3917 * emultempl/hppaelf.em (group_size): New.
3918 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3919 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3920 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3921 options to prevent abbreviations matching.
3922 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3923 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3924
36bdbeec
NC
39252000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3926
3927 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3928 on the m68*-*-elf target. Make it support COFF input objects.
3929
6d5e62f8
KH
39302000-09-21 Kazu Hirata <kazu@hxi.com>
3931
3932 * ldmain.c: Fix formatting.
3933 * ldmisc.c: Likewise.
3934 * ldver.c: Likewise.
3935 * ldwrite.c: Likewise.
3936
e2eb67d9
AM
39372000-09-21 Alan Modra <alan@linuxcare.com.au>
3938
3939 * ldwrite.c (clone_section): Silence gcc warnings.
3940
b3ea3584
AM
39412000-09-20 Alan Modra <alan@linuxcare.com.au>
3942
3943 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3944 out of memory failure.
3945
3946 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3947 (clone_section): Handle out of memory failures. Rename var to
3948 avoid c++ reserved word.
3949
25f72752
AM
39502000-09-18 Alan Modra <alan@linuxcare.com.au>
3951
3952 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3953 stub_name param to stub_sec_name.
3954 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3955
0752970e
NC
39562000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3957
3958 * emultempl/m68kelf.em: New file.
3959 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3960 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3961 * Makefile.in: Regenerate.
3962
92b7e9d8
AM
39632000-09-15 Alan Modra <alan@linuxcare.com.au>
3964
3965 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3966 only as needed.
3967
9b14b192
NC
39682000-09-13 Nick Clifton <nickc@redhat.com>
3969
3970 * ldmain.c (multiple_definition): Disable relaxation if
3971 multiple symbol definitions are encountered - otherwise the
3972 linker could abort with an assertion failure.
3973
891fa266
NC
39742000-09-10 Nick Clifton <nickc@redhat.com>
3975
3976 * mri.c: Fix formatting.
3977
5d64ca4e
L
39782000-09-07 H.J. Lu <hjl@gnu.org>
3979
3980 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3981 * configure: Rebuild.
3982
dd94604f
L
39832000-09-07 H.J. Lu <hjl@gnu.org>
3984
3985 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3986 * Makefile.in: Rebuild.
3987
71bfc0ae
AM
39882000-09-07 Alan Modra <alan@linuxcare.com.au>
3989
3990 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3991 broken list handling. Create __start_SECNAME and __stop_SECNAME
3992 when no place-holder. Add some comments. Test both SEC_CODE and
3993 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 3994 Handle case where no output section statement created.
71bfc0ae 3995
4a428502
AO
39962000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3997
3998 * configure.tgt (sh-*-linux*): Added.
3999 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4000 * Makefile.in: Rebuilt.
4001 * emulparams/shelf_linux.sh: New file.
4002 * emulparams/shlelf_linux.sh: New file.
4003
f9989030
AM
40042000-09-06 Alan Modra <alan@linuxcare.com.au>
4005
4006 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4007 try shuffling sections when the orphan happens to be the place
4008 holder. Keep count of unique section names generated so we speed
4009 the search for a new name.
4010
58cccadb
AO
40112000-09-06 Alexandre Oliva <aoliva@redhat.com>
4012
4013 * configure: Rebuilt with new libtool.m4.
4014
5b343f5a
NC
40152000-09-05 Nick Clifton <nickc@redhat.com>
4016
4017 * Makefile.in: Regenerate.
4018 * aclocal.m4: Regenerate.
4019 * configure: Regenerate.
4020 * config.in: Regenerate.
4021 * po/ld.pot: Regenerate.
4022
4023 * ldint.texinfo: Remove CVS revision marker - it foils local
4024 comparisons.
4025
4026 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 4027
a854a4a7
AM
40282000-09-05 Alan Modra <alan@linuxcare.com.au>
4029
3231d22e
AM
4030 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4031 to stub section flags.
4032 (hppa_for_each_input_file_wrapper): New.
4033 (hppa_lang_for_each_input_file): New.
4034 (lang_for_each_input_file): Define to call above.
4035 (multi_subspace): New.
4036 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4037 (PARSE_AND_LIST_PROLOGUE): Define.
4038 (PARSE_AND_LIST_LONGOPTS): Define.
4039 (PARSE_AND_LIST_OPTIONS): Define.
4040 (PARSE_AND_LIST_ARGS_CASES): Define.
4041 (hppaelf_finish): Call elf32_hppa_set_gp.
4042 (hppaelf_set_output_arch): Remove.
4043 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4044
4045 * emulparams/hppalinux.sh (ELFSIZE): Define.
4046 (MACHINE): Define.
4047 (OTHER_READONLY_SECTIONS): Define.
4048 (DATA_PLT): Define.
4049 (GENERATE_SHLIB_SCRIPT): Define.
4050
5f992e62
AM
4051 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4052 to const throughout. Change `void *' to `PTR' throughout.
4053 (lang_memory_default): Function is local to file, add `static'.
4054
4055 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4056 (ehppalinux.c): Likewise.
4057 (earmelf.c): Likewise.
4058 (earmelf_linux.c): Likewise.
4059 (earmelf_linux26.c): Likewise.
4060 * Makefile.in: Regenerate.
4061
a854a4a7
AM
4062 * ld.h (ld_config_type): Add unique_orphan_sections.
4063 * lexsup.c (OPTION_UNIQUE): Define.
4064 (ld_options): Add "--unique".
4065 (parse_args): Handle it.
4066 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4067 search for an existing output section if unique_orphan_sections is
4068 set. Make use of bfd_get_unique_section_name rather than
4069 duplicating code here.
4070 * ld.texinfo: Describe --unique.
4071
4072 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4073 optional arg to split-by-file.
4074 (parse_args): Handle them.
4075 * ld.texinfo: Update description of these options.
4076 * ldwrite.c (clone_section): Pass in the section name. Replace
4077 local code with bfd_get_unique_section_name.
4078 (split_sections): Tidy code and comments. Use a list traversal
4079 more appropriate to the list construction. Handle cooked section
4080 sizes. Split when split_by_reloc reached rather than exceeded.
4081 Track section size and split when split_by_file reached. Fix
4082 link_order_tail (even though it's not used).
4083 (ldwrite): Modify condition for calling split_sections to suit
4084 changed split_by_reloc and split_by_file.
4085 * ldmain.c (main): Init config.split_by_reloc and
4086 config.split_by_file to -1.
4087 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4088 Change split_by_file to bfd_size_type.
4089
18e03609
NC
40902000-09-02 Nick Clifton <nickc@redhat.com>
4091
4092 * configure.in: Increase version number to 2.10.91.
4093 * NEWS: Mention new ability to support removal of duplicate DWARF2
4094 debug information.
4095 * configure: Regenerate.
4096 * aclocal.m4: Regenerate.
4097 * config.in: Regenerate.
4098
3a9d486c
NC
40992000-09-02 Daniel Berlin <dberlin@redhat.com>
4100
4101 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4102 sections.
a2b64bed 4103 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
4104 * scripttempl/elfd10v.sc: Ditto.
4105 * scripttempl/elfd30v.sc: Ditto.
4106 * scripttempl/elfi370.sc: Ditto.
4107 * scripttempl/elfm68hc11.sc: Ditto.
4108 * scripttempl/elfm68hc12.sc: Ditto.
4109 * scripttempl/elfi386beos.sc: Ditto.
4110 * scripttempl/v850.sc: Ditto.
50bbae35 4111
ac48eca1
AO
41122000-08-31 Alexandre Oliva <aoliva@redhat.com>
4113
4114 * acinclude.m4: Include libtool and gettext macros from the
4115 top level.
4116 * aclocal.m4, configure: Rebuilt.
4117
c13b1b77
NC
41182000-08-25 Nick Clifton <nickc@redhat.com>
4119
4120 * ldlang.c (open_output): When choosing the target for a
4121 particular endianness, do nothing if the target is not
4122 supported.
4123
dcb0bd0e
L
41242000-08-25 H.J. Lu <hjl@gnu.org>
4125
4126 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4127 check -rpath nor LD_RUN_PATH for cross link.
4128 * ld.texinfo: Document the change.
4129
5bcac8a4
HPN
41302000-08-24 Hans-Peter Nilsson <hp@axis.com>
4131
4132 * NEWS: Mention support for CRIS.
4133
6dd8c765
L
41342000-08-23 H.J. Lu <hjl@gnu.org>
4135
4136 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4137 the current runpath list from bfd_elf_get_runpath_list ()
4138 before search.
4139
ec4eb78a
L
41402000-08-22 H.J. Lu <hjl@gnu.org>
4141
4142 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4143 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4144 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4145 trace_file_tries is non-zero.
4146 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4147 if trace_file_tries is non-zero.
4148
4149 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 4150 * NEWS: Mention it.
ec4eb78a 4151
22b36938
JE
41522000-08-14 Jason Eckhardt <jle@cygnus.com>
4153
4154 * NEWS: Mention i860 support.
4155
d73e9da0
AS
41562000-08-14 Andreas Schwab <schwab@suse.de>
4157
4158 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 4159 syntax.
d73e9da0 4160
9ac4db9c
GK
41612000-08-10 Geoff Keating <geoffk@cygnus.com>
4162
4163 * scripttempl/elf.sc: Add a comment giving the correspondence
4164 between sections, per-datum sections, and linkonce sections. Make
4165 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4166 .sbss2.
4167
165589e4
JE
41682000-08-10 Jason Eckhardt <jle@cygnus.com>
4169
4170 * emulparams/elf32_i860.sh: New file.
4171 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4172 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4173 (eelf32_i860.c): New rule.
4174 * Makefile.in: Regenerate.
4175
345a835d
NC
41762000-08-10 Nick Clifton <nickc@cygnus.com>
4177
4178 * emulparams/mipspe.sh (ENTRY): Add definition.
4179
e374f1d9
NC
41802000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4181
4182 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4183 in error message.
4184
236d5abf
NC
41852000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4186
4187 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4188 the final size of .bss section.
4189 * scripttempl/elfm68hc12.sc: Likewise.
4190
4b209b22
AM
41912000-08-04 Alan Modra <alan@linuxcare.com.au>
4192
4193 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4194 gld${EMULATION_NAME}_parse_args for consistency. Combine
4195 lastoptind and prevoptind vars, and keep track of last optind.
4196 (gld_${EMULATION_NAME}_list_options): Rename to
4197 gld${EMULATION_NAME}_list_options.
4198
28423a68
AM
41992000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4200
4201 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4202 (i586-sco-sysv5uw7.1.0).
4203
b2009ff7
L
42042000-07-27 H.J. Lu <hjl@gnu.org>
4205
4206 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4207 (PARSE_AND_LIST_PROLOGUE): New.
4208 (PARSE_AND_LIST_LONGOPTS): Likewise.
4209 (PARSE_AND_LIST_OPTIONS): Likewise.
4210 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4211 (PARSE_AND_LIST_EPILOGUE): Likewise.
4212
04925e1e
AM
42132000-07-28 Alan Modra <alan@linuxcare.com.au>
4214
41392f03
AM
4215 * emultempl/armelf.em: Elide functions common to elf32.em,
4216 ie. most of the file.
4217 (arm_elf_after_open): New. Do arm specific things then call
4218 gld${EMULATION_NAME}_after_open.
4219 (arm_elf_before_allocation): New. Call
4220 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4221 (PARSE_AND_LIST_PROLOGUE): Define.
4222 (PARSE_AND_LIST_SHORTOPTS): Define.
4223 (PARSE_AND_LIST_LONGOPTS): Define.
4224 (PARSE_AND_LIST_OPTIONS): Define.
4225 (PARSE_AND_LIST_ARGS_CASES): Define.
4226 (LDEMUL_AFTER_OPEN): Define.
4227 (LDEMUL_BEFORE_ALLOCATION): Define.
4228 (LDEMUL_BEFORE_PARSE): Define.
4229 (LDEMUL_FINISH): Define.
4230
4231 * emultempl/hppaelf.em: Similarly zap most of this file.
4232 (hppaelf_add_stub_section): Prototype.
4233 (hppaelf_layaout_sections_again): Prototype.
4234 (hook_in_stub): Prototype.
4235 (LDEMUL_SET_OUTPUT_ARCH): Define.
4236 (LDEMUL_FINISH): Define.
4237 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4238
4239 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4240 (EXTRA_EM_FILE): New.
4241 * emulparams/armelf_linux.sh: Likewise.
4242 * emulparams/armelf_linux26.sh: Likewise.
4243 * emulparams/hppalinux.sh: Likewise.
4244 * emulparams/hppaelf.sh: Likewise.
4245 (NOP): Define.
4246
4247 * emultempl/elf32.em: Fix formatting.
4248 (EXTRA_EM_FILE): Source it.
4249 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4250 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4251 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4252 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4253 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4254 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4255 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4256 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4257 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4258 allow functions in this file to be overridden.
4259 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4260
4261 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4262
04925e1e
AM
4263 * emultempl/elf32.em: Reorganize file.
4264
88cdf297
NC
42652000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4266
4267 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4268 specific option to fit 64-bit executable in the lower
4269 31-bit address range. This is done by changing start
4270 address of .interp (the very first section of executable)
4271 and then setting EF_ALPHA_32BIT elf header flag.
4272
20bccb34
NC
42732000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4274
4275 * emultempl/m68kcoff.em: New file.
4276 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4277 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4278 generic.em.
4279 * Makefile.in: Regenerate.
4280
699845ef
L
42812000-07-20 H.J. Lu <hjl@gnu.org>
4282
4283 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4284 and "disable-new-dtags" to stop getopt from treating -d/-e as
4285 abbreviations for these options.
4286
6c1439be
L
42872000-07-20 H.J. Lu <hjl@gnu.org>
4288
4289 * ld.texinfo: Add documentation for --disable-new-dtags and
4290 --enable-new-dtags.
4291
4292 * ldmain.c (main): Initialize link_info.new_dtags to false.
4293
4294 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4295 --disable-new-dtags and --enable-new-dtags.
4296 (gld_${EMULATION_NAME}_list_options): Likewise.
4297
28c309a2
NC
42982000-07-05 Kenneth Block <krblock@computer.org>
4299
a2b64bed
NC
4300 * lexsup.c: Add optional style to demangle switch
4301 * ld.texinfo: Document optional style to demangle switch.
50bbae35 4302
9d06555c
HPN
43032000-07-20 Hans-Peter Nilsson <hp@axis.com>
4304
4305 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4306 ecrislinux.o.
4307 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4308 Regenerate dependencies.
4309 * Makefile.in: Rebuild.
4310 * configure.tgt (cris-*-*): New target.
4311 * emulparams/crisaout.sh, emulparams/criself.sh,
4312 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4313 * po/POTFILES.in, po/ld.pot: Regenerate.
4314
19e3be22
L
43152000-07-20 H.J. Lu <hjl@gnu.org>
4316
4317 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4318 Print out ignored -z options.
4319
e0ee487b
L
43202000-07-19 H.J. Lu <hjl@gnu.org>
4321
19e3be22
L
4322 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4323 (PARSE_AND_LIST_PROLOGUE): New.
4324 (PARSE_AND_LIST_LONGOPTS): Likewise.
4325 (PARSE_AND_LIST_OPTIONS): Likewise.
4326 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4327
4328 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4329
4330 * lexsup.c (ld_options): Comment out 'z'.
4331 (parse_args): Likewise.
4332
4333 * emultempl/elf32.em: Include "elf/common.h".
4334 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4335 options.
4336 (gld_${EMULATION_NAME}_list_options): Likewise.
4337
4338 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 4339
49e56c49
L
43402000-07-19 H.J. Lu <hjl@gnu.org>
4341
4342 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4343 bfd_elf_set_dt_needed_soname ().
4344
9d68bc82
DD
43452000-07-18 DJ Delorie <dj@cygnus.com>
4346
4347 * pe-dll.c (pe_dll_id_target): check object target name also
4348
53db15ed
HPN
43492000-07-18 Hans-Peter Nilsson <hp@axis.com>
4350
4351 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4352 ${INIT_END} if relocating.
4353 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4354
0ad8cf4c
DD
43552000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4356
a2b64bed 4357 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
4358 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4359 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4360 errors introduced by the old dynamic lib search order.
4361
874c8c99
DD
43622000-07-17 DJ Delorie <dj@cygnus.com>
4363
4364 * pe-dll.c (process_def_file): auto-export data items also
4365 (pe_process_import_defs): also see if _imp_ form needed
4366
5b4cf3f4
DD
43672000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4368
4369 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4370 for dll import libraries
4371
062739d1
NC
43722000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4373
4374 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 4375 gcc 2.95.2 and later.
062739d1 4376
1c64c4ed
NC
43772000-07-11 Kazu Hirata <kazu@hxi.com>
4378
50bbae35
AM
4379 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4380 message.
1c64c4ed 4381
b71e2778
AM
43822000-07-10 Alan Modra <alan@linuxcare.com.au>
4383
4384 * ldemul.h (struct lang_input_statement_struct): Remove forward
4385 declaration.
4386 (struct search_dirs): Likewise.
4387 * ldfile.h (struct lang_input_statement_struct): Likewise.
4388 Protect file from multiple inclusion.
4389 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4390 declaration from macro to file scope.
4391
4392 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4393 * ldgram.y: Likewise here.
4394 * ldlang.c: And here.
4395 * ldmain.c: And here.
4396 * mpw-elfmips.c: And here.
4397 * mpw-eppcmac.c: And here.
4398 * emultempl/aix.em: And here.
4399 * emultempl/armcoff.em: And here.
4400 * emultempl/armelf.em: And here.
4401 * emultempl/armelf_oabi.em: And here.
4402 * emultempl/beos.em: And here.
4403 * emultempl/elf32.em: And here.
4404 * emultempl/hppaelf.em: And here.
4405 * emultempl/linux.em: And here.
4406 * emultempl/lnk960.em: And here.
4407 * emultempl/pe.em: And here.
4408 * emultempl/sunos.em: And here.
4409 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4410 * mpw-idtmips.c: Ditto.
4411 * emultempl/generic.em: Ditto.
4412 * emultempl/gld960.em: Ditto.
4413 * emultempl/gld960c.em: Ditto.
4414 * emultempl/mipsecoff.em: Ditto.
4415 * emultempl/ticoff.em: Ditto.
4416 * emultempl/vanilla.em: Ditto.
4417
4418 * pe-dll.c: Include ldfile.h
4419 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4420
4421 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4422 arguments to bfd_elf32_size_dynamic_sections call.
4423 (gldelf32ebmip_place_orphan): Add missing arguments to
4424 lang_leave_output_section_statement call.
4425
2ef53d66
L
44262000-07-10 H.J. Lu <hjl@gnu.org>
4427
4428 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4429 DLL_SUPPORT.
4430 (strhash): Likewise.
4431 (compute_dll_image_base): Likewise.
4432 (pe_undef_found_sym): Likewise.
4433 (pe_undef_cdecl_match): Likewise.
4434 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4435 argument "arch" with ATTRIBUTE_UNUSED.
4436
9a8cbb09
AM
44372000-07-10 Alan Modra <alan@linuxcare.com.au>
4438
4439 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4440
4441 From Ryan Bradetich <rbradetich@uswest.net>
4442 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 4443
4900fc06
AM
44442000-07-09 Alan Modra <alan@linuxcare.com.au>
4445
4446 Changes to create multiple linker stubs, positioned immediately
4447 before the section where they are required.
4448 * emultempl/hppaelf.em: Include elf32-hppa.h.
4449 (stub_sec, file_chain): Delete.
4450 (hppaelf_create_output_section_statements): Don't make a stub
4451 section here.
4452 (hook_stub_info): New struct.
4453 (hook_in_stub): New function.
4454 (hppaelf_add_stub_section): New function.
4455 (hppaelf_finish): Do nothing for relocateable links. Modify the
4456 call to elf32_hppa_size_stubs. Move code for updating section
4457 layout from here...
4458 (hppaelf_layaout_sections_again): ..to here, a new function.
4459
4460 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4461 broken list handling. Pass in a pointer to the list.
4462 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4463 for above changes.
4464 (hppaelf_before_parse): Prototype.
4465 (hppaelf_set_output_arch): Prototype.
4466 (hppaelf_create_output_section_statements): Prototype.
4467 (hppaelf_delete_padding_statements): Prototype.
4468 (hppaelf_finish): Prototype.
4469
4470 Merge from elf32.em
4471 * emultempl/hppaelf.em: Include ctype.h.
4472 (struct orphan_save): New.
4473 (gld${EMULATION_NAME}_place_orphan): New.
4474 (output_rel_find): New.
4475 (hppaelf_get_script): Update from elf32.em.
4476 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4477 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 4478 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
4479
4480 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4481 ehppalinux.o, sort it. Regenerate dependencies.
4482 (ehppalinux.c): Depend on hppaelf.em
4483 * Makefile.in: Regenerate.
4484
4485 * configure.tgt: targ_emul=hppalinux for hppa*linux
4486
4487 * emulparams/hppalinux.sh: New.
4488 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4489
227aeb07
AM
44902000-07-08 Alan Modra <alan@linuxcare.com.au>
4491
4492 * lexsup.c (parse_args): Copy section name.
4493
28609fd4 44942000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 4495
2ef53d66 4496 * emultempl/pe.em: institute the following search order for
602e90d3
DD
4497 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4498 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4499 static lib (libfoo.a) if none of the above are found.
4500
5f577f7d
DD
45012000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4502
50bbae35 4503 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 4504 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 4505 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
4506 (gld_${EMULATION_NAME}_parse): Handle.
4507 (strhash): New static function.
50bbae35 4508 (compute_dll_image_base): New static function.
5f577f7d
DD
4509 (gld_${EMULATION_NAME}_set_symbols): Use.
4510
9a8cbb09 45112000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
4512
4513 * MAINTAINERS: new
4514
3548145d 45152000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
4516
4517 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4518 * emulparams/elf32btsmip.sh: New file.
4519 * Makefile.am: Add traditional mips target.
4520 * Makefile.in: Rebuild.
4521
67798033
L
45222000-07-01 H.J. Lu <hjl@gnu.org>
4523
4524 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4525 automake to use YLWRAP.
4526 * Makefile.in: Rebuild.
4527
0bdaf48b
AM
45282000-07-01 Alan Modra <alan@linuxcare.com.au>
4529
4530 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4531 (CLEANFILES): Add DEPA.
4532 * Makefile.in: Regenerate.
4533
c9e769c2
TW
45342000-06-30 Timothy Wall <twall@ppc>
4535
4536 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4537 the page in the upper octet of the address.
4538
65aa24b6
NC
45392000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4540
4541 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4542
4667035e
AM
45432000-06-24 Alan Modra <alan@linuxcare.com.au>
4544
4545 * NEWS: arm-elf does --gc-sections too.
4546
1581f8c9
AM
45472000-06-22 Alan Modra <alan@linuxcare.com.au>
4548
4549 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4550 find one.
4551 * Makefile.in: Regenerate.
4552
01580992
L
45532000-06-21 H.J. Lu <hjl@gnu.org>
4554
4555 * Makefile.am: Rebuild dependency.
4556 * Makefile.in: Rebuild.
4557
bbeb2e03
L
45582000-06-20 H.J. Lu <hjl@gnu.org>
4559
4560 * Makefile.am: Rebuild dependency.
4561 * Makefile.in: Rebuild.
4562
74459f0e
TW
45632000-06-20 Timothy Wall <twall@cygnus.com>
4564
4565 * scripttempl/tic54xcoff.sc: New.
4566 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4567 * gen-doc.texi: Add flag for TI COFF.
4568 * ld.texinfo: Add documentation for TI COFF handling switches.
4569 * emultempl/ticoff.em: New. TI COFF handling.
4570 * configure.tgt: Add tic54x target.
4571 * Makefile.am: Add tic54x target.
4572 * Makefile.in: Ditto.
4573
2ab47eed
AM
45742000-06-20 Alan Modra <alan@linuxcare.com.au>
4575
4576 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4577 checking for backslashes.
4578
919e4093
AM
45792000-06-19 Alan Modra <alan@linuxcare.com.au>
4580
4581 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4582
987fd5b4
AM
45832000-06-18 Alan Modra <alan@linuxcare.com.au>
4584
4585 * NEWS: Update list of targets supporting --gc-sections.
4586
4587 * scripttempl/elf.sc: KEEP .eh_frame contents.
4588 * scripttempl/elfd30v.sc: Same here.
4589
60bcf0fa
NC
45902000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4591
4592 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4593 and m68hc11 (elf).
4594 * Makefile.in: Rebuild.
4595 * configure.tgt: Recognize m68hc12 and m68hc11.
4596 * scripttempl/elfm68hc12.sc: New file.
4597 * emulparams/m68hc12elfb: New emulation.
4598 * emulparams/m68hc12elf: New emulation.
4599 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4600 (includes a memory.x script to define the ROM and RAM banks).
4601 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4602 New configuration files for support of Motorola 68hc11
4603
c7c54483
AM
46042000-06-15 Alan Modra <alan@linuxcare.com.au>
4605
4606 * ldmain.c (main): Only change SEC_READONLY for final link.
4607
bcef29e6
L
46082000-06-13 H.J. Lu <hjl@gnu.org>
4609
4610 * configure: Regenerate.
4611
946efd95
DB
46122000-06-08 David O'Brien <obrien@FreeBSD.org>
4613
4614 * configure.in (VERSION): Update to show this is the CVS mainline.
4615
57a6fd07
DB
46162000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4617
4618 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4619 input objects to be ECOFF.
4620 (check_sections): einfo takes %B, not %P, to print a BFD name.
4621
e06cae36
L
46222000-06-05 Michael Matz <matz@ifh.de>
4623
4624 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 4625 version scripts.
e06cae36 4626
d952f17a 4627 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 4628
2f0b56c0
DC
46292000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4630
4631 * emulparams/avr1200.sh (STACK): Define as 0.
4632 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4633 * emulparams/avr4433.sh (STACK): Likewise.
4634 * emulparams/avr44x4.sh (STACK): Likewise.
4635 * emulparams/avr85xx.sh (STACK): Likewise.
4636 * emulparams/avrmega103.sh (STACK): Likewise.
4637 * emulparams/avrmega161.sh (STACK): Likewise.
4638 * emulparams/avrmega603.sh (STACK): Likewise.
4639 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4640 (__stack): Define from ${STACK} for main().
4641
2114f57b
AM
46422000-05-26 Alan Modra <alan@linuxcare.com.au>
4643
4644 * Makefile.am: Update dependencies with "make dep-am"
4645 * Makefile.in: Regenerate.
4646
5af11cab
AM
46472000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4648
4649 * ldmain.c: Include filenames.h.
4650 (set_scripts_dir): Support backslashes in program name.
4651
1f0df59a
NC
46522000-05-22 Igor Shevlyakov <igor@windriver.com>
4653
4654 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
4655 read-only, don't forget to reset SEC_READONLY because it
4656 could be already set.
1f0df59a 4657
176355da
NC
46582000-05-22 Thomas de Lellis <tdel@windriver.com>
4659
50bbae35
AM
4660 * ld.1: Add documentation for new command line option:
4661 --section-start <sectionname>=<sectionorg>
4662 This is a generic version of -Ttext etc. which accepts
4663 any section name as a parameter instead of just text/data/
4664 bss.
4665 * ld.texinfo: More docs.
4666 * NEWS: More docs.
4667 * lexsup.c: (parse_args): Recognize new command line option.
176355da 4668 (ld_options): Add new option.
50bbae35 4669
8c5ff972
L
46702000-05-18 H.J. Lu <hjl@gnu.org>
4671
4672 * lexsup.c (parse_args): `i' == `r', not `q'.
4673
3b16e843 46742000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
4675
4676 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4677
a712da20
NC
46782000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4679 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 4680
a712da20
NC
4681 Add support for '-q' == '--emit-relocs' switch.
4682 * ldmain.c (main): Default to false.
4683 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4684 * NEWS: Describe the emitrelocations switch.
4685 * ld.texinfo: Describe the emitrelocations switch.
4686
690a460e
NC
46872000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4688
a2b64bed 4689 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
4690 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4691 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4692 link options.
50bbae35 4693
c2f1343c
AM
46942000-05-15 David O'Brien <obrien@FreeBSD.org>
4695
4696 * lexsup.c (parse_args): Update the year in the copyright notice.
4697
897083bd
AM
46982000-05-13 Alan Modra <alan@linuxcare.com.au>
4699
4700 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4701 Replace defines with those from intl/libgettext.h to quieten gcc
4702 warnings.
4703
cd4c806a
L
47042000-05-10 H.J. Lu <hjl@gnu.org>
4705
4706 * ldlang.c (open_input_bfds): Don't load the same file within
4707 a group again if the whole archive has been loaded already.
4708
93697284
AM
47092000-05-03 Alan Modra <alan@linuxcare.com.au>
4710
4711 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4712 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4713 strtoul.
4714
3b16e843 47152000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 4716
99a4150f 4717 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 4718
ebd6fc29
JW
4719 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4720 host "ia64-*-linux-gnu*".
4721
a1934524
AM
47222000-04-29 Andreas Jaeger <aj@suse.de>
4723
4724 * ld.h: Correctly check GCC version.
4725
3b16e843 47262000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
4727
4728 * Makefile.am: Add PA64 support. Add missing dependencies for
4729 PA32 elf support.
4730 * Makefile.in: Rebuilt.
4731 * configure.tgt: Add PA64 support (currently disabled).
4732
aea4bd9d
AM
47332000-04-25 Alan Modra <alan@linuxcare.com.au>
4734
4735 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4736 (output_rel_find): New function.
4737 (hold_section, hold_use): Delete.
4738 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4739 hold_interp): Make local to place_orphan.
4740 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4741 rather than place_section to find possible previous use of orphan.
4742 Similarly find the place-holder output sections. Use returned
4743 value from lang_enter_output_section_statement rather than calling
4744 lang_output_section_statement_lookup.
4745 * emultempl/armelf.em: Same here.
4746 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4747
4748 * ldlang.c (lang_enter_output_section_statement): Return output
4749 section statement.
4750 * ldlang.h (lang_enter_output_section_statement): Change
4751 declaration too.
4752
4753 * ldlang.h (lang_output_section_statement): Export it.
4754 * ldlang.c (lang_output_section_statement): Ditto.
4755
2b5fc1f5
NC
47562000-04-24 Nick Clifton <nickc@cygnus.com>
4757
4758 * ld.texinfo (Output Section Data): Add note that section data
4759 commands cannot appear outside of section directives.
4760
d8475ff6
JL
47612000-04-2 Matthew Green <mrg@cygnus.com>
4762
4763 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4764
3b16e843
NC
47652000-04-21 Richard Henderson <rth@cygnus.com>
4766 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
4767
4768 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4769 (eelf64_ia64.c): New rule.
4770 * Makefile.in: Rebuild.
4771 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4772 * emulparams/elf64_ia64.sh: New file.
50bbae35 4773
c9637625
RH
47742000-04-21 Richard Henderson <rth@cygnus.com>
4775
4776 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4777
28ea9521
AM
47782000-04-19 Alan Modra <alan@linuxcare.com.au>
4779
4780 * dep-in.sed: Match space at start of file name, not at end.
4781
20d04697
L
47822000-04-18 H.J. Lu <hjl@gnu.org>
4783
4784 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4785 lang_leave_output_section_statement () after calling
4786 lang_enter_output_section_statement ().
4787 * emultempl/armelf.em: Likewise.
4788
5ba47421
AM
47892000-04-18 Alan Modra <alan@linuxcare.com.au>
4790
4791 * emultempl/elf32.em (struct orphan_save): Add section field.
4792 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4793 better order, and place first orphan section as we did before the
4794 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4795 Don't call make_bfd_section here, let wild_doit do the job for us.
4796 Don't build a statement list when we'll only throw it away.
4797 * emultempl/armelf.em: Ditto.
4798 * emultempl/pe.em: Similarly.
4799
bdbe5705
GK
48002000-04-14 Geoff Keating <geoffk@cygnus.com>
4801
4802 * scripttempl/elfppc.sc: Remove.
4803 * emulparams/elf32ppc.sh: Use elf.sc.
4804 * emulparams/elf32lppc.sh: Use elf.sc.
4805 * emulparams/elf32ppclinux.sh: Use elf.sc.
4806 * emulparams/elf32ppcsim.sh: New file.
4807 * emulparams/elf32lppcsim.sh: New file.
4808 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4809 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4810 * Makefile.in: Regenerate.
4811 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4812
01cc8ff8
AM
48132000-04-14 Alan Modra <alan@linuxcare.com.au>
4814
5ba47421 4815 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 4816 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
4817 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4818 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
4819 Also set all relocateable section start addresses.
4820
6c86c541
GK
48212000-04-13 Geoff Keating <geoffk@cygnus.com>
4822
4823 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4824 Add new BSS_PLT variable for when .plt need not be contained in
4825 the file. Move _etext so that it is also after .fini, and provide
4826 both etext and _etext with a leading underscore. Mark the start
4827 and end of .sbss.
4828
6a345e87
AM
48292000-04-12 Alan Modra <alan@linuxcare.com.au>
4830
4831 * emultempl/elf32.em (struct orphan_save): New.
4832 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4833 hold_interp): Make them struct orphan_save.
4834 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4835 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4836 the end of the relevant section list. Also add associated section
4837 statements to the end of any previous orphan statements.
4838 * emultempl/armelf.em: Similarly.
4839 * emultempl/pe.em: Similarly.
4840
8be86746
AM
48412000-04-11 Alan Modra <alan@linuxcare.com.au>
4842
4843 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4844
3b16e843 48452000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 4846
a2d91340 4847 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 4848 --enable-build-warnings option.
a2d91340
AC
4849 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4850 * Makefile.in, configure: Re-generate.
4851
41b49281
AM
48522000-04-04 Alan Modra <alan@linuxcare.com.au>
4853
8ad3436c
AM
4854 * po/ld.pot: Regenerate.
4855
4856 * lexsup.c (help): Restore translated part of bug string.
4857
41b49281
AM
4858 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4859 (DEP): Quote when passing vars to sub-make. Add warning message
4860 to end.
4861 (DEP1): Rewrite for "gcc -MM".
4862 (CLEANFILES): Add DEP2.
4863 Update dependencies.
4864 * Makefile.in: Regenerate.
4865
c20f4f8c
AM
48662000-04-03 Alan Modra <alan@linuxcare.com.au>
4867
4868 * ld.h: #include "bin-bugs.h"
4869 * lexsup.c (help): Use REPORT_BUGS_TO.
4870
adde6300
AM
48712000-03-27 Denis Chertykov <denisc@overta.ru>
4872
4873 * configure.tgt (avr-*-*): New target support.
4874 * Makefile.am: Likewise.
4875 * scripttempl/elf32avr.sc: New script file.
4876 * emulparams/avr1200.sh: New file.
4877 * emulparams/avr23xx.sh: New file.
4878 * emulparams/avr4433.sh New file.
4879 * emulparams/avr44x4.sh New file.
4880 * emulparams/avr85xx.sh New file.
4881 * emulparams/avrmega103.sh New file.
4882 * emulparams/avrmega161.sh New file.
4883 * emulparams/avrmega603.sh New file.
4884 * Makefile.in: Regenerate.
4885
9282ff41
L
48862000-03-09 Andreas Jaeger <aj@suse.de>
4887
4888 * Makefile.am (check-DEJAGNU): Also unset LANG.
4889 * Makefile.in: Rebuild.
4890
a9998805
ILT
48912000-03-06 Ian Lance Taylor <ian@zembu.com>
4892
4893 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4894 archive.
4895
f9bc20e7
NC
48962000-03-02 H.J. Lu <hjl@gnu.org>
4897
4898 * emulparams/elf32mcore.sh: Include "getopt.h".
4899
4e277b38
ILT
49002000-03-01 Ian Lance Taylor <ian@zembu.com>
4901
4902 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4903
f0c87f88
NC
49042000-03-01 H.J. Lu <hjl@gnu.org>
4905
4906 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4907 * emulparams/shpe.sh: Likewise.
4908
49092000-03-01 Nick Clifton <nickc@cygnus.com>
4910
4911 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4912 to unused parameters.
4913
4914 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4915 functions only used by DLL code.
4916 (_place_orphan): Initialise 'dollar'.
4917
b6f29aaa
L
49182000-03-01 H.J. Lu <hjl@gnu.org>
4919
4920 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4921 indicate if the undefined symbol is a fatal error or not.
4922 Don't delete the output file if "fatal" is false.
4923
af28fce3
L
49242000-02-29 H.J. Lu <hjl@gnu.org>
4925
50bbae35 4926 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
4927 Set LC_COLLATE and LC_ALL to null and export them. It is for
4928 sort which expects the C locale.
4929 Add $(LIBS) to all $(HOSTING_LIBS).
4930 * Makefile.in: Rebuild.
4931
40d109bf
AM
49322000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4933
4934 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4935 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4936 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4937 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4938 find_potential_libraries.
4939
db5be682
JB
49402000-02-28 Jim Blandy <jimb@redhat.com>
4941
4942 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 4943 list entries; the lexer considers commas to be valid part of a
db5be682
JB
4944 filename, so in something like `foo, bar' the comma is considered
4945 part of the first filename, `foo,'.
4946 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4947
3558ff4c
ILT
49482000-02-27 Loren J. Rittle <ljrittle@acm.org>
4949
4950 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4951 host "i[3456]86-*-freebsdelf*".
4952
4eee2681
ILT
49532000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4954
4955 * scripttempl/i386go32.sc: Move misplaced semicolons.
4956
8d75d12d
ILT
49572000-02-25 Ian Lance Taylor <ian@zembu.com>
4958
4959 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4960 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4961 (eelf64hppa.c, ehppaelf.c): Remove targets.
4962 * Makefile.in: Rebuild.
4963
a1836d49
AO
49642000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4965
ad51fb57
AO
4966 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4967 GNU/Linux/sparc, but keep the default as 32.
4968
a1836d49
AO
4969 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4970 it default if sparcv9 or sparc64.
4971
344a211f
NC
49722000-02-24 Nick Clifton <nickc@cygnus.com>
4973
4974 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4975 * Makefile.in: Regenerate.
4976 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4977
4978 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4979 find_potential_libraries.
4980 * ldemul.c (ldemul_find_potential_libraries): New function.
4981
4982 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 4983 exported.
344a211f
NC
4984 (ldfile_open_file): Call ldemul_find_potential_libraries.
4985 * ldfile.h: Add prototype for ldfile_open_file_search.
4986
4987 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4988
4989 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4990 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4991
4992 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4993 (gld_X_find_potential_libraries): New function. Search for
4994 libraries called "*.lib".
4995
a2b64bed 4996 * scripttempl/pe.sc: Add .pdata section.
344a211f 4997
eaba1dd3
RH
49982000-02-23 Richard Henderson <rth@cygnus.com>
4999
5000 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5001 Add and use memory regions.
5002
5b93d8bb
AM
50032000-02-23 Linas Vepstas (linas@linas.org)
5004
5005 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5006
5007 * Makefile.am: Add support for Linux/IBM 370.
5008 * configure.tgt: Likewise.
5009
5010 * Makefile.in: Regenerate.
5011
f6af82bd
AM
50122000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5013
5014 * ldlang.c (print_input_section, print_data_statement,
5015 print_reloc_statement, print_padding_statement, insert_pad,
5016 size_input_section, lang_check_section_addresses,
5017 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 5018 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
5019 (lang_do_assignments): Also change `size' to unsigned.
5020
9e673ad1
RH
50212000-02-16 Richard Henderson <rth@cygnus.com>
5022
5023 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5024
562d3460
TW
50252000-02-16 Timothy Wall <twall@cygnus.com>
5026
5027 * mri.c (mri_draw_tree): Add default LMA region argument to call
5028 to lang_leave_output_section_statement.
5029 * ldlang.h: Update prototypes with LMA region arguments.
5030 * ldlang.c (lang_size_sections): Encapsulate region bounds
5031 checking in os_check_region call.
5032 (os_check_region): New function.
5033 (lang_output_section_statement_lookup): Initialize lma_region.
5034 (lang_leave_output_section_statement): Add LMA region argument.
5035 (lang_leave_overlay): Ditto.
5036 * ldgram.y: Handle LMA region syntax.
5037 * ld.texinfo (Output Section Description): Describe LMA region usage.
5038 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 5039 lma region in call to lang_leave_output_section_statement.
562d3460 5040 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 5041 lma region in call to lang_leave_output_section_statement.
562d3460 5042 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 5043 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
5044
5045
9e4ed18c
TW
50462000-02-04 Timothy Wall <twall@redhat.com>
5047
5048 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5049 octets when calculating section end addresses.
5050
32edc927
TW
50512000-02-04 Timothy Wall <twall@redhat.com>
5052
5053 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5054
4cbfc3ac
TW
50552000-02-03 Timothy Wall <twall@redhat.com>
5056
a2b64bed 5057 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 5058 octet count.
a2b64bed 5059 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
5060 print_reloc_statement, print_padding_statement): Print target
5061 address values and section sizes as bytes, not octets.
5062 (insert_pad) Calculate padding size in octets, and adjust "dot"
5063 by bytes.
5064 (size_input_section) Always adjust "dot" by bytes, not octets.
5065 (lang_check_section_addresses, lang_do_assignments) Adjust
5066 "dot" by bytes, not octets. Use the larger of the directive size
5067 or octets_per_byte for the number of octets actually allocated in
5068 the output section.
5069 (lang_set_startof) Make sure STARTOF returns a target address.
5070 (lang_one_common) Record size changes in octets.
5071 (lang_abs_symbol_at_end_of) Section end symbol's value is
5072 recorded in target bytes.
68b2fc7a 5073 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4cbfc3ac 5074 to be clear about behavior when an octet is smaller than one byte.
50bbae35 5075
305c7206
AM
50762000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5077
5078 * ldcref.c (output_cref): Don't pass message strings to printf
5079 as format arg.
5080 Update copyright.
5081
5082 * ldmisc.c (vfinfo): Same here.
5083 Update copyright.
5084
e1c47aa4
AM
50852000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5086
5087 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5088 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5089 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5090 Add missing NULL initialisers, and comments.
5091
5092 * testsuite/ld-srec/sr3.cc (__rethrow): New.
5093
13392b77
NC
50942000-01-21 Nick Clifton <nickc@cygnus.com>
5095
5096 * ldlang.c (lang_size_sections): Fix typo in comment.
5097
cce4c4c5
NC
50982000-01-18 H.J. Lu <hjl@gnu.org>
5099
5100 * ldlang.c (lang_size_sections): Also update the current
5101 address of a region if the SEC_NEVER_LOAD bit is not set.
5102
0decc840
NC
51032000-01-10 Philip Blundell <pb@futuretv.com>
5104
5105 * configure.tgt (arm*-*-conix*): New target.
5106
4e53152f
NC
51072000-01-07 Nick Clifton <nickc@cygnus.com>
5108
5109 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
5110 line switches with -Wl, (or whatever is appropriate) if it is
5111 being invoked by a comnpiler driver program.
50bbae35 5112 Fix description of the behaviour of the -n command line switch.
4e53152f 5113
3b16e843 51142000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
5115
5116 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5117 (name_list): New.
5118 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5119 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5120 (exclude_name_list): New.
5121 ldlang.c (walk_wild_section): Support list of excluded files.
5122 (print_wild_statement): Likewise.
5123 (lang_add_wild): Likewise.
5124 * ldlang.h (lang_wild_statement_type): Likewise.
5125 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 5126
5aaace27
NC
51272000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5128
870df5dc
NC
5129 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5130 (process_def_file): Use.
5131 (pe_dll_compat_implib): New variable.
5132 (make_one): Use.
50bbae35 5133
870df5dc
NC
5134 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5135 pe_dll_compat_implib.
50bbae35
AM
5136
5137 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
5138 compat-implib options.
5139 (gld_${EMULATION_NAME}_list_options): List new options.
5140 (gld_${EMULATION_NAME}_parse_args): Handle.
5141
50bbae35 5142 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 5143 dll.
50bbae35
AM
5144
5145 * deffilep.y (opt_name): Allow "." in name.
5aaace27 5146
2f6d2f85 5147For older changes see ChangeLog-9899
252b5132
RH
5148\f
5149Local Variables:
5150mode: change-log
5151left-margin: 8
5152fill-column: 74
5153version-control: never
5154End:
This page took 0.416701 seconds and 4 git commands to generate.