* pe-dll.c (autofilter_liblist): Generalize library names to catch more
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
75c2ea5b
CF
12002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
2
3 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
4 creative library naming instances like, e.g., libstdc++-2.a.
5
426af4fe
AO
62002-11-06 Alexandre Oliva <aoliva@redhat.com>
7
8 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
9 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
10
c9e38879
NC
112002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
12
13 * deffilep.y (def_lex): Handle '@' as first character of an ID.
14 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
15 (make_one): Don't prefix decorated fastcall symbols with '_'.
16 (pe_process_import_defs): Likewise.
17 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
18 symbols to cdecl names or vise-versa.
19
202002-10-13 Eric Kohl <ekohl@rz-online.de>
21
22 * pe-dll.c (process_def_file): Handle fastcall symbols when
23 generating undecorated aliases. Don't prefix decorated fastcall
24 symbols with '_'.
25 (fill_exported_offsets): Don't prefix decorated fastcall symbols
26 with '_'.
27
df2a7313
DJ
282002-10-29 Daniel Jacobowitz <drow@mvista.com>
29
30 * emultempl/aix.em: Use include <> for generated headers.
31 * emultempl/beos.em: Likewise.
32 * emultempl/elf32.em: Likewise.
33 * emultempl/pe.em: Likewise.
34 * ldctor.c: Likewise.
35 * ldexp.c: Likewise.
36 * ldfile.c: Likewise.
37 * ldlang.c: Likewise.
38 * ldlex.c: Likewise.
39 * ldlex.l: Likewise.
40 * ldmain.c: Likewise.
41 * ldmisc.c: Likewise.
42 * ldwrite.c: Likewise.
43 * lexsup.c: Likewise.
44 * mri.c: Likewise.
45 * pe-dll.c: Likewise.
46
a8927cfd
JJ
472002-10-23 Jakub Jelinek <jakub@redhat.com>
48
49 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
50 sections into .rel{,a}.dyn.
51
63fd3b82
NC
522002-10-23 Nick Clifton <nickc@redhat.com>
53
54 * lexsup.c (OPTION_NO_OMAGIC): Define.
55 (ld_options): Add "no-omagic" option.
56 (parse_args): Parse --no-omagic.
57 * ld.texinfo: Document --no-omagic.
58 * NEWS: Mention new option.
59
36379167
NC
602002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
61
62 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
63 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
64
3ffe58d9
AO
652002-10-22 Alexandre Oliva <aoliva@redhat.com>
66
67 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
68 emulation name. Set LIB_PATH only for native tools, and
69 search the ABI-specific versions of NATIVE_LIB_DIRS before the
70 .../lib variants, not instead of them. Mostly copied from...
71 * emulparams/elf32ppc.sh: ... here. Fixed typo.
72 * emulparams/elf64bmip-defs.sh: Backed out.
73 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
74 * emulparams/elf64btsmip.sh: Likewise.
75 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
76 TEXT_DYNAMIC): Removed.
77
e316b3a0
AO
782002-10-17 Alexandre Oliva <aoliva@redhat.com>
79
80 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
81 (GENERATE_SHLIB_SCRIPT): Set to yes.
82 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
83 * emulparams/elf32bmipn32.sh: here.
84 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
85 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
86 * emulparams/elf64bmip-defs.sh: New file. Extend
87 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
88 * emulparams/elf64bmip.sh: Bring in definitions from
89 elf64bmip-defs.sh.
90 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
91 settings.
92 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
93 * emulparams/elf64btsmip.sh: Bring in definitions from
94 elf64bmip-defs.sh.
95 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
96 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
97
f52d1d64
JJ
982002-10-16 Jakub Jelinek <jakub@redhat.com>
99
100 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
101 (s390-*-linux*): Add elf64_s390 emulation if want64.
102 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
103 genscript.sh changes.
104 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
105 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
106
03bdc404
AM
1072002-10-15 Alan Modra <amodra@bigpond.net.au>
108
109 * ldlang.c (load_symbols): Revert last change.
110
c6db2f05
AM
1112002-10-14 Alan Modra <amodra@bigpond.net.au>
112
7c519c12
AM
113 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
114 just_syms_flag.
115 (lang_reasonable_defaults): Don't compare against false.
116 (size_input_section): Likewise.
117 (lang_size_sections_1): Likewise.
118 (lang_do_assignments): Likewise.
119 (lang_add_output): Likewise.
120
c6db2f05
AM
121 * Makefile.am: Run "make dep-am".
122 * Makefile.in: Regenerate.
123 * ldver.c: #include "bfdver.h".
124
e1026ffb
SC
1252002-10-13 Stephane Carrez <stcarrez@nerim.fr>
126
127 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
128 .finiN section.
129 * scripttempl/elfm68hc12.sc: Likewise.
130
2d801b0f
AM
1312002-10-11 Alan Modra <amodra@bigpond.net.au>
132
fe213ce2
AM
133 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
134
2d801b0f
AM
135 * ldgram.y (memory_spec): Provide empty action.
136 (section <NAME>): Likewise.
137
599917b8
JJ
1382002-10-10 Jakub Jelinek <jakub@redhat.com>
139
140 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
141 they have OUTPUT_FORMAT not matching actual output format.
142 * ldlang.c (lang_get_output_target): New function.
143 (open_output): Use it.
144 * ldlang.h (lang_get_output_target): New prototype.
145
24cdb50a
AM
1462002-10-10 Alan Modra <amodra@bigpond.net.au>
147
148 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
149 when orphan is .rel, .rela when orphan is .rela.
150 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
151 first. Remove outsecname var.
152
a2b3c630
SC
1532002-10-09 Richard Shann <richard.shann@superh.com>
154 Stephen Clarke <stephen.clarke@superh.com>
155
156 * Makefile.am: Add eshelf32_linux.o and
157 eshlelf32_linux.o, new emulations for sh64 Linux.
158 * Makefile.in: Regenerate.
159 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
160 * emulparams/shelf32_linux.sh: New file.
161 * emulparams/shlelf32_linux.sh: New file.
7c519c12 162
c04c9586
L
1632002-10-08 H.J. Lu <hjl@gnu.org>
164
165 * ldlang.c (lang_file_exist): Removed.
166 (new_afile): Revert the last change.
167 * ldlang.h (lang_file_exist): Removed.
168 * lexsup.c (parse_args): Revert the last change.
169
39cebe23
NC
1702002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
171
172 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
173 auto-import symbols.
174 (make_one): Create _nm_<symbol> for data only.
175
53b2a62f
NC
1762002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
177
178 * ldlang.c (lang_file_exist): New function.
7c519c12 179 (new_afile): Abort if the filename to be added matches the linker
53b2a62f
NC
180 output filename.
181 * ldlang.h: Add prototype for lang_file_exist.
182 * lexsup.c (parse_args): Abort if the output filename matches
183 one of the input filenames.
184
a86a09cc
AM
1852002-10-02 Alan Modra <amodra@bigpond.net.au>
186
187 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
188
ba493122
AM
1892002-09-30 Alan Modra <amodra@bigpond.net.au>
190
1bf0a4d9
AM
191 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
192 * scripttempl/elfm68hc11.sc: Likewise.
193 * scripttempl/elfm68hc12.sc: Likewise.
194
ba493122
AM
195 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
196 reloc sections just before .rel.plt/.rela.plt.
197 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
198 Only put loadable reloc sections in hold_rel.
199
fdb9132d
L
2002002-09-29 H.J. Lu <hjl@gnu.org>
201
42f98619 202 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
fdb9132d 203
ff326826
DJ
2042002-09-25 Daniel Jacobowitz <drow@mvista.com>
205
206 From "Anita Kulkarni" <AnitaK@kpit.com>
207 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
208 sections.
209
0ae1cf52
AM
2102002-09-25 Alan Modra <amodra@bigpond.net.au>
211
1ddd7b13
AM
212 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
213 TARGET_PAGE_SIZE.
214 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
215 SEGMENT_SIZE alignment.
216 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
217 (SEGMENT_SIZE): Define.
218
0ae1cf52
AM
219 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
220 (fold_binary): Correct abs - non-abs case.
221 (fold_trinary): New. Split out from exp_fold_tree.
222
06143382
AM
2232002-09-24 Alan Modra <amodra@bigpond.net.au>
224
225 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
226 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
227 for start of .data, instead align up to 256M boundary.
228 * scripttempl/aix.sc: Likewise.
229
8e616ecc
DD
2302002-09-22 Mark Elbrecht <snowball3@softhome.net>
231
232 * scripttempl/i386go32.sc: Handle bss unique sections.
233
5cfb2bb2
AM
2342002-09-21 Alan Modra <amodra@bigpond.net.au>
235
236 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
237
dd2e0905
SC
2382002-09-17 Stan Cox <scox@redhat.com>
239
240 * emulparams/elf32bmipn32-defs.sh: New file.
241 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
242 * emulparams/elf32btsmipn32.sh: Likewise.
243 * emulparams/elf64bmip.sh: Likewise.
244 * emulparams/elf64btsmip.sh: Likewise.
245
4ada7262
DB
2462002-09-16 Bruno Haible <bruno@clisp.org>
247
248 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
249 elf32-i386-freebsd.
250 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
251 elf64-alpha-freebsd.
252
e09f4395
NC
2532002-09-11 Nick Clifton <nickc@redhat.com>
254
004d9caf
NC
255 * NEWS: New TI port supports both C4x and C3x series of DSPs.
256
e09f4395
NC
257 * po/tr.po: Updated Turkish translation.
258
004d9caf 2592002-09-06 Jeffrey A Law (law@redhat.com)
0b3a6a28 260
7c519c12 261 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
0b3a6a28 262
3e369e96
NC
2632002-09-02 Nick Clifton <nickc@redhat.com>
264
67010b46
NC
265 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
266 __ep.
267 * emulparams/v850.sh (TEMPLATE_NAME): Define.
3e369e96 268
5435462c
NC
2692002-08-30 Nick Clifton <nickc@redhat.com>
270
271 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
272 used. Change INSN to start at 0x01000000 and extend for
273 256K (ignoring holes). Start the STACK on a word aligned
274 boundary.
7c519c12 275 (.rodata): Start it at the READONLY_START_ADDR.
5435462c 276
5c368657
AM
2772002-08-30 Alan Modra <amodra@bigpond.net.au>
278
279 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
280
026df7c5
NC
2812002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
282
283 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
284 added makefile targets for this file.
285 * Makefile.in: Regenerate.
286 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
287 * NEWS: Mention new port.
288
2892002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
290
291 * emulparams/tic3xcoff.sh: New file.
292 * emulparams/tic4xcoff.sh: New file.
293 * scripttempl/tic3xcoff.sc: New file.
294 * scripttempl/tic4xcoff.sc: New file.
295
c89e8944
AM
2962002-08-28 Alan Modra <amodra@bigpond.net.au>
297
298 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
299 strtoul and strtoull with bfd_scan_vma.
300 (gld${EMULATION_NAME}_read_file): Likewise.
301
6459ecfa
AM
3022002-08-28 Alan Modra <amodra@bigpond.net.au>
303
304 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
305
ad5211be
NC
3062002-08-27 Egor Duda <deo@logos-m.ru>
307
308 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
309 Add symbols for application to access them.
310
88f7bcd5
NC
3112002-08-27 Nick Clifton <nickc@redhat.com>
312
313 * emultempl/armelf.em: Revert this patch, it is not needed.
7c519c12 314
88f7bcd5
NC
315 2002-08-22 Adam Nemet <anemet@lnxw.com>
316
8e523c23 3172002-08-20 Dan Kegel <dank@kegel.com>
7c519c12 318
8e523c23
NC
319 * configure.in: added --with-lib-path argument to ld's configure
320 to set LIB_PATH.
321 * ld/NEWS: Document new switch.
322 * ld/README: Mention new switch.
323 * configure: Regenerate.
324 * Makefile.in: Regenerate.
7c519c12 325
8e523c23
NC
326 Based on this patch:
327 2001-04-25 Christopher Faylor <cgf@cygnus.com>
328
329 * Makefile.in (LIB_PATH): Make configurable.
330 (GENSCRIPTS): Set LIB_PATH in environment.
331 * configure.in: Substitute LIB_PATH.
332
d9a7f7ab
NC
3332002-08-22 Adam Nemet <anemet@lnxw.com>
334
335 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
336 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
337 depending on the type of the function.
338 (arm_elf_convert_thumb_symbol_to_address): New function.
339
ed71e111
NC
3402002-08-22 Graeme Peterson <gp@qnx.com>
341
342 * Makefile.am: Add esh{l}elf_nto.o files.
343 * Makefile.in: Regenerate.
344 * configure.tgt: Add support for sh-**-nto* targets.
345 * emulparams/shelf_nto.sh: New file.
346 * emulparams/shlelf_nto.sh: New file.
347
7abb6dea
AM
3482002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
349
350 * ldlang.c (offsetof): Define if not defined.
351
e9229007
L
3522002-08-14 H.J. Lu <hjl@gnu.org>
353
354 * configure.tgt: Always enable 64bit emulations for 32bit
355 Linux/mips.
356
c553bb91
AM
3572002-08-13 Alan Modra <amodra@bigpond.net.au>
358
359 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
360 (MAXPAGESIZE): Set to 1.
361
362 * ld.h (ALIGN_N): Delete.
363 * ldexp.h (align_n): Declare.
364 * ldexp.c (align_n): New function.
365 (fold_binary): Use align_n instead of ALIGN_N.
366 (exp_fold_tree): Likewise.
367 * ldlang.c (lang_size_sections_1): Likewise.
368 (lang_one_common): Likewise.
3c6706bb 369 * ld.texinfo (ALIGN): Remove power of 2 restriction.
c553bb91 370
59bc061d
NC
3712002-07-31 Graeme Peterson <gp@qnx.com>
372
373 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
374 * Makefile.am: Add eelf32{l}ppcnto.o files.
375 * Makefile.in: Regenerate.
376 * emulparams/elf32lppcnto.sh: New file.
377 * emulparams/elf32ppcnto.sh: New file.
378
31941635
L
3792002-08-07 H.J. Lu <hjl@gnu.org>
380
381 * ld.texinfo: Document --no-undefined-version.
382
383 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
384 `script.' fields to 0.
385
386 * ldmain.c (main): Initialize the allow_undefined_version to
387 true.
388
389 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
390 (ld_options): Add --no-undefined-version.
391 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
392
2004afbc
NC
3932002-08-07 Nick Clifton <nickc@redhat.com>
394
395 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
396 an interworking bfd if there are input bfds. (107501)
397
7fc44b9c
AM
3982002-08-06 Alan Modra <amodra@bigpond.net.au>
399
400 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
401 2002-05-10 change.
402
24a1ba0f
NC
4032002-08-01 Nick Clifton <nickc@redhat.com>
404
405 * emulparams/armelf.sh: Revert previous delta.
406 * scripttempl/elf.sc: Revert previous delta.
407
ebc6e014
L
4082002-07-31 H.J. Lu <hjl@gnu.org>
409
410 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
411 --enable-64-bit-bfd.
412
39a2a3eb
L
4132002-07-31 H.J. Lu <hjl@gnu.org>
414
415 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
416 64bit BFD is selected.
417
a0dfa6a8
L
4182002-07-31 H.J. Lu <hjl@gnu.org>
419
420 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
421 if 64bit BFD is selected.
422
f7c33884
NC
4232002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
424
425 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
426 link_info.common_skip_ar_aymbols.
427 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
428
429 * ldmain.c (main): Initialize new field
430 link_info.common_skip_ar_aymbols.
431
8f64befb
NC
4322002-07-31 Adam Nemet <anemet@lnxw.com>
433
434 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
435 to .plt.thumb.
436 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
437 used.
438
500800ca
NC
4392002-07-31 Nick Clifton <nickc@redhat.com>
440
441 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
442 of the PDP-11 and 2.11BSD a.out support.
443
7808a785
TS
4442002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
445
446 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
447 for n32 ABI support.
448 * Makefile.in: Regenerate.
449 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
450 n32 ABI emulations for these 64 bit targets.
451 * emulparams/elf32bmipn32.sh: Expand comment.
452 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
453 n32 ABI.
454 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
455
7e392df6
NC
4562002-07-30 Graeme Peterson <gp@qnx.com>
457
458 * configure.tgt: Add support for arm-*-nto target.
459 * Makefile.am: Add earmnto.o file.
460 * Makefile.in: Regenerate.
461 * NEWS: Mention port of ARM support to QNX.
462 * emulparams/armnto.sh: New file.
463
704afa60
JJ
4642002-07-30 Jakub Jelinek <jakub@redhat.com>
465
466 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
467 for relocatable link.
468 (lang_size_sections_1): Don't make .tbss zero size for relocatable
469 link.
470
7dcd22c2
BS
4712002-07-26 Bernd Schmidt <bernds@redhat.com>
472
473 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
474 (STACK_ADDR): New.
475
219576a4
NC
4762002-07-25 Nick Clifton <nickc@redhat.com>
477
478 * po/sv.po: Updated Swedish translation.
479 * po/es.po: Updated Spanish translation.
480 * po/fr.po: Updated French translation.
481
ff3063f5
NC
4822002-07-24 Nick Clifton <nickc@redhat.com>
483
484 * po/sv.po: Updated Swedish translation.
485 * po/es.po: Updated Spanish translation.
486
0461a601
NC
4872002-07-23 Nick Clifton <nickc@redhat.com>
488
ff3063f5 489 * po/fr.po: Updated French translation.
0461a601 490
25844aae
AM
4912002-07-20 Alan Modra <amodra@bigpond.net.au>
492
493 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
494 bomb on /DISCARD/ input section.
495 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
496 * emultempl/mmo.em (mmo_place_orphan): Likewise.
497
3595bd6e
HPN
4982002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
499
500 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
501 output section.
502
cf88bb9f
NC
5032002-07-16 Denis Chertykov <denisc@overta.ru>
504 Nick Clifton <nickc@redhat.com>
505 Frank Ch. Eigler <fche@redhat.com>
506 John Healy <jhealy@redhat.com>
507
508 * configure.tgt: Add support for ip2k-elf.
509 * Makefile.am: Add support for ip2k-elf.
510 * Makefile.in: Regenerate.
511 * emulparams/elf32ip2k.sh: New file.
512 * scripttempl/ip2k.sc: New file
513 * NEWS: Mention support for new port.
514
2cbb2eef
NC
5152002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
516
517 * NEWS: Add 'Changes in 2.13'.
518
96a94295
L
5192002-07-14 H.J. Lu <hjl@gnu.org>
520
521 * ld.texinfo: Document a .symver takes precedence over a
522 version script.
523
120d20f2
AM
5242002-07-12 Alan Modra <amodra@bigpond.net.au>
525
526 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
527 (COMMONPAGESIZE): Define.
528
0d2ddeb2
AM
5292002-07-09 Alan Modra <amodra@bigpond.net.au>
530
531 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
532
554690ed
AM
5332002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
534
535 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
536 powerpc-*-openbsd* and sparc64-*-openbsd*.
537 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
538 * Makefile.in: Regenerate.
539 * emulparams/hppaobsd.sh: New file.
540
34786259
AM
5412002-07-05 Alan Modra <amodra@bigpond.net.au>
542
543 * ldlang.c (print_wild_statement): Fix output formatting.
544
4bd5a393
AM
5452002-07-04 Alan Modra <amodra@bigpond.net.au>
546
547 * ldlang.c: (strip_excluded_output_sections): New function.
548 (lang_process): Call it.
549 (lang_size_sections_1): Revert 2002-06-10 change.
550
ce4f7385
AM
5512002-07-03 Alan Modra <amodra@bigpond.net.au>
552
553 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
554 Run "make dep-am".
555 * Makefile.in: Regenerate.
556
b7b482a3
AM
5572002-07-02 Alan Modra <amodra@bigpond.net.au>
558
71daf8b4
AM
559 * ldfile.c (ldfile_try_open_bfd): Formatting.
560
b7b482a3
AM
561 * ldmisc.c (demangle): Move so that it doesn't intrude between
562 vfinfo comment and body. Add comment.
563
29e2951e
AM
5642002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
565
566 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
567
e3e942e9
AM
5682002-07-01 Alan Modra <amodra@bigpond.net.au>
569
570 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
571 * ldlang.c (entry_sym): Likewise.
572 (ldlang_undef_chain_list_type): Likewise.
573 (lang_finish): Adjust references to entry_symbol.
574 (lang_add_entry): Likewise.
575 (lang_gc_sections): Use link_info.gc_sym_list.
576 (lang_process): Set link_info.gc_sym_list.
577 * ldlex.l: Include bfdlink.h.
578 * ldmain.c (main): Init link_info.gc_sym_list.
579 * emultempl/aix.em: Adjust references to entry_symbol.
580 * emultempl/armcoff.em: Likewise.
581 * emultempl/armelf.em: Likewise.
582 * emultempl/pe.em: Likewise.
583 * emultempl/ppc64elf.em (ppc_after_open): New function.
584 (LDEMUL_AFTER_OPEN): Define.
585 * emulparams/elf64ppc.sh: KEEP .opd sections.
586
a66c0f2c
SC
5872002-06-29 Stephane Carrez <stcarrez@nerim.fr>
588
589 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
590 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
591 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
592 (EEPROM_START_ADDR): Define.
593 (EEPROM_MEMORY): Define.
594 * emulparams/m68hc12elf.sh: Likewise.
595 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
596 section to put soft registers in .page0.
597 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
598
2b67cf00
JL
5992002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
600
601 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
602 section. Add ${RELOCATING-0}.
603
219576a4 6042002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
164c4054
JR
605
606 * emulparams/shelf.sh (STACK_ADDR): Don't define.
607 (OTHER_SECTIONS): Define.
608 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
609 (OTHER_SECTIONS): Undef.
610
fc28fbc2
AM
6112002-06-26 Alan Modra <amodra@bigpond.net.au>
612
613 * ldmisc.c (demangle): Restore dots stripped from sym name.
614
a13a0de8
L
6152002-06-25 H.J. Lu <hjl@gnu.org>
616
617 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
618 * Makefile.in: Regenerated.
619
b553b183
NC
6202002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
621
622 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
623 the size of attached object files, to allow make the object files
624 available via FTP or HTTP and to mention that the mail will be
625 sent to a mailing list.
626
2755afba
NC
6272002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
628
629 * ld/configure.host (romp): Drop support.
630
7d0a848e
CD
6312002-06-18 Chris Demetriou <cgd@broadcom.com>
632
633 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
634 section flags for SEC_DATA, rather than for SEC_CODE being unset.
635
8505f884
CD
6362002-06-18 Chris Demetriou <cgd@broadcom.com>
637
638 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
639 format specifier used to print BFD name.
640
7d553a40
DB
6412002-06-18 Dave Brolley <brolley@redhat.com>
642
643 From Catherine Moore, Michael Meissner, Jim Blandy:
644 * emulparams/elf32frv.sh: New file.
645 * configure.tgt: Support frv-*-*.
646 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
647 (eelf32frv.c): New target.
648
82434356
TR
6492002-06-17 Tom Rix <trix@redhat.com>
650
a59f3d35 651 * emultempl/elf32.em: gld*_get_script: Check for
82434356
TR
652 GENERATE_COMBRELOC_SCRIPT.
653 * scripttempl/elfd10v.sc : Fix STACK and INSN.
654 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
655
219576a4 6562002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
5d9b5481
JR
657
658 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
659
c4bb8067
L
6602002-06-12 H.J. Lu <hjl@gnu.org>
661
662 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
663 false if xvec doesn't match.
664
e052cfbe
RS
6652002-06-10 Richard Sandiford <rsandifo@redhat.com>
666
667 * ldlang.c (lang_size_sections_1): Skip removed output sections.
668
4da711b1
AM
6692002-06-08 Alan Modra <amodra@bigpond.net.au>
670
671 * ldexp.c: Replace CONST with const.
672 * ldfile.c: Likewise.
673 * ldfile.h: Likewise.
674 * ldlex.l: Likewise.
675 * mri.c: Likewise.
676 * pe-dll.h: Likewise.
677
eb95bb9a
AM
6782002-06-07 Alan Modra <amodra@bigpond.net.au>
679
680 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
681
e0076ab3
NC
6822002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
683
684 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
685 to -1 == implicit enable.
686 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
687 initialize link_info.pei386_auto_import to -1 == implicit
688 enable.
689 (gld_${EMULATION_NAME}_parse_args): When processing
690 --enable-auto-import and --disable-auto-import options, use
691 '1' and '0' instead of 'true' and 'false'.
692 (pe_find_data_imports): Only issue message about auto-import
693 when the feature is implicitly enabled. Downgrade message to
694 informational instead of warning.
695
f13a5424
AM
6962002-06-07 Alan Modra <amodra@bigpond.net.au>
697
698 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
699
1abffd82
JL
7002002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
701
702 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
703 HOSTING_CRT0 and HOSTING_LIBS.
704
e0076ab3 7052002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
7a33bc10
JR
706
707 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
708
4a5e698d
JT
7092002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
710
711 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
712 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
713
1d475d82
AM
7142002-06-05 Alan Modra <amodra@bigpond.net.au>
715
716 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
717 SEC_EXCLUDE sections when doing a relocatable link.
718
5b0e55b6
JT
7192002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
720
721 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
722 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
723 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
724 (eshlelf64_nbsd.c): New rules.
725 * Makefile.in: Regenerate.
726 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
727 (sh64-*-netbsd*): New targets.
728 * emulparams/shelf32_nbsd.sh: New file.
729 * emulparams/shelf64_nbsd.sh: New file.
730 * emulparams/shlelf32_nbsd.sh: New file.
731 * emulparams/shlelf64_nbsd.sh: New file.
732
9ad85d9b
AM
7332002-06-04 Alan Modra <amodra@bigpond.net.au>
734
735 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
736
0c9b4fee
MM
7372002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
738
739 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
740 C++ constructors/destructors, loosely based on the m68hc11 port.
741
2c538bde
AM
7422002-05-31 Alan Modra <amodra@bigpond.net.au>
743
744 * Makefile.in: Regenerate.
745 * aclocal.m4: Regenerate.
746 * config.in: Regenerate.
747 * configure: Regenerate.
748
a0cb91c6
AM
7492002-05-31 Graeme Peterson <gp@qnx.com>
750
751 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
752 (ei386nto.c): Add rule.
753 * Makefile.in: Regenerate.
754 * configure.tgt: Add i[3456]86-*-nto-qnx*.
755 * emulparams/i386nto.sh: New file.
756
37020578
JT
7572002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
758
759 * NEWS: Add entry for VAX ELF support.
760
ab68f3e0 7612002-05-29 Matt Thomas <matt@3am-software.com>
a59f3d35 762 Jason Thorpe <thorpej@wasabisystems.com>
ab68f3e0
JT
763
764 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
765 (eelf32vax.c)
766 (evaxnbsd.c): New rules.
767 * Makefile.in: Regenerate.
768 * configure.tgt (vax-*-netbsdelf*)
769 (vax-*-netbsdaout*)
770 (vax-*-netbsd*): New targets.
771 * emulparams/elf32vax.sh: New file.
772 * emulparams/vaxnbsd.sh: New file.
773
8afb0e02
NC
7742002-05-29 Adam Nemet <anemet@lnxw.com>
775
776 * emultempl/armelf.em (arm_elf_after_open): Don't determine
777 bfd_for_interwork, instead add glue sections to each input bfd.
778 (bfd_for_interwork): New global.
779 (arm_elf_set_bfd_for_interworking): New function.
780 (arm_elf_before_allocation): Use it.
781
d172d4ba
NC
7822002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
783
784 * Makefile.am: Add DLX make target.
785 * configure.tgt: Add DLX configuration.
786 * Makefile.in: Regenerate.
787 * emulparams/elf32_dlx.sh: New file
788 * scripttempl/dlx.sc: New file
789
b4477fa8
NC
7902002-05-27 Per Lundberg <per@caleb.dnsalias.org>
791
792 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
793 * Makefile.in: Regenerate.
794 * emulparams/elf_chaos.sh: Use elf_chaos script.
795 * scripttempl/elf_chaos.sc: New file.
796
ee3cc2e2
RS
7972002-05-27 Richard Sandiford <rsandifo@redhat.com>
798
799 * ldlang.c (lang_size_sections_1): Move check for conflicting load
800 addresses and regions from here...
801 (lang_get_regions): ...to this new function.
802 (lang_leave_output_section_statement): Use lang_get_regions.
803 (lang_leave_overlay): Likewise.
804 * mri.c (mri_draw_tree): Pass null as last argument to
805 lang_leave_output_section_statement.
806 * emultempl/elf32.em (gld*_place_orphan): Likewise.
807 * emultempl/mmo.em (mmo_place_orphan): Likewise.
808 * emultempl/pe.em (gld*_place_orphan): Likewise.
809
aa501e5c
JT
8102002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
811
812 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
813
658957db
KH
8142002-05-25 Kazu Hirata <kazu@cs.umass.edu>
815
816 * ldemul.c: Fix formatting.
817 * ldfile.c: Likewise.
818 * pe-dll.c: Likewise.
819 * pe-dll.h: Likewise.
820
3511b595
AM
8212002-05-25 Alan Modra <amodra@bigpond.net.au>
822
0d6d936f
AM
823 * ldlang.c (lang_process): Formatting, grammar.
824
3511b595
AM
825 * ldlex.l: Use #include "" instead of <> for local header files.
826
436e8db0
NC
8272002-05-24 TAMURA Kent <kent@netbsd.org>
828
829 * configure.tgt: Add a target for i386-netbsdpe.
830
13ae64f3
JJ
8312002-05-23 Jakub Jelinek <jakub@redhat.com>
832
833 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
834 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
835 output section if necessary. Handle .tbss.
836 (lang_size_sections): Clear _raw_size for .tbss section
837 (it allocates space in PT_TLS segment only).
838 * ldwrite.c (build_link_order): Build link order for .tbss too.
839
68b2fc7a
AM
8402002-05-23 Alan Modra <amodra@bigpond.net.au>
841
842 * configure.in: Correct spelling of AC_PREREQ.
843
70b0be79
CF
8442002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
845
846 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
847 default.
848 (autofilter_objlist): Add crtbegin.o, crtend.o.
849
8502002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
851
852 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
853 (longopts): Add new option --exclude-libs.
854 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
855 (gld_${EMULATION_NAME}_parse_args): Use it.
856 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
857 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
858 from whole archives.
859 (pe_dll_add_excludes): Set excludes->type.
860 (auto_export): Add new variable libname and set to archive basename if
861 abfd. Use it when filtering default and user-specified libarary
862 excludes. Let string "ALL" mean all libs when filtering user-specified
863 libs.
864 * ld.texinfo: Document --exclude-libs.
865
fac1652d
AM
8662002-05-22 Alan Modra <amodra@bigpond.net.au>
867
868 * ldemul.c (ldemul_new_vers_pattern): New function.
869 * ldemul.h (ldemul_new_vers_pattern): Declare.
870 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
871 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
872 * emultempl/ppc64elf.em (dotsyms): New static var.
873 (gld${EMULATION_NAME}_new_vers_pattern): New function.
874 (LDEMUL_NEW_VERS_PATTERN): Define.
875 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
876 (PARSE_AND_LIST_LONGOPTS): Likewise.
877 (PARSE_AND_LIST_ARGS_CASES): Handle them.
878 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
879 initialiser.
880 * emultempl/armcoff.em: Likewise.
881 * emultempl/armelf_oabi.em: Likewise.
882 * emultempl/beos.em: Likewise.
883 * emultempl/elf32.em: Likewise.
884 * emultempl/generic.em: Likewise.
885 * emultempl/gld960.em: Likewise.
886 * emultempl/gld960c.em: Likewise.
887 * emultempl/linux.em: Likewise.
888 * emultempl/lnk960.em: Likewise.
889 * emultempl/m68kcoff.em: Likewise.
890 * emultempl/mipsecoff.em: Likewise.
891 * emultempl/pe.em: Likewise.
892 * emultempl/sunos.em: Likewise.
893 * emultempl/ticoff.em: Likewise.
894 * emultempl/vanilla.em: Likewise.
895
eb3d6bb8
AM
8962002-05-22 Alan Modra <amodra@bigpond.net.au>
897
898 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
899 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
900 (LIB_SEARCH_DIRS): No need to use "tr".
901 (COMPILE_IN): Only set for native targets.
902 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
903 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
904 * configure.tgt (powerpc*): Set tdir_*.
905 (powerpcle*): Correct targ_extra_emuls.
906 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
907 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
908
54f24647
AM
9092002-05-22 Alan Modra <amodra@bigpond.net.au>
910
911 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
912 calling lang_add_entry.
913
aa713662
L
9142002-05-21 H.J. Lu (hjl@gnu.org)
915
916 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
917 "-z muldefs".
918 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
919
920 * ld.texinfo: Updated for --allow-multiple-definition and
921 "-z muldefs".
922
923 * ldmain.c (main): Initialize the allow_multiple_definition
924 field to false.
925
926 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
927 (ld_options): Add --allow-multiple-definition.
928 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
929
658f2588
JT
9302002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
931
932 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
933 (earmelfb_nbsd.c): New rule.
a59f3d35 934 * Makefile.in: Regenerate.
658f2588 935 * configure.tgt (armeb-*-netbsdelf*): New target.
a59f3d35 936 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
658f2588
JT
937 (arm-*-netbsd*): Likewise.
938 * emulparams/armelfb_nbsd.sh: New file.
939
ca10c62d
TR
9402002-05-18 Tom Rix <trix@redhat.com>
941
a59f3d35 942 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
ca10c62d
TR
943 support.
944
fae1e84f
MM
9452002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
946
947 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
948 * Makefile.in: Regenerate.
949 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
950
7c8bf1e8
MM
9512002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
952
953 * emulparams/avr1.sh: New file.
954 * emulparams/avr2.sh: New file.
955 * emulparams/avr3.sh: New file.
956 * emulparams/avr4.sh: New file.
957 * emulparams/avr5.sh: New file.
958 * scripttempl/avr.sc: New file.
959
c2c01aa7
AM
9602002-05-15 Alan Modra <amodra@bigpond.net.au>
961
962 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
963 (lang_place_orphans): Abort if just_syms_flag.
964
f1f0d9ab
TR
9652002-05-10 Tom Rix <trix@redhat.com>
966
a59f3d35 967 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
f1f0d9ab
TR
968 architecture and machine information in the output bfd.
969 (gld*_before_parse): Remove old arch and machine code.
970 (choose_target): Rename to gld*_choose_target.
a59f3d35
AM
971 (rtld): Change type to int.
972 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
f1f0d9ab
TR
973 objects in XCOFF archives.
974 * ldfile.h: Update copyright date.
975
f4d73366
JJ
9762002-05-10 Jakub Jelinek <jakub@redhat.com>
977
978 * ldmain.c (main): Enable -z combreloc by default.
979
d3d8a9ee
NC
9802002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
981
982 * Makefile.am: Honour DESTDIR.
983 * Makefile.in: Regenerate.
984
9f88b410
RS
9852002-05-07 Richard Sandiford <rsandifo@redhat.com>
986
987 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
988 (lang_enter_overlay): Remove the last two parameters.
989 (lang_leave_overlay): Take them here instead.
990 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
991 (section): Pass LMA and crossref flag to lang_leave_overlay rather
992 than lang_enter_overlay.
993 * ldlang.c (lang_memory_region_lookup): Return null for null names.
994 (lang_output_section_statement_lookup): Initialize update_dot_tree.
995 (lang_size_sections_1): Evaluate it.
996 (lang_leave_output_section_statement): Rework LMA lookup.
997 (overlay_lma, overlay_nocrossrefs): Remove.
3511b595 998 (lang_enter_overlay): Remove LMA and crossref arguments.
9f88b410
RS
999 (lang_enter_overlay_section): Don't set the LMA here.
1000 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1001 assignment to the last section's update_dot_tree. Unconditionally
1002 use the load and run-time regions specified in the OVERLAY statement.
1003 Likewise the first section's LMA. Only set the other sections' LMAs
1004 when no load region is given.
1005
b9a743c8
NC
10062002-05-06 Nick Clifton <nickc@redhat.com>
1007
1008 * po/sv.po: New translation.
1009
a3d60be3
AM
10102002-05-04 Alan Modra <amodra@bigpond.net.au>
1011
1012 * emultempl/hppaelf.em (build_section_lists): New function.
1013 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1014 and build_section_lists.
1015
b7a26f91
KH
10162002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1017
1018 * ld.h: Fix formatting.
1019 * ldexp.c: Likewise.
1020 * ldfile.c: Likewise.
1021 * ldlang.c: Likewise.
1022 * ldmain.c: Likewise.
1023 * lexsup.c: Likewise.
1024 * pe-dll.c: Likewise.
1025
805fc799
AM
10262002-05-02 Alan Modra <amodra@bigpond.net.au>
1027
1028 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1029 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1030 (build_section_lists): Do output_section tests here.
1031
cc7e59b2
TR
10322002-04-30 Tom Rix <trix@redhat.com>
1033
1034 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1035
9c1d81c1
AM
10362002-05-01 Alan Modra <amodra@bigpond.net.au>
1037
1038 Long branch stubs, multiple stub sections.
1039 * emultempl/ppc64elf.em: Include ldctor.h.
1040 (stub_file): New var.
1041 (group_size): New var.
1042 (ppc_create_output_section_statements): New function.
1043 (struct hook_stub_info): New.
1044 (hook_in_stub): New function.
1045 (ppc_add_stub_section): New function.
1046 (ppc_layout_sections_again): New function.
1047 (build_section_lists): New function.
1048 (gld${EMULATION_NAME}_finish): Rewrite.
1049 (real_func): New var.
1050 (ppc_for_each_input_file_wrapper): New function.
1051 (ppc_lang_for_each_input_file): New function.
1052 (lang_for_each_input_file): Define.
1053 (PARSE_AND_LIST_PROLOGUE): Define.
1054 (PARSE_AND_LIST_LONGOPTS): Define.
1055 (PARSE_AND_LIST_OPTIONS): Define.
1056 (PARSE_AND_LIST_ARGS_CASES): Define.
1057 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1058
aa67bccf
TR
10592002-04-30 Tom Rix <trix@redhat.com>
1060
a59f3d35
AM
1061 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1062 -blibpath, -bnolibpath support.
1063
94349e12
MM
10642002-04-30 Mark Mitchell <mark@codesourcery.com>
1065
1066 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1067 (eelf32ppcwindiss.c): New target.
1068 * Makefile.in: Regenerated.
1069 * configure.tgt: Add support for powerpc-*-windiss.
1070 * emulparams/elf32ppcwindiss.sh: New file.
a59f3d35 1071
7b17f854
RS
10722002-04-30 Richard Sandiford <rsandifo@redhat.com>
1073
1074 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1075 * ldexp.c (exp_print_token): Add "infix_p" argument.
1076 (exp_print_tree): Update accordingly.
1077
596dafeb
AM
10782002-04-28 Alan Modra <amodra@bigpond.net.au>
1079
1080 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1081 * Makefile.in: Regenerate.
1082 * mpw-elfmips.c: Delete.
1083 * mpw-eppcmac.c: Delete.
1084 * mpw-esh.c: Delete.
1085 * mpw-idtmips.c: Delete.
1086
219576a4 10872002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
1088
1089 * emulparams/shelf32.sh (MACHINE): Now sh5.
1090
944cd72c
TS
10912002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1092
1093 * ldgram.y: Fix syntax warning.
1094
5835c212
NC
10952002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1096
1097 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1098 to prevent "-n" from being taken as an abbreviation for
1099 "--no-pipeline-knowledge".
1100
024531e2
AM
11012002-04-08 Alan Modra <amodra@bigpond.net.au>
1102
d08a14c3
AM
1103 * ldlang.c (lang_size_sections_1): Don't complain about
1104 SEC_NEVER_LOAD sections having no memory region specified.
1105
024531e2
AM
1106 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1107
c657a1f0
MG
11082002-04-07 matthew green <mrg@redhat.com>
1109
1110 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1111
61bef6f1
AM
11122002-04-04 Alan Modra <amodra@bigpond.net.au>
1113
1114 * dep-in.sed: Cope with absolute paths.
1115 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1116 Run "make dep-am".
1117 * Makefile.in: Regenerate.
1118
49ba2791
TS
11192002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1120
1121 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1122
50e60fb5
JJ
11232002-04-03 Jakub Jelinek <jakub@redhat.com>
1124
1125 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1126 is smaller than maximum, round dot up to common page boundary.
1127
6f12f4ca
AM
11282002-03-28 Alan Modra <amodra@bigpond.net.au>
1129
1130 * configure.host: Set up for generic hosts first, then tweak as
1131 necessary in more specific targets.
1132 (HOSTING_LIBS): Include libgcc_eh.a if found.
1133
a8f1f017
AJ
11342002-03-23 Andreas Jaeger <aj@suse.de>
1135
1136 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1137
1d3fdf38
AM
11382002-03-21 Alan Modra <amodra@bigpond.net.au>
1139
1140 * Makefile.am: Run "make dep-am".
1141 * Makefile.in: Regenerate.
1142
79b1faa8
AM
11432002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1144
1145 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1146
fcf0e35b
AM
11472002-03-20 Alan Modra <amodra@bigpond.net.au>
1148
1149 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1150 add the symbol to the linker hash table immediately.
1151 (lang_place_undefineds): Split symbol creation out..
1152 (insert_undefined): ..to here.
1153
fed2999d
DB
11542002-03-18 David O'Brien <obrien@FreeBSD.org>
1155
1156 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1157 the contents of the buffer returned from basename function will are
1158 getting overwritten while still being used.
1159
219576a4
NC
11602002-03-18 Jan Hubicka <jh@suse.cz>
1161 Andreas Jaeger <aj@suse.de>
1162 Andreas Schwab <schwab@suse.de>
beb43bb9
JH
1163
1164 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1165 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1166 set libraries to default to lib64 paths.
1167
eb1e0e80
NC
11682002-03-18 Tom Rix <trix@redhat.com>
1169
1170 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1171 * configure.tgt : Same.
1172 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1173 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1174 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1175 emulation parameters for better -b32, -b64 support.
1176 * emulparms/aixrs6.sh : Same.
1177 * emulparms/ppcmacos.sh : Same.
1178 * emultempl/aix.em (choose_target) : Use new emulation parameters
1179 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1180 * Makefile.in : Regenerate.
1181
a1c259a1
NC
11822002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1183
1184 * po/fr.po: Updated version.
1185
862120bd
AM
11862002-03-18 Alan Modra <amodra@bigpond.net.au>
1187
1188 * ldmain.c (main): Move .text readonly flag fudges from here..
1189 * ldlang.c (lang_process): ..to here.
1190
d35a52e2
AM
11912002-03-14 Alan Modra <amodra@bigpond.net.au>
1192
1193 * ldlang.c (lang_check): Remove the word size check added in last
1194 change. Treat emitrelocations case as for relocatable links.
1195
9ce88e60
NC
11962002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1197
1198 * po/fr.po: Updated version.
1199
30cba025
AM
12002002-03-13 Alan Modra <amodra@bigpond.net.au>
1201
1202 * ldlang.c (lang_check): Do relocatable link checks first, so that
1203 warn_mismatch can't override. Check compatible and word size too.
1204
84ec0e6d
DJ
12052002-03-07 Daniel Jacobowitz <drow@mvista.com>
1206
1207 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1208
2d13d8c5
JJ
12092002-03-05 Jakub Jelinek <jakub@redhat.com>
1210
1211 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1212 DATA_SEGMENT_ALIGN.
1213
b5090659
L
12142002-03-04 H.J. Lu <hjl@gnu.org>
1215
1216 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1217 .fini_array in the data segment.
1218
f42ce16e
AM
12192002-03-04 Alan Modra <amodra@bigpond.net.au>
1220
1221 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1222
de77b6ac
RH
12232002-03-01 David Mosberger <davidm@hpl.hp.com>
1224
1225 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1226 .init_array, and .fini_array.
1227
997e08c0
AS
12282002-02-20 Andreas Schwab <schwab@suse.de>
1229
1230 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1231 .IA64_unwind* in a relocatable link.
1232
9a66911f
NC
12332002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1234
1235 * NEWS: Mark 2.12 branch.
1236
d86bcc10
MS
12372002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1238
1239 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1240 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1241
69f284c7
TR
12422002-02-18 Tom Rix <trix@redhat.com>
1243
1244 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1245 (gld*_before_allocation): Same.
a8f1f017 1246 (gld*_create_output_section_statements): Generate
69f284c7
TR
1247 __rtinit if run time linking. Add librtl.a to the link.
1248 (gld*_read_file): Clean.
1249
82bd7b59
AM
12502002-02-18 Alan Modra <amodra@bigpond.net.au>
1251
1252 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1253
ac3e50bf
DB
12542002-02-18 David O'Brien <obrien@FreeBSD.org>
1255
6a7f963b 1256 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
ac3e50bf
DB
1257 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1258 and eelf64alpha_fbsd.
6a7f963b 1259 * Makefile.in: Regenerate.
ac3e50bf
DB
1260 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1261 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1262 use a FreeBSD-specific emulation rather than the psABI one.
1263 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1264 for all FreeBSD ELF systems.
1265 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1266 emulation.
1267 * emulparams/elf32ppc_fbsd.sh: Likewise.
1268 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1269 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1270 * emulparams/elf64alpha_fbsd.sh: Likewise.
1271 * emulparams/elf_i386_fbsd.sh: Likewise.
1272 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1273
6ad738c5
NC
12742002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1275
1276 * po/tr.po: Updated version.
1277
9673c93c
AM
12782002-02-18 Alan Modra <amodra@bigpond.net.au>
1279
1280 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1281 (FILL): Likewise.
1282
1c5e6447
HPN
12832002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1284
1285 * emultempl/mmo.em (mmo_after_open): Don't call
1286 _bfd_mmix_check_all_relocs when producing ELF output.
1287
8bb57516
RH
12882002-02-15 Richard Henderson <rth@redhat.com>
1289
de77b6ac 1290 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
8bb57516
RH
1291 definition. Emit a unop+nop pair.
1292
49fda6c8
HPN
12932002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1294
83c2d653
HPN
1295 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1296 for presence of .MMIX.reg_contents.linker_allocated before early
1297 exit.
1298
49fda6c8
HPN
1299 * NEWS: Mention support for MMIX.
1300
2c382fb6
AM
13012002-02-15 Alan Modra <amodra@bigpond.net.au>
1302
1303 Support arbitrary length fill patterns.
a139d329
AM
1304 * ld.texinfo (Output Section Fill): Describe fill expressions.
1305 (FILL): Refer to the above.
2c382fb6
AM
1306 * ldexp.h (etree_value_type): Add "str" field.
1307 (union etree_union): Add "str" to "value" struct.
1308 (exp_bigintop): Declare.
1309 (exp_get_fill): Declare.
1310 * ldexp.c: Include "safe-ctype.h".
1311 (exp_intop): Set value.str to NULL.
1312 (exp_bigintop): New function.
1313 (new_rel): Pass in "str", and set new.str from it.
1314 (new_rel_from_section): Set new.str to NULL.
1315 (fold_name): Adjust calls to new_rel.
1316 (exp_fold_tree): Likewise.
1317 (exp_get_fill): New function.
1318 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1319 (INT): Returns a "bigint". Adjust all code handling INTs.
1320 (fill_opt): Returns a "fill".
1321 (fill_exp): Split out of fill_opt, use for FILL.
1322 * ldlang.h (struct _fill_type): New.
1323 (fill_type): Move typedef to ldexp.h.
1324 (lang_output_section_statement_type): "fill" is now a pointer.
1325 (lang_fill_statement_type): Likewise.
1326 (lang_padding_statement_type): Likewise.
1327 (lang_add_fill): Now takes a "fill_type *" param.
1328 (lang_leave_output_section_statement): Likewise.
1329 (lang_do_assignments): Likewise.
1330 (lang_size_sections): Likewise.
1331 (lang_leave_overlay_section): Likewise.
1332 (lang_leave_overlay): Likewise.
1333 * ldlang.c: Include ldgram.h after ldexp.h.
1334 (lang_output_section_statement_lookup): Adjust for fill_type change.
1335 (print_fill_statement): Likewise.
1336 (print_padding_statement): Likewise.
1337 (insert_pad): Now takes a "fill_type *" arg.
1338 (size_input_section): Likewise.
1339 (lang_size_sections_1): Likewise.
1340 (lang_size_sections): Likewise.
1341 (lang_do_assignments): Likewise.
1342 (lang_add_fill): Likewise.
1343 (lang_leave_output_section_statement): Likewise.
1344 (lang_leave_overlay_section): Likewise.
1345 (lang_leave_overlay): Likewise.
1346 Adjust all callers of the above function.
1347 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1348 starting with "0X" as well as "0x". Return bigint.str for hex
1349 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1350 Always use base 16 for numbers starting with "$".
1351 * ldmain.c: Include ldgram.h after ldexp.h.
1352 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1353 of bfd_fill_link_order.
1354 * pe-dll.c: Adjust lang_do_assignments calls.
1355 * emultempl/elf32.em: Likewise.
1356 * emultempl/hppaelf.em: Likewise.
1357 * emultempl/ppc64elf.em: Likewise.
1358 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1359 lang_add_assignment call.
1360 * emultempl/pe.em: Likewise.
1361
313e35ee
AM
13622002-02-14 Phil Edwards <pme@gcc.gnu.org>
1363
a139d329 1364 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
313e35ee
AM
1365 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1366 the pattern in question is not a regexp.
1367 * ldlang.c: Likewise.
1368 * ldlang.h: Likewise.
1369 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1370
2d20f7bf
JJ
13712002-02-12 Jakub Jelinek <jakub@redhat.com>
1372
1373 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1374 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1375 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1376 * ldexp.c (exp_data_seg): New variable.
1377 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1378 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1379 (exp_fold_tree): Handle DATA_SEGMENT_END.
1380 Pass allocation_done when recursing instead of hardcoding
1381 lang_allocating_phase_enum.
1382 * ldexp.h (exp_data_seg): New.
1383 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1384 (lang_size_sections): New.
1385 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1386 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1387 if COMMONPAGESIZE is defined.
1388 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1389 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1390 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1391 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1392 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1393 libraries only.
1394
06880219
AM
13952002-02-11 Alan Modra <amodra@bigpond.net.au>
1396
1397 * Makefile.in: Regenerate.
1398
37b0ac0f
DJ
13992002-02-10 Daniel Jacobowitz <drow@mvista.com>
1400
1401 * lexsup.c: Remove strtoul declaration.
1402
4e5bae56
DJ
14032002-02-10 Daniel Jacobowitz <drow@mvista.com>
1404
1405 * ldmain.c: Add prototype for main ().
1406 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1407 * emultempl/lnk960.em (lnk960_choose_target): Function should
1408 take two arguments.
1409
1e281515
AM
14102002-02-10 Alan Modra <amodra@bigpond.net.au>
1411
1412 * ldlang.c (entry_section): New initialised variable.
1413 (lang_finish): Use it.
1414 * ldlang.h (entry_section): Declare.
1415 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1416 entry_section to ".opd".
1417
f92d92ff 14182002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
1419
1420 * ld.texinfo (Options): Add back in -nostdlib documentation,
1421 which had been inadvertently removed.
1422
74c44237
HPN
14232002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1424
1425 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1426 register section vma to a sane value after emitting error. Make
1427 fatal conditions cause program exit when emitting message.
1428
5e37cc46
NC
14292002-02-08 Ivan Guzvinec <ivang@opencores.org>
1430
1431 * configure.tgt: Add or32-*-rtems target.
1432
2d92cb7d
AO
14332002-02-08 Alexandre Oliva <aoliva@redhat.com>
1434
1435 Contribute sh64-elf.
1436 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1437 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1438 in OTHER_RELOCATABLE_SECTIONS.
1439 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1440 * emulparams/shelf32.sh (STACK_ADDR): Define.
1441 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1442 (OTHER_SECTIONS): this. Removed stack settings.
1443 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1444 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1445 2001-03-12 DJ Delorie <dj@redhat.com>
1446 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1447 relaxing if any shmedia or mixed sections are found.
1448 2001-03-07 DJ Delorie <dj@redhat.com>
1449 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1450 einfo. Gracefully decline to output to non-elf formats.
1451 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1452 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1453 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1454 * emulparams/shelf32.sh: Ditto.
1455 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1456 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1457 comment.
1458 2001-01-10 Ben Elliston <bje@redhat.com>
1459 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1460 non-portable shell constructs. From Hans-Peter Nilsson.
1461 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1462 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1463 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1464 dependencies to the shell script include chain.
1465 * Makefile.in: Regenerate.
1466 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1467 * emultempl/sh64elf.em: Update and tweak comments.
1468 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1469 make a .cranges section SEC_IN_MEMORY.
1470 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1471 * emultempl/sh64elf.em
1472 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1473 .cranges section found to be necessary; continue and set stored
1474 section contents flags for sections with non-mixed contents.
1475 Use a struct sh64_section_data container and sh64_elf_section_data
1476 to store contents-type flags.
1477 Remove unused update of "isec".
1478 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1479 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1480 access contents-type flags. Assert that the associated container
1481 is initialized. Use that container, not elf_gp_size, to hold size
1482 of linker-generated cranges contents.
1483 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1484 * emultempl/sh64elf.em
1485 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1486 there's already a .cranges section. When section flag difference
1487 is found, don't NULL-check cranges a second time. Tweak comments.
1488 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1489 merging, not max size, as size of ld-generated .cranges contents.
1490 Don't set ELF section flags in output section. When checking for
1491 needed .cranges descriptors, don't use a variable; compare
1492 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1493 comments.
1494 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1495 * emultempl/sh64elf.em: New file.
1496 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1497 * Makefile.in: Regenerate.
1498 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1499 (OTHER_RELOCATING_SECTIONS): Ditto.
1500 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1501 * emulparams/shlelf32.sh: Stub out all settings except
1502 OUTPUT_FORMAT. Source shelf32.sh.
1503 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1504 OTHER_RELOCATING_SECTIONS.
1505 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1506 * emulparams/shlelf64.sh: Stub out all settings except
1507 OUTPUT_FORMAT. Source shelf64.sh.
1508 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1509 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1510 .cranges section.
1511 (DATA_START_SYMBOLS): Define, provide ___data.
1512 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1513 for consecutive .data section.
1514 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1515 section after .data section.
1516 * emulparams/shlelf64.sh: Ditto.
1517 * emulparams/shelf32.sh: Ditto.
1518 (ALIGNMENT): Define to 8.
1519 * emulparams/shelf32.sh: Ditto.
1520 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1521 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1522 built-in linker scripts.
1523 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1524 * emulparams/shlelf64.sh: New.
1525 * emulparams/shelf64.sh: New.
1526 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1527 targ_extra_emuls.
1528 * Makefile.am: Add support for shlelf64 and shelf64.
1529 * Makefile.in: Regenerate.
1530 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1531 * configure.tgt (sh64-*-elf*): Add shelf as default.
1532 Add shlelf to targ_extra_emuls.
1533 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1534 * emulparams/shelf32.sh: New file.
1535 * emulparams/shlelf32.sh: New file.
1536 * Makefile.am: Add support for shlelf32 and shelf32.
1537 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1538 * Makefile.in: Regenerate.
1539
e3dc8847
HPN
15402002-02-05 Hans-Peter Nilsson <hp@axis.com>
1541
1542 * ldlang.c (lang_reset_memory_regions): Rename from
1543 reset_memory_regions. Change all callers. Make public.
1544 * ldlang.h (lang_reset_memory_regions): Prototype.
1545 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1546 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
1547 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1548 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 1549
8017dbcb
HPN
15502002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1551
1552 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1553 arithmetic when checking for too many global registers.
1554
006336b8
JT
15552002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1556
1557 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1558 (ehppanbsd.c): New rule.
1559 * Makefile.in: Regenerate.
1560 * configure.tgt (hppa*-*-netbsd*): New target.
1561 * emulparams/hppalinux.sh: Add comment to check other files
1562 that source this file it is modified, and list which
1563 files that do.
1564 * emulparams/hppanbsd.sh: New file.
1565
da1f2fec
GK
15662002-02-01 Geoffrey Keating <geoffk@redhat.com>
1567
1568 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1569 stack.
1570
48fa4a5d
HPN
15712002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1572
1573 Support on-demand global register allocation from
1574 R_MMIX_BASE_PLUS_OFFSET relocs.
1575 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1576 mmix_set_reg_section_vma. Call
1577 _bfd_mmix_finalize_linker_allocated_gregs.
1578 (mmix_before_allocation): New function.
1579 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1580 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1581 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1582 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1583 before .MMIX.reg_contents.
1584 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1585 (mmo_after_open): New function.
1586 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1587 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1588 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1589
3b16e843
NC
15902002-01-31 Ivan Guzvinec <ivang@opencores.org>
1591
1592 * emulparams/or32.sh: New file.
1593 * emulparams/or32elf.sh: New file.
1594 * scripttempl/or32.sc: New file.
1595 * configure.tgt : Add support for or32.
1596 * configure: Regenerate
1597 * Makefile.am: Add support for or32.
1598 * Makefile.in: Regenerate.
1599 * NEWS: Mention support for or32.
1600 * po/ld.pot: Regenerate.
1601
f744d540 16022002-01-29 Chris Demetriou <cgd@broadcom.com>
313e35ee 1603 Mitch Lichtenberg <mpl@broadcom.com>
f744d540
CD
1604
1605 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1606 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1607 reloc creation (ld --embedded-relocs).
1608
4867be41
DJ
16092002-01-27 Daniel Jacobowitz <drow@mvista.com>
1610
1611 * configure: Regenerated.
1612
cd8e197b
HPN
16132002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1614
1615 * Makefile.am (install): Depend on install-info.
1616 * Makefile.in: Regenerate.
1617
9cb61eab
AM
16182002-01-26 Christian Rose <menthos@menthos.com>
1619
1620 * ldmain.c (main): Use full sentences to ease translation.
1621
1caa7b23
NC
16222002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1623
1624 * po/fr.po: Updated version.
1625
1ddbd152
NC
16262002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1627
1628 * po/es.po: Updated version.
1629
1e84433f
AJ
16302002-01-25 Andreas Jaeger <aj@suse.de>
1631
1632 * ldlex.l (yy_input): Correct error check.
1633
6d39955e
AM
16342002-01-25 Alan Modra <amodra@bigpond.net.au>
1635
1636 * ldmisc.c (demangle): Put back dots when string not demangled.
1637
a9ed1e1b
RH
16382002-01-22 Richard Henderson <rth@redhat.com>
1639
1640 * emulparams/elf64alpha.sh (NOP): Use unop.
1641
968ec2b9
AJ
16422002-01-21 Andreas Jaeger <aj@suse.de>
1643
1644 * ldlex.l: Use fread instead of read.
1645
9596feea
JT
16462002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1647
1648 * configure.tgt (ia64-*-netbsd*): New target.
1649
493a6d47
L
16502002-01-21 H.J. Lu <hjl@gnu.org>
1651
1652 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1653 0.
1654 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1655
2a538ba5
AJ
16562002-01-18 Andreas Jaeger <aj@suse.de>
1657
1658 * ldver.c (ldversion): Update year.
1659
328577ad
NC
16602002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1661
1662 * po/ld.pot: Regenerate.
1663
1f808cd5
AM
16642002-01-16 Alan Modra <amodra@bigpond.net.au>
1665
1666 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1667 * Makefile.in: Regenerate.
1668 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1669 * emultempl/ppc64elf.em: New file.
1670
335c5610
DD
16712002-01-15 DJ Delorie <dj@redhat.com>
1672
1673 * scripttempl/pe.sc: Add support for constructor priorities.
1674
c40bbade
DC
16752002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1676
1677 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1678 * emulparams/avr23xx.sh: Likewise.
1679 * emulparams/avr4433.sh: Likewise.
1680 * emulparams/avr44x4.sh: Likewise.
1681 * emulparams/avr85xx.sh: Likewise.
1682 * emulparams/avrmega103.sh: Likewise.
1683 * emulparams/avrmega161.sh: Likewise.
1684 * emulparams/avrmega603.sh: Likewise.
1685 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1686
34efb449
AO
16872002-01-08 Alexandre Oliva <aoliva@redhat.com>
1688
1689 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1690 archive is excluded.
1691
8d05742f
JT
16922002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1693
1694 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 1695 (eshelf_nbsd.c): New rule.
8d05742f
JT
1696 (eshlelf_nbsd.c): New rule.
1697 * Makefile.in: Regenerate.
1698 * configure.tgt (sh*le-*-netbsdelf*): New target.
1699 (sh*-*-netbsdelf*): New target.
1700 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1701 * ld/emulparams/shelf_nbsd.sh: New emulation.
1702 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1703
be2d1673
NC
17042002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1705
1706 * po/es.po: New file: Spanish translation.
1707 * configure.in (ALL_LINGUAS): Add es.
1708 * configure: Regenerate.
1709
dbab7a7b
NC
17102002-01-06 John Marshall <jmarshall@acm.org>
1711
1712 * ld.texinfo: Note that --emit-relocs is currently only
1713 implemented for ELF.
1714
3dfe7a8c
AM
17152002-01-05 Alan Modra <amodra@bigpond.net.au>
1716
1717 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1718 of bfd_section_list_remove and bfd_section_list_insert macros.
1719 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1720 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1721
8a8b2d4b
AJ
17222002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1723
1724 * configure.tgt (x86_64-*-netbsd*): New target.
1725
9a4c7f16
TR
17262001-12-21 Tom Rix <trix@redhat.com>
1727
8a8b2d4b 1728 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
1729 For -binitfini support.
1730 * emultempl/aix.em (gld*_before_parse): Fix comment.
1731 * emultempl/aix.em (gld*_parse_args): Fix comment.
1732
3695c299
AM
17332001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1734
cf86e6df
AM
1735 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1736 mips*el-*-netbsd*.
1737 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1738
3695c299
AM
1739 * configure.tgt (arm-*-netbsdelf*): Add target.
1740 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1741 * emulparams/armelf_nbsd.sh: Added.
1742 * Makefile.am: Add rules for earmelf_nbsd.
1743 * Makefile.in: Regenerate.
1744
97cb79ae
AJ
17452001-12-19 Andreas Jaeger <aj@suse.de>,
1746 Susanne Oberhauser <froh@suse.de>
1747
1748 * configure.host: Add rules for x86_64-*linux-gnu. Change
1749 s390x-linux entry to use gcc to report configuration, replace gcc
1750 with $CC in s390-linux
1751
9d201f2f
AJ
17522001-12-19 Andreas Jaeger <aj@suse.de>
1753
1754 * ld.texinfo (VERSION): Fix markup.
1755
0b69cd08
MG
17562001-12-18 matthew green <mrg@eterna.com.au>
1757
1758 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1759 (m68kelfnbsd.c): New rule.
1760 * Makefile.in: Regenerate.
1761 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1762 (m68*-*-netbsd*4k*): .. this.
1763 (m68*-*-netbsdelf*): New target.
1764 (m68*-*-netbsd*): Also include ELF support.
1765 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1766 * emulparams/m68kelfnbsd.sh: New emulation.
1767
6b9b879a
JJ
17682001-12-18 Jakub Jelinek <jakub@redhat.com>
1769
1770 * ldgram.y (vers_node): Support anonymous version tags.
1771 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1772 tag is not defined together with non-anonymous versions.
1773 * ld.texinfo: Document it.
1774
9fc877ed
NC
17752001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1776
1777 * po/tr.po: New file: Turkish translation.
1778 * configure.in (ALL_LINGUAS): Add tr.
1779 * configure: Regenerate.
1780
fc18a3f3
RH
17812001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1782
1783 * Makefile.am: Add rules for eelf64alpha_nbsd.
1784 * Makefile.in: Regenerate.
1785 * configure.tgt (alpha*-*-netbsd*): Set
1786 targ_emul to elf64alpha_nbsd.
1787 * emulparams/elf64alpha_nbsd.sh: Added.
1788
76f63e91
AM
17892001-12-17 Alan Modra <amodra@bigpond.net.au>
1790
1791 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1792 section_tail when fiddling with section list.
1793 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1794 broken into separate strings to make translation easier.
1795 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1796 fiddling with section list.
1797 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1798
d03b89bd
HPN
17992001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1800
1801 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1802
320fec9a
AM
18032001-12-15 Alan Modra <amodra@bigpond.net.au>
1804
1805 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1806
65765700
JJ
18072001-12-13 Jakub Jelinek <jakub@redhat.com>
1808
1809 * emultempl/elf32.em (finish): Supply output_bfd
1810 to bfd_elf*_discard_info.
1811 (OPTION_EH_FRAME_HDR): Define.
1812 (longopts): Add --eh-frame-hdr.
1813 (parse_args): Handle it.
1814 (list_options): Add --eh-frame-hdr to help.
1815 * emultempl/hppaelf.em (finish): Supply output_bfd
1816 to bfd_elf*_discard_info.
1817 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1818
89894c62
AM
18192001-12-13 Alan Modra <amodra@bigpond.net.au>
1820
1821 * lexsup.c (parse_args): Don't pass shortopts to second call to
1822 getopt functions. Restore optind rather than decrementing before
1823 second call. Remove errind as it now duplicates last_optind.
1824
583f1926
CF
18252001-12-11 Christopher Faylor <cgf@redhat.com>
1826
1827 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1828
93fbbb04
GK
18292001-12-07 Geoffrey Keating <geoffk@redhat.com>
1830 Richard Henderson <rth@redhat.com>
1831
1832 * Makefile.am: Add support for xstormy16.
1833 * configure.tgt: Add support for xstormy16.
1834 * Makefile.in: Regenerate.
1835 * emulparams/elf32xstormy16.sh: New file.
1836 * scripttempl/xstormy16.sc: New file.
1837
583f1926
CF
18382001-10-01 Christopher Faylor <cgf@cygnus.com>
1839
fc18a3f3
RH
1840 * Makefile.in (LIB_PATH): Make configurable.
1841 (GENSCRIPTS): Set LIB_PATH in environment.
1842 * configure.in: Substitute LIB_PATH.
1843 * configure: Regenerate.
1844 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1845 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 1846
ff291a48
NC
18472001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1848
1849 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1850 describing the -N option so that it is easier to translate into
1851 foreign languages.
1852
e3c8793a
NC
18532001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1854
1855 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1856 statements describing a single option with a single, newline
1857 escaped fprintf. This allows better translation into other
1858 languages.
9d201f2f 1859
fc18a3f3
RH
1860 * ldmain.c (add_archive_element): Combine multiple strings
1861 into a single string to permit better translation into other
1862 languages.
e3c8793a 1863
f2eab0af
TR
18642001-12-05 Tom Rix <trix@redhat.com>
1865
1866 * Makefile.am: Remove eaixppc64.
9d201f2f 1867 * Makefile.in: Regenerate.
f2eab0af 1868
249172c3
TR
18692001-12-04 Tom Rix <trix@redhat.com>
1870
9d201f2f 1871 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
1872 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1873 warning.
1874 (gld*_read_file): Fix typo.
1875 (change_symbol_mode): Add prototype.
1876 (is_syscall): Same.
9d201f2f 1877
249172c3
TR
1878 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1879 * emulparams/aixrs6.sh : Same.
1880 * emulparams/ppcmacos.sh : Same.
1881 * emulparams/aixppc64.sh : Delete file.
1882 * emultempl/aix.em : Formatting changes.
1883
5b5cd1b0
HPN
18842001-12-04 Hans-Peter Nilsson <hp@axis.com>
1885
1886 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1887 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1888 __Sbss.
1889 (OTHER_END_SYMBOLS): Fix formatting.
1890 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1891 (OTHER_END_SYMBOLS): Fix formatting.
1892
7cecdbff
AM
18932001-12-04 Alan Modra <amodra@bigpond.net.au>
1894
1895 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1896
742aeb63 18972001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 1898
742aeb63 1899 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 1900 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
1901 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1902 (ldemul_default_target): Same.
1903 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
1904 * emultempl/gld960c.em (gld960_choose_target): Same.
1905 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
1906 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1907 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1908 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 1909 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
1910 -b32 and -b64.
1911
48459341
L
19122001-11-27 H.J. Lu <hjl@gnu.org>
1913
1914 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1915 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1916 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1917 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1918 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1919 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1920 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1921 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1922
7cecdbff 1923 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
1924 is not empty.
1925 (SDATA): Likewise.
1926 (REL_SDATA): Likewise.
1927 (REL_SBSS): Likewise.
1928 (REL_SDATA2): Likewise.
1929 (REL_SBSS2): Likewise.
1930 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1931 (SDATA2): Likewise.
1932
ecfdd20c
SC
19332001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1934
1935 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1936 destructor in rom.
7cecdbff 1937 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 1938
da54c6eb
L
19392001-11-22 H.J. Lu <hjl@gnu.org>
1940
1941 * Makefile.in: Regenerated with automake based on automake
1942 1.4-8 in RedHat 7.1.
1943
465bc359
AM
19442001-11-22 Alan Modra <amodra@bigpond.net.au>
1945
1946 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1947 (config.status): Delete rule.
1948 Add extra dependencies to cover sourced emulparams files.
1949 * Makefile.in: Regenerate.
1950
1951 * scripttempl/elf.sc: Order <section>, <section>.* and
1952 corresponding linkonce sections as seen in input files.
1953 Formatting fixes. Zero vma of all sections if not relocating.
1954 (STACK): Define and insert if STACK_ADDR defined.
1955 (OTHER_RELOCATING_SECTIONS): Delete.
1956 (OTHER_END_SYMBOLS): Define.
1957 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1958 (OTHER_READWRITE_SECTIONS): Likewise.
1959 (OTHER_GOT_SECTIONS): Likewise.
1960 (OTHER_SDATA_SECTIONS): Likewise.
1961 (OTHER_BSS_SECTIONS): Likewise.
1962 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1963 (OTHER_READWRITE_SECTIONS): Likewise.
1964 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1965 (OTHER_READWRITE_SECTIONS): Likewise
1966
1967 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1968 (STACK_ADDR): Define.
1969 * emulparams/armelf_oabi.sh: As for armelf.sh.
1970 * emulparams/elf32mcore.sh: As for armelf.sh.
1971 * emulparams/h8300elf.sh: As for armelf.sh.
1972 * emulparams/mn10200.sh: As for armelf.sh.
1973 * emulparams/shelf.sh: As for armelf.sh.
1974
1975 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1976 (OTHER_END_SYMBOLS): Define.
1977 * emulparams/m32relf.sh: As for elf32fr30.sh.
1978 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1979 * emulparams/h8300self.sh: As for elf32fr30.sh.
1980
1981 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1982 defines with RELOCATING test.
1983 (OTHER_SDATA_SECTIONS): Likewise.
1984 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1985 (OTHER_END_SYMBOLS): ..this.
1986 * emulparams/crislinux.sh: As for criself.sh.
1987
1988 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1989 if not relocating.
1990 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1991 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1992 normal and linkonce sections as seen in input files.
1993 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1994 (TEXT_DYNAMIC): Likewise.
1995 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1996 (OTHER_SDATA_SECTIONS): Likewise.
1997 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1998 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1999 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2000 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2001 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2002 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2003 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2004 sections as seen in input files.
2005 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2006 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2007 if not relocating.
2008 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2009 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2010 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2011 (OTHER_SECTIONS): Instead, use this..
2012 (OTHER_END_SYMBOLS): ..and this.
2013
2014 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2015 * emulparams/elf32bsmip.sh: Likewise.
2016 * emulparams/elf32btsmip.sh: Likewise.
2017 * emulparams/elf32ebmip.sh: Likewise.
2018 * emulparams/elf32lmip.sh: Likewise.
2019 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2020 * emulparams/elf32lsmip.sh: Likewise.
2021 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2022 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2023 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2024 * emulparams/elf64btsmip.sh: Likewise.
2025 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2026 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2027 * emulparams/elf32ppclinux.sh: Likewise.
2028 * emulparams/elf32ppcsim.sh: Likewise.
2029 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2030 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2031 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2032 * emulparams/h8300self.sh: Likewise.
2033 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2034 * emulparams/sh.sh: Comment.
2035 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2036 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2037 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2038
abc6ab0a
AM
20392001-11-21 David Heine <dlheine@tensilica.com>
2040 Alan Modra <amodra@bigpond.net.au>
2041
2042 * ldlang.c (map_input_to_output_sections): Replace "break"
2043 accidentally removed with 2001-08-03 change.
2044 (lang_gc_sections_1): Likewise.
2045
2181f54f
AM
20462001-11-21 Alan Modra <amodra@bigpond.net.au>
2047
2048 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2049
ca0b5847
AM
20502001-11-20 Angela Marie Thomas <angela@redhat.com>
2051
2052 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
2053 of false when calling lang_size_sections.
2054 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 2055
c56feb2b
AM
20562001-11-15 Alan Modra <amodra@bigpond.net.au>
2057
2058 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2059 function when LDEMUL_FINISH isn't set to the same name. Don't
2060 call ${LDEMUL_FINISH}.
2061 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2062 * emultempl/armelf.em (arm_elf_finish): Call
2063 gld${EMULATION_NAME}_finish.
2064 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2065 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2066 hppaelf_layout_sections_again if necessary.
2067 (need_laying_out): New var.
2068 (hppaelf_layaout_sections_again): Rename to
2069 hppaelf_layout_sections_again. Clear need_laying_out.
2070 (PARSE_AND_LIST_OPTIONS): Format text.
2071
a48ca7f2
L
20722001-11-14 H.J. Lu <hjl@gnu.org>
2073
2074 * emultempl/armelf.em (arm_elf_finish): Renamed from
2075 gld${EMULATION_NAME}_finish.
2076 (LDEMUL_FINISH): Set to arm_elf_finish.
2077
73d074b4
DJ
20782001-11-14 Daniel Jacobowitz <drow@mvista.com>
2079
2080 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2081 (struct ld_emulation_xfer_struct): Use it.
2082
3b16e843 20832001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 2084
465bc359 2085 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
2086 additional symbols referenced by newer crt0.o files from HP.
2087
f11b7027
NC
20882001-11-12 Anthony Green <green@redhat.com>
2089
2090 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2091
3bf2994f
AM
20922001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2093
2094 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2095 * Makefile.in: Regenerate.
2096
ff5dcc92
SC
20972001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2098
2099 * ld.texinfo: Use @command for commands, @option for options.
2100 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2101 the page man title.
2102 * Makefile.in: Rebuild.
2103
9fb9af6e
CD
21042001-11-04 Chris Demetriou <cgd@broadcom.com>
2105
2106 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2107 Add support for targets.
2181f54f 2108
3c62831e
NC
21092001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2110
2111 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2112 * configure: Regernate.
2113 * po/fr.po: New file.
2114 * po/sv.po: New file.
2115
3a9091c4
NC
21162001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2117
2118 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2119 as little endian default and to support big endian.
2181f54f 2120
361b220e
CD
21212001-11-01 Chris Demetriou <cgd@broadcom.com>
2122
2123 * ld.texinfo (Options): Document new option, -nostdlib.
2124 * lexsup.c (OPTION_NOSTDLIB): New definition.
2125 (ld_options): Add entry for "nostdlib".
2126 (parse_args): Handle OPTIONS_NOSTDLIB.
2127 * ldfile.c (ldfile_add_library_path): Don't add directories
2128 to the search path if they weren't specified on the command line
2129 and -nostdlib was specified.
2130 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2131
210a7bd1
NC
21322001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2133
2134 * lexsup.c (parse_args): Prevent infinite parsing loop when
2135 "-rpath.a" is specified on the command line.
2136 Replace calls to fprintf with calls to einfo.
2137
114283d8
NC
21382001-10-31 John Marshall <jmarshall@acm.org>
2139
2140 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2141 appear only once across all the linker scripts involved in a link
2142 invocation no longer applies. Make the documentation reflect
2143 that.
2144
7649aa50
NC
21452001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2146
2147 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2148 targets.
2149 (sh-*-linux*): Added targ_extra_libpath.
2150
6e814ff8
AM
21512001-10-31 David Heine <dlheine@tensilica.com>
2152
2153 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2154 for padding statements.
2155
3c3bdf30
NC
21562001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2157
2158 * configure.tgt (mmix-*-*): New target.
2159 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2160 Add dependencies to match.
2161 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2162 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2163 scripttempl/mmo.sc: New files.
2164 * gen-doc.texi: @set MMIX.
2165 * ld.texinfo: Ditto.
6e814ff8 2166 [MMIX] Add MMIX node.
3c3bdf30
NC
2167 * Makefile.in: Regenerate.
2168
ca0c1d3e
KH
21692001-10-29 Kazu Hirata <kazu@hxi.com>
2170
2171 * ldlang.c: Fix a comment typo.
2172
1a3d33ce
AM
21732001-10-23 Alan Modra <amodra@bigpond.net.au>
2174
2175 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2176 entries, and match *-*-linux*.
2177
b47c4208
AM
21782001-10-20 Alan Modra <amodra@bigpond.net.au>
2179
2180 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2181 with ldlex_script, ldlex_popstate.
2182 (ifile_p1): Likewise.
2183 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2184 correct slot.
2185 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2186 to 1. Don't BEGIN(SCRIPT).
2187 (lex_redirect): Similarly.
2188 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2189
fd521b47
NC
21902001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2191
2192 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2193 __EH_FRAME_END__ and accept eh frames into data section.
2194 Add ctor and dtor sections.
2195
59d28a94
DD
21962001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2197
2198 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2199 (auto-export): Fix indentation.
2200
663dd378
DD
22012001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2202
2203 * pe-dll.c (autofilter_objectlist): Add startup objects
2204 for profiling.
2205 (auto-export): Constify char * p.
6e814ff8 2206 Extract file basename and use strcmp rather than ststr
663dd378
DD
2207 for object lookup.
2208
31d677f9
CD
22092001-10-18 Chris Demetriou <cgd@broadcom.com>
2210
2211 * ldmain.c (get_emulation): Improve comment about the handling
2212 of -mipsN options.
2213
aa200fe8
AM
22142001-10-17 Alan Modra <amodra@bigpond.net.au>
2215
2216 * po/POTFILES.in: Regenerate.
2217
146e7110
AM
22182001-10-16 Vassili Karpov <malc@pulsesoft.com>
2219
2220 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2221 -z nocopyreloc and -z nocombreloc usage strings.
2222
b4330e85
NC
22232001-10-12 Vassili Karpov <malc@pulsesoft.com>
2224
146e7110 2225 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
2226 in usage.
2227
5af8a2fb
NC
22282001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2229
2230 * scripttempl/armaout.sc: Place .bss section after end of aligned
2231 data section to match behaviour of aout code in constructrion of
2232 header.
2233
5b784096
DD
22342001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2235
2236 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2237 startup files for mingw32 dlls to list.
2238
61585df2
CD
22392001-10-10 Chris Demetriou <cgd@broadcom.com>
2240
2241 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2242
45cf6f3e
AH
22432001-10-08 Aldy Hernandez <aldyh@redhat.com>
2244
2245 * configure.tgt (targ): Add arm9e-*-elf.
2246
e24d7c12
L
22472001-10-05 H.J. Lu <hjl@gnu.org>
2248
2249 * genscripts.sh: Fix a typo in the last change.
2250
ec38dd05
JJ
22512001-10-05 Jakub Jelinek <jakub@redhat.com>
2252
2253 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2254 -z nocombreloc in usage.
2255
cedd6b0d
JB
22562001-10-03 Jim Blandy <jimb@redhat.com>
2257
2258 * genscripts.sh: Include a comment at the top of each generated
2259 script, explaining its purpose.
2260
8bd621d8
AM
22612001-10-03 Vassili Karpov <malc@pulsesoft.com>
2262
2263 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2264 * NEWS: Mention -z nocopyreloc.
2265 * ld.texinfo (Options): Describe nocopyreloc.
2266
fcd8210c
AM
22672001-10-03 Alan Modra <amodra@bigpond.net.au>
2268
2269 * configure: Regenerate.
2270
d32820f2
AM
22712001-10-02 Alan Modra <amodra@bigpond.net.au>
2272
2273 * ldver.h (ld_program_version): Remove declaration.
2274 * lexsup.c (parse_args): Move printing of copyright message..
2275 * ldver.c (ldversion): .. to here.
2276 Use BFD_VERSION_STRING in place of BFD_VERSION.
2277 (ld_program_version): Remove.
2278 * Makefile.am (Makefile): Depend on bfd/configure.in.
2279 Run "make dep-am".
2280 * Makefile.in: Regenerate.
2281
af46bcdc
HPN
22822001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2283
2284 * Makefile.am: Update dependencies with "make dep-am".
2285 * Makefile.in: Regenerate.
2286
4818e05f 22872001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 2288
4818e05f
AM
2289 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2290 * lexsup.c: Add --no-define-common commandline option.
2291 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2292 * ldlex.l: Likewise.
2293 * ld.h: Add command_line.inhibit_common_definition.
2294 * ldmain.c (main): Initialize.
2295 * ld.texinfo: Document.
862517b6 2296
a59f3d35
AM
22972001-09-29 Alan Modra <amodra@bigpond.net.au>
2298
2299 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2300
d5e0ebeb
AM
23012001-09-26 Alan Modra <amodra@bigpond.net.au>
2302
2303 * ldmisc.c (USE_STDARG): Remove.
2304 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2305 (einfo): Likewise.
2306 (minfo): Likewise.
2307 (lfinfo): Likewise.
2308
2309 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2310 declarations. Update copyright.
2311
2f8d8971
NC
23122001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2313
85c77458
NC
2314 * pe-dll.c: Remove obsoleted declaration of
2315 pe_get_data_import_dll_name.
2316 (pe_create_import_fixup): Fix thinko.
2317
2f8d8971
NC
2318 * ld.texinfo(enable-auto-import): Clarify the explanation.
2319
23202001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2321
2322 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2323 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2324 DLL_SUPPORT controlled code.
2325
72358f65 23262001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 2327
72358f65
NC
2328 * emultempl/pe.em(pe_data_import_dll): Make static.
2329 (pe_get_data_import_dll_name): New accessor function.
146e7110 2330 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
2331 pe_get_data_import_dll_name() from pe.em, instead of
2332 directly accessing pe_data_import_dll variable from pe.em.
2333
3882b010
L
23342001-09-18 Bruno Haible <haible@clisp.cons.org>
2335
2336 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2337 (def_file_add_directive): Use ISSPACE instead of isspace.
2338 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2339 isdigit/isxdigit/isalpha/isalnum.
2340 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2341 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2342 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2343 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2344 isalnum.
2345 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2346 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2347 isupper/tolower.
2348 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2349 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2350 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2351 (ctor_prio): Use ISDIGIT instead of isdigit.
2352 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2353 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2354 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2355 isupper/tolower.
2356 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2357 (stricpy): Use TOLOWER instead of isupper/tolower.
2358 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2359 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2360 (lex_warn_invalid): Use ISPRINT instead of isprint.
2361 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2362 (main): For gettext, also set the LC_CTYPE locate facet.
2363 (add_keepsyms_file): Use ISSPACE instead of isspace.
2364 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2365 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2366 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2367 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2368 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2369 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2370 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2371 (quoteput): Use ISSPACE instead of isspace.
2372 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2373 instead of isalnum.
2374
db09f25b
AM
23752001-09-18 Alan Modra <amodra@bigpond.net.au>
2376
2377 * deffilep.y (def_stash_module): Constify "name" param.
2378
2379 * pe-dll.c: Replace CONST with const throughout.
2380 (quick_symbol): Constify "n1", "n2", "n3" params.
2381 (make_singleton_name_thunk): Constify "import" param. Make
2382 "buffer_len" a size_t.
2383 (make_import_fixup_entry): Constify "name", "fixup_name",
2384 "dll_symname" params.
2385 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2386 (pe_get32): Likewise.
2387 (pe_implied_import_dll): Likewise.
2388
2389 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2390 (sort_by_section_name): Likewise.
2391
2392 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2393 (make_import_fixup): Cast printf arg, rel->address to long rather
2394 than int.
2395 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2396
74699268
AM
23972001-09-15 Alan Modra <amodra@bigpond.net.au>
2398
2399 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2400 defines BufferSize. Increase buffer size by one.
2401
775cabad
NC
24022001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2403
2404 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2405
056a1d49
NC
24062001-09-14 Kevin Lo <kevlo@openbsd.org>
2407
2408 * configure.tgt: Add arm-openbsd target.
2409
a7d792bb
L
24102001-09-12 H.J. Lu <hjl@gnu.org>
2411
2412 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2413 eelf64lppc.o to ...
2414 (ALL_64_EMULATIONS): Here.
2415 * Makefile.in: Regenerated.
2416
0d888aac
CW
24172001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2418
2419 * emultempl/pe.em(make_import_fixup): change signature to
2420 take asection as well as arelec; we need this for proper
146e7110 2421 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
2422 there is no attempt to add a constant addend to the reloc;
2423 otherwise, report error condition.
2424 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2425 since final argument is a pointer to make_import_fixup().
2426 Change call to cb() to match make_import_fixup() signature.
2427 (make_import_fixup_mark): make buffer_len unsigned.
2428 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2429
24302001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2431
2432 * ld.texinfo: add verbose documentation for auto-import
146e7110 2433 direct-addressing workaround, to compliment the terse
0d888aac
CW
2434 error message.
2435
cedacdc0
CM
24362001-09-12 Andrew MacLeod <amacleod@redhat.com>
2437
146e7110 2438 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 2439
3b16e843 24402001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
2441
2442 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2443 * emulparams/h8300self.sh: Similarly.
2444
559e4713
NC
24452001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2446
2447 * ld.texinfo (Options, --stack): Correct default value for stack
2448 reserve.
2449
1fdf0249
TR
24502001-09-05 Tom Rix <trix@redhat.com>
2451
2452 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 2453
9b5799b8
AJ
24542001-09-03 Andreas Jaeger <aj@suse.de>
2455
2456 * emultempl/beos.em: Declare prototypes for comparions functions,
2457 adjust definitions.
2458
48f6162b
AJ
24592001-09-02 Andreas Jaeger <aj@suse.de>
2460
2461 * emultempl/aix.em: Add missing prototype.
2462 * emultempl/lnk960.em: Likewise.
2463 * emultempl/vanilla.em: Likewise.
2464 * emultempl/armcoff.em: Likewise.
2465 * emultempl/armelf_oabi.em: Likewise.
2466 * emultempl/beos.em: Likewise.
2467 * emultempl/gld960c.em: Likewise.
2468 * emultempl/gld960.em: Likewise.
2469
2470 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2471 for prototype declaration.
2472
39e5585e
EC
24732001-08-31 Eric Christopher <echristo@redhat.com>
2474 Jason Eckhardt <jle@redhat.com>
2475
2476 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2477
3fc90ddb
AJ
24782001-08-31 Andreas Jaeger <aj@suse.de>
2479
2480 * emultempl/pe.em: Add missing prototypes.
2481 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2482 pe_find_data_imports.
2483 (pr_sym): Add unused attribute.
2484
d43ded80
PB
24852001-08-29 Joel Sherrill <joel@OARcorp.com>
2486
39e5585e 2487 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
2488 default from coff to elf.
2489
3946dd2f
JL
24902001-08-29 Jeff Law <law@redhat.com>
2491
2492 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2493 ARCH specification.
2494 * emulparams/h8300self.sh: Similarly.
2495
3b16e843 24962001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
2497
2498 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2499 eh8300self.o .
2500 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2501 * configure.tgt (h8300-*-elf*): New case.
2502 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2503 * emulparams/h8300self.sh: New file.
2504 * Makefile.in: Regenerated.
2505
70d0c6e9
NC
25062001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2507
2508 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2509 with macro name.
2510
5c67d4bb
AM
25112001-08-27 Linus Nordberg <linus@swox.com>
2512 Alan Modra <amodra@bigpond.net.au>
2513
2514 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2515 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2516 Run "make dep-am"
2517 * Makefile.in: Regenerate.
2518 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2519 entries to correct alphabetical position.
2520 * emulparams/elf64ppc.sh: New.
2521 * emulparams/elf64lppc.sh: New.
2522
08131015
NC
25232001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2524
2525 * ldmain.c (main): Declare BSIZE as static.
2526
db6751f2
JJ
25272001-08-23 Jakub Jelinek <jakub@redhat.com>
2528
2529 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2530 into .rel.dyn resp. .rela.dyn if combreloc.
2531 (get_script): If .x linker script is equal to .xn, only put it
2532 once into the binary.
2533 Add .xc and .xsc scripts.
2534 (parse_args): Handle -z combreloc and -z nocombreloc.
2535 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2536 For .xc and .xsc scripts put all .rel* or .rela* input sections
2537 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2538 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2539 is elf.
2540 Strip trailing whitespace from script.
2541 Generate .xc and .xsc scripts if requested.
2542 * ldmain.c (main): Initialize link_info.combreloc and
2543 link_info.spare_dynamic_tags.
2544 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2545 (ld_options): Add --spare-dynamic-tags option.
2546 (parse_args): Likewise.
2547 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2548 * ldint.texinfo: Document .xc and .xsc linker scripts.
2549 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2550
63d069c0
L
25512001-08-22 H.J. Lu <hjl@gnu.org>
2552
2553 * emulparams/elf32fr30.sh: Add a newline.
2554
948f9114
AJ
25552001-08-21 Andreas Jaeger <aj@suse.de>
2556
2557 * deffilep.y: Add missing prototypes.
2558 * pe-dll.c: Likewise.
2559
ae7fb08f
AM
25602001-08-20 Alan Modra <amodra@bigpond.net.au>
2561
2af02257
AM
2562 * ldlang.c (insert_pad): Fix typos in last patch.
2563
2564 * ldlang.c: When traversing lang_statement_union_type lists,
2565 consistently use "header.next" rather than "next".
2566 * mpw-eppcmac.c: Likewise.
2567 * emultempl/beos.em: Likewise.
2568 * emultempl/hppaelf.em: Likewise.
2569 * emultempl/pe.em: Likewise.
2570 * ldlang.h (union lang_statement_union): Remove "next" field.
2571
c0c330a7
AM
2572 * ldlang.c (insert_pad): Use offsetof macro.
2573 (lang_size_sections): Always neuter padding statements.
2574 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2575
ae7fb08f
AM
2576 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2577 passed to lang_size_sections.
2578 (pe_exe_fill_sections): Likewise.
2579 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2580 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2581
fab80407
AM
25822001-08-18 Alan Modra <amodra@bigpond.net.au>
2583
2584 * emultempl/aix.em: Formatting fixes.
2585
b3327aad
AM
25862001-08-18 Alan Modra <amodra@bigpond.net.au>
2587
2588 * ldlang.c (insert_pad): Make use of an existing pad statement if
2589 available. Move code calculating alignment, adjusting section
2590 alignment power, and adjusting dot to ..
2591 (size_input_section): .. here. Remove unused relax param.
2592 (lang_size_sections): Change boolean `relax' param to boolean *.
2593 Adjust call to size_input_section. Make use of insert_pad to
2594 place pad after the assignment statement. If relaxing, zap
2595 padding statements.
2596 (reset_memory_regions): Reset output_bfd section sizes too.
2597 (relax_again): Move to..
2598 (lang_process): ..here. Adjust call to lang_size_sections, and
2599 remove duplicated code.
2600 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2601
563e308f
AM
26022001-08-17 Alan Modra <amodra@bigpond.net.au>
2603
2604 * ld.texinfo: Document that fill values now use the four least
2605 significant bytes.
2606 * emulparams/elf32fr30.sh (NOP): Update.
2607 * emulparams/elf32mcore.sh: Likewise.
2608 * emulparams/elf64_s390.sh: Likewise.
2609 * emulparams/elf_i386.sh: Likewise.
2610 * emulparams/elf_i386_be.sh: Likewise.
2611 * emulparams/elf_i386_chaos.sh: Likewise.
2612 * emulparams/elf_i386_ldso.sh: Likewise.
2613 * emulparams/elf_s390.sh: Likewise.
2614 * emulparams/elf_x86_64.sh: Likewise.
2615 * emulparams/i386moss.sh: Likewise.
2616 * emulparams/i386nw.sh: Likewise.
2617 * emulparams/m68kelf.sh: Likewise.
2618 * scripttempl/elf.sc: Update NOP comment.
2619 * scripttempl/elfi370.sc: Likewise.
2620 * scripttempl/elfm68hc11.sc: Likewise.
2621 * scripttempl/elfm68hc12.sc: Likewise.
2622 * scripttempl/nw.sc: Likewise.
2623
b90e1c6f
TR
26242001-08-15 Tom Rix <trix@redhat.com>
2625
2626 * ldgram.y (saved_script_handle): Initialize to NULL.
2627 * ldmain.c (main): Change check on saved_script_handle.
948f9114 2628
39dcfe18
AM
26292001-08-14 Alan Modra <amodra@bigpond.net.au>
2630
cde43e70
AM
2631 * emultempl/elf32.em: Formatting fixes.
2632 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2633 looking at sec->owner.
2634 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2635 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2636 unused code, and reorganize orphan section placement code.
2637
39dcfe18
AM
2638 * ldlang.c (wild_doit): Rename to lang_add_section.
2639 * ldlang.h: Here too.
2640 * mpw-elfmips.c: And here.
2641 * emultempl/beos.em: And here.
2642 * emultempl/elf32.em: And here.
2643 * emultempl/hppaelf.em: And here.
2644 * emultempl/pe.em: And here.
2645
908d20b3
RH
26462001-08-13 Richard Henderson <rth@redhat.com>
2647
2648 * emultempl/needrelax.em: New file.
2649 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2650 * Makefile.am (eelf64_ia64.c): Depend on it.
2651 * Makefile.in: Rebuild.
2652
0f33d40b
AM
26532001-08-13 Alan Modra <amodra@bigpond.net.au>
2654
22af9fd3
AM
2655 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2656 output_section is set non-NULL.
2657
0f33d40b
AM
2658 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2659 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2660 needlessly create an output_section_statement. Treat a correctly
2661 named output_section_statement with NULL bfd_section as compatible.
2662
55ab6103
HPN
26632001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2664
2665 * emultempl/generic.em: Support EXTRA_EM_FILE.
2666 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2667 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2668 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2669 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2670 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2671 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2672 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2673 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2674 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2675 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2676
24098abb
RH
26772001-08-12 Richard Henderson <rth@redhat.com>
2678
2679 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2680 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2681 scripttempl/v850.sc: Keep .jcr data.
2682
b9a8de1e 26832001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
2684 Andrew Haley <aph@cambridge.redhat.com>
2685 Nick Clifton <nickc@redhat.com>
b9a8de1e 2686
146e7110 2687 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
2688 Change type to file handle.
2689 * ld.h (had_script): Rename and retype.
2690 * ldfile.c (ldfile_open_command_file): Save the file handle
2691 used in saved_script_handle.
2692 * lexsup.c (parse_args): Do not allow -c option to alter
2693 saved_script_handle.
2694 * ldmain.c (main): Print out the linker script used if
2695 --verbose is given. Check saved_script_handle to obtain the
2696 external linker script used, or if NULL, dump the builtin
2697 script.
2698 * ld.texinfo: Document that --verbose now dumps the linker
2699 script used, regardless of whether it was an internal or an
2700 external script.
2701
0218d1e4
AJ
27022001-08-10 Andreas Jaeger <aj@suse.de>
2703
2704 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2705 to build warnings.
2706 * configure: Regenerate.
2707
5253f23b
AM
27082001-08-09 Alan Modra <amodra@bigpond.net.au>
2709
73810896
AM
2710 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2711
5253f23b
AM
2712 * scripttempl/elf.sc: Move non-text .dynamic section before
2713 .plt/.got/.sdata* group.
2714 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2715 (OTHER_SDATA_SECTIONS): Add.
2716 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2717 OTHER_GOT_SECTIONS.
2718 * emulparams/crislinux.sh: Likewise.
2719 * emulparams/elf32b4300.sh: Likewise.
2720 * emulparams/elf32bmip.sh: Likewise.
2721 * emulparams/elf32bmipn32.sh: Likewise.
2722 * emulparams/elf32bsmip.sh: Likewise.
2723 * emulparams/elf32btsmip.sh: Likewise.
2724 * emulparams/elf32ebmip.sh: Likewise.
2725 * emulparams/elf32elmip.sh: Likewise.
2726 * emulparams/elf32l4300.sh: Likewise.
2727 * emulparams/elf32lmip.sh: Likewise.
2728 * emulparams/elf32lsmip.sh: Likewise.
2729 * emulparams/elf32ltsmip.sh: Likewise.
2730 * emulparams/elf64bmip.sh: Likewise.
2731 * emulparams/elf64btsmip.sh: Likewise.
2732 * emulparams/elf64ltsmip.sh: Likewise.
2733
179c732c
AM
27342001-08-08 Alan Modra <amodra@bigpond.net.au>
2735
2736 * genscripts.sh: Source the emulparams script before each output
2737 script is generated so that variables like `RELOCATING' may affect
2738 variables defined in the emulparams script.
2739
3fd36710
AM
27402001-08-04 Alan Modra <amodra@bigpond.net.au>
2741
20713691
AM
2742 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2743 order.
2744
3fd36710
AM
2745 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2746 ie. iterate over wild_statement.section_list.
2747 (gld${EMULATION_NAME}_place_orphan): Likewise.
2748
de0b1853
SC
27492001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2750
2751 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2752 .fini[0-4] sections used by _exit
2753 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2754 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2755 * scripttempl/elfm68hc11.sc: Likewise.
2756
ff7e6f88
L
27572001-08-03 H.J. Lu <hjl@gnu.org>
2758
2759 * emultempl/beos.em (init): Add the missing initialization.
2760
b6bf44ba
AM
27612001-08-03 Alan Modra <amodra@bigpond.net.au>
2762
2763 * ld.texinfo (Input Section Basics): Clarify ordering of output
2764 sections.
2765 * ldlang.c (callback_t): Add wildcard_list param.
2766 (walk_wild_section): Remove "section" param. Rewrite for
2767 lang_wild_statement_type change. Remove unique_section_p test.
2768 (walk_wild_file): Remove "section" param.
2769 (walk_wild): Remove "section" and "file" params.
2770 (lang_gc_wild): Likewise.
2771 (wild): Likewise. Modify for lang_wild_statement_type change.
2772 (wild_sort): Likewise. Add "sec" param.
2773 (gc_section_callback): Likewise.
2774 (output_section_callback): Likewise. Do unique_section_p test.
2775 (map_input_to_output_sections): Modify call to wild.
2776 (lang_gc_sections_1): Likewise.
2777 (print_wild_statement): Modify for lang_wild_statement_type
2778 change.
2779 (lang_add_wild): Replace filename, filenames_sorted param with
2780 filespec. Replace section_name, sections_sorted,
2781 exclude_filename_list with section_list.
2782 * ldlang.h (lang_add_wild): Here too.
2783 (lang_wild_statement_type): Replace section_name, sections_sorted,
2784 and exclude_filename_list with section_list.
2785 * ldgram.y (current_file): Delete.
2786 (%union): Add wildcard_list.
2787 (file_NAME_list): Set type to wildcard_list. Build a linked list
2788 rather than calling lang_add_wild for each entry.
2789 (input_section_spec_no_keep): Call lang_add_wild here instead.
2790 * ld.h (struct wildcard_list): Declare.
2791 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2792
b044cda1
CW
27932001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2794
2795 * ldmain.c (main): initialize link_info.pei386_auto_import
2796 * pe-dll.c: new tables for auto-export filtering
2797 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 2798 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
2799 "by hand".
2800
28012001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2802
b6bf44ba
AM
2803 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2804 static variable current_sec (static struct sec *). Add
b044cda1 2805 forward declaration for add_bfd_to_link.
b6bf44ba
AM
2806 (process_def_file): Don't export undefined symbols. Do not
2807 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
2808 with new API.
2809 (pe_walk_relocs_of_symbol): New function.
2810 (generate_reloc): add optional extra debugging
b6bf44ba 2811 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 2812 line in output
b6bf44ba 2813 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
2814 (DATA auto-import support).
2815 (make_singleton_name_thunk): New function.
2816 (make_import_fixup_mark): New function.
2817 (make_import_fixup_entry): New function.
2818 (pe_create_import_fixup): New function.
b6bf44ba 2819 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 2820 char *.
b6bf44ba
AM
2821 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2822 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
2823 pe_create_import_fixup.
2824 * emultempl/pe.em: add new options --enable-auto-import,
2825 --disable-auto-import, and --enable-extra-pe-debug.
2826 (make_import_fixup): New function.
2827 (pe_find_data_imports): New function.
2828 (pr_sym): New function.
b6bf44ba 2829 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
2830 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2831 CODE.
2832
28332001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 2834
b044cda1
CW
2835 * ld.texinfo: add additional documentation for
2836 --export-all-symbols. Document --out-implib,
2837 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
2838 --dll-search-prefix, --enable-auto-import, and
2839 --disable-auto-import.
b044cda1
CW
2840 * ldint.texinfo: Add detailed documentation on auto-import
2841 implementation.
2842
156e34dd
NC
28432001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2844
2845 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2846 example.
2847
d6231427
AM
28482001-07-24 Alan Modra <amodra@bigpond.net.au>
2849
2850 * Makefile.am: Update dependencies with "make dep-am".
2851 * Makefile.in: Regenerate
2852
e14ec88b
AM
28532001-07-23 Alan Modra <amodra@bigpond.net.au>
2854
2855 * ldcref.c (check_section_sym_xref): New function.
2856 (check_nocrossrefs): Call it.
2857 (check_nocrossref): Interate over h->refs here instead of..
2858 (check_refs): ..here. Pass in the symbol name, section, and bfd
2859 rather than hash_entry pointers.
2860 (struct check_refs_info): Keep symbol name rather than hash entry.
2861 Remove "same".
2862 (check_reloc_refs): Tweak for above changes in check_refs_info.
2863 Only report references to section syms when symname is NULL to
2864 prevent duplicate messages for the same reloc.
2865
1b577b00
NC
28662001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2867
c7d701b0
NC
2868 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2869 available. Do not print NULL trees.
2870 (exp_print_token): Print unknown tokens with values > 126 as
2871 decimal values not ASCII characters.
2872
1545243b
NC
2873 * ldlang.c (lang_leave_overlay): If a region is specified assign
2874 it to all sections inside the overlay unless they have been
2875 assigned to the own, non-default, memory region.
2876
1b577b00
NC
2877 * README: Add header for consistency with other README files.
2878
5030876b
L
28792001-07-14 H.J. Lu <hjl@gnu.org>
2880
2881 * emultempl/elf32.em (output_prev_sec_find): Never return
2882 bfd_abs_section_ptr, bfd_com_section_ptr nor
2883 bfd_und_section_ptr.
2884
18c7a9a5
NC
28852001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2886
22af9fd3 2887 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
2888 elf32.em.
2889 * Makefile.in: Regenerate.
2890
9ffecff1
MG
28912001-07-14 matthew green <mrg@eterna.com.au>
2892
2893 * configure.tgt (i386-*-netbsdelf*): New target.
2894 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2895
95500e1c
JJ
28962001-07-13 Jakub Jelinek <jakub@redhat.com>
2897
2898 * emultempl/elf32.em (output_prev_sec_find): New.
2899 (place_orphan): Use it.
2900
e97cb84f
L
29012001-07-11 H.J. Lu <hjl@gnu.org>
2902
2903 * ldmain.c (main): Fix typos in the last change.
2904
7333607e
JJ
29052001-07-11 Jakub Jelinek <jakub@redhat.com>
2906
2907 * ldmain.c (main): Disallow -F and -f without -shared.
2908
d29d80f2
NC
29092001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2910
2911 * emultempl/pe.em (after_open): Check for the output_bfd not
2912 having any coff_data structure allocated to it.
2913
c2a1a436
DB
29142001-07-09 David O'Brien <obrien@FreeBSD.org>
2915
2916 * emultempl/elf32.em: Do not assuming that contents of the buffer
2917 returned from basename function will remain unchanged accross other
2918 function calls.
2919
63653551
L
29202001-07-03 H.J. Lu <hjl@gnu.org>
2921
2922 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2923 2001-07-03. It creates dynamic entries even for static binaries.
2924
d303a449
L
29252001-07-03 Jakub Jelinek <jakub@redhat.com>
2926
2927 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2928 (DYNAMIC): Use it to reserve few dynamic entries for
2929 post-linking tools.
2930
9f22353f
AM
29312001-06-27 Alan Modra <amodra@bigpond.net.au>
2932
2933 * emulparams/hppa64linux.sh: New file.
2934 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2935 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2936 (ehppa64linux.c): Add rule to make it.
2937 Run "make dep-am".
2938 * Makefile.in: Regenerate.
2939
62bf86b4
HPN
29402001-06-21 Hans-Peter Nilsson <hp@axis.com>
2941
2942 * ld.texinfo (Options, -r): Mention restrictions when using
2943 different object formats.
2944
429d935d
HPN
29452001-06-19 Hans-Peter Nilsson <hp@axis.com>
2946
2947 * ldlang.c (lang_check): Emit fatal error if relocatable link
2948 between different object flavours with relocations in input.
2949
cb840a31
L
29502001-06-19 H.J. Lu <hjl@gnu.org>
2951
2952 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2953 (--version-script): Mention the language support.
2954
9bf03acc
L
29552001-06-19 H.J. Lu <hjl@gnu.org>
2956
2957 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2958
c45021f2
NC
29592001-06-18 H.J. Lu <hjl@gnu.org>
2960
b6bf44ba
AM
2961 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2962 (diststuff): Add $(MANS).
2963 * Makefile.in: Regenerated.
c45021f2 2964
b6bf44ba 2965 * ld.1: Removed.
c45021f2 2966
6caa99ab
HPN
29672001-06-18 Hans-Peter Nilsson <hp@axis.com>
2968
605d9b3a
HPN
2969 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2970 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2971 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2972 * ld.h (args_type): Remove member export_dynamic. All users
2973 changed to use struct bfd_link_info member.
2974
6caa99ab
HPN
2975 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2976 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2977 * Makefile.in: Regenerate.
2978
6f9efd97
L
29792001-06-18 H.J. Lu <hjl@gnu.org>
2980
2981 * ldlang.c (init_os): Add the newline to the einfo call.
2982 (lang_check): Likewise.
2983 (lang_do_version_exports_section): Likewise.
2984
5af9fd8b
L
29852001-06-15 H.J. Lu <hjl@gnu.org>
2986
2987 * lexsup.c (parse_args); Save optind to report unrecognized
2988 option.
2989
2a096f04
HPN
29902001-06-15 Hans-Peter Nilsson <hp@axis.com>
2991
7e66c3f5
HPN
2992 * ldlang.c (lang_check): Emit fatal error if relocatable link
2993 between different object flavours.
2994
2a096f04
HPN
2995 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2996 Set new link_info member export_dynamic.
2997 * ldmain.c (main): Initialize new link_info member export_dynamic.
2998
6770ec8c
NC
29992001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3000
3001 * ldlang.c (walk_wild): Only call walk_wild_file if
3002 lookup_name returns something.
b6bf44ba 3003 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 3004 (load_symbols): Change to a boolean function.
b6bf44ba 3005 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
3006 executable.
3007
8529105a
AM
30082001-06-08 Alan Modra <amodra@bigpond.net.au>
3009
3010 * ldlang.c (record_bfd_errors): Remove.
3011
3012 * emultempl/aix.em: Fix copyright dates.
3013
8f3aa7a0
AJ
30142001-06-07 Andreas Jaeger <aj@suse.de>
3015
3016 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3017 (TEXT_START_ADDR): Likewise.
3018
3277f888
AM
30192001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3020
3021 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3022
3763134d
DD
30232001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3024
3025 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3026
5929ebc0
L
30272001-05-31 H.J. Lu <hjl@gnu.org>
3028
3029 * ldlang.c (open_input_bfds): Don't change the bfd error
3030 handler whilst loading symbols.
3031
c04a062d
NC
30322001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3033
3034 * configure.tgt: Remove i370-mvs architecture, it is not currently
3035 supported.
3036
96fcab3e
L
30372001-05-25 H.J. Lu <hjl@gnu.org>
3038
3039 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3040 like emulparams/aixppc.sh.
3041
db8d4f23
L
30422001-05-25 H.J. Lu <hjl@gnu.org>
3043
3044 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3045 setting of output_filename after bfd_scan_arch.
3046 * emultempl/pe.em: Likewise.
3047
5f642101
L
30482001-05-25 H.J. Lu <hjl@gnu.org>
3049
3050 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3051 like emulparams/aixppc.sh.
3052
3053 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3054 instead of ${srcdir}/emultempl/stringify.sed.
3055
64e9ece0
TW
30562001-05-25 Timothy Wall <twall@oculustech.com>
3057
3058 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 3059 output.
64e9ece0 3060
c709b096
AM
30612001-05-25 Alan Modra <amodra@one.net.au>
3062
3063 * configure.host: Replace linuxoldld with linux*oldld.
3064 * configure.tgt: Likewise.
3065
6cbdcc6f
L
30662001-05-24 H.J. Lu <hjl@gnu.org>
3067
3068 * emultempl/stringify.sed: Removed again.
3069
86af25fe
L
30702001-05-24 H.J. Lu <hjl@gnu.org>
3071
3072 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3073 (gld${EMULATION_NAME}_before_parse): Initialize
3074 ldfile_output_architecture, ldfile_output_machine and
3075 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3076 * emultempl/beos.em: Likewise.
3077 * emultempl/elf32.em: Likewise.
3078 * emultempl/linux.em: Likewise.
3079 * emultempl/mipsecoff.em: Likewise.
3080 * emultempl/pe.em: Likewise.
3081 * emultempl/sunos.em: Likewise.
3082
3b1b01cf
TR
30832001-05-24 Tom Rix <trix@redhat.com>
3084
8f3aa7a0 3085 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
3086 udate import file format.
3087 (change_symbol_mode) New, same
3088 (is_syscall) New, same
3089 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3090 * emulparams/aixppc64.sh : same
3091 * emulparams/aixrs6.sh : same
3092 * emulparams/ppcmacos.sh : same
3093 * emultempl/aix.em : use strtoull to parse options
3094 * Makefile.am : add eaixppc64 emulation for xcoff64
3095 * Makefile.in : same
3096 * configure.tgt : same
3097
3098 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 3099 default data section offset to 0x20000000
3b1b01cf 3100 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 3101 loader and debug sections use the currect section offset.
3b1b01cf
TR
3102
3103 * emultempl/aix.em : Add xcoff64 support
3104 Add -binitfini support
8f3aa7a0 3105 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 3106 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 3107 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
3108 sections
3109
3110 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 3111
57e6abd2
AO
31122001-05-23 Alexandre Oliva <aoliva@redhat.com>
3113
3114 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3115 variable to avoid non-portable shell construct.
3116
d1cf510e
NC
31172001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3118
3119 * ldmain.c (get_emulation): Add -mips5 command line argument.
3120
506eee22
NC
31212001-05-22 Alexandre Oliva <aoliva@redhat.com>
3122
3123 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3124 (ELF_INTERPRETER_NAME): Define it.
3125 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3126 it.
3127 * configure.tgt (targ_emul, targ_extra_emuls)
3128 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3129 as primary, elf_i386 as extra.
3130 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3131 (eelf_i386_ldso.c): New rule.
3132 * Makefile.in: Rebuilt.
3133
31342001-05-22 Nick Clifton <nickc@redhat.com>
3135
3136 * lexsup.c (ld_options): Allow -I to be an alias for
3137 --dynamic-linker. This is for Solaris compatability.
3138 * ld.texinfo: Document that -I can be used.
3139 * ld.1: Regenerate.
3140
d1778b88
AM
31412001-05-16 Alan Modra <amodra@one.net.au>
3142
3143 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3144 whether an input section is the first one assigned to an output
3145 section.
3146 Assorted formatting fixes.
3147
02649152
DD
31482001-05-14 DJ Delorie <dj@delorie.com>
3149
3150 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3151 * Makefile.in: Ditto.
3152
579f31ac
JJ
31532001-05-11 Jakub Jelinek <jakub@redhat.com>
3154
3155 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3156 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3157 output sections.
3158 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3159
8550eb6e
JJ
31602001-05-11 Jakub Jelinek <jakub@redhat.com>
3161
3162 * ldlang.c (lang_process): Call bfd_merge_sections.
3163
8e5a525c
AM
31642001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3165
3166 * ldgram.y: Fix typo.
3167
1c9acd94
L
31682001-05-03 H.J. Lu <hjl@gnu.org>
3169
3170 * emultempl/elf32.em: Include "libiberty.h".
3171 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3172 basename of the bfd filename.
3173 (gld${EMULATION_NAME}_stat_needed): Likewise.
3174 (gld${EMULATION_NAME}_try_needed): Likewise.
3175 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3176
14fe918e
L
31772001-05-02 H.J. Lu <hjl@gnu.org>
3178
3179 * emultempl/pe.em: Include <ctype.h>.
3180
c7e40348
NC
31812001-05-02 Johan Rydberg <jrydberg@opencores.org>
3182
b6bf44ba 3183 * emulparams/elf32openrisc.sh: New file.
c7e40348 3184
b6bf44ba
AM
3185 * Makefile.am: Add OpenRISC target.
3186 * Makefile.in: Regenerated.
c7e40348 3187
b6bf44ba 3188 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
3189
31902001-05-02 Nick Clifton <nickc@redhat.com>
3191
3192 * emultempl/aix.em: Replace buystring with xstrdup.
3193 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 3194
d1b2b2dc
L
31952001-05-02 H.J. Lu <hjl@gnu.org>
3196
3197 * ldfile.c: Include "libiberty.h".
3198 * ldlex.l: Likewise.
3199
3200 * ldmisc.c (buystring): Removed.
3201 * ldmisc.h: Likewise.
3202
3203 * ldfile.c: Replace buystring with xstrdup.
3204 * ldlang.c: Likewise.
3205 * ldlex.l: Likewise.
3206 * ldmain.c: Likewise.
3207 * ldmisc.c: Likewise.
3208 * lexsup.c: Likewise.
3209 * mpw-eppcmac.c: Likewise.
3210
35714f2a
AJ
32112001-04-30 Andreas Jaeger <aj@suse.de>
3212
3213 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3214
884fb58e
NC
32152001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3216
b6bf44ba
AM
3217 * ldlang.c (load_symbols): Give emulation a chance
3218 to process unrecognized file before fatal error is
3219 reported, not after.
884fb58e 3220
87748b32
NC
32212001-04-27 Sean McNeil <sean@mcneil.com>
3222
3223 * configure.tgt: Add arm-vxworks target.
3224 * scripttempl/armcoff.sc: Support .text or .data as a section name
3225 prefix.
3226 Define _etext.
35714f2a 3227
7ce691ae
C
32282001-04-13 J.T. Conklin <jtc@redback.com>
3229
3230 * ld.texinfo: Document --fatal-warnings.
3231 * ld.1: Regenerate.
3232
3233 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 3234 warnings have been turned into errors.
7ce691ae
C
3235 * lexsup.c (OPTION_WARN_FATAL): Define.
3236 (ld_options): Entry for --fatal-warnings.
3237 (parse_args): Handle OPTION_WARN_FATAL.
3238 * ld.h (ld_config_type): Add fatal_warnings field.
3239
f5fa8ca2
JJ
32402001-04-13 Jakub Jelinek <jakub@redhat.com>
3241
3242 * ldmain.c (main): Default to discard_sec_merge.
3243 * lexsup.c (OPTION_DISCARD_NONE): Define.
3244 (ld_options): Add --discard-none.
3245 (parse_args): Handle OPTION_DISCARD_NONE.
3246 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3247 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3248 all its input sections match.
3249
fdec3cfc
L
32502001-04-05 Steven J. Hill <sjhill@cotw.com>
3251
3252 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3253 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3254 (eelf32ltsmip.c): New target.
3255 (eelf64btsmip.c): Likewise.
3256 (eelf64ltsmip.c): Likewise.
3257 * Makefile.in: Regenerated.
3258
3259 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3260 target.
3261 (mips*-*-linux-gnu*): Likewise.
3262
3263 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3264 MIPS taget.
35714f2a 3265 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
3266 target.
3267 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3268 endian target.
3269
589bad82
HPN
32702001-04-05 Hans-Peter Nilsson <hp@axis.com>
3271
3272 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3273 correct value of __Stext here.
3274 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3275 .startup section.
3276
3277 * emulparams/crislinux.sh: Remove FIXME.
3278
94202e16
AM
32792001-04-02 Alan Modra <alan@linuxcare.com.au>
3280
3281 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3282 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3283
1268a053
HPN
32842001-03-27 Hans-Peter Nilsson <hp@axis.com>
3285
3286 * configure.tgt (cris-*-*): Change default emulation to criself.
3287 (cris-*-*aout*): New rule.
3288
d85e9ff7
AM
32892001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3290
3291 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3292 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3293
0879a67a
AJ
32942001-03-26 Andreas Jaeger <aj@suse.de>
3295
3296 * ld.texinfo (Overview): Fix syntax in texi code.
3297
0285c67d
NC
32982001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3299
3300 * ld.texinfo: Put @c man indications to generate the ld man page.
3301 When generating man, define all the variables. Define SEEALSO
3302 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3303 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3304 (ld.1): Generate from ld.texinfo.
3305 * Makefile.in: Regenerate.
3306
c20ec07b
NC
33072001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3308
3309 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 3310 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 3311
cc5ce052
UD
33122001-03-17 Ulrich Drepper <drepper@redhat.com>
3313
3314 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3315 is an absolute path look only for this file and not along the path.
3316
a1ab1d2a
UD
33172001-03-17 Ulrich Drepper <drepper@redhat.com>
3318
3319 * emultempl/elf32.em (OPTION_GROUP): New macro.
3320 Add new option Bgroup to longopts.
3321 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3322 (gld*_list_options): Add -Bgroup and -z defs.
3323 * ld.1: Document -Bgroup and -z defs.
3324 * ld.texinfo: Likewise.
3325
788fca5a
MM
33262001-03-07 Michael Meissner <meissner@redhat.com>
3327
3328 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3329 with sections created by -fdata-sections.
3330 (.dynbss,.bss): Ditto.
3331
1c7566d1
AM
33322001-03-05 Alan Modra <alan@linuxcare.com.au>
3333
3334 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3335 after_allocation_default, not gld..._before_allocation.
3336
27b7e12d
AM
33372001-02-27 Alan Modra <alan@linuxcare.com.au>
3338
3339 * configure.in (BFD_VERSION): New.
3340 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3341 * configure: Regenerate.
3342 * Makefile.am: Run "make dep-am"
3343 * Makefile.in: Regenerate.
3344
2bc551c7
TW
33452001-02-26 Timothy Wall <twall@cygnus.com>
3346
3347 * emulparams/elf64_aix.sh: Add additional read-only sections;
3348 uncomment lines which are now required.
3349
1276aefa
NC
33502001-02-26 H.J. Lu <hjl@gnu.org>
3351
3352 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
3353 that problems can be caught whilst loading symbols.
3354 (record_bfd_errors): New function: Report BFD errors and mark
3355 the executable output as being invalid.
1276aefa 3356
41c49998
TW
33572001-02-22 Timothy Wall <twall@cygnus.com>
3358
3359 * configure.host: Add configuration for ia64-*-aix*.
3360 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3361 Add dependencies for eelf64_aix.c.
3362 * Makefile.in: Regenerate.
3363 * configure.tgt: Add ia64-*-aix* mapping.
3364 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 3365 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
3366 AIX-specific test.
3367
78f85fd7
L
33682001-02-20 H.J. Lu <hjl@gnu.org>
3369
3370 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3371 false if we found the file.
3372
1ac7e077 33732001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
3374
3375 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3376 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3377
e135f41b
NC
33782001-02-18 lars brinkhoff <lars@nocrew.org>
3379
3380 * Makefile.am: Add PDP-11 target.
3381 * configure.tgt: Likewise.
3382 * emulparams/pdp11.sh: New file.
3383
a842aceb
DB
33842001-02-17 David O'Brien <obrien@FreeBSD.org>
3385
3386 * configure.host: Add a generic FreeBSD configuration entry such that
3387 all [modern] FreeBSD systems on all platforms will look the same.
3388
24174db0
L
33892001-02-14 H.J. Lu <hjl@gnu.org>
3390
3391 * configure.tgt: Remove mention of earmelf_linux26.
3392
30c3c13a
RH
33932001-02-13 Richard Henderson <rth@redhat.com>
3394
3395 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3396
b46a87b1
L
33972001-02-13 H.J. Lu <hjl@gnu.org>
3398
3399 * ldexp.h (node_type): Add etree_provided.
3400 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3401 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 3402 for etree_provided.
b46a87b1
L
3403 (exp_print_tree): Handle etree_provided.
3404 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3405 etree_provided.
3406
f3988fd9
RH
34072001-02-09 David Mosberger <davidm@hpl.hp.com>
3408
3409 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3410 .IA_64.unwind.* pattern to unwind table section and
3411 .IA_64.unwind_info* pattern to unwind info section.
3412
a85d7ed0
NC
34132001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3414
3415 * Makefile.am: Add linux target for S/390.
3416 * Makefile.in: Likewise.
3417 * configure.host: Likewise.
3418 * configure.tgt: Likewise.
3419 * emulparams/elf64_s390.sh: New file.
3420 * emulparams/elf_s390.sh: New file.
3421
780248c4
JJ
34222001-02-09 Jakub Jelinek <jakub@redhat.com>
3423
3424 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3425 targ_extra_libpath.
3426 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3427
0e2534bd
PB
34282001-02-06 Philip Blundell <philb@gnu.org>
3429
3430 * Makefile.am: Remove mention of earmelf_linux26.
3431 * Makefile.in: Regenerate.
3432
46c1ea57
PB
34332001-02-04 Philip Blundell <philb@gnu.org>
3434
3435 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3436 * emulparams/armelf_linux26.sh: Delete.
3437 * configure.tgt: Remove mention of armelf_linux26 emulation.
3438
0088edd2
NC
34392001-02-01 Nick Clifton <nickc@redhat.com>
3440
3441 * ld.1: Replace occurances of -oformat with --oformat.
3442
02aa14fb
AM
34432001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3444
3445 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3446 load_base is specified.
3447
f813923c
HPN
34482001-01-24 Hans-Peter Nilsson <hp@axis.com>
3449
3450 * emultempl/elf32.em: Correct spelling in comments and listed
3451 options.
3452
c1eb1488
AM
34532001-01-23 Alan Modra <alan@linuxcare.com.au>
3454
3455 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3456 default for the first section of a group of overlay sections.
3457
d9fc3714
AM
34582001-01-22 Alan Modra <alan@linuxcare.com.au>
3459
3460 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3461 * Makefile.in: Regenerate.
3462 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3463 Check for null tool_dir.
3464
6be0ca94
JW
34652001-01-16 Jim Wilson <wilson@redhat.com>
3466
3467 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3468 and IA_64.unwind.info.
3469
b9247304
L
34702001-01-16 H.J. Lu <hjl@gnu.org>
3471
3472 * ldlang.c (lang_check): Merge the private data only if the
3473 input file has contents.
3474
577a0623
AM
34752001-01-14 Alan Modra <alan@linuxcare.com.au>
3476
d952f17a
AM
3477 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3478
ffd6e9de
AM
3479 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3480 enabling search for libmilli. On a relocatable link, make .text
3481 sections unique.
3482 (LDEMUL_AFTER_PARSE): Define.
3483 (hppaelf_finish): Correct spelling of relocatable in comments.
3484
577a0623
AM
3485 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3486 rummage through the script for sections on the unique list.
3487 Correct length of strncmp for ".note".
3488 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3489
3490 * ldlang.c (unique_section_list): New var.
3491 (unique_section_p): New function.
3492 (walk_wild_section): Don't match sections on unique_section_list.
3493 (lang_add_unique): New function.
ffd6e9de 3494 Correct spelling of relocatable in comments.
577a0623
AM
3495
3496 * ldlang.h (struct unique_sections): Declare.
3497 (unique_section_list): Declare.
3498 (unique_section_p): Declare.
3499 (lang_add_unique): Declare.
3500
3501 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3502 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3503
3504 * ld.texinfo (--unique): Update.
3505
b7ed8fad
NC
35062001-01-13 Nick Clifton <nickc@redhat.com>
3507
3508 * lexsup.c (parse_args): Remove spurious white space.
3509
d0398d6a
NC
35102001-01-12 Nick Clifton <nickc@redhat.com>
3511
3512 * lexsup.c (parse_args): Update copyright date.
3513
350fdb00
PB
35142001-01-12 Philip Blundell <pb@futuretv.com>
3515
3516 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3517
60c6797e
KH
35182001-01-10 Kazu Hirata <kazu@hxi.com>
3519
3520 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3521 * scripttempl/h8300h.sc: Fix formatting.
3522 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
3523 * scripttempl/h8500.sc: Likewise.
3524 * scripttempl/h8500b.sc: Likewise.
3525 * scripttempl/h8500c.sc: Likewise.
3526 * scripttempl/h8500m.sc: Likewise.
3527 * scripttempl/h8500s.sc: Likewise.
60c6797e 3528
482e8b32
DB
35292000-01-07 David O'Brien <obrien@BSDi.com>
3530
3531 * emultempl/elf32.em: Only perform Linux ld hints processing when
3532 targeting Linux.
3533
d7ed7ca6
PB
35342001-01-07 Philip Blundell <philb@gnu.org>
3535
3536 * ld.texinfo (Bug Reporting): Update email address for reports.
3537
0fc3347a
NC
35382000-12-31 Nick Clifton <nickc@redhat.com>
3539
3540 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3541 options by checking for a return value of '?' not -1.
3542
e4897a32
NC
35432000-12-28 Nick Clifton <nickc@redhat.com>
3544
3545 * lexsup.c (struct ld_option): Add new enum value:
3546 EXACTLY_TWO_DASHES.
3547 (ld_options[]): Change -omagic, -output and -oformat options
3548 to be EXACTLY_TWO_DASHES.
3549 (OUTPUT_COUNT): Use ARRAY_SIZE.
3550 (parse_args): Change parameter 'argc' to unsigned.
3551 Place EXACTLY_TWO_DASHES options into new really_longopts
3552 array.
3553 If getopt_long_only fails, try calling getopt_long using the
3554 really_longopts array.
3555 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3556 TWO_DASHES options.
3557
3558 * ldlex.h: Fix prototype of parse_args.
3559
3560 * ld.texinfo: Document that long options starting with 'o'
3561 must be preceeded by two dashes. Change example of a single
3562 dashed long option from -oformat to -trace-symbol.
3563
1122a5fc
NC
35642000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3565
3566 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3567 (longopts[]): New --no-default-excludes option.
3568 (gld_${EMULATION_NAME}_list_options): Document.
3569 (gld_${EMULATION_NAME}_parse_args): Handle.
3570
037849a9
NC
35712000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3572
3573 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3574 whitespace, it breaks the K&R C preprocessor.
3575
7ec229ce
DD
35762000-12-11 DJ Delorie <dj@redhat.com>
3577
3578 * ld.texinfo: Add notes about --whole-archive and gcc.
3579
b79e8c78
NC
35802000-11-18 Fred Fish <fnf@be.com>
3581
3582 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3583 (ld_options): Entry for --allow-shlib-undefined.
3584 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3585 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3586 to false.
3587 * ld.texinfo: Document new command line switch.
d952f17a 3588
9a8e2505
GK
35892000-12-12 Geoffrey Keating <geoffk@redhat.com>
3590
3591 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3592 .fixup is actually read/write.
3593 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3594 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3595 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3596
3b16e843 35972000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
3598
3599 * NEWS: Add note about x86_64 architecture.
3600
93b63cd3
DD
36012000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3602
3603 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3604 Set DWARF2 sections to a VMA of zero.
3605
68b2fc7a 36062000-12-01 Joel Sherrill <joel@OARcorp.com>
24f6971a 3607
d952f17a 3608 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
3609 New targets.
3610 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3611 (sparc*-*-rtems*): Switched from a.out to ELF.
3612
2be3aa03
NC
36132000-11-30 Jan Hubicka <jh@suse.cz>
3614
3615 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3616 (eelf_x86_64.c): New.
3617 * Makefile.in: Regenerate.
3618 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3619 * emulparams/elf_x86_64.sh: New.
3620
8c899858
HPN
36212000-11-30 Hans-Peter Nilsson <hp@axis.com>
3622
3623 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3624 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3625
3626 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3627 merging non-a.out sections into CONSTRUCTING.
3628
e47b9e39
NC
36292000-11-28 Nick Clifton <nickc@redhat.com>
3630
3631 * ld.1 (COPYING): Mention that the GNU Free Documentation
3632 License is present in the sources, but not the output, and
3633 also available from the GNU website.
3634 (GNU Free Documentation License): Comment out this section.
3635
ad95f82a
DB
36362000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3637
3638 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3639 does not use them.
3640
fd89e65f
DB
36412000-11-25 David O'Brien <obrien@FreeBSD.org>
3642
3643 * ld.1: Remove old date so it does not give the impression the manpage
3644 is way out of date.
3645
077b8428
NC
36462000-11-24 Nick Clifton <nickc@redhat.com>
3647
3648 * configure.tgt (xscale-coff): Add target.
3649 (xscale-elf): Add target.
3650
49425d28
NC
36512000-11-24 Fred Fish <fnf@be.com>
3652
d952f17a
AM
3653 * ldmain.c (main): Remove redundant init of config.make_executable
3654 to true.
49425d28 3655
d3480244
RH
36562000-11-15 Richard Henderson <rth@redhat.com>
3657
3658 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3659
1ce7de8b
KH
36602000-11-14 Kazu Hirata <kazu@hxi.com>
3661
3662 * scripttempl/h8300.sc: Fix formatting.
3663 * scripttempl/h8300h.sc: Likewise.
3664 * scripttempl/h8300s.sc: Likewise.
3665
3b16e843 36662000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
3667
3668 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3669
2e418547
PB
36702000-11-09 Philip Blundell <pb@futuretv.com>
3671
3672 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3673 around orphan sections whose names can be represented in C.
3674
c940e6fc
JW
36752000-11-07 Jim Wilson <wilson@redhat.com>
3676
3677 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3678 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3679
704c465c
NC
36802000-11-06 Nick Clifton <nickc@redhat.com>
3681
3682 * ld.texinfo: Add GNU Free Documentation License.
3683 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 3684 * ld.1: Add GNU Free Documentation License.
704c465c 3685
dca7760f
AM
36862000-11-05 Alan Modra <alan@linuxcare.com.au>
3687
3688 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3689 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3690
3691 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3692 Move 2000-11-02 Makefile.in changes to this file.
3693 * Makefile.in: Regenerate.
3694
40a633d5
NC
36952000-11-03 Nick Clifton <nickc@redhat.com>
3696
3697 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3698 constructors and destructors.
3699 * scripttempl/h8300h.sc: Ditto.
3700 * scripttempl/h8300s.sc: Ditto.
3701 * scripttempl/h8500.sc: Ditto.
3702 * scripttempl/h8500b.sc: Ditto.
3703 * scripttempl/h8500c.sc: Ditto.
3704 * scripttempl/h8500m.sc: Ditto.
3705 * scripttempl/h8500s.sc: Ditto.
3706 * scripttempl/v850.sc: Ditto.
3707 * scripttempl/w65.sc: Ditto.
3708 * scripttempl/z8000.sc: Ditto.
3709
59ff2774
NC
37102000-11-02 Per Lundberg <plundis@chaosdev.org>
3711
3712 * Makefile.in (e_i386_chaos.c): New rule.
3713 (ALL_EMULATIONS): Added e_i386_chaos.o.
3714 * emulparams/elf_i386_chaos.sh: New file.
3715 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3716
645571e1
JJ
37172000-10-20 Jakub Jelinek <jakub@redhat.com>
3718
3719 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3720 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3721 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3722 library path suffix.
3723 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3724
c5975a45
HPN
37252000-10-18 Hans-Peter Nilsson <hp@axis.com>
3726
3727 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3728 for consecutive sections.
3729
ea20a7da
CC
37302000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3731
d952f17a
AM
3732 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3733 options.
3734 * ld.texinfo: Added notes about this new option.
ea20a7da 3735
6e45556a
NC
37362000-10-16 Nick Clifton <nickc@redhat.com>
3737
3738 * emultempl/pe.em (_after_open): Add tests of return values from
3739 bfd functions. Emit appropriate error messages if necessary.
3740
b9a69188
NC
37412000-10-13 Nick Clifton <nickc@redhat.com>
3742
3743 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
3744 local variables - they are not used, but leave in the call to
3745 bfd_canonicalize_symtab.
b9a69188
NC
3746 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3747 pe_dll_search_prefix.
3748
627427de 37492000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 3750
627427de
DD
3751 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3752 (longopts): New --dll-search-prefix option.
3753 (gld_${EMULATION_NAME}_list_options): Document.
3754 (gld_${EMULATION_NAME}_parse_args): Handle.
3755 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3756 dynamically, search for a dll named '<prefix><basename>.dll'
3757 in preference to 'lib<basename>.dll' if --dll-search-prefix
3758 is specified.
3759
24376d1b
AM
37602000-10-12 Alan Modra <alan@linuxcare.com.au>
3761
3762 * ldlang.c (section_already_linked): Set kept_section instead of
3763 sec->comdat->sec.
3764
e47d05ad
KH
37652000-10-10 Kazu Hirata <kazu@hxi.com>
3766
3767 * deffile.h: Fix formatting.
3768 * lexsup.c: Likewise.
3769 * mri.c: Likewise.
3770
23a87948
DD
37712000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3772
3773 * pe-dll.c (make_one): Do not generate code thunk for DATA
3774 exports.
3775 (process_def_file): deduce DATA flag for auto-export sumbols.
3776
86b1cc60
KH
37772000-10-09 Kazu Hirata <kazu@hxi.com>
3778
89cdebba
KH
3779 * ld.h: Fix formatting.
3780 * ldcref.c: Likewise.
3781 * ldctor.h: Likewise.
3782 * ldemul.c: Likewise.
3783 * ldemul.h: Likewise.
3784 * ldexp.c: Likewise.
3785 * ldexp.h: Likewise.
3786 * ldfile.c: Likewise.
3787 * ldfile.h: Likewise.
3788 * ldlang.c: Likewise.
3789 * ldlang.h: Likewise.
3790 * ldmain.c: Likewise.
7bfd51a3
KH
3791 * pe-dll.c: Likewise.
3792
3793 * pe-dll.c: Revert some formatting fixes.
86b1cc60 3794
d643799d
KH
37952000-10-08 Kazu Hirata <kazu@hxi.com>
3796
3797 * pe-dll.c: Fix formatting.
3798
08da4cac
KH
37992000-10-05 Kazu Hirata <kazu@hxi.com>
3800
3801 * ldlang.c: Fix formatting.
3802
c2a94a7a
DD
38032000-10-03 DJ Delorie <dj@redhat.com>
3804
3805 * pe-dll.c (fill_edata): initialize entire block
3806 (make_one): fill in correct section.
3807
8c95a62e
KH
38082000-10-03 Kazu Hirata <kazu@hxi.com>
3809
3810 * ldexp.c: Fix formatting.
3811
486e80e2
DD
38122000-10-02 DJ Delorie <dj@redhat.com>
3813
3814 * emultempl/pe.em (gld_*_after_open): detect case where there two
3815 import libraries for same dll; rename one to ensure proper link
3816 order.
3817
3818 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3819 typo
3820 (generate_edata): fix typo
3821
24dd9f75
HPN
38222000-09-29 Hans-Peter Nilsson <hp@axis.com>
3823
3824 * scripttempl/crisaout.sc (ENTRY): Now __start.
3825 (.text): Add default setting for __start.
3826 Remove CONSTRUCTORS handling.
3827 (/DISCARD/): Add .gnu.warning.*.
3828 * emulparams/crislinux.sh (ENTRY): Now __start.
3829 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3830 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3831 (ENTRY): Now __start.
3832 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3833 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3834
4de2d33d
KH
38352000-09-29 Kazu Hirata <kazu@hxi.com>
3836
5cc18311
KH
3837 * deffile.h: Fix formatting.
3838 * ld.h: Likewise.
3839 * ldcref.c: Likewise.
4de2d33d 3840 * ldctor.c: Likewise.
5cc18311 3841 * ldctor.h: Likewise.
4de2d33d 3842 * ldemul.c: Likewise.
5cc18311 3843 * ldemul.h: Likewise.
4de2d33d 3844 * ldexp.c: Likewise.
5cc18311 3845 * ldexp.h: Likewise.
4de2d33d 3846 * ldfile.c: Likewise.
5cc18311 3847 * ldfile.h: Likewise.
4de2d33d 3848 * ldlang.c: Likewise.
5cc18311
KH
3849 * ldlang.h: Likewise.
3850 * lexsup.c: Likewise.
3851 * mri.c: Likewise.
3852 * pe-dll.c: Likewise.
4de2d33d 3853
45b1f63c
DD
38542000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3855
3856 * pe-dll.c (process_def_file): Uninitialized data wasn't
3857 exported with --export-all-symbols switch.
d952f17a 3858
45b1f63c
DD
38592000-09-28 DJ Delorie <dj@redhat.com>
3860
3861 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3862 noname work properly.
3863
47d89dba
AM
38642000-09-28 Alan Modra <alan@linuxcare.com.au>
3865
3866 * ld.texinfo (HPPA ELF32): New section.
3867
3868 * emultempl/hppaelf.em (group_size): New.
3869 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3870 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3871 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3872 options to prevent abbreviations matching.
3873 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3874 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3875
36bdbeec
NC
38762000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3877
3878 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3879 on the m68*-*-elf target. Make it support COFF input objects.
3880
6d5e62f8
KH
38812000-09-21 Kazu Hirata <kazu@hxi.com>
3882
3883 * ldmain.c: Fix formatting.
3884 * ldmisc.c: Likewise.
3885 * ldver.c: Likewise.
3886 * ldwrite.c: Likewise.
3887
e2eb67d9
AM
38882000-09-21 Alan Modra <alan@linuxcare.com.au>
3889
3890 * ldwrite.c (clone_section): Silence gcc warnings.
3891
b3ea3584
AM
38922000-09-20 Alan Modra <alan@linuxcare.com.au>
3893
3894 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3895 out of memory failure.
3896
3897 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3898 (clone_section): Handle out of memory failures. Rename var to
3899 avoid c++ reserved word.
3900
25f72752
AM
39012000-09-18 Alan Modra <alan@linuxcare.com.au>
3902
3903 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3904 stub_name param to stub_sec_name.
3905 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3906
0752970e
NC
39072000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3908
3909 * emultempl/m68kelf.em: New file.
3910 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3911 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3912 * Makefile.in: Regenerate.
3913
92b7e9d8
AM
39142000-09-15 Alan Modra <alan@linuxcare.com.au>
3915
3916 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3917 only as needed.
3918
9b14b192
NC
39192000-09-13 Nick Clifton <nickc@redhat.com>
3920
3921 * ldmain.c (multiple_definition): Disable relaxation if
3922 multiple symbol definitions are encountered - otherwise the
3923 linker could abort with an assertion failure.
3924
891fa266
NC
39252000-09-10 Nick Clifton <nickc@redhat.com>
3926
3927 * mri.c: Fix formatting.
3928
5d64ca4e
L
39292000-09-07 H.J. Lu <hjl@gnu.org>
3930
3931 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3932 * configure: Rebuild.
3933
dd94604f
L
39342000-09-07 H.J. Lu <hjl@gnu.org>
3935
3936 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3937 * Makefile.in: Rebuild.
3938
71bfc0ae
AM
39392000-09-07 Alan Modra <alan@linuxcare.com.au>
3940
3941 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3942 broken list handling. Create __start_SECNAME and __stop_SECNAME
3943 when no place-holder. Add some comments. Test both SEC_CODE and
3944 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 3945 Handle case where no output section statement created.
71bfc0ae 3946
4a428502
AO
39472000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3948
3949 * configure.tgt (sh-*-linux*): Added.
3950 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3951 * Makefile.in: Rebuilt.
3952 * emulparams/shelf_linux.sh: New file.
3953 * emulparams/shlelf_linux.sh: New file.
3954
f9989030
AM
39552000-09-06 Alan Modra <alan@linuxcare.com.au>
3956
3957 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3958 try shuffling sections when the orphan happens to be the place
3959 holder. Keep count of unique section names generated so we speed
3960 the search for a new name.
3961
58cccadb
AO
39622000-09-06 Alexandre Oliva <aoliva@redhat.com>
3963
3964 * configure: Rebuilt with new libtool.m4.
3965
5b343f5a
NC
39662000-09-05 Nick Clifton <nickc@redhat.com>
3967
3968 * Makefile.in: Regenerate.
3969 * aclocal.m4: Regenerate.
3970 * configure: Regenerate.
3971 * config.in: Regenerate.
3972 * po/ld.pot: Regenerate.
3973
3974 * ldint.texinfo: Remove CVS revision marker - it foils local
3975 comparisons.
3976
3977 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 3978
a854a4a7
AM
39792000-09-05 Alan Modra <alan@linuxcare.com.au>
3980
3231d22e
AM
3981 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3982 to stub section flags.
3983 (hppa_for_each_input_file_wrapper): New.
3984 (hppa_lang_for_each_input_file): New.
3985 (lang_for_each_input_file): Define to call above.
3986 (multi_subspace): New.
3987 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3988 (PARSE_AND_LIST_PROLOGUE): Define.
3989 (PARSE_AND_LIST_LONGOPTS): Define.
3990 (PARSE_AND_LIST_OPTIONS): Define.
3991 (PARSE_AND_LIST_ARGS_CASES): Define.
3992 (hppaelf_finish): Call elf32_hppa_set_gp.
3993 (hppaelf_set_output_arch): Remove.
3994 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3995
3996 * emulparams/hppalinux.sh (ELFSIZE): Define.
3997 (MACHINE): Define.
3998 (OTHER_READONLY_SECTIONS): Define.
3999 (DATA_PLT): Define.
4000 (GENERATE_SHLIB_SCRIPT): Define.
4001
5f992e62
AM
4002 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4003 to const throughout. Change `void *' to `PTR' throughout.
4004 (lang_memory_default): Function is local to file, add `static'.
4005
4006 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4007 (ehppalinux.c): Likewise.
4008 (earmelf.c): Likewise.
4009 (earmelf_linux.c): Likewise.
4010 (earmelf_linux26.c): Likewise.
4011 * Makefile.in: Regenerate.
4012
a854a4a7
AM
4013 * ld.h (ld_config_type): Add unique_orphan_sections.
4014 * lexsup.c (OPTION_UNIQUE): Define.
4015 (ld_options): Add "--unique".
4016 (parse_args): Handle it.
4017 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4018 search for an existing output section if unique_orphan_sections is
4019 set. Make use of bfd_get_unique_section_name rather than
4020 duplicating code here.
4021 * ld.texinfo: Describe --unique.
4022
4023 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4024 optional arg to split-by-file.
4025 (parse_args): Handle them.
4026 * ld.texinfo: Update description of these options.
4027 * ldwrite.c (clone_section): Pass in the section name. Replace
4028 local code with bfd_get_unique_section_name.
4029 (split_sections): Tidy code and comments. Use a list traversal
4030 more appropriate to the list construction. Handle cooked section
4031 sizes. Split when split_by_reloc reached rather than exceeded.
4032 Track section size and split when split_by_file reached. Fix
4033 link_order_tail (even though it's not used).
4034 (ldwrite): Modify condition for calling split_sections to suit
4035 changed split_by_reloc and split_by_file.
4036 * ldmain.c (main): Init config.split_by_reloc and
4037 config.split_by_file to -1.
4038 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4039 Change split_by_file to bfd_size_type.
4040
18e03609
NC
40412000-09-02 Nick Clifton <nickc@redhat.com>
4042
4043 * configure.in: Increase version number to 2.10.91.
4044 * NEWS: Mention new ability to support removal of duplicate DWARF2
4045 debug information.
4046 * configure: Regenerate.
4047 * aclocal.m4: Regenerate.
4048 * config.in: Regenerate.
4049
3a9d486c
NC
40502000-09-02 Daniel Berlin <dberlin@redhat.com>
4051
4052 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4053 sections.
a2b64bed 4054 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
4055 * scripttempl/elfd10v.sc: Ditto.
4056 * scripttempl/elfd30v.sc: Ditto.
4057 * scripttempl/elfi370.sc: Ditto.
4058 * scripttempl/elfm68hc11.sc: Ditto.
4059 * scripttempl/elfm68hc12.sc: Ditto.
4060 * scripttempl/elfi386beos.sc: Ditto.
4061 * scripttempl/v850.sc: Ditto.
50bbae35 4062
ac48eca1
AO
40632000-08-31 Alexandre Oliva <aoliva@redhat.com>
4064
4065 * acinclude.m4: Include libtool and gettext macros from the
4066 top level.
4067 * aclocal.m4, configure: Rebuilt.
4068
c13b1b77
NC
40692000-08-25 Nick Clifton <nickc@redhat.com>
4070
4071 * ldlang.c (open_output): When choosing the target for a
4072 particular endianness, do nothing if the target is not
4073 supported.
4074
dcb0bd0e
L
40752000-08-25 H.J. Lu <hjl@gnu.org>
4076
4077 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4078 check -rpath nor LD_RUN_PATH for cross link.
4079 * ld.texinfo: Document the change.
4080
5bcac8a4
HPN
40812000-08-24 Hans-Peter Nilsson <hp@axis.com>
4082
4083 * NEWS: Mention support for CRIS.
4084
6dd8c765
L
40852000-08-23 H.J. Lu <hjl@gnu.org>
4086
4087 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4088 the current runpath list from bfd_elf_get_runpath_list ()
4089 before search.
4090
ec4eb78a
L
40912000-08-22 H.J. Lu <hjl@gnu.org>
4092
4093 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4094 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4095 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4096 trace_file_tries is non-zero.
4097 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4098 if trace_file_tries is non-zero.
4099
4100 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 4101 * NEWS: Mention it.
ec4eb78a 4102
22b36938
JE
41032000-08-14 Jason Eckhardt <jle@cygnus.com>
4104
4105 * NEWS: Mention i860 support.
4106
d73e9da0
AS
41072000-08-14 Andreas Schwab <schwab@suse.de>
4108
4109 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 4110 syntax.
d73e9da0 4111
9ac4db9c
GK
41122000-08-10 Geoff Keating <geoffk@cygnus.com>
4113
4114 * scripttempl/elf.sc: Add a comment giving the correspondence
4115 between sections, per-datum sections, and linkonce sections. Make
4116 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4117 .sbss2.
4118
165589e4
JE
41192000-08-10 Jason Eckhardt <jle@cygnus.com>
4120
4121 * emulparams/elf32_i860.sh: New file.
4122 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4123 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4124 (eelf32_i860.c): New rule.
4125 * Makefile.in: Regenerate.
4126
345a835d
NC
41272000-08-10 Nick Clifton <nickc@cygnus.com>
4128
4129 * emulparams/mipspe.sh (ENTRY): Add definition.
4130
e374f1d9
NC
41312000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4132
4133 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4134 in error message.
4135
236d5abf
NC
41362000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4137
4138 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4139 the final size of .bss section.
4140 * scripttempl/elfm68hc12.sc: Likewise.
4141
4b209b22
AM
41422000-08-04 Alan Modra <alan@linuxcare.com.au>
4143
4144 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4145 gld${EMULATION_NAME}_parse_args for consistency. Combine
4146 lastoptind and prevoptind vars, and keep track of last optind.
4147 (gld_${EMULATION_NAME}_list_options): Rename to
4148 gld${EMULATION_NAME}_list_options.
4149
28423a68
AM
41502000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4151
4152 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4153 (i586-sco-sysv5uw7.1.0).
4154
b2009ff7
L
41552000-07-27 H.J. Lu <hjl@gnu.org>
4156
4157 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4158 (PARSE_AND_LIST_PROLOGUE): New.
4159 (PARSE_AND_LIST_LONGOPTS): Likewise.
4160 (PARSE_AND_LIST_OPTIONS): Likewise.
4161 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4162 (PARSE_AND_LIST_EPILOGUE): Likewise.
4163
04925e1e
AM
41642000-07-28 Alan Modra <alan@linuxcare.com.au>
4165
41392f03
AM
4166 * emultempl/armelf.em: Elide functions common to elf32.em,
4167 ie. most of the file.
4168 (arm_elf_after_open): New. Do arm specific things then call
4169 gld${EMULATION_NAME}_after_open.
4170 (arm_elf_before_allocation): New. Call
4171 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4172 (PARSE_AND_LIST_PROLOGUE): Define.
4173 (PARSE_AND_LIST_SHORTOPTS): Define.
4174 (PARSE_AND_LIST_LONGOPTS): Define.
4175 (PARSE_AND_LIST_OPTIONS): Define.
4176 (PARSE_AND_LIST_ARGS_CASES): Define.
4177 (LDEMUL_AFTER_OPEN): Define.
4178 (LDEMUL_BEFORE_ALLOCATION): Define.
4179 (LDEMUL_BEFORE_PARSE): Define.
4180 (LDEMUL_FINISH): Define.
4181
4182 * emultempl/hppaelf.em: Similarly zap most of this file.
4183 (hppaelf_add_stub_section): Prototype.
4184 (hppaelf_layaout_sections_again): Prototype.
4185 (hook_in_stub): Prototype.
4186 (LDEMUL_SET_OUTPUT_ARCH): Define.
4187 (LDEMUL_FINISH): Define.
4188 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4189
4190 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4191 (EXTRA_EM_FILE): New.
4192 * emulparams/armelf_linux.sh: Likewise.
4193 * emulparams/armelf_linux26.sh: Likewise.
4194 * emulparams/hppalinux.sh: Likewise.
4195 * emulparams/hppaelf.sh: Likewise.
4196 (NOP): Define.
4197
4198 * emultempl/elf32.em: Fix formatting.
4199 (EXTRA_EM_FILE): Source it.
4200 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4201 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4202 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4203 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4204 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4205 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4206 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4207 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4208 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4209 allow functions in this file to be overridden.
4210 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4211
4212 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4213
04925e1e
AM
4214 * emultempl/elf32.em: Reorganize file.
4215
88cdf297
NC
42162000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4217
4218 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4219 specific option to fit 64-bit executable in the lower
4220 31-bit address range. This is done by changing start
4221 address of .interp (the very first section of executable)
4222 and then setting EF_ALPHA_32BIT elf header flag.
4223
20bccb34
NC
42242000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4225
4226 * emultempl/m68kcoff.em: New file.
4227 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4228 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4229 generic.em.
4230 * Makefile.in: Regenerate.
4231
699845ef
L
42322000-07-20 H.J. Lu <hjl@gnu.org>
4233
4234 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4235 and "disable-new-dtags" to stop getopt from treating -d/-e as
4236 abbreviations for these options.
4237
6c1439be
L
42382000-07-20 H.J. Lu <hjl@gnu.org>
4239
4240 * ld.texinfo: Add documentation for --disable-new-dtags and
4241 --enable-new-dtags.
4242
4243 * ldmain.c (main): Initialize link_info.new_dtags to false.
4244
4245 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4246 --disable-new-dtags and --enable-new-dtags.
4247 (gld_${EMULATION_NAME}_list_options): Likewise.
4248
28c309a2
NC
42492000-07-05 Kenneth Block <krblock@computer.org>
4250
a2b64bed
NC
4251 * lexsup.c: Add optional style to demangle switch
4252 * ld.texinfo: Document optional style to demangle switch.
50bbae35 4253
9d06555c
HPN
42542000-07-20 Hans-Peter Nilsson <hp@axis.com>
4255
4256 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4257 ecrislinux.o.
4258 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4259 Regenerate dependencies.
4260 * Makefile.in: Rebuild.
4261 * configure.tgt (cris-*-*): New target.
4262 * emulparams/crisaout.sh, emulparams/criself.sh,
4263 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4264 * po/POTFILES.in, po/ld.pot: Regenerate.
4265
19e3be22
L
42662000-07-20 H.J. Lu <hjl@gnu.org>
4267
4268 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4269 Print out ignored -z options.
4270
e0ee487b
L
42712000-07-19 H.J. Lu <hjl@gnu.org>
4272
19e3be22
L
4273 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4274 (PARSE_AND_LIST_PROLOGUE): New.
4275 (PARSE_AND_LIST_LONGOPTS): Likewise.
4276 (PARSE_AND_LIST_OPTIONS): Likewise.
4277 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4278
4279 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4280
4281 * lexsup.c (ld_options): Comment out 'z'.
4282 (parse_args): Likewise.
4283
4284 * emultempl/elf32.em: Include "elf/common.h".
4285 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4286 options.
4287 (gld_${EMULATION_NAME}_list_options): Likewise.
4288
4289 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 4290
49e56c49
L
42912000-07-19 H.J. Lu <hjl@gnu.org>
4292
4293 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4294 bfd_elf_set_dt_needed_soname ().
4295
9d68bc82
DD
42962000-07-18 DJ Delorie <dj@cygnus.com>
4297
4298 * pe-dll.c (pe_dll_id_target): check object target name also
4299
53db15ed
HPN
43002000-07-18 Hans-Peter Nilsson <hp@axis.com>
4301
4302 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4303 ${INIT_END} if relocating.
4304 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4305
0ad8cf4c
DD
43062000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4307
a2b64bed 4308 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
4309 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4310 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4311 errors introduced by the old dynamic lib search order.
4312
874c8c99
DD
43132000-07-17 DJ Delorie <dj@cygnus.com>
4314
4315 * pe-dll.c (process_def_file): auto-export data items also
4316 (pe_process_import_defs): also see if _imp_ form needed
4317
5b4cf3f4
DD
43182000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4319
4320 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4321 for dll import libraries
4322
062739d1
NC
43232000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4324
4325 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 4326 gcc 2.95.2 and later.
062739d1 4327
1c64c4ed
NC
43282000-07-11 Kazu Hirata <kazu@hxi.com>
4329
50bbae35
AM
4330 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4331 message.
1c64c4ed 4332
b71e2778
AM
43332000-07-10 Alan Modra <alan@linuxcare.com.au>
4334
4335 * ldemul.h (struct lang_input_statement_struct): Remove forward
4336 declaration.
4337 (struct search_dirs): Likewise.
4338 * ldfile.h (struct lang_input_statement_struct): Likewise.
4339 Protect file from multiple inclusion.
4340 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4341 declaration from macro to file scope.
4342
4343 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4344 * ldgram.y: Likewise here.
4345 * ldlang.c: And here.
4346 * ldmain.c: And here.
4347 * mpw-elfmips.c: And here.
4348 * mpw-eppcmac.c: And here.
4349 * emultempl/aix.em: And here.
4350 * emultempl/armcoff.em: And here.
4351 * emultempl/armelf.em: And here.
4352 * emultempl/armelf_oabi.em: And here.
4353 * emultempl/beos.em: And here.
4354 * emultempl/elf32.em: And here.
4355 * emultempl/hppaelf.em: And here.
4356 * emultempl/linux.em: And here.
4357 * emultempl/lnk960.em: And here.
4358 * emultempl/pe.em: And here.
4359 * emultempl/sunos.em: And here.
4360 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4361 * mpw-idtmips.c: Ditto.
4362 * emultempl/generic.em: Ditto.
4363 * emultempl/gld960.em: Ditto.
4364 * emultempl/gld960c.em: Ditto.
4365 * emultempl/mipsecoff.em: Ditto.
4366 * emultempl/ticoff.em: Ditto.
4367 * emultempl/vanilla.em: Ditto.
4368
4369 * pe-dll.c: Include ldfile.h
4370 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4371
4372 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4373 arguments to bfd_elf32_size_dynamic_sections call.
4374 (gldelf32ebmip_place_orphan): Add missing arguments to
4375 lang_leave_output_section_statement call.
4376
2ef53d66
L
43772000-07-10 H.J. Lu <hjl@gnu.org>
4378
4379 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4380 DLL_SUPPORT.
4381 (strhash): Likewise.
4382 (compute_dll_image_base): Likewise.
4383 (pe_undef_found_sym): Likewise.
4384 (pe_undef_cdecl_match): Likewise.
4385 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4386 argument "arch" with ATTRIBUTE_UNUSED.
4387
9a8cbb09
AM
43882000-07-10 Alan Modra <alan@linuxcare.com.au>
4389
4390 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4391
4392 From Ryan Bradetich <rbradetich@uswest.net>
4393 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 4394
4900fc06
AM
43952000-07-09 Alan Modra <alan@linuxcare.com.au>
4396
4397 Changes to create multiple linker stubs, positioned immediately
4398 before the section where they are required.
4399 * emultempl/hppaelf.em: Include elf32-hppa.h.
4400 (stub_sec, file_chain): Delete.
4401 (hppaelf_create_output_section_statements): Don't make a stub
4402 section here.
4403 (hook_stub_info): New struct.
4404 (hook_in_stub): New function.
4405 (hppaelf_add_stub_section): New function.
4406 (hppaelf_finish): Do nothing for relocateable links. Modify the
4407 call to elf32_hppa_size_stubs. Move code for updating section
4408 layout from here...
4409 (hppaelf_layaout_sections_again): ..to here, a new function.
4410
4411 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4412 broken list handling. Pass in a pointer to the list.
4413 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4414 for above changes.
4415 (hppaelf_before_parse): Prototype.
4416 (hppaelf_set_output_arch): Prototype.
4417 (hppaelf_create_output_section_statements): Prototype.
4418 (hppaelf_delete_padding_statements): Prototype.
4419 (hppaelf_finish): Prototype.
4420
4421 Merge from elf32.em
4422 * emultempl/hppaelf.em: Include ctype.h.
4423 (struct orphan_save): New.
4424 (gld${EMULATION_NAME}_place_orphan): New.
4425 (output_rel_find): New.
4426 (hppaelf_get_script): Update from elf32.em.
4427 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4428 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 4429 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
4430
4431 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4432 ehppalinux.o, sort it. Regenerate dependencies.
4433 (ehppalinux.c): Depend on hppaelf.em
4434 * Makefile.in: Regenerate.
4435
4436 * configure.tgt: targ_emul=hppalinux for hppa*linux
4437
4438 * emulparams/hppalinux.sh: New.
4439 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4440
227aeb07
AM
44412000-07-08 Alan Modra <alan@linuxcare.com.au>
4442
4443 * lexsup.c (parse_args): Copy section name.
4444
28609fd4 44452000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 4446
2ef53d66 4447 * emultempl/pe.em: institute the following search order for
602e90d3
DD
4448 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4449 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4450 static lib (libfoo.a) if none of the above are found.
4451
5f577f7d
DD
44522000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4453
50bbae35 4454 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 4455 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 4456 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
4457 (gld_${EMULATION_NAME}_parse): Handle.
4458 (strhash): New static function.
50bbae35 4459 (compute_dll_image_base): New static function.
5f577f7d
DD
4460 (gld_${EMULATION_NAME}_set_symbols): Use.
4461
9a8cbb09 44622000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
4463
4464 * MAINTAINERS: new
4465
3548145d 44662000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
4467
4468 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4469 * emulparams/elf32btsmip.sh: New file.
4470 * Makefile.am: Add traditional mips target.
4471 * Makefile.in: Rebuild.
4472
67798033
L
44732000-07-01 H.J. Lu <hjl@gnu.org>
4474
4475 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4476 automake to use YLWRAP.
4477 * Makefile.in: Rebuild.
4478
0bdaf48b
AM
44792000-07-01 Alan Modra <alan@linuxcare.com.au>
4480
4481 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4482 (CLEANFILES): Add DEPA.
4483 * Makefile.in: Regenerate.
4484
c9e769c2
TW
44852000-06-30 Timothy Wall <twall@ppc>
4486
4487 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4488 the page in the upper octet of the address.
4489
65aa24b6
NC
44902000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4491
4492 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4493
4667035e
AM
44942000-06-24 Alan Modra <alan@linuxcare.com.au>
4495
4496 * NEWS: arm-elf does --gc-sections too.
4497
1581f8c9
AM
44982000-06-22 Alan Modra <alan@linuxcare.com.au>
4499
4500 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4501 find one.
4502 * Makefile.in: Regenerate.
4503
01580992
L
45042000-06-21 H.J. Lu <hjl@gnu.org>
4505
4506 * Makefile.am: Rebuild dependency.
4507 * Makefile.in: Rebuild.
4508
bbeb2e03
L
45092000-06-20 H.J. Lu <hjl@gnu.org>
4510
4511 * Makefile.am: Rebuild dependency.
4512 * Makefile.in: Rebuild.
4513
74459f0e
TW
45142000-06-20 Timothy Wall <twall@cygnus.com>
4515
4516 * scripttempl/tic54xcoff.sc: New.
4517 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4518 * gen-doc.texi: Add flag for TI COFF.
4519 * ld.texinfo: Add documentation for TI COFF handling switches.
4520 * emultempl/ticoff.em: New. TI COFF handling.
4521 * configure.tgt: Add tic54x target.
4522 * Makefile.am: Add tic54x target.
4523 * Makefile.in: Ditto.
4524
2ab47eed
AM
45252000-06-20 Alan Modra <alan@linuxcare.com.au>
4526
4527 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4528 checking for backslashes.
4529
919e4093
AM
45302000-06-19 Alan Modra <alan@linuxcare.com.au>
4531
4532 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4533
987fd5b4
AM
45342000-06-18 Alan Modra <alan@linuxcare.com.au>
4535
4536 * NEWS: Update list of targets supporting --gc-sections.
4537
4538 * scripttempl/elf.sc: KEEP .eh_frame contents.
4539 * scripttempl/elfd30v.sc: Same here.
4540
60bcf0fa
NC
45412000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4542
4543 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4544 and m68hc11 (elf).
4545 * Makefile.in: Rebuild.
4546 * configure.tgt: Recognize m68hc12 and m68hc11.
4547 * scripttempl/elfm68hc12.sc: New file.
4548 * emulparams/m68hc12elfb: New emulation.
4549 * emulparams/m68hc12elf: New emulation.
4550 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4551 (includes a memory.x script to define the ROM and RAM banks).
4552 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4553 New configuration files for support of Motorola 68hc11
4554
c7c54483
AM
45552000-06-15 Alan Modra <alan@linuxcare.com.au>
4556
4557 * ldmain.c (main): Only change SEC_READONLY for final link.
4558
bcef29e6
L
45592000-06-13 H.J. Lu <hjl@gnu.org>
4560
4561 * configure: Regenerate.
4562
946efd95
DB
45632000-06-08 David O'Brien <obrien@FreeBSD.org>
4564
4565 * configure.in (VERSION): Update to show this is the CVS mainline.
4566
57a6fd07
DB
45672000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4568
4569 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4570 input objects to be ECOFF.
4571 (check_sections): einfo takes %B, not %P, to print a BFD name.
4572
e06cae36
L
45732000-06-05 Michael Matz <matz@ifh.de>
4574
4575 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 4576 version scripts.
e06cae36 4577
d952f17a 4578 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 4579
2f0b56c0
DC
45802000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4581
4582 * emulparams/avr1200.sh (STACK): Define as 0.
4583 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4584 * emulparams/avr4433.sh (STACK): Likewise.
4585 * emulparams/avr44x4.sh (STACK): Likewise.
4586 * emulparams/avr85xx.sh (STACK): Likewise.
4587 * emulparams/avrmega103.sh (STACK): Likewise.
4588 * emulparams/avrmega161.sh (STACK): Likewise.
4589 * emulparams/avrmega603.sh (STACK): Likewise.
4590 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4591 (__stack): Define from ${STACK} for main().
4592
2114f57b
AM
45932000-05-26 Alan Modra <alan@linuxcare.com.au>
4594
4595 * Makefile.am: Update dependencies with "make dep-am"
4596 * Makefile.in: Regenerate.
4597
5af11cab
AM
45982000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4599
4600 * ldmain.c: Include filenames.h.
4601 (set_scripts_dir): Support backslashes in program name.
4602
1f0df59a
NC
46032000-05-22 Igor Shevlyakov <igor@windriver.com>
4604
4605 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
4606 read-only, don't forget to reset SEC_READONLY because it
4607 could be already set.
1f0df59a 4608
176355da
NC
46092000-05-22 Thomas de Lellis <tdel@windriver.com>
4610
50bbae35
AM
4611 * ld.1: Add documentation for new command line option:
4612 --section-start <sectionname>=<sectionorg>
4613 This is a generic version of -Ttext etc. which accepts
4614 any section name as a parameter instead of just text/data/
4615 bss.
4616 * ld.texinfo: More docs.
4617 * NEWS: More docs.
4618 * lexsup.c: (parse_args): Recognize new command line option.
176355da 4619 (ld_options): Add new option.
50bbae35 4620
8c5ff972
L
46212000-05-18 H.J. Lu <hjl@gnu.org>
4622
4623 * lexsup.c (parse_args): `i' == `r', not `q'.
4624
3b16e843 46252000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
4626
4627 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4628
a712da20
NC
46292000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4630 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 4631
a712da20
NC
4632 Add support for '-q' == '--emit-relocs' switch.
4633 * ldmain.c (main): Default to false.
4634 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4635 * NEWS: Describe the emitrelocations switch.
4636 * ld.texinfo: Describe the emitrelocations switch.
4637
690a460e
NC
46382000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4639
a2b64bed 4640 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
4641 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4642 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4643 link options.
50bbae35 4644
c2f1343c
AM
46452000-05-15 David O'Brien <obrien@FreeBSD.org>
4646
4647 * lexsup.c (parse_args): Update the year in the copyright notice.
4648
897083bd
AM
46492000-05-13 Alan Modra <alan@linuxcare.com.au>
4650
4651 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4652 Replace defines with those from intl/libgettext.h to quieten gcc
4653 warnings.
4654
cd4c806a
L
46552000-05-10 H.J. Lu <hjl@gnu.org>
4656
4657 * ldlang.c (open_input_bfds): Don't load the same file within
4658 a group again if the whole archive has been loaded already.
4659
93697284
AM
46602000-05-03 Alan Modra <alan@linuxcare.com.au>
4661
4662 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4663 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4664 strtoul.
4665
3b16e843 46662000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 4667
99a4150f 4668 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 4669
ebd6fc29
JW
4670 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4671 host "ia64-*-linux-gnu*".
4672
a1934524
AM
46732000-04-29 Andreas Jaeger <aj@suse.de>
4674
4675 * ld.h: Correctly check GCC version.
4676
3b16e843 46772000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
4678
4679 * Makefile.am: Add PA64 support. Add missing dependencies for
4680 PA32 elf support.
4681 * Makefile.in: Rebuilt.
4682 * configure.tgt: Add PA64 support (currently disabled).
4683
aea4bd9d
AM
46842000-04-25 Alan Modra <alan@linuxcare.com.au>
4685
4686 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4687 (output_rel_find): New function.
4688 (hold_section, hold_use): Delete.
4689 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4690 hold_interp): Make local to place_orphan.
4691 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4692 rather than place_section to find possible previous use of orphan.
4693 Similarly find the place-holder output sections. Use returned
4694 value from lang_enter_output_section_statement rather than calling
4695 lang_output_section_statement_lookup.
4696 * emultempl/armelf.em: Same here.
4697 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4698
4699 * ldlang.c (lang_enter_output_section_statement): Return output
4700 section statement.
4701 * ldlang.h (lang_enter_output_section_statement): Change
4702 declaration too.
4703
4704 * ldlang.h (lang_output_section_statement): Export it.
4705 * ldlang.c (lang_output_section_statement): Ditto.
4706
2b5fc1f5
NC
47072000-04-24 Nick Clifton <nickc@cygnus.com>
4708
4709 * ld.texinfo (Output Section Data): Add note that section data
4710 commands cannot appear outside of section directives.
4711
d8475ff6
JL
47122000-04-2 Matthew Green <mrg@cygnus.com>
4713
4714 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4715
3b16e843
NC
47162000-04-21 Richard Henderson <rth@cygnus.com>
4717 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
4718
4719 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4720 (eelf64_ia64.c): New rule.
4721 * Makefile.in: Rebuild.
4722 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4723 * emulparams/elf64_ia64.sh: New file.
50bbae35 4724
c9637625
RH
47252000-04-21 Richard Henderson <rth@cygnus.com>
4726
4727 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4728
28ea9521
AM
47292000-04-19 Alan Modra <alan@linuxcare.com.au>
4730
4731 * dep-in.sed: Match space at start of file name, not at end.
4732
20d04697
L
47332000-04-18 H.J. Lu <hjl@gnu.org>
4734
4735 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4736 lang_leave_output_section_statement () after calling
4737 lang_enter_output_section_statement ().
4738 * emultempl/armelf.em: Likewise.
4739
5ba47421
AM
47402000-04-18 Alan Modra <alan@linuxcare.com.au>
4741
4742 * emultempl/elf32.em (struct orphan_save): Add section field.
4743 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4744 better order, and place first orphan section as we did before the
4745 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4746 Don't call make_bfd_section here, let wild_doit do the job for us.
4747 Don't build a statement list when we'll only throw it away.
4748 * emultempl/armelf.em: Ditto.
4749 * emultempl/pe.em: Similarly.
4750
bdbe5705
GK
47512000-04-14 Geoff Keating <geoffk@cygnus.com>
4752
4753 * scripttempl/elfppc.sc: Remove.
4754 * emulparams/elf32ppc.sh: Use elf.sc.
4755 * emulparams/elf32lppc.sh: Use elf.sc.
4756 * emulparams/elf32ppclinux.sh: Use elf.sc.
4757 * emulparams/elf32ppcsim.sh: New file.
4758 * emulparams/elf32lppcsim.sh: New file.
4759 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4760 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4761 * Makefile.in: Regenerate.
4762 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4763
01cc8ff8
AM
47642000-04-14 Alan Modra <alan@linuxcare.com.au>
4765
5ba47421 4766 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 4767 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
4768 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4769 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
4770 Also set all relocateable section start addresses.
4771
6c86c541
GK
47722000-04-13 Geoff Keating <geoffk@cygnus.com>
4773
4774 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4775 Add new BSS_PLT variable for when .plt need not be contained in
4776 the file. Move _etext so that it is also after .fini, and provide
4777 both etext and _etext with a leading underscore. Mark the start
4778 and end of .sbss.
4779
6a345e87
AM
47802000-04-12 Alan Modra <alan@linuxcare.com.au>
4781
4782 * emultempl/elf32.em (struct orphan_save): New.
4783 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4784 hold_interp): Make them struct orphan_save.
4785 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4786 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4787 the end of the relevant section list. Also add associated section
4788 statements to the end of any previous orphan statements.
4789 * emultempl/armelf.em: Similarly.
4790 * emultempl/pe.em: Similarly.
4791
8be86746
AM
47922000-04-11 Alan Modra <alan@linuxcare.com.au>
4793
4794 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4795
3b16e843 47962000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 4797
a2d91340 4798 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 4799 --enable-build-warnings option.
a2d91340
AC
4800 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4801 * Makefile.in, configure: Re-generate.
4802
41b49281
AM
48032000-04-04 Alan Modra <alan@linuxcare.com.au>
4804
8ad3436c
AM
4805 * po/ld.pot: Regenerate.
4806
4807 * lexsup.c (help): Restore translated part of bug string.
4808
41b49281
AM
4809 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4810 (DEP): Quote when passing vars to sub-make. Add warning message
4811 to end.
4812 (DEP1): Rewrite for "gcc -MM".
4813 (CLEANFILES): Add DEP2.
4814 Update dependencies.
4815 * Makefile.in: Regenerate.
4816
c20f4f8c
AM
48172000-04-03 Alan Modra <alan@linuxcare.com.au>
4818
4819 * ld.h: #include "bin-bugs.h"
4820 * lexsup.c (help): Use REPORT_BUGS_TO.
4821
adde6300
AM
48222000-03-27 Denis Chertykov <denisc@overta.ru>
4823
4824 * configure.tgt (avr-*-*): New target support.
4825 * Makefile.am: Likewise.
4826 * scripttempl/elf32avr.sc: New script file.
4827 * emulparams/avr1200.sh: New file.
4828 * emulparams/avr23xx.sh: New file.
4829 * emulparams/avr4433.sh New file.
4830 * emulparams/avr44x4.sh New file.
4831 * emulparams/avr85xx.sh New file.
4832 * emulparams/avrmega103.sh New file.
4833 * emulparams/avrmega161.sh New file.
4834 * emulparams/avrmega603.sh New file.
4835 * Makefile.in: Regenerate.
4836
9282ff41
L
48372000-03-09 Andreas Jaeger <aj@suse.de>
4838
4839 * Makefile.am (check-DEJAGNU): Also unset LANG.
4840 * Makefile.in: Rebuild.
4841
a9998805
ILT
48422000-03-06 Ian Lance Taylor <ian@zembu.com>
4843
4844 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4845 archive.
4846
f9bc20e7
NC
48472000-03-02 H.J. Lu <hjl@gnu.org>
4848
4849 * emulparams/elf32mcore.sh: Include "getopt.h".
4850
4e277b38
ILT
48512000-03-01 Ian Lance Taylor <ian@zembu.com>
4852
4853 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4854
f0c87f88
NC
48552000-03-01 H.J. Lu <hjl@gnu.org>
4856
4857 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4858 * emulparams/shpe.sh: Likewise.
4859
48602000-03-01 Nick Clifton <nickc@cygnus.com>
4861
4862 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4863 to unused parameters.
4864
4865 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4866 functions only used by DLL code.
4867 (_place_orphan): Initialise 'dollar'.
4868
b6f29aaa
L
48692000-03-01 H.J. Lu <hjl@gnu.org>
4870
4871 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4872 indicate if the undefined symbol is a fatal error or not.
4873 Don't delete the output file if "fatal" is false.
4874
af28fce3
L
48752000-02-29 H.J. Lu <hjl@gnu.org>
4876
50bbae35 4877 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
4878 Set LC_COLLATE and LC_ALL to null and export them. It is for
4879 sort which expects the C locale.
4880 Add $(LIBS) to all $(HOSTING_LIBS).
4881 * Makefile.in: Rebuild.
4882
40d109bf
AM
48832000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4884
4885 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4886 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4887 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4888 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4889 find_potential_libraries.
4890
db5be682
JB
48912000-02-28 Jim Blandy <jimb@redhat.com>
4892
4893 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 4894 list entries; the lexer considers commas to be valid part of a
db5be682
JB
4895 filename, so in something like `foo, bar' the comma is considered
4896 part of the first filename, `foo,'.
4897 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4898
3558ff4c
ILT
48992000-02-27 Loren J. Rittle <ljrittle@acm.org>
4900
4901 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4902 host "i[3456]86-*-freebsdelf*".
4903
4eee2681
ILT
49042000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4905
4906 * scripttempl/i386go32.sc: Move misplaced semicolons.
4907
8d75d12d
ILT
49082000-02-25 Ian Lance Taylor <ian@zembu.com>
4909
4910 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4911 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4912 (eelf64hppa.c, ehppaelf.c): Remove targets.
4913 * Makefile.in: Rebuild.
4914
a1836d49
AO
49152000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4916
ad51fb57
AO
4917 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4918 GNU/Linux/sparc, but keep the default as 32.
4919
a1836d49
AO
4920 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4921 it default if sparcv9 or sparc64.
4922
344a211f
NC
49232000-02-24 Nick Clifton <nickc@cygnus.com>
4924
4925 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4926 * Makefile.in: Regenerate.
4927 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4928
4929 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4930 find_potential_libraries.
4931 * ldemul.c (ldemul_find_potential_libraries): New function.
4932
4933 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 4934 exported.
344a211f
NC
4935 (ldfile_open_file): Call ldemul_find_potential_libraries.
4936 * ldfile.h: Add prototype for ldfile_open_file_search.
4937
4938 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4939
4940 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4941 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4942
4943 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4944 (gld_X_find_potential_libraries): New function. Search for
4945 libraries called "*.lib".
4946
a2b64bed 4947 * scripttempl/pe.sc: Add .pdata section.
344a211f 4948
eaba1dd3
RH
49492000-02-23 Richard Henderson <rth@cygnus.com>
4950
4951 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4952 Add and use memory regions.
4953
5b93d8bb
AM
49542000-02-23 Linas Vepstas (linas@linas.org)
4955
4956 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4957
4958 * Makefile.am: Add support for Linux/IBM 370.
4959 * configure.tgt: Likewise.
4960
4961 * Makefile.in: Regenerate.
4962
f6af82bd
AM
49632000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4964
4965 * ldlang.c (print_input_section, print_data_statement,
4966 print_reloc_statement, print_padding_statement, insert_pad,
4967 size_input_section, lang_check_section_addresses,
4968 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 4969 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
4970 (lang_do_assignments): Also change `size' to unsigned.
4971
9e673ad1
RH
49722000-02-16 Richard Henderson <rth@cygnus.com>
4973
4974 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4975
562d3460
TW
49762000-02-16 Timothy Wall <twall@cygnus.com>
4977
4978 * mri.c (mri_draw_tree): Add default LMA region argument to call
4979 to lang_leave_output_section_statement.
4980 * ldlang.h: Update prototypes with LMA region arguments.
4981 * ldlang.c (lang_size_sections): Encapsulate region bounds
4982 checking in os_check_region call.
4983 (os_check_region): New function.
4984 (lang_output_section_statement_lookup): Initialize lma_region.
4985 (lang_leave_output_section_statement): Add LMA region argument.
4986 (lang_leave_overlay): Ditto.
4987 * ldgram.y: Handle LMA region syntax.
4988 * ld.texinfo (Output Section Description): Describe LMA region usage.
4989 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 4990 lma region in call to lang_leave_output_section_statement.
562d3460 4991 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 4992 lma region in call to lang_leave_output_section_statement.
562d3460 4993 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 4994 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
4995
4996
9e4ed18c
TW
49972000-02-04 Timothy Wall <twall@redhat.com>
4998
4999 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5000 octets when calculating section end addresses.
5001
32edc927
TW
50022000-02-04 Timothy Wall <twall@redhat.com>
5003
5004 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5005
4cbfc3ac
TW
50062000-02-03 Timothy Wall <twall@redhat.com>
5007
a2b64bed 5008 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 5009 octet count.
a2b64bed 5010 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
5011 print_reloc_statement, print_padding_statement): Print target
5012 address values and section sizes as bytes, not octets.
5013 (insert_pad) Calculate padding size in octets, and adjust "dot"
5014 by bytes.
5015 (size_input_section) Always adjust "dot" by bytes, not octets.
5016 (lang_check_section_addresses, lang_do_assignments) Adjust
5017 "dot" by bytes, not octets. Use the larger of the directive size
5018 or octets_per_byte for the number of octets actually allocated in
5019 the output section.
5020 (lang_set_startof) Make sure STARTOF returns a target address.
5021 (lang_one_common) Record size changes in octets.
5022 (lang_abs_symbol_at_end_of) Section end symbol's value is
5023 recorded in target bytes.
68b2fc7a 5024 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4cbfc3ac 5025 to be clear about behavior when an octet is smaller than one byte.
50bbae35 5026
305c7206
AM
50272000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5028
5029 * ldcref.c (output_cref): Don't pass message strings to printf
5030 as format arg.
5031 Update copyright.
5032
5033 * ldmisc.c (vfinfo): Same here.
5034 Update copyright.
5035
e1c47aa4
AM
50362000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5037
5038 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5039 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5040 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5041 Add missing NULL initialisers, and comments.
5042
5043 * testsuite/ld-srec/sr3.cc (__rethrow): New.
5044
13392b77
NC
50452000-01-21 Nick Clifton <nickc@cygnus.com>
5046
5047 * ldlang.c (lang_size_sections): Fix typo in comment.
5048
cce4c4c5
NC
50492000-01-18 H.J. Lu <hjl@gnu.org>
5050
5051 * ldlang.c (lang_size_sections): Also update the current
5052 address of a region if the SEC_NEVER_LOAD bit is not set.
5053
0decc840
NC
50542000-01-10 Philip Blundell <pb@futuretv.com>
5055
5056 * configure.tgt (arm*-*-conix*): New target.
5057
4e53152f
NC
50582000-01-07 Nick Clifton <nickc@cygnus.com>
5059
5060 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
5061 line switches with -Wl, (or whatever is appropriate) if it is
5062 being invoked by a comnpiler driver program.
50bbae35 5063 Fix description of the behaviour of the -n command line switch.
4e53152f 5064
3b16e843 50652000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
5066
5067 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5068 (name_list): New.
5069 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5070 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5071 (exclude_name_list): New.
5072 ldlang.c (walk_wild_section): Support list of excluded files.
5073 (print_wild_statement): Likewise.
5074 (lang_add_wild): Likewise.
5075 * ldlang.h (lang_wild_statement_type): Likewise.
5076 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 5077
5aaace27
NC
50782000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5079
870df5dc
NC
5080 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5081 (process_def_file): Use.
5082 (pe_dll_compat_implib): New variable.
5083 (make_one): Use.
50bbae35 5084
870df5dc
NC
5085 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5086 pe_dll_compat_implib.
50bbae35
AM
5087
5088 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
5089 compat-implib options.
5090 (gld_${EMULATION_NAME}_list_options): List new options.
5091 (gld_${EMULATION_NAME}_parse_args): Handle.
5092
50bbae35 5093 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 5094 dll.
50bbae35
AM
5095
5096 * deffilep.y (opt_name): Allow "." in name.
5aaace27 5097
2f6d2f85 5098For older changes see ChangeLog-9899
252b5132
RH
5099\f
5100Local Variables:
5101mode: change-log
5102left-margin: 8
5103fill-column: 74
5104version-control: never
5105End:
This page took 0.423856 seconds and 4 git commands to generate.