* emultempl/ppc64elf.em (ppc_before_allocation): New function.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
836c6af1
AM
12002-11-12 Alan Modra <amodra@bigpond.net.au>
2
3 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
4 (LDEMUL_BEFORE_ALLOCATION): Define.
5 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
6 linking.
7 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
8
f8b0dbb8
CF
92002-11-11 Christopher Faylor <cgf@redhat.com>
10
11 * configure.tgt (LIB_PATH): Default to searching w32api directory under
12 cygwin.
13
9e8d33e7
CF
142002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
15
16 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
17 of restricted auto-export libs.
18
75c2ea5b
CF
192002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
20
21 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
22 creative library naming instances like, e.g., libstdc++-2.a.
23
426af4fe
AO
242002-11-06 Alexandre Oliva <aoliva@redhat.com>
25
26 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
27 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
28
c9e38879
NC
292002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
30
31 * deffilep.y (def_lex): Handle '@' as first character of an ID.
32 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
33 (make_one): Don't prefix decorated fastcall symbols with '_'.
34 (pe_process_import_defs): Likewise.
35 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
36 symbols to cdecl names or vise-versa.
37
836c6af1 382002-10-13 Eric Kohl <ekohl@rz-online.de>
c9e38879
NC
39
40 * pe-dll.c (process_def_file): Handle fastcall symbols when
41 generating undecorated aliases. Don't prefix decorated fastcall
42 symbols with '_'.
43 (fill_exported_offsets): Don't prefix decorated fastcall symbols
44 with '_'.
45
df2a7313
DJ
462002-10-29 Daniel Jacobowitz <drow@mvista.com>
47
48 * emultempl/aix.em: Use include <> for generated headers.
49 * emultempl/beos.em: Likewise.
50 * emultempl/elf32.em: Likewise.
51 * emultempl/pe.em: Likewise.
52 * ldctor.c: Likewise.
53 * ldexp.c: Likewise.
54 * ldfile.c: Likewise.
55 * ldlang.c: Likewise.
56 * ldlex.c: Likewise.
57 * ldlex.l: Likewise.
58 * ldmain.c: Likewise.
59 * ldmisc.c: Likewise.
60 * ldwrite.c: Likewise.
61 * lexsup.c: Likewise.
62 * mri.c: Likewise.
63 * pe-dll.c: Likewise.
64
a8927cfd
JJ
652002-10-23 Jakub Jelinek <jakub@redhat.com>
66
67 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
68 sections into .rel{,a}.dyn.
69
63fd3b82
NC
702002-10-23 Nick Clifton <nickc@redhat.com>
71
72 * lexsup.c (OPTION_NO_OMAGIC): Define.
73 (ld_options): Add "no-omagic" option.
74 (parse_args): Parse --no-omagic.
75 * ld.texinfo: Document --no-omagic.
76 * NEWS: Mention new option.
77
36379167
NC
782002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
79
80 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
81 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
82
3ffe58d9
AO
832002-10-22 Alexandre Oliva <aoliva@redhat.com>
84
85 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
86 emulation name. Set LIB_PATH only for native tools, and
87 search the ABI-specific versions of NATIVE_LIB_DIRS before the
88 .../lib variants, not instead of them. Mostly copied from...
89 * emulparams/elf32ppc.sh: ... here. Fixed typo.
90 * emulparams/elf64bmip-defs.sh: Backed out.
91 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
92 * emulparams/elf64btsmip.sh: Likewise.
93 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
94 TEXT_DYNAMIC): Removed.
95
e316b3a0
AO
962002-10-17 Alexandre Oliva <aoliva@redhat.com>
97
98 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
99 (GENERATE_SHLIB_SCRIPT): Set to yes.
100 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
101 * emulparams/elf32bmipn32.sh: here.
102 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
103 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
104 * emulparams/elf64bmip-defs.sh: New file. Extend
105 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
106 * emulparams/elf64bmip.sh: Bring in definitions from
107 elf64bmip-defs.sh.
108 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
109 settings.
110 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
111 * emulparams/elf64btsmip.sh: Bring in definitions from
112 elf64bmip-defs.sh.
113 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
114 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
115
f52d1d64
JJ
1162002-10-16 Jakub Jelinek <jakub@redhat.com>
117
118 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
119 (s390-*-linux*): Add elf64_s390 emulation if want64.
120 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
121 genscript.sh changes.
122 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
123 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
124
03bdc404
AM
1252002-10-15 Alan Modra <amodra@bigpond.net.au>
126
127 * ldlang.c (load_symbols): Revert last change.
128
c6db2f05
AM
1292002-10-14 Alan Modra <amodra@bigpond.net.au>
130
7c519c12
AM
131 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
132 just_syms_flag.
133 (lang_reasonable_defaults): Don't compare against false.
134 (size_input_section): Likewise.
135 (lang_size_sections_1): Likewise.
136 (lang_do_assignments): Likewise.
137 (lang_add_output): Likewise.
138
c6db2f05
AM
139 * Makefile.am: Run "make dep-am".
140 * Makefile.in: Regenerate.
141 * ldver.c: #include "bfdver.h".
142
e1026ffb
SC
1432002-10-13 Stephane Carrez <stcarrez@nerim.fr>
144
145 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
146 .finiN section.
147 * scripttempl/elfm68hc12.sc: Likewise.
148
2d801b0f
AM
1492002-10-11 Alan Modra <amodra@bigpond.net.au>
150
fe213ce2
AM
151 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
152
2d801b0f
AM
153 * ldgram.y (memory_spec): Provide empty action.
154 (section <NAME>): Likewise.
155
599917b8
JJ
1562002-10-10 Jakub Jelinek <jakub@redhat.com>
157
158 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
159 they have OUTPUT_FORMAT not matching actual output format.
160 * ldlang.c (lang_get_output_target): New function.
161 (open_output): Use it.
162 * ldlang.h (lang_get_output_target): New prototype.
163
24cdb50a
AM
1642002-10-10 Alan Modra <amodra@bigpond.net.au>
165
166 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
167 when orphan is .rel, .rela when orphan is .rela.
168 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
169 first. Remove outsecname var.
170
a2b3c630
SC
1712002-10-09 Richard Shann <richard.shann@superh.com>
172 Stephen Clarke <stephen.clarke@superh.com>
173
174 * Makefile.am: Add eshelf32_linux.o and
175 eshlelf32_linux.o, new emulations for sh64 Linux.
176 * Makefile.in: Regenerate.
177 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
178 * emulparams/shelf32_linux.sh: New file.
179 * emulparams/shlelf32_linux.sh: New file.
7c519c12 180
c04c9586
L
1812002-10-08 H.J. Lu <hjl@gnu.org>
182
183 * ldlang.c (lang_file_exist): Removed.
184 (new_afile): Revert the last change.
185 * ldlang.h (lang_file_exist): Removed.
186 * lexsup.c (parse_args): Revert the last change.
187
39cebe23
NC
1882002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
189
190 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
191 auto-import symbols.
192 (make_one): Create _nm_<symbol> for data only.
193
53b2a62f
NC
1942002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
195
196 * ldlang.c (lang_file_exist): New function.
7c519c12 197 (new_afile): Abort if the filename to be added matches the linker
53b2a62f
NC
198 output filename.
199 * ldlang.h: Add prototype for lang_file_exist.
200 * lexsup.c (parse_args): Abort if the output filename matches
201 one of the input filenames.
202
a86a09cc
AM
2032002-10-02 Alan Modra <amodra@bigpond.net.au>
204
205 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
206
ba493122
AM
2072002-09-30 Alan Modra <amodra@bigpond.net.au>
208
1bf0a4d9
AM
209 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
210 * scripttempl/elfm68hc11.sc: Likewise.
211 * scripttempl/elfm68hc12.sc: Likewise.
212
ba493122
AM
213 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
214 reloc sections just before .rel.plt/.rela.plt.
215 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
216 Only put loadable reloc sections in hold_rel.
217
fdb9132d
L
2182002-09-29 H.J. Lu <hjl@gnu.org>
219
42f98619 220 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
fdb9132d 221
ff326826
DJ
2222002-09-25 Daniel Jacobowitz <drow@mvista.com>
223
224 From "Anita Kulkarni" <AnitaK@kpit.com>
225 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
226 sections.
227
0ae1cf52
AM
2282002-09-25 Alan Modra <amodra@bigpond.net.au>
229
1ddd7b13
AM
230 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
231 TARGET_PAGE_SIZE.
232 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
233 SEGMENT_SIZE alignment.
234 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
235 (SEGMENT_SIZE): Define.
236
0ae1cf52
AM
237 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
238 (fold_binary): Correct abs - non-abs case.
239 (fold_trinary): New. Split out from exp_fold_tree.
240
06143382
AM
2412002-09-24 Alan Modra <amodra@bigpond.net.au>
242
243 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
244 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
245 for start of .data, instead align up to 256M boundary.
246 * scripttempl/aix.sc: Likewise.
247
8e616ecc
DD
2482002-09-22 Mark Elbrecht <snowball3@softhome.net>
249
250 * scripttempl/i386go32.sc: Handle bss unique sections.
251
5cfb2bb2
AM
2522002-09-21 Alan Modra <amodra@bigpond.net.au>
253
254 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
255
dd2e0905
SC
2562002-09-17 Stan Cox <scox@redhat.com>
257
258 * emulparams/elf32bmipn32-defs.sh: New file.
259 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
260 * emulparams/elf32btsmipn32.sh: Likewise.
261 * emulparams/elf64bmip.sh: Likewise.
262 * emulparams/elf64btsmip.sh: Likewise.
263
4ada7262
DB
2642002-09-16 Bruno Haible <bruno@clisp.org>
265
266 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
267 elf32-i386-freebsd.
268 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
269 elf64-alpha-freebsd.
270
e09f4395
NC
2712002-09-11 Nick Clifton <nickc@redhat.com>
272
004d9caf
NC
273 * NEWS: New TI port supports both C4x and C3x series of DSPs.
274
e09f4395
NC
275 * po/tr.po: Updated Turkish translation.
276
004d9caf 2772002-09-06 Jeffrey A Law (law@redhat.com)
0b3a6a28 278
7c519c12 279 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
0b3a6a28 280
3e369e96
NC
2812002-09-02 Nick Clifton <nickc@redhat.com>
282
67010b46
NC
283 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
284 __ep.
285 * emulparams/v850.sh (TEMPLATE_NAME): Define.
3e369e96 286
5435462c
NC
2872002-08-30 Nick Clifton <nickc@redhat.com>
288
289 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
290 used. Change INSN to start at 0x01000000 and extend for
291 256K (ignoring holes). Start the STACK on a word aligned
292 boundary.
7c519c12 293 (.rodata): Start it at the READONLY_START_ADDR.
5435462c 294
5c368657
AM
2952002-08-30 Alan Modra <amodra@bigpond.net.au>
296
297 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
298
026df7c5
NC
2992002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
300
301 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
302 added makefile targets for this file.
303 * Makefile.in: Regenerate.
304 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
305 * NEWS: Mention new port.
306
3072002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
308
309 * emulparams/tic3xcoff.sh: New file.
310 * emulparams/tic4xcoff.sh: New file.
311 * scripttempl/tic3xcoff.sc: New file.
312 * scripttempl/tic4xcoff.sc: New file.
313
c89e8944
AM
3142002-08-28 Alan Modra <amodra@bigpond.net.au>
315
316 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
317 strtoul and strtoull with bfd_scan_vma.
318 (gld${EMULATION_NAME}_read_file): Likewise.
319
6459ecfa
AM
3202002-08-28 Alan Modra <amodra@bigpond.net.au>
321
322 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
323
ad5211be
NC
3242002-08-27 Egor Duda <deo@logos-m.ru>
325
326 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
327 Add symbols for application to access them.
328
88f7bcd5
NC
3292002-08-27 Nick Clifton <nickc@redhat.com>
330
331 * emultempl/armelf.em: Revert this patch, it is not needed.
7c519c12 332
88f7bcd5
NC
333 2002-08-22 Adam Nemet <anemet@lnxw.com>
334
8e523c23 3352002-08-20 Dan Kegel <dank@kegel.com>
7c519c12 336
8e523c23
NC
337 * configure.in: added --with-lib-path argument to ld's configure
338 to set LIB_PATH.
339 * ld/NEWS: Document new switch.
340 * ld/README: Mention new switch.
341 * configure: Regenerate.
342 * Makefile.in: Regenerate.
7c519c12 343
8e523c23
NC
344 Based on this patch:
345 2001-04-25 Christopher Faylor <cgf@cygnus.com>
346
347 * Makefile.in (LIB_PATH): Make configurable.
348 (GENSCRIPTS): Set LIB_PATH in environment.
349 * configure.in: Substitute LIB_PATH.
350
d9a7f7ab
NC
3512002-08-22 Adam Nemet <anemet@lnxw.com>
352
353 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
354 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
355 depending on the type of the function.
356 (arm_elf_convert_thumb_symbol_to_address): New function.
357
ed71e111
NC
3582002-08-22 Graeme Peterson <gp@qnx.com>
359
360 * Makefile.am: Add esh{l}elf_nto.o files.
361 * Makefile.in: Regenerate.
362 * configure.tgt: Add support for sh-**-nto* targets.
363 * emulparams/shelf_nto.sh: New file.
364 * emulparams/shlelf_nto.sh: New file.
365
7abb6dea
AM
3662002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
367
368 * ldlang.c (offsetof): Define if not defined.
369
e9229007
L
3702002-08-14 H.J. Lu <hjl@gnu.org>
371
372 * configure.tgt: Always enable 64bit emulations for 32bit
373 Linux/mips.
374
c553bb91
AM
3752002-08-13 Alan Modra <amodra@bigpond.net.au>
376
377 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
378 (MAXPAGESIZE): Set to 1.
379
380 * ld.h (ALIGN_N): Delete.
381 * ldexp.h (align_n): Declare.
382 * ldexp.c (align_n): New function.
383 (fold_binary): Use align_n instead of ALIGN_N.
384 (exp_fold_tree): Likewise.
385 * ldlang.c (lang_size_sections_1): Likewise.
386 (lang_one_common): Likewise.
3c6706bb 387 * ld.texinfo (ALIGN): Remove power of 2 restriction.
c553bb91 388
59bc061d
NC
3892002-07-31 Graeme Peterson <gp@qnx.com>
390
391 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
392 * Makefile.am: Add eelf32{l}ppcnto.o files.
393 * Makefile.in: Regenerate.
394 * emulparams/elf32lppcnto.sh: New file.
395 * emulparams/elf32ppcnto.sh: New file.
396
31941635
L
3972002-08-07 H.J. Lu <hjl@gnu.org>
398
399 * ld.texinfo: Document --no-undefined-version.
400
401 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
402 `script.' fields to 0.
403
404 * ldmain.c (main): Initialize the allow_undefined_version to
405 true.
406
407 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
408 (ld_options): Add --no-undefined-version.
409 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
410
2004afbc
NC
4112002-08-07 Nick Clifton <nickc@redhat.com>
412
413 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
414 an interworking bfd if there are input bfds. (107501)
415
7fc44b9c
AM
4162002-08-06 Alan Modra <amodra@bigpond.net.au>
417
418 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
419 2002-05-10 change.
420
24a1ba0f
NC
4212002-08-01 Nick Clifton <nickc@redhat.com>
422
423 * emulparams/armelf.sh: Revert previous delta.
424 * scripttempl/elf.sc: Revert previous delta.
425
ebc6e014
L
4262002-07-31 H.J. Lu <hjl@gnu.org>
427
428 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
429 --enable-64-bit-bfd.
430
39a2a3eb
L
4312002-07-31 H.J. Lu <hjl@gnu.org>
432
433 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
434 64bit BFD is selected.
435
a0dfa6a8
L
4362002-07-31 H.J. Lu <hjl@gnu.org>
437
438 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
439 if 64bit BFD is selected.
440
f7c33884
NC
4412002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
442
443 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
444 link_info.common_skip_ar_aymbols.
445 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
446
447 * ldmain.c (main): Initialize new field
448 link_info.common_skip_ar_aymbols.
449
8f64befb
NC
4502002-07-31 Adam Nemet <anemet@lnxw.com>
451
452 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
453 to .plt.thumb.
454 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
455 used.
456
500800ca
NC
4572002-07-31 Nick Clifton <nickc@redhat.com>
458
459 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
460 of the PDP-11 and 2.11BSD a.out support.
461
7808a785
TS
4622002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
463
464 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
465 for n32 ABI support.
466 * Makefile.in: Regenerate.
467 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
468 n32 ABI emulations for these 64 bit targets.
469 * emulparams/elf32bmipn32.sh: Expand comment.
470 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
471 n32 ABI.
472 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
473
7e392df6
NC
4742002-07-30 Graeme Peterson <gp@qnx.com>
475
476 * configure.tgt: Add support for arm-*-nto target.
477 * Makefile.am: Add earmnto.o file.
478 * Makefile.in: Regenerate.
479 * NEWS: Mention port of ARM support to QNX.
480 * emulparams/armnto.sh: New file.
481
704afa60
JJ
4822002-07-30 Jakub Jelinek <jakub@redhat.com>
483
484 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
485 for relocatable link.
486 (lang_size_sections_1): Don't make .tbss zero size for relocatable
487 link.
488
7dcd22c2
BS
4892002-07-26 Bernd Schmidt <bernds@redhat.com>
490
491 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
492 (STACK_ADDR): New.
493
219576a4
NC
4942002-07-25 Nick Clifton <nickc@redhat.com>
495
496 * po/sv.po: Updated Swedish translation.
497 * po/es.po: Updated Spanish translation.
498 * po/fr.po: Updated French translation.
499
ff3063f5
NC
5002002-07-24 Nick Clifton <nickc@redhat.com>
501
502 * po/sv.po: Updated Swedish translation.
503 * po/es.po: Updated Spanish translation.
504
0461a601
NC
5052002-07-23 Nick Clifton <nickc@redhat.com>
506
ff3063f5 507 * po/fr.po: Updated French translation.
0461a601 508
25844aae
AM
5092002-07-20 Alan Modra <amodra@bigpond.net.au>
510
511 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
512 bomb on /DISCARD/ input section.
513 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
514 * emultempl/mmo.em (mmo_place_orphan): Likewise.
515
3595bd6e
HPN
5162002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
517
518 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
519 output section.
520
cf88bb9f
NC
5212002-07-16 Denis Chertykov <denisc@overta.ru>
522 Nick Clifton <nickc@redhat.com>
523 Frank Ch. Eigler <fche@redhat.com>
524 John Healy <jhealy@redhat.com>
525
526 * configure.tgt: Add support for ip2k-elf.
527 * Makefile.am: Add support for ip2k-elf.
528 * Makefile.in: Regenerate.
529 * emulparams/elf32ip2k.sh: New file.
530 * scripttempl/ip2k.sc: New file
531 * NEWS: Mention support for new port.
532
2cbb2eef
NC
5332002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
534
535 * NEWS: Add 'Changes in 2.13'.
536
96a94295
L
5372002-07-14 H.J. Lu <hjl@gnu.org>
538
539 * ld.texinfo: Document a .symver takes precedence over a
540 version script.
541
120d20f2
AM
5422002-07-12 Alan Modra <amodra@bigpond.net.au>
543
544 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
545 (COMMONPAGESIZE): Define.
546
0d2ddeb2
AM
5472002-07-09 Alan Modra <amodra@bigpond.net.au>
548
549 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
550
554690ed
AM
5512002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
552
553 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
554 powerpc-*-openbsd* and sparc64-*-openbsd*.
555 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
556 * Makefile.in: Regenerate.
557 * emulparams/hppaobsd.sh: New file.
558
34786259
AM
5592002-07-05 Alan Modra <amodra@bigpond.net.au>
560
561 * ldlang.c (print_wild_statement): Fix output formatting.
562
4bd5a393
AM
5632002-07-04 Alan Modra <amodra@bigpond.net.au>
564
565 * ldlang.c: (strip_excluded_output_sections): New function.
566 (lang_process): Call it.
567 (lang_size_sections_1): Revert 2002-06-10 change.
568
ce4f7385
AM
5692002-07-03 Alan Modra <amodra@bigpond.net.au>
570
571 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
572 Run "make dep-am".
573 * Makefile.in: Regenerate.
574
b7b482a3
AM
5752002-07-02 Alan Modra <amodra@bigpond.net.au>
576
71daf8b4
AM
577 * ldfile.c (ldfile_try_open_bfd): Formatting.
578
b7b482a3
AM
579 * ldmisc.c (demangle): Move so that it doesn't intrude between
580 vfinfo comment and body. Add comment.
581
29e2951e
AM
5822002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
583
584 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
585
e3e942e9
AM
5862002-07-01 Alan Modra <amodra@bigpond.net.au>
587
588 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
589 * ldlang.c (entry_sym): Likewise.
590 (ldlang_undef_chain_list_type): Likewise.
591 (lang_finish): Adjust references to entry_symbol.
592 (lang_add_entry): Likewise.
593 (lang_gc_sections): Use link_info.gc_sym_list.
594 (lang_process): Set link_info.gc_sym_list.
595 * ldlex.l: Include bfdlink.h.
596 * ldmain.c (main): Init link_info.gc_sym_list.
597 * emultempl/aix.em: Adjust references to entry_symbol.
598 * emultempl/armcoff.em: Likewise.
599 * emultempl/armelf.em: Likewise.
600 * emultempl/pe.em: Likewise.
601 * emultempl/ppc64elf.em (ppc_after_open): New function.
602 (LDEMUL_AFTER_OPEN): Define.
603 * emulparams/elf64ppc.sh: KEEP .opd sections.
604
a66c0f2c
SC
6052002-06-29 Stephane Carrez <stcarrez@nerim.fr>
606
607 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
608 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
609 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
610 (EEPROM_START_ADDR): Define.
611 (EEPROM_MEMORY): Define.
612 * emulparams/m68hc12elf.sh: Likewise.
613 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
614 section to put soft registers in .page0.
615 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
616
2b67cf00
JL
6172002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
618
619 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
620 section. Add ${RELOCATING-0}.
621
219576a4 6222002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
164c4054
JR
623
624 * emulparams/shelf.sh (STACK_ADDR): Don't define.
625 (OTHER_SECTIONS): Define.
626 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
627 (OTHER_SECTIONS): Undef.
628
fc28fbc2
AM
6292002-06-26 Alan Modra <amodra@bigpond.net.au>
630
631 * ldmisc.c (demangle): Restore dots stripped from sym name.
632
a13a0de8
L
6332002-06-25 H.J. Lu <hjl@gnu.org>
634
635 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
636 * Makefile.in: Regenerated.
637
b553b183
NC
6382002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
639
640 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
641 the size of attached object files, to allow make the object files
642 available via FTP or HTTP and to mention that the mail will be
643 sent to a mailing list.
644
2755afba
NC
6452002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
646
647 * ld/configure.host (romp): Drop support.
648
7d0a848e
CD
6492002-06-18 Chris Demetriou <cgd@broadcom.com>
650
651 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
652 section flags for SEC_DATA, rather than for SEC_CODE being unset.
653
8505f884
CD
6542002-06-18 Chris Demetriou <cgd@broadcom.com>
655
656 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
657 format specifier used to print BFD name.
658
7d553a40
DB
6592002-06-18 Dave Brolley <brolley@redhat.com>
660
661 From Catherine Moore, Michael Meissner, Jim Blandy:
662 * emulparams/elf32frv.sh: New file.
663 * configure.tgt: Support frv-*-*.
664 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
665 (eelf32frv.c): New target.
666
82434356
TR
6672002-06-17 Tom Rix <trix@redhat.com>
668
a59f3d35 669 * emultempl/elf32.em: gld*_get_script: Check for
82434356
TR
670 GENERATE_COMBRELOC_SCRIPT.
671 * scripttempl/elfd10v.sc : Fix STACK and INSN.
672 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
673
219576a4 6742002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
5d9b5481
JR
675
676 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
677
c4bb8067
L
6782002-06-12 H.J. Lu <hjl@gnu.org>
679
680 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
681 false if xvec doesn't match.
682
e052cfbe
RS
6832002-06-10 Richard Sandiford <rsandifo@redhat.com>
684
685 * ldlang.c (lang_size_sections_1): Skip removed output sections.
686
4da711b1
AM
6872002-06-08 Alan Modra <amodra@bigpond.net.au>
688
689 * ldexp.c: Replace CONST with const.
690 * ldfile.c: Likewise.
691 * ldfile.h: Likewise.
692 * ldlex.l: Likewise.
693 * mri.c: Likewise.
694 * pe-dll.h: Likewise.
695
eb95bb9a
AM
6962002-06-07 Alan Modra <amodra@bigpond.net.au>
697
698 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
699
e0076ab3
NC
7002002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
701
702 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
703 to -1 == implicit enable.
704 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
705 initialize link_info.pei386_auto_import to -1 == implicit
706 enable.
707 (gld_${EMULATION_NAME}_parse_args): When processing
708 --enable-auto-import and --disable-auto-import options, use
709 '1' and '0' instead of 'true' and 'false'.
710 (pe_find_data_imports): Only issue message about auto-import
711 when the feature is implicitly enabled. Downgrade message to
712 informational instead of warning.
713
f13a5424
AM
7142002-06-07 Alan Modra <amodra@bigpond.net.au>
715
716 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
717
1abffd82
JL
7182002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
719
720 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
721 HOSTING_CRT0 and HOSTING_LIBS.
722
e0076ab3 7232002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
7a33bc10
JR
724
725 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
726
4a5e698d
JT
7272002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
728
729 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
730 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
731
1d475d82
AM
7322002-06-05 Alan Modra <amodra@bigpond.net.au>
733
734 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
735 SEC_EXCLUDE sections when doing a relocatable link.
736
5b0e55b6
JT
7372002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
738
739 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
740 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
741 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
742 (eshlelf64_nbsd.c): New rules.
743 * Makefile.in: Regenerate.
744 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
745 (sh64-*-netbsd*): New targets.
746 * emulparams/shelf32_nbsd.sh: New file.
747 * emulparams/shelf64_nbsd.sh: New file.
748 * emulparams/shlelf32_nbsd.sh: New file.
749 * emulparams/shlelf64_nbsd.sh: New file.
750
9ad85d9b
AM
7512002-06-04 Alan Modra <amodra@bigpond.net.au>
752
753 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
754
0c9b4fee
MM
7552002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
756
757 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
758 C++ constructors/destructors, loosely based on the m68hc11 port.
759
2c538bde
AM
7602002-05-31 Alan Modra <amodra@bigpond.net.au>
761
762 * Makefile.in: Regenerate.
763 * aclocal.m4: Regenerate.
764 * config.in: Regenerate.
765 * configure: Regenerate.
766
a0cb91c6
AM
7672002-05-31 Graeme Peterson <gp@qnx.com>
768
769 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
770 (ei386nto.c): Add rule.
771 * Makefile.in: Regenerate.
772 * configure.tgt: Add i[3456]86-*-nto-qnx*.
773 * emulparams/i386nto.sh: New file.
774
37020578
JT
7752002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
776
777 * NEWS: Add entry for VAX ELF support.
778
ab68f3e0 7792002-05-29 Matt Thomas <matt@3am-software.com>
a59f3d35 780 Jason Thorpe <thorpej@wasabisystems.com>
ab68f3e0
JT
781
782 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
783 (eelf32vax.c)
784 (evaxnbsd.c): New rules.
785 * Makefile.in: Regenerate.
786 * configure.tgt (vax-*-netbsdelf*)
787 (vax-*-netbsdaout*)
788 (vax-*-netbsd*): New targets.
789 * emulparams/elf32vax.sh: New file.
790 * emulparams/vaxnbsd.sh: New file.
791
8afb0e02
NC
7922002-05-29 Adam Nemet <anemet@lnxw.com>
793
794 * emultempl/armelf.em (arm_elf_after_open): Don't determine
795 bfd_for_interwork, instead add glue sections to each input bfd.
796 (bfd_for_interwork): New global.
797 (arm_elf_set_bfd_for_interworking): New function.
798 (arm_elf_before_allocation): Use it.
799
d172d4ba
NC
8002002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
801
802 * Makefile.am: Add DLX make target.
803 * configure.tgt: Add DLX configuration.
804 * Makefile.in: Regenerate.
805 * emulparams/elf32_dlx.sh: New file
806 * scripttempl/dlx.sc: New file
807
b4477fa8
NC
8082002-05-27 Per Lundberg <per@caleb.dnsalias.org>
809
810 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
811 * Makefile.in: Regenerate.
812 * emulparams/elf_chaos.sh: Use elf_chaos script.
813 * scripttempl/elf_chaos.sc: New file.
814
ee3cc2e2
RS
8152002-05-27 Richard Sandiford <rsandifo@redhat.com>
816
817 * ldlang.c (lang_size_sections_1): Move check for conflicting load
818 addresses and regions from here...
819 (lang_get_regions): ...to this new function.
820 (lang_leave_output_section_statement): Use lang_get_regions.
821 (lang_leave_overlay): Likewise.
822 * mri.c (mri_draw_tree): Pass null as last argument to
823 lang_leave_output_section_statement.
824 * emultempl/elf32.em (gld*_place_orphan): Likewise.
825 * emultempl/mmo.em (mmo_place_orphan): Likewise.
826 * emultempl/pe.em (gld*_place_orphan): Likewise.
827
aa501e5c
JT
8282002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
829
830 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
831
658957db
KH
8322002-05-25 Kazu Hirata <kazu@cs.umass.edu>
833
834 * ldemul.c: Fix formatting.
835 * ldfile.c: Likewise.
836 * pe-dll.c: Likewise.
837 * pe-dll.h: Likewise.
838
3511b595
AM
8392002-05-25 Alan Modra <amodra@bigpond.net.au>
840
0d6d936f
AM
841 * ldlang.c (lang_process): Formatting, grammar.
842
3511b595
AM
843 * ldlex.l: Use #include "" instead of <> for local header files.
844
436e8db0
NC
8452002-05-24 TAMURA Kent <kent@netbsd.org>
846
847 * configure.tgt: Add a target for i386-netbsdpe.
848
13ae64f3
JJ
8492002-05-23 Jakub Jelinek <jakub@redhat.com>
850
851 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
852 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
853 output section if necessary. Handle .tbss.
854 (lang_size_sections): Clear _raw_size for .tbss section
855 (it allocates space in PT_TLS segment only).
856 * ldwrite.c (build_link_order): Build link order for .tbss too.
857
68b2fc7a
AM
8582002-05-23 Alan Modra <amodra@bigpond.net.au>
859
860 * configure.in: Correct spelling of AC_PREREQ.
861
70b0be79
CF
8622002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
863
864 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
865 default.
866 (autofilter_objlist): Add crtbegin.o, crtend.o.
867
8682002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
869
870 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
871 (longopts): Add new option --exclude-libs.
872 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
873 (gld_${EMULATION_NAME}_parse_args): Use it.
874 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
875 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
876 from whole archives.
877 (pe_dll_add_excludes): Set excludes->type.
878 (auto_export): Add new variable libname and set to archive basename if
879 abfd. Use it when filtering default and user-specified libarary
880 excludes. Let string "ALL" mean all libs when filtering user-specified
881 libs.
882 * ld.texinfo: Document --exclude-libs.
883
fac1652d
AM
8842002-05-22 Alan Modra <amodra@bigpond.net.au>
885
886 * ldemul.c (ldemul_new_vers_pattern): New function.
887 * ldemul.h (ldemul_new_vers_pattern): Declare.
888 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
889 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
890 * emultempl/ppc64elf.em (dotsyms): New static var.
891 (gld${EMULATION_NAME}_new_vers_pattern): New function.
892 (LDEMUL_NEW_VERS_PATTERN): Define.
893 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
894 (PARSE_AND_LIST_LONGOPTS): Likewise.
895 (PARSE_AND_LIST_ARGS_CASES): Handle them.
896 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
897 initialiser.
898 * emultempl/armcoff.em: Likewise.
899 * emultempl/armelf_oabi.em: Likewise.
900 * emultempl/beos.em: Likewise.
901 * emultempl/elf32.em: Likewise.
902 * emultempl/generic.em: Likewise.
903 * emultempl/gld960.em: Likewise.
904 * emultempl/gld960c.em: Likewise.
905 * emultempl/linux.em: Likewise.
906 * emultempl/lnk960.em: Likewise.
907 * emultempl/m68kcoff.em: Likewise.
908 * emultempl/mipsecoff.em: Likewise.
909 * emultempl/pe.em: Likewise.
910 * emultempl/sunos.em: Likewise.
911 * emultempl/ticoff.em: Likewise.
912 * emultempl/vanilla.em: Likewise.
913
eb3d6bb8
AM
9142002-05-22 Alan Modra <amodra@bigpond.net.au>
915
916 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
917 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
918 (LIB_SEARCH_DIRS): No need to use "tr".
919 (COMPILE_IN): Only set for native targets.
920 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
921 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
922 * configure.tgt (powerpc*): Set tdir_*.
923 (powerpcle*): Correct targ_extra_emuls.
924 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
925 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
926
54f24647
AM
9272002-05-22 Alan Modra <amodra@bigpond.net.au>
928
929 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
930 calling lang_add_entry.
931
aa713662
L
9322002-05-21 H.J. Lu (hjl@gnu.org)
933
934 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
935 "-z muldefs".
936 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
937
938 * ld.texinfo: Updated for --allow-multiple-definition and
939 "-z muldefs".
940
941 * ldmain.c (main): Initialize the allow_multiple_definition
942 field to false.
943
944 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
945 (ld_options): Add --allow-multiple-definition.
946 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
947
658f2588
JT
9482002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
949
950 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
951 (earmelfb_nbsd.c): New rule.
a59f3d35 952 * Makefile.in: Regenerate.
658f2588 953 * configure.tgt (armeb-*-netbsdelf*): New target.
a59f3d35 954 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
658f2588
JT
955 (arm-*-netbsd*): Likewise.
956 * emulparams/armelfb_nbsd.sh: New file.
957
ca10c62d
TR
9582002-05-18 Tom Rix <trix@redhat.com>
959
a59f3d35 960 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
ca10c62d
TR
961 support.
962
fae1e84f
MM
9632002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
964
965 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
966 * Makefile.in: Regenerate.
967 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
968
7c8bf1e8
MM
9692002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
970
971 * emulparams/avr1.sh: New file.
972 * emulparams/avr2.sh: New file.
973 * emulparams/avr3.sh: New file.
974 * emulparams/avr4.sh: New file.
975 * emulparams/avr5.sh: New file.
976 * scripttempl/avr.sc: New file.
977
c2c01aa7
AM
9782002-05-15 Alan Modra <amodra@bigpond.net.au>
979
980 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
981 (lang_place_orphans): Abort if just_syms_flag.
982
f1f0d9ab
TR
9832002-05-10 Tom Rix <trix@redhat.com>
984
a59f3d35 985 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
f1f0d9ab
TR
986 architecture and machine information in the output bfd.
987 (gld*_before_parse): Remove old arch and machine code.
988 (choose_target): Rename to gld*_choose_target.
a59f3d35
AM
989 (rtld): Change type to int.
990 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
f1f0d9ab
TR
991 objects in XCOFF archives.
992 * ldfile.h: Update copyright date.
993
f4d73366
JJ
9942002-05-10 Jakub Jelinek <jakub@redhat.com>
995
996 * ldmain.c (main): Enable -z combreloc by default.
997
d3d8a9ee
NC
9982002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
999
1000 * Makefile.am: Honour DESTDIR.
1001 * Makefile.in: Regenerate.
1002
9f88b410
RS
10032002-05-07 Richard Sandiford <rsandifo@redhat.com>
1004
1005 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1006 (lang_enter_overlay): Remove the last two parameters.
1007 (lang_leave_overlay): Take them here instead.
1008 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1009 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1010 than lang_enter_overlay.
1011 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1012 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1013 (lang_size_sections_1): Evaluate it.
1014 (lang_leave_output_section_statement): Rework LMA lookup.
1015 (overlay_lma, overlay_nocrossrefs): Remove.
3511b595 1016 (lang_enter_overlay): Remove LMA and crossref arguments.
9f88b410
RS
1017 (lang_enter_overlay_section): Don't set the LMA here.
1018 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1019 assignment to the last section's update_dot_tree. Unconditionally
1020 use the load and run-time regions specified in the OVERLAY statement.
1021 Likewise the first section's LMA. Only set the other sections' LMAs
1022 when no load region is given.
1023
b9a743c8
NC
10242002-05-06 Nick Clifton <nickc@redhat.com>
1025
1026 * po/sv.po: New translation.
1027
a3d60be3
AM
10282002-05-04 Alan Modra <amodra@bigpond.net.au>
1029
1030 * emultempl/hppaelf.em (build_section_lists): New function.
1031 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1032 and build_section_lists.
1033
b7a26f91
KH
10342002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1035
1036 * ld.h: Fix formatting.
1037 * ldexp.c: Likewise.
1038 * ldfile.c: Likewise.
1039 * ldlang.c: Likewise.
1040 * ldmain.c: Likewise.
1041 * lexsup.c: Likewise.
1042 * pe-dll.c: Likewise.
1043
805fc799
AM
10442002-05-02 Alan Modra <amodra@bigpond.net.au>
1045
1046 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1047 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1048 (build_section_lists): Do output_section tests here.
1049
cc7e59b2
TR
10502002-04-30 Tom Rix <trix@redhat.com>
1051
1052 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1053
9c1d81c1
AM
10542002-05-01 Alan Modra <amodra@bigpond.net.au>
1055
1056 Long branch stubs, multiple stub sections.
1057 * emultempl/ppc64elf.em: Include ldctor.h.
1058 (stub_file): New var.
1059 (group_size): New var.
1060 (ppc_create_output_section_statements): New function.
1061 (struct hook_stub_info): New.
1062 (hook_in_stub): New function.
1063 (ppc_add_stub_section): New function.
1064 (ppc_layout_sections_again): New function.
1065 (build_section_lists): New function.
1066 (gld${EMULATION_NAME}_finish): Rewrite.
1067 (real_func): New var.
1068 (ppc_for_each_input_file_wrapper): New function.
1069 (ppc_lang_for_each_input_file): New function.
1070 (lang_for_each_input_file): Define.
1071 (PARSE_AND_LIST_PROLOGUE): Define.
1072 (PARSE_AND_LIST_LONGOPTS): Define.
1073 (PARSE_AND_LIST_OPTIONS): Define.
1074 (PARSE_AND_LIST_ARGS_CASES): Define.
1075 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1076
aa67bccf
TR
10772002-04-30 Tom Rix <trix@redhat.com>
1078
a59f3d35
AM
1079 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1080 -blibpath, -bnolibpath support.
1081
94349e12
MM
10822002-04-30 Mark Mitchell <mark@codesourcery.com>
1083
1084 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1085 (eelf32ppcwindiss.c): New target.
1086 * Makefile.in: Regenerated.
1087 * configure.tgt: Add support for powerpc-*-windiss.
1088 * emulparams/elf32ppcwindiss.sh: New file.
a59f3d35 1089
7b17f854
RS
10902002-04-30 Richard Sandiford <rsandifo@redhat.com>
1091
1092 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1093 * ldexp.c (exp_print_token): Add "infix_p" argument.
1094 (exp_print_tree): Update accordingly.
1095
596dafeb
AM
10962002-04-28 Alan Modra <amodra@bigpond.net.au>
1097
1098 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1099 * Makefile.in: Regenerate.
1100 * mpw-elfmips.c: Delete.
1101 * mpw-eppcmac.c: Delete.
1102 * mpw-esh.c: Delete.
1103 * mpw-idtmips.c: Delete.
1104
219576a4 11052002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
1106
1107 * emulparams/shelf32.sh (MACHINE): Now sh5.
1108
944cd72c
TS
11092002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1110
1111 * ldgram.y: Fix syntax warning.
1112
5835c212
NC
11132002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1114
1115 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1116 to prevent "-n" from being taken as an abbreviation for
1117 "--no-pipeline-knowledge".
1118
024531e2
AM
11192002-04-08 Alan Modra <amodra@bigpond.net.au>
1120
d08a14c3
AM
1121 * ldlang.c (lang_size_sections_1): Don't complain about
1122 SEC_NEVER_LOAD sections having no memory region specified.
1123
024531e2
AM
1124 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1125
c657a1f0
MG
11262002-04-07 matthew green <mrg@redhat.com>
1127
1128 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1129
61bef6f1
AM
11302002-04-04 Alan Modra <amodra@bigpond.net.au>
1131
1132 * dep-in.sed: Cope with absolute paths.
1133 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1134 Run "make dep-am".
1135 * Makefile.in: Regenerate.
1136
49ba2791
TS
11372002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1138
1139 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1140
50e60fb5
JJ
11412002-04-03 Jakub Jelinek <jakub@redhat.com>
1142
1143 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1144 is smaller than maximum, round dot up to common page boundary.
1145
6f12f4ca
AM
11462002-03-28 Alan Modra <amodra@bigpond.net.au>
1147
1148 * configure.host: Set up for generic hosts first, then tweak as
1149 necessary in more specific targets.
1150 (HOSTING_LIBS): Include libgcc_eh.a if found.
1151
a8f1f017
AJ
11522002-03-23 Andreas Jaeger <aj@suse.de>
1153
1154 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1155
1d3fdf38
AM
11562002-03-21 Alan Modra <amodra@bigpond.net.au>
1157
1158 * Makefile.am: Run "make dep-am".
1159 * Makefile.in: Regenerate.
1160
79b1faa8
AM
11612002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1162
1163 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1164
fcf0e35b
AM
11652002-03-20 Alan Modra <amodra@bigpond.net.au>
1166
1167 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1168 add the symbol to the linker hash table immediately.
1169 (lang_place_undefineds): Split symbol creation out..
1170 (insert_undefined): ..to here.
1171
fed2999d
DB
11722002-03-18 David O'Brien <obrien@FreeBSD.org>
1173
1174 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1175 the contents of the buffer returned from basename function will are
1176 getting overwritten while still being used.
1177
219576a4
NC
11782002-03-18 Jan Hubicka <jh@suse.cz>
1179 Andreas Jaeger <aj@suse.de>
1180 Andreas Schwab <schwab@suse.de>
beb43bb9
JH
1181
1182 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1183 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1184 set libraries to default to lib64 paths.
1185
eb1e0e80
NC
11862002-03-18 Tom Rix <trix@redhat.com>
1187
1188 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1189 * configure.tgt : Same.
1190 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1191 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1192 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1193 emulation parameters for better -b32, -b64 support.
1194 * emulparms/aixrs6.sh : Same.
1195 * emulparms/ppcmacos.sh : Same.
1196 * emultempl/aix.em (choose_target) : Use new emulation parameters
1197 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1198 * Makefile.in : Regenerate.
1199
a1c259a1
NC
12002002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1201
1202 * po/fr.po: Updated version.
1203
862120bd
AM
12042002-03-18 Alan Modra <amodra@bigpond.net.au>
1205
1206 * ldmain.c (main): Move .text readonly flag fudges from here..
1207 * ldlang.c (lang_process): ..to here.
1208
d35a52e2
AM
12092002-03-14 Alan Modra <amodra@bigpond.net.au>
1210
1211 * ldlang.c (lang_check): Remove the word size check added in last
1212 change. Treat emitrelocations case as for relocatable links.
1213
9ce88e60
NC
12142002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1215
1216 * po/fr.po: Updated version.
1217
30cba025
AM
12182002-03-13 Alan Modra <amodra@bigpond.net.au>
1219
1220 * ldlang.c (lang_check): Do relocatable link checks first, so that
1221 warn_mismatch can't override. Check compatible and word size too.
1222
84ec0e6d
DJ
12232002-03-07 Daniel Jacobowitz <drow@mvista.com>
1224
1225 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1226
2d13d8c5
JJ
12272002-03-05 Jakub Jelinek <jakub@redhat.com>
1228
1229 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1230 DATA_SEGMENT_ALIGN.
1231
b5090659
L
12322002-03-04 H.J. Lu <hjl@gnu.org>
1233
1234 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1235 .fini_array in the data segment.
1236
f42ce16e
AM
12372002-03-04 Alan Modra <amodra@bigpond.net.au>
1238
1239 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1240
de77b6ac
RH
12412002-03-01 David Mosberger <davidm@hpl.hp.com>
1242
1243 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1244 .init_array, and .fini_array.
1245
997e08c0
AS
12462002-02-20 Andreas Schwab <schwab@suse.de>
1247
1248 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1249 .IA64_unwind* in a relocatable link.
1250
9a66911f
NC
12512002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1252
1253 * NEWS: Mark 2.12 branch.
1254
d86bcc10
MS
12552002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1256
1257 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1258 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1259
69f284c7
TR
12602002-02-18 Tom Rix <trix@redhat.com>
1261
1262 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1263 (gld*_before_allocation): Same.
a8f1f017 1264 (gld*_create_output_section_statements): Generate
69f284c7
TR
1265 __rtinit if run time linking. Add librtl.a to the link.
1266 (gld*_read_file): Clean.
1267
82bd7b59
AM
12682002-02-18 Alan Modra <amodra@bigpond.net.au>
1269
1270 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1271
ac3e50bf
DB
12722002-02-18 David O'Brien <obrien@FreeBSD.org>
1273
6a7f963b 1274 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
ac3e50bf
DB
1275 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1276 and eelf64alpha_fbsd.
6a7f963b 1277 * Makefile.in: Regenerate.
ac3e50bf
DB
1278 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1279 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1280 use a FreeBSD-specific emulation rather than the psABI one.
1281 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1282 for all FreeBSD ELF systems.
1283 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1284 emulation.
1285 * emulparams/elf32ppc_fbsd.sh: Likewise.
1286 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1287 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1288 * emulparams/elf64alpha_fbsd.sh: Likewise.
1289 * emulparams/elf_i386_fbsd.sh: Likewise.
1290 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1291
6ad738c5
NC
12922002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1293
1294 * po/tr.po: Updated version.
1295
9673c93c
AM
12962002-02-18 Alan Modra <amodra@bigpond.net.au>
1297
1298 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1299 (FILL): Likewise.
1300
1c5e6447
HPN
13012002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1302
1303 * emultempl/mmo.em (mmo_after_open): Don't call
1304 _bfd_mmix_check_all_relocs when producing ELF output.
1305
8bb57516
RH
13062002-02-15 Richard Henderson <rth@redhat.com>
1307
de77b6ac 1308 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
8bb57516
RH
1309 definition. Emit a unop+nop pair.
1310
49fda6c8
HPN
13112002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1312
83c2d653
HPN
1313 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1314 for presence of .MMIX.reg_contents.linker_allocated before early
1315 exit.
1316
49fda6c8
HPN
1317 * NEWS: Mention support for MMIX.
1318
2c382fb6
AM
13192002-02-15 Alan Modra <amodra@bigpond.net.au>
1320
1321 Support arbitrary length fill patterns.
a139d329
AM
1322 * ld.texinfo (Output Section Fill): Describe fill expressions.
1323 (FILL): Refer to the above.
2c382fb6
AM
1324 * ldexp.h (etree_value_type): Add "str" field.
1325 (union etree_union): Add "str" to "value" struct.
1326 (exp_bigintop): Declare.
1327 (exp_get_fill): Declare.
1328 * ldexp.c: Include "safe-ctype.h".
1329 (exp_intop): Set value.str to NULL.
1330 (exp_bigintop): New function.
1331 (new_rel): Pass in "str", and set new.str from it.
1332 (new_rel_from_section): Set new.str to NULL.
1333 (fold_name): Adjust calls to new_rel.
1334 (exp_fold_tree): Likewise.
1335 (exp_get_fill): New function.
1336 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1337 (INT): Returns a "bigint". Adjust all code handling INTs.
1338 (fill_opt): Returns a "fill".
1339 (fill_exp): Split out of fill_opt, use for FILL.
1340 * ldlang.h (struct _fill_type): New.
1341 (fill_type): Move typedef to ldexp.h.
1342 (lang_output_section_statement_type): "fill" is now a pointer.
1343 (lang_fill_statement_type): Likewise.
1344 (lang_padding_statement_type): Likewise.
1345 (lang_add_fill): Now takes a "fill_type *" param.
1346 (lang_leave_output_section_statement): Likewise.
1347 (lang_do_assignments): Likewise.
1348 (lang_size_sections): Likewise.
1349 (lang_leave_overlay_section): Likewise.
1350 (lang_leave_overlay): Likewise.
1351 * ldlang.c: Include ldgram.h after ldexp.h.
1352 (lang_output_section_statement_lookup): Adjust for fill_type change.
1353 (print_fill_statement): Likewise.
1354 (print_padding_statement): Likewise.
1355 (insert_pad): Now takes a "fill_type *" arg.
1356 (size_input_section): Likewise.
1357 (lang_size_sections_1): Likewise.
1358 (lang_size_sections): Likewise.
1359 (lang_do_assignments): Likewise.
1360 (lang_add_fill): Likewise.
1361 (lang_leave_output_section_statement): Likewise.
1362 (lang_leave_overlay_section): Likewise.
1363 (lang_leave_overlay): Likewise.
1364 Adjust all callers of the above function.
1365 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1366 starting with "0X" as well as "0x". Return bigint.str for hex
1367 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1368 Always use base 16 for numbers starting with "$".
1369 * ldmain.c: Include ldgram.h after ldexp.h.
1370 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1371 of bfd_fill_link_order.
1372 * pe-dll.c: Adjust lang_do_assignments calls.
1373 * emultempl/elf32.em: Likewise.
1374 * emultempl/hppaelf.em: Likewise.
1375 * emultempl/ppc64elf.em: Likewise.
1376 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1377 lang_add_assignment call.
1378 * emultempl/pe.em: Likewise.
1379
313e35ee
AM
13802002-02-14 Phil Edwards <pme@gcc.gnu.org>
1381
a139d329 1382 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
313e35ee
AM
1383 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1384 the pattern in question is not a regexp.
1385 * ldlang.c: Likewise.
1386 * ldlang.h: Likewise.
1387 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1388
2d20f7bf
JJ
13892002-02-12 Jakub Jelinek <jakub@redhat.com>
1390
1391 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1392 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1393 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1394 * ldexp.c (exp_data_seg): New variable.
1395 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1396 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1397 (exp_fold_tree): Handle DATA_SEGMENT_END.
1398 Pass allocation_done when recursing instead of hardcoding
1399 lang_allocating_phase_enum.
1400 * ldexp.h (exp_data_seg): New.
1401 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1402 (lang_size_sections): New.
1403 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1404 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1405 if COMMONPAGESIZE is defined.
1406 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1407 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1408 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1409 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1410 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1411 libraries only.
1412
06880219
AM
14132002-02-11 Alan Modra <amodra@bigpond.net.au>
1414
1415 * Makefile.in: Regenerate.
1416
37b0ac0f
DJ
14172002-02-10 Daniel Jacobowitz <drow@mvista.com>
1418
1419 * lexsup.c: Remove strtoul declaration.
1420
4e5bae56
DJ
14212002-02-10 Daniel Jacobowitz <drow@mvista.com>
1422
1423 * ldmain.c: Add prototype for main ().
1424 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1425 * emultempl/lnk960.em (lnk960_choose_target): Function should
1426 take two arguments.
1427
1e281515
AM
14282002-02-10 Alan Modra <amodra@bigpond.net.au>
1429
1430 * ldlang.c (entry_section): New initialised variable.
1431 (lang_finish): Use it.
1432 * ldlang.h (entry_section): Declare.
1433 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1434 entry_section to ".opd".
1435
f92d92ff 14362002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
1437
1438 * ld.texinfo (Options): Add back in -nostdlib documentation,
1439 which had been inadvertently removed.
1440
74c44237
HPN
14412002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1442
1443 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1444 register section vma to a sane value after emitting error. Make
1445 fatal conditions cause program exit when emitting message.
1446
5e37cc46
NC
14472002-02-08 Ivan Guzvinec <ivang@opencores.org>
1448
1449 * configure.tgt: Add or32-*-rtems target.
1450
2d92cb7d
AO
14512002-02-08 Alexandre Oliva <aoliva@redhat.com>
1452
1453 Contribute sh64-elf.
1454 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1455 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1456 in OTHER_RELOCATABLE_SECTIONS.
1457 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1458 * emulparams/shelf32.sh (STACK_ADDR): Define.
1459 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1460 (OTHER_SECTIONS): this. Removed stack settings.
1461 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1462 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1463 2001-03-12 DJ Delorie <dj@redhat.com>
1464 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1465 relaxing if any shmedia or mixed sections are found.
1466 2001-03-07 DJ Delorie <dj@redhat.com>
1467 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1468 einfo. Gracefully decline to output to non-elf formats.
1469 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1470 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1471 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1472 * emulparams/shelf32.sh: Ditto.
1473 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1474 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1475 comment.
1476 2001-01-10 Ben Elliston <bje@redhat.com>
1477 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1478 non-portable shell constructs. From Hans-Peter Nilsson.
1479 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1480 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1481 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1482 dependencies to the shell script include chain.
1483 * Makefile.in: Regenerate.
1484 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1485 * emultempl/sh64elf.em: Update and tweak comments.
1486 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1487 make a .cranges section SEC_IN_MEMORY.
1488 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1489 * emultempl/sh64elf.em
1490 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1491 .cranges section found to be necessary; continue and set stored
1492 section contents flags for sections with non-mixed contents.
1493 Use a struct sh64_section_data container and sh64_elf_section_data
1494 to store contents-type flags.
1495 Remove unused update of "isec".
1496 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1497 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1498 access contents-type flags. Assert that the associated container
1499 is initialized. Use that container, not elf_gp_size, to hold size
1500 of linker-generated cranges contents.
1501 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1502 * emultempl/sh64elf.em
1503 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1504 there's already a .cranges section. When section flag difference
1505 is found, don't NULL-check cranges a second time. Tweak comments.
1506 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1507 merging, not max size, as size of ld-generated .cranges contents.
1508 Don't set ELF section flags in output section. When checking for
1509 needed .cranges descriptors, don't use a variable; compare
1510 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1511 comments.
1512 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1513 * emultempl/sh64elf.em: New file.
1514 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1515 * Makefile.in: Regenerate.
1516 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1517 (OTHER_RELOCATING_SECTIONS): Ditto.
1518 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1519 * emulparams/shlelf32.sh: Stub out all settings except
1520 OUTPUT_FORMAT. Source shelf32.sh.
1521 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1522 OTHER_RELOCATING_SECTIONS.
1523 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1524 * emulparams/shlelf64.sh: Stub out all settings except
1525 OUTPUT_FORMAT. Source shelf64.sh.
1526 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1527 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1528 .cranges section.
1529 (DATA_START_SYMBOLS): Define, provide ___data.
1530 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1531 for consecutive .data section.
1532 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1533 section after .data section.
1534 * emulparams/shlelf64.sh: Ditto.
1535 * emulparams/shelf32.sh: Ditto.
1536 (ALIGNMENT): Define to 8.
1537 * emulparams/shelf32.sh: Ditto.
1538 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1539 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1540 built-in linker scripts.
1541 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1542 * emulparams/shlelf64.sh: New.
1543 * emulparams/shelf64.sh: New.
1544 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1545 targ_extra_emuls.
1546 * Makefile.am: Add support for shlelf64 and shelf64.
1547 * Makefile.in: Regenerate.
1548 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1549 * configure.tgt (sh64-*-elf*): Add shelf as default.
1550 Add shlelf to targ_extra_emuls.
1551 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1552 * emulparams/shelf32.sh: New file.
1553 * emulparams/shlelf32.sh: New file.
1554 * Makefile.am: Add support for shlelf32 and shelf32.
1555 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1556 * Makefile.in: Regenerate.
1557
e3dc8847
HPN
15582002-02-05 Hans-Peter Nilsson <hp@axis.com>
1559
1560 * ldlang.c (lang_reset_memory_regions): Rename from
1561 reset_memory_regions. Change all callers. Make public.
1562 * ldlang.h (lang_reset_memory_regions): Prototype.
1563 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1564 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
1565 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1566 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 1567
8017dbcb
HPN
15682002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1569
1570 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1571 arithmetic when checking for too many global registers.
1572
006336b8
JT
15732002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1574
1575 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1576 (ehppanbsd.c): New rule.
1577 * Makefile.in: Regenerate.
1578 * configure.tgt (hppa*-*-netbsd*): New target.
1579 * emulparams/hppalinux.sh: Add comment to check other files
1580 that source this file it is modified, and list which
1581 files that do.
1582 * emulparams/hppanbsd.sh: New file.
1583
da1f2fec
GK
15842002-02-01 Geoffrey Keating <geoffk@redhat.com>
1585
1586 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1587 stack.
1588
48fa4a5d
HPN
15892002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1590
1591 Support on-demand global register allocation from
1592 R_MMIX_BASE_PLUS_OFFSET relocs.
1593 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1594 mmix_set_reg_section_vma. Call
1595 _bfd_mmix_finalize_linker_allocated_gregs.
1596 (mmix_before_allocation): New function.
1597 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1598 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1599 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1600 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1601 before .MMIX.reg_contents.
1602 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1603 (mmo_after_open): New function.
1604 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1605 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1606 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1607
3b16e843
NC
16082002-01-31 Ivan Guzvinec <ivang@opencores.org>
1609
1610 * emulparams/or32.sh: New file.
1611 * emulparams/or32elf.sh: New file.
1612 * scripttempl/or32.sc: New file.
1613 * configure.tgt : Add support for or32.
1614 * configure: Regenerate
1615 * Makefile.am: Add support for or32.
1616 * Makefile.in: Regenerate.
1617 * NEWS: Mention support for or32.
1618 * po/ld.pot: Regenerate.
1619
f744d540 16202002-01-29 Chris Demetriou <cgd@broadcom.com>
313e35ee 1621 Mitch Lichtenberg <mpl@broadcom.com>
f744d540
CD
1622
1623 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1624 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1625 reloc creation (ld --embedded-relocs).
1626
4867be41
DJ
16272002-01-27 Daniel Jacobowitz <drow@mvista.com>
1628
1629 * configure: Regenerated.
1630
cd8e197b
HPN
16312002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1632
1633 * Makefile.am (install): Depend on install-info.
1634 * Makefile.in: Regenerate.
1635
9cb61eab
AM
16362002-01-26 Christian Rose <menthos@menthos.com>
1637
1638 * ldmain.c (main): Use full sentences to ease translation.
1639
1caa7b23
NC
16402002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1641
1642 * po/fr.po: Updated version.
1643
1ddbd152
NC
16442002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1645
1646 * po/es.po: Updated version.
1647
1e84433f
AJ
16482002-01-25 Andreas Jaeger <aj@suse.de>
1649
1650 * ldlex.l (yy_input): Correct error check.
1651
6d39955e
AM
16522002-01-25 Alan Modra <amodra@bigpond.net.au>
1653
1654 * ldmisc.c (demangle): Put back dots when string not demangled.
1655
a9ed1e1b
RH
16562002-01-22 Richard Henderson <rth@redhat.com>
1657
1658 * emulparams/elf64alpha.sh (NOP): Use unop.
1659
968ec2b9
AJ
16602002-01-21 Andreas Jaeger <aj@suse.de>
1661
1662 * ldlex.l: Use fread instead of read.
1663
9596feea
JT
16642002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1665
1666 * configure.tgt (ia64-*-netbsd*): New target.
1667
493a6d47
L
16682002-01-21 H.J. Lu <hjl@gnu.org>
1669
1670 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1671 0.
1672 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1673
2a538ba5
AJ
16742002-01-18 Andreas Jaeger <aj@suse.de>
1675
1676 * ldver.c (ldversion): Update year.
1677
328577ad
NC
16782002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1679
1680 * po/ld.pot: Regenerate.
1681
1f808cd5
AM
16822002-01-16 Alan Modra <amodra@bigpond.net.au>
1683
1684 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1685 * Makefile.in: Regenerate.
1686 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1687 * emultempl/ppc64elf.em: New file.
1688
335c5610
DD
16892002-01-15 DJ Delorie <dj@redhat.com>
1690
1691 * scripttempl/pe.sc: Add support for constructor priorities.
1692
c40bbade
DC
16932002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1694
1695 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1696 * emulparams/avr23xx.sh: Likewise.
1697 * emulparams/avr4433.sh: Likewise.
1698 * emulparams/avr44x4.sh: Likewise.
1699 * emulparams/avr85xx.sh: Likewise.
1700 * emulparams/avrmega103.sh: Likewise.
1701 * emulparams/avrmega161.sh: Likewise.
1702 * emulparams/avrmega603.sh: Likewise.
1703 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1704
34efb449
AO
17052002-01-08 Alexandre Oliva <aoliva@redhat.com>
1706
1707 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1708 archive is excluded.
1709
8d05742f
JT
17102002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1711
1712 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 1713 (eshelf_nbsd.c): New rule.
8d05742f
JT
1714 (eshlelf_nbsd.c): New rule.
1715 * Makefile.in: Regenerate.
1716 * configure.tgt (sh*le-*-netbsdelf*): New target.
1717 (sh*-*-netbsdelf*): New target.
1718 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1719 * ld/emulparams/shelf_nbsd.sh: New emulation.
1720 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1721
be2d1673
NC
17222002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1723
1724 * po/es.po: New file: Spanish translation.
1725 * configure.in (ALL_LINGUAS): Add es.
1726 * configure: Regenerate.
1727
dbab7a7b
NC
17282002-01-06 John Marshall <jmarshall@acm.org>
1729
1730 * ld.texinfo: Note that --emit-relocs is currently only
1731 implemented for ELF.
1732
3dfe7a8c
AM
17332002-01-05 Alan Modra <amodra@bigpond.net.au>
1734
1735 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1736 of bfd_section_list_remove and bfd_section_list_insert macros.
1737 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1738 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1739
8a8b2d4b
AJ
17402002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1741
1742 * configure.tgt (x86_64-*-netbsd*): New target.
1743
9a4c7f16
TR
17442001-12-21 Tom Rix <trix@redhat.com>
1745
8a8b2d4b 1746 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
1747 For -binitfini support.
1748 * emultempl/aix.em (gld*_before_parse): Fix comment.
1749 * emultempl/aix.em (gld*_parse_args): Fix comment.
1750
3695c299
AM
17512001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1752
cf86e6df
AM
1753 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1754 mips*el-*-netbsd*.
1755 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1756
3695c299
AM
1757 * configure.tgt (arm-*-netbsdelf*): Add target.
1758 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1759 * emulparams/armelf_nbsd.sh: Added.
1760 * Makefile.am: Add rules for earmelf_nbsd.
1761 * Makefile.in: Regenerate.
1762
97cb79ae
AJ
17632001-12-19 Andreas Jaeger <aj@suse.de>,
1764 Susanne Oberhauser <froh@suse.de>
1765
1766 * configure.host: Add rules for x86_64-*linux-gnu. Change
1767 s390x-linux entry to use gcc to report configuration, replace gcc
1768 with $CC in s390-linux
1769
9d201f2f
AJ
17702001-12-19 Andreas Jaeger <aj@suse.de>
1771
1772 * ld.texinfo (VERSION): Fix markup.
1773
0b69cd08
MG
17742001-12-18 matthew green <mrg@eterna.com.au>
1775
1776 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1777 (m68kelfnbsd.c): New rule.
1778 * Makefile.in: Regenerate.
1779 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1780 (m68*-*-netbsd*4k*): .. this.
1781 (m68*-*-netbsdelf*): New target.
1782 (m68*-*-netbsd*): Also include ELF support.
1783 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1784 * emulparams/m68kelfnbsd.sh: New emulation.
1785
6b9b879a
JJ
17862001-12-18 Jakub Jelinek <jakub@redhat.com>
1787
1788 * ldgram.y (vers_node): Support anonymous version tags.
1789 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1790 tag is not defined together with non-anonymous versions.
1791 * ld.texinfo: Document it.
1792
9fc877ed
NC
17932001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1794
1795 * po/tr.po: New file: Turkish translation.
1796 * configure.in (ALL_LINGUAS): Add tr.
1797 * configure: Regenerate.
1798
fc18a3f3
RH
17992001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1800
1801 * Makefile.am: Add rules for eelf64alpha_nbsd.
1802 * Makefile.in: Regenerate.
1803 * configure.tgt (alpha*-*-netbsd*): Set
1804 targ_emul to elf64alpha_nbsd.
1805 * emulparams/elf64alpha_nbsd.sh: Added.
1806
76f63e91
AM
18072001-12-17 Alan Modra <amodra@bigpond.net.au>
1808
1809 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1810 section_tail when fiddling with section list.
1811 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1812 broken into separate strings to make translation easier.
1813 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1814 fiddling with section list.
1815 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1816
d03b89bd
HPN
18172001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1818
1819 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1820
320fec9a
AM
18212001-12-15 Alan Modra <amodra@bigpond.net.au>
1822
1823 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1824
65765700
JJ
18252001-12-13 Jakub Jelinek <jakub@redhat.com>
1826
1827 * emultempl/elf32.em (finish): Supply output_bfd
1828 to bfd_elf*_discard_info.
1829 (OPTION_EH_FRAME_HDR): Define.
1830 (longopts): Add --eh-frame-hdr.
1831 (parse_args): Handle it.
1832 (list_options): Add --eh-frame-hdr to help.
1833 * emultempl/hppaelf.em (finish): Supply output_bfd
1834 to bfd_elf*_discard_info.
1835 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1836
89894c62
AM
18372001-12-13 Alan Modra <amodra@bigpond.net.au>
1838
1839 * lexsup.c (parse_args): Don't pass shortopts to second call to
1840 getopt functions. Restore optind rather than decrementing before
1841 second call. Remove errind as it now duplicates last_optind.
1842
583f1926
CF
18432001-12-11 Christopher Faylor <cgf@redhat.com>
1844
1845 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1846
93fbbb04
GK
18472001-12-07 Geoffrey Keating <geoffk@redhat.com>
1848 Richard Henderson <rth@redhat.com>
1849
1850 * Makefile.am: Add support for xstormy16.
1851 * configure.tgt: Add support for xstormy16.
1852 * Makefile.in: Regenerate.
1853 * emulparams/elf32xstormy16.sh: New file.
1854 * scripttempl/xstormy16.sc: New file.
1855
583f1926
CF
18562001-10-01 Christopher Faylor <cgf@cygnus.com>
1857
fc18a3f3
RH
1858 * Makefile.in (LIB_PATH): Make configurable.
1859 (GENSCRIPTS): Set LIB_PATH in environment.
1860 * configure.in: Substitute LIB_PATH.
1861 * configure: Regenerate.
1862 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1863 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 1864
ff291a48
NC
18652001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1866
1867 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1868 describing the -N option so that it is easier to translate into
1869 foreign languages.
1870
e3c8793a
NC
18712001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1872
1873 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1874 statements describing a single option with a single, newline
1875 escaped fprintf. This allows better translation into other
1876 languages.
9d201f2f 1877
fc18a3f3
RH
1878 * ldmain.c (add_archive_element): Combine multiple strings
1879 into a single string to permit better translation into other
1880 languages.
e3c8793a 1881
f2eab0af
TR
18822001-12-05 Tom Rix <trix@redhat.com>
1883
1884 * Makefile.am: Remove eaixppc64.
9d201f2f 1885 * Makefile.in: Regenerate.
f2eab0af 1886
249172c3
TR
18872001-12-04 Tom Rix <trix@redhat.com>
1888
9d201f2f 1889 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
1890 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1891 warning.
1892 (gld*_read_file): Fix typo.
1893 (change_symbol_mode): Add prototype.
1894 (is_syscall): Same.
9d201f2f 1895
249172c3
TR
1896 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1897 * emulparams/aixrs6.sh : Same.
1898 * emulparams/ppcmacos.sh : Same.
1899 * emulparams/aixppc64.sh : Delete file.
1900 * emultempl/aix.em : Formatting changes.
1901
5b5cd1b0
HPN
19022001-12-04 Hans-Peter Nilsson <hp@axis.com>
1903
1904 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1905 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1906 __Sbss.
1907 (OTHER_END_SYMBOLS): Fix formatting.
1908 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1909 (OTHER_END_SYMBOLS): Fix formatting.
1910
7cecdbff
AM
19112001-12-04 Alan Modra <amodra@bigpond.net.au>
1912
1913 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1914
742aeb63 19152001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 1916
742aeb63 1917 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 1918 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
1919 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1920 (ldemul_default_target): Same.
1921 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
1922 * emultempl/gld960c.em (gld960_choose_target): Same.
1923 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
1924 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1925 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1926 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 1927 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
1928 -b32 and -b64.
1929
48459341
L
19302001-11-27 H.J. Lu <hjl@gnu.org>
1931
1932 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1933 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1934 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1935 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1936 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1937 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1938 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1939 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1940
7cecdbff 1941 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
1942 is not empty.
1943 (SDATA): Likewise.
1944 (REL_SDATA): Likewise.
1945 (REL_SBSS): Likewise.
1946 (REL_SDATA2): Likewise.
1947 (REL_SBSS2): Likewise.
1948 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1949 (SDATA2): Likewise.
1950
ecfdd20c
SC
19512001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1952
1953 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1954 destructor in rom.
7cecdbff 1955 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 1956
da54c6eb
L
19572001-11-22 H.J. Lu <hjl@gnu.org>
1958
1959 * Makefile.in: Regenerated with automake based on automake
1960 1.4-8 in RedHat 7.1.
1961
465bc359
AM
19622001-11-22 Alan Modra <amodra@bigpond.net.au>
1963
1964 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1965 (config.status): Delete rule.
1966 Add extra dependencies to cover sourced emulparams files.
1967 * Makefile.in: Regenerate.
1968
1969 * scripttempl/elf.sc: Order <section>, <section>.* and
1970 corresponding linkonce sections as seen in input files.
1971 Formatting fixes. Zero vma of all sections if not relocating.
1972 (STACK): Define and insert if STACK_ADDR defined.
1973 (OTHER_RELOCATING_SECTIONS): Delete.
1974 (OTHER_END_SYMBOLS): Define.
1975 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1976 (OTHER_READWRITE_SECTIONS): Likewise.
1977 (OTHER_GOT_SECTIONS): Likewise.
1978 (OTHER_SDATA_SECTIONS): Likewise.
1979 (OTHER_BSS_SECTIONS): Likewise.
1980 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1981 (OTHER_READWRITE_SECTIONS): Likewise.
1982 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1983 (OTHER_READWRITE_SECTIONS): Likewise
1984
1985 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1986 (STACK_ADDR): Define.
1987 * emulparams/armelf_oabi.sh: As for armelf.sh.
1988 * emulparams/elf32mcore.sh: As for armelf.sh.
1989 * emulparams/h8300elf.sh: As for armelf.sh.
1990 * emulparams/mn10200.sh: As for armelf.sh.
1991 * emulparams/shelf.sh: As for armelf.sh.
1992
1993 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1994 (OTHER_END_SYMBOLS): Define.
1995 * emulparams/m32relf.sh: As for elf32fr30.sh.
1996 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1997 * emulparams/h8300self.sh: As for elf32fr30.sh.
1998
1999 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2000 defines with RELOCATING test.
2001 (OTHER_SDATA_SECTIONS): Likewise.
2002 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2003 (OTHER_END_SYMBOLS): ..this.
2004 * emulparams/crislinux.sh: As for criself.sh.
2005
2006 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2007 if not relocating.
2008 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2009 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2010 normal and linkonce sections as seen in input files.
2011 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2012 (TEXT_DYNAMIC): Likewise.
2013 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2014 (OTHER_SDATA_SECTIONS): Likewise.
2015 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2016 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2017 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2018 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2019 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2020 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2021 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2022 sections as seen in input files.
2023 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2024 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2025 if not relocating.
2026 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2027 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2028 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2029 (OTHER_SECTIONS): Instead, use this..
2030 (OTHER_END_SYMBOLS): ..and this.
2031
2032 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2033 * emulparams/elf32bsmip.sh: Likewise.
2034 * emulparams/elf32btsmip.sh: Likewise.
2035 * emulparams/elf32ebmip.sh: Likewise.
2036 * emulparams/elf32lmip.sh: Likewise.
2037 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2038 * emulparams/elf32lsmip.sh: Likewise.
2039 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2040 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2041 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2042 * emulparams/elf64btsmip.sh: Likewise.
2043 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2044 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2045 * emulparams/elf32ppclinux.sh: Likewise.
2046 * emulparams/elf32ppcsim.sh: Likewise.
2047 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2048 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2049 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2050 * emulparams/h8300self.sh: Likewise.
2051 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2052 * emulparams/sh.sh: Comment.
2053 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2054 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2055 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2056
abc6ab0a
AM
20572001-11-21 David Heine <dlheine@tensilica.com>
2058 Alan Modra <amodra@bigpond.net.au>
2059
2060 * ldlang.c (map_input_to_output_sections): Replace "break"
2061 accidentally removed with 2001-08-03 change.
2062 (lang_gc_sections_1): Likewise.
2063
2181f54f
AM
20642001-11-21 Alan Modra <amodra@bigpond.net.au>
2065
2066 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2067
ca0b5847
AM
20682001-11-20 Angela Marie Thomas <angela@redhat.com>
2069
2070 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
2071 of false when calling lang_size_sections.
2072 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 2073
c56feb2b
AM
20742001-11-15 Alan Modra <amodra@bigpond.net.au>
2075
2076 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2077 function when LDEMUL_FINISH isn't set to the same name. Don't
2078 call ${LDEMUL_FINISH}.
2079 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2080 * emultempl/armelf.em (arm_elf_finish): Call
2081 gld${EMULATION_NAME}_finish.
2082 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2083 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2084 hppaelf_layout_sections_again if necessary.
2085 (need_laying_out): New var.
2086 (hppaelf_layaout_sections_again): Rename to
2087 hppaelf_layout_sections_again. Clear need_laying_out.
2088 (PARSE_AND_LIST_OPTIONS): Format text.
2089
a48ca7f2
L
20902001-11-14 H.J. Lu <hjl@gnu.org>
2091
2092 * emultempl/armelf.em (arm_elf_finish): Renamed from
2093 gld${EMULATION_NAME}_finish.
2094 (LDEMUL_FINISH): Set to arm_elf_finish.
2095
73d074b4
DJ
20962001-11-14 Daniel Jacobowitz <drow@mvista.com>
2097
2098 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2099 (struct ld_emulation_xfer_struct): Use it.
2100
3b16e843 21012001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 2102
465bc359 2103 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
2104 additional symbols referenced by newer crt0.o files from HP.
2105
f11b7027
NC
21062001-11-12 Anthony Green <green@redhat.com>
2107
2108 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2109
3bf2994f
AM
21102001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2111
2112 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2113 * Makefile.in: Regenerate.
2114
ff5dcc92
SC
21152001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2116
2117 * ld.texinfo: Use @command for commands, @option for options.
2118 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2119 the page man title.
2120 * Makefile.in: Rebuild.
2121
9fb9af6e
CD
21222001-11-04 Chris Demetriou <cgd@broadcom.com>
2123
2124 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2125 Add support for targets.
2181f54f 2126
3c62831e
NC
21272001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2128
2129 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2130 * configure: Regernate.
2131 * po/fr.po: New file.
2132 * po/sv.po: New file.
2133
3a9091c4
NC
21342001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2135
2136 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2137 as little endian default and to support big endian.
2181f54f 2138
361b220e
CD
21392001-11-01 Chris Demetriou <cgd@broadcom.com>
2140
2141 * ld.texinfo (Options): Document new option, -nostdlib.
2142 * lexsup.c (OPTION_NOSTDLIB): New definition.
2143 (ld_options): Add entry for "nostdlib".
2144 (parse_args): Handle OPTIONS_NOSTDLIB.
2145 * ldfile.c (ldfile_add_library_path): Don't add directories
2146 to the search path if they weren't specified on the command line
2147 and -nostdlib was specified.
2148 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2149
210a7bd1
NC
21502001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2151
2152 * lexsup.c (parse_args): Prevent infinite parsing loop when
2153 "-rpath.a" is specified on the command line.
2154 Replace calls to fprintf with calls to einfo.
2155
114283d8
NC
21562001-10-31 John Marshall <jmarshall@acm.org>
2157
2158 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2159 appear only once across all the linker scripts involved in a link
2160 invocation no longer applies. Make the documentation reflect
2161 that.
2162
7649aa50
NC
21632001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2164
2165 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2166 targets.
2167 (sh-*-linux*): Added targ_extra_libpath.
2168
6e814ff8
AM
21692001-10-31 David Heine <dlheine@tensilica.com>
2170
2171 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2172 for padding statements.
2173
3c3bdf30
NC
21742001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2175
2176 * configure.tgt (mmix-*-*): New target.
2177 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2178 Add dependencies to match.
2179 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2180 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2181 scripttempl/mmo.sc: New files.
2182 * gen-doc.texi: @set MMIX.
2183 * ld.texinfo: Ditto.
6e814ff8 2184 [MMIX] Add MMIX node.
3c3bdf30
NC
2185 * Makefile.in: Regenerate.
2186
ca0c1d3e
KH
21872001-10-29 Kazu Hirata <kazu@hxi.com>
2188
2189 * ldlang.c: Fix a comment typo.
2190
1a3d33ce
AM
21912001-10-23 Alan Modra <amodra@bigpond.net.au>
2192
2193 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2194 entries, and match *-*-linux*.
2195
b47c4208
AM
21962001-10-20 Alan Modra <amodra@bigpond.net.au>
2197
2198 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2199 with ldlex_script, ldlex_popstate.
2200 (ifile_p1): Likewise.
2201 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2202 correct slot.
2203 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2204 to 1. Don't BEGIN(SCRIPT).
2205 (lex_redirect): Similarly.
2206 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2207
fd521b47
NC
22082001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2209
2210 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2211 __EH_FRAME_END__ and accept eh frames into data section.
2212 Add ctor and dtor sections.
2213
59d28a94
DD
22142001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2215
2216 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2217 (auto-export): Fix indentation.
2218
663dd378
DD
22192001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2220
2221 * pe-dll.c (autofilter_objectlist): Add startup objects
2222 for profiling.
2223 (auto-export): Constify char * p.
6e814ff8 2224 Extract file basename and use strcmp rather than ststr
663dd378
DD
2225 for object lookup.
2226
31d677f9
CD
22272001-10-18 Chris Demetriou <cgd@broadcom.com>
2228
2229 * ldmain.c (get_emulation): Improve comment about the handling
2230 of -mipsN options.
2231
aa200fe8
AM
22322001-10-17 Alan Modra <amodra@bigpond.net.au>
2233
2234 * po/POTFILES.in: Regenerate.
2235
146e7110
AM
22362001-10-16 Vassili Karpov <malc@pulsesoft.com>
2237
2238 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2239 -z nocopyreloc and -z nocombreloc usage strings.
2240
b4330e85
NC
22412001-10-12 Vassili Karpov <malc@pulsesoft.com>
2242
146e7110 2243 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
2244 in usage.
2245
5af8a2fb
NC
22462001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2247
2248 * scripttempl/armaout.sc: Place .bss section after end of aligned
2249 data section to match behaviour of aout code in constructrion of
2250 header.
2251
5b784096
DD
22522001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2253
2254 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2255 startup files for mingw32 dlls to list.
2256
61585df2
CD
22572001-10-10 Chris Demetriou <cgd@broadcom.com>
2258
2259 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2260
45cf6f3e
AH
22612001-10-08 Aldy Hernandez <aldyh@redhat.com>
2262
2263 * configure.tgt (targ): Add arm9e-*-elf.
2264
e24d7c12
L
22652001-10-05 H.J. Lu <hjl@gnu.org>
2266
2267 * genscripts.sh: Fix a typo in the last change.
2268
ec38dd05
JJ
22692001-10-05 Jakub Jelinek <jakub@redhat.com>
2270
2271 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2272 -z nocombreloc in usage.
2273
cedd6b0d
JB
22742001-10-03 Jim Blandy <jimb@redhat.com>
2275
2276 * genscripts.sh: Include a comment at the top of each generated
2277 script, explaining its purpose.
2278
8bd621d8
AM
22792001-10-03 Vassili Karpov <malc@pulsesoft.com>
2280
2281 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2282 * NEWS: Mention -z nocopyreloc.
2283 * ld.texinfo (Options): Describe nocopyreloc.
2284
fcd8210c
AM
22852001-10-03 Alan Modra <amodra@bigpond.net.au>
2286
2287 * configure: Regenerate.
2288
d32820f2
AM
22892001-10-02 Alan Modra <amodra@bigpond.net.au>
2290
2291 * ldver.h (ld_program_version): Remove declaration.
2292 * lexsup.c (parse_args): Move printing of copyright message..
2293 * ldver.c (ldversion): .. to here.
2294 Use BFD_VERSION_STRING in place of BFD_VERSION.
2295 (ld_program_version): Remove.
2296 * Makefile.am (Makefile): Depend on bfd/configure.in.
2297 Run "make dep-am".
2298 * Makefile.in: Regenerate.
2299
af46bcdc
HPN
23002001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2301
2302 * Makefile.am: Update dependencies with "make dep-am".
2303 * Makefile.in: Regenerate.
2304
4818e05f 23052001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 2306
4818e05f
AM
2307 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2308 * lexsup.c: Add --no-define-common commandline option.
2309 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2310 * ldlex.l: Likewise.
2311 * ld.h: Add command_line.inhibit_common_definition.
2312 * ldmain.c (main): Initialize.
2313 * ld.texinfo: Document.
862517b6 2314
a59f3d35
AM
23152001-09-29 Alan Modra <amodra@bigpond.net.au>
2316
2317 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2318
d5e0ebeb
AM
23192001-09-26 Alan Modra <amodra@bigpond.net.au>
2320
2321 * ldmisc.c (USE_STDARG): Remove.
2322 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2323 (einfo): Likewise.
2324 (minfo): Likewise.
2325 (lfinfo): Likewise.
2326
2327 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2328 declarations. Update copyright.
2329
2f8d8971
NC
23302001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2331
85c77458
NC
2332 * pe-dll.c: Remove obsoleted declaration of
2333 pe_get_data_import_dll_name.
2334 (pe_create_import_fixup): Fix thinko.
2335
2f8d8971
NC
2336 * ld.texinfo(enable-auto-import): Clarify the explanation.
2337
23382001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2339
2340 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2341 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2342 DLL_SUPPORT controlled code.
2343
72358f65 23442001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 2345
72358f65
NC
2346 * emultempl/pe.em(pe_data_import_dll): Make static.
2347 (pe_get_data_import_dll_name): New accessor function.
146e7110 2348 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
2349 pe_get_data_import_dll_name() from pe.em, instead of
2350 directly accessing pe_data_import_dll variable from pe.em.
2351
3882b010
L
23522001-09-18 Bruno Haible <haible@clisp.cons.org>
2353
2354 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2355 (def_file_add_directive): Use ISSPACE instead of isspace.
2356 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2357 isdigit/isxdigit/isalpha/isalnum.
2358 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2359 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2360 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2361 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2362 isalnum.
2363 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2364 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2365 isupper/tolower.
2366 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2367 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2368 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2369 (ctor_prio): Use ISDIGIT instead of isdigit.
2370 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2371 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2372 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2373 isupper/tolower.
2374 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2375 (stricpy): Use TOLOWER instead of isupper/tolower.
2376 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2377 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2378 (lex_warn_invalid): Use ISPRINT instead of isprint.
2379 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2380 (main): For gettext, also set the LC_CTYPE locate facet.
2381 (add_keepsyms_file): Use ISSPACE instead of isspace.
2382 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2383 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2384 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2385 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2386 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2387 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2388 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2389 (quoteput): Use ISSPACE instead of isspace.
2390 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2391 instead of isalnum.
2392
db09f25b
AM
23932001-09-18 Alan Modra <amodra@bigpond.net.au>
2394
2395 * deffilep.y (def_stash_module): Constify "name" param.
2396
2397 * pe-dll.c: Replace CONST with const throughout.
2398 (quick_symbol): Constify "n1", "n2", "n3" params.
2399 (make_singleton_name_thunk): Constify "import" param. Make
2400 "buffer_len" a size_t.
2401 (make_import_fixup_entry): Constify "name", "fixup_name",
2402 "dll_symname" params.
2403 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2404 (pe_get32): Likewise.
2405 (pe_implied_import_dll): Likewise.
2406
2407 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2408 (sort_by_section_name): Likewise.
2409
2410 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2411 (make_import_fixup): Cast printf arg, rel->address to long rather
2412 than int.
2413 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2414
74699268
AM
24152001-09-15 Alan Modra <amodra@bigpond.net.au>
2416
2417 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2418 defines BufferSize. Increase buffer size by one.
2419
775cabad
NC
24202001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2421
2422 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2423
056a1d49
NC
24242001-09-14 Kevin Lo <kevlo@openbsd.org>
2425
2426 * configure.tgt: Add arm-openbsd target.
2427
a7d792bb
L
24282001-09-12 H.J. Lu <hjl@gnu.org>
2429
2430 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2431 eelf64lppc.o to ...
2432 (ALL_64_EMULATIONS): Here.
2433 * Makefile.in: Regenerated.
2434
0d888aac
CW
24352001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2436
2437 * emultempl/pe.em(make_import_fixup): change signature to
2438 take asection as well as arelec; we need this for proper
146e7110 2439 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
2440 there is no attempt to add a constant addend to the reloc;
2441 otherwise, report error condition.
2442 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2443 since final argument is a pointer to make_import_fixup().
2444 Change call to cb() to match make_import_fixup() signature.
2445 (make_import_fixup_mark): make buffer_len unsigned.
2446 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2447
24482001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2449
2450 * ld.texinfo: add verbose documentation for auto-import
146e7110 2451 direct-addressing workaround, to compliment the terse
0d888aac
CW
2452 error message.
2453
cedacdc0
CM
24542001-09-12 Andrew MacLeod <amacleod@redhat.com>
2455
146e7110 2456 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 2457
3b16e843 24582001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
2459
2460 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2461 * emulparams/h8300self.sh: Similarly.
2462
559e4713
NC
24632001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2464
2465 * ld.texinfo (Options, --stack): Correct default value for stack
2466 reserve.
2467
1fdf0249
TR
24682001-09-05 Tom Rix <trix@redhat.com>
2469
2470 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 2471
9b5799b8
AJ
24722001-09-03 Andreas Jaeger <aj@suse.de>
2473
2474 * emultempl/beos.em: Declare prototypes for comparions functions,
2475 adjust definitions.
2476
48f6162b
AJ
24772001-09-02 Andreas Jaeger <aj@suse.de>
2478
2479 * emultempl/aix.em: Add missing prototype.
2480 * emultempl/lnk960.em: Likewise.
2481 * emultempl/vanilla.em: Likewise.
2482 * emultempl/armcoff.em: Likewise.
2483 * emultempl/armelf_oabi.em: Likewise.
2484 * emultempl/beos.em: Likewise.
2485 * emultempl/gld960c.em: Likewise.
2486 * emultempl/gld960.em: Likewise.
2487
2488 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2489 for prototype declaration.
2490
39e5585e
EC
24912001-08-31 Eric Christopher <echristo@redhat.com>
2492 Jason Eckhardt <jle@redhat.com>
2493
2494 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2495
3fc90ddb
AJ
24962001-08-31 Andreas Jaeger <aj@suse.de>
2497
2498 * emultempl/pe.em: Add missing prototypes.
2499 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2500 pe_find_data_imports.
2501 (pr_sym): Add unused attribute.
2502
d43ded80
PB
25032001-08-29 Joel Sherrill <joel@OARcorp.com>
2504
39e5585e 2505 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
2506 default from coff to elf.
2507
3946dd2f
JL
25082001-08-29 Jeff Law <law@redhat.com>
2509
2510 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2511 ARCH specification.
2512 * emulparams/h8300self.sh: Similarly.
2513
3b16e843 25142001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
2515
2516 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2517 eh8300self.o .
2518 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2519 * configure.tgt (h8300-*-elf*): New case.
2520 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2521 * emulparams/h8300self.sh: New file.
2522 * Makefile.in: Regenerated.
2523
70d0c6e9
NC
25242001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2525
2526 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2527 with macro name.
2528
5c67d4bb
AM
25292001-08-27 Linus Nordberg <linus@swox.com>
2530 Alan Modra <amodra@bigpond.net.au>
2531
2532 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2533 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2534 Run "make dep-am"
2535 * Makefile.in: Regenerate.
2536 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2537 entries to correct alphabetical position.
2538 * emulparams/elf64ppc.sh: New.
2539 * emulparams/elf64lppc.sh: New.
2540
08131015
NC
25412001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2542
2543 * ldmain.c (main): Declare BSIZE as static.
2544
db6751f2
JJ
25452001-08-23 Jakub Jelinek <jakub@redhat.com>
2546
2547 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2548 into .rel.dyn resp. .rela.dyn if combreloc.
2549 (get_script): If .x linker script is equal to .xn, only put it
2550 once into the binary.
2551 Add .xc and .xsc scripts.
2552 (parse_args): Handle -z combreloc and -z nocombreloc.
2553 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2554 For .xc and .xsc scripts put all .rel* or .rela* input sections
2555 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2556 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2557 is elf.
2558 Strip trailing whitespace from script.
2559 Generate .xc and .xsc scripts if requested.
2560 * ldmain.c (main): Initialize link_info.combreloc and
2561 link_info.spare_dynamic_tags.
2562 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2563 (ld_options): Add --spare-dynamic-tags option.
2564 (parse_args): Likewise.
2565 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2566 * ldint.texinfo: Document .xc and .xsc linker scripts.
2567 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2568
63d069c0
L
25692001-08-22 H.J. Lu <hjl@gnu.org>
2570
2571 * emulparams/elf32fr30.sh: Add a newline.
2572
948f9114
AJ
25732001-08-21 Andreas Jaeger <aj@suse.de>
2574
2575 * deffilep.y: Add missing prototypes.
2576 * pe-dll.c: Likewise.
2577
ae7fb08f
AM
25782001-08-20 Alan Modra <amodra@bigpond.net.au>
2579
2af02257
AM
2580 * ldlang.c (insert_pad): Fix typos in last patch.
2581
2582 * ldlang.c: When traversing lang_statement_union_type lists,
2583 consistently use "header.next" rather than "next".
2584 * mpw-eppcmac.c: Likewise.
2585 * emultempl/beos.em: Likewise.
2586 * emultempl/hppaelf.em: Likewise.
2587 * emultempl/pe.em: Likewise.
2588 * ldlang.h (union lang_statement_union): Remove "next" field.
2589
c0c330a7
AM
2590 * ldlang.c (insert_pad): Use offsetof macro.
2591 (lang_size_sections): Always neuter padding statements.
2592 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2593
ae7fb08f
AM
2594 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2595 passed to lang_size_sections.
2596 (pe_exe_fill_sections): Likewise.
2597 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2598 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2599
fab80407
AM
26002001-08-18 Alan Modra <amodra@bigpond.net.au>
2601
2602 * emultempl/aix.em: Formatting fixes.
2603
b3327aad
AM
26042001-08-18 Alan Modra <amodra@bigpond.net.au>
2605
2606 * ldlang.c (insert_pad): Make use of an existing pad statement if
2607 available. Move code calculating alignment, adjusting section
2608 alignment power, and adjusting dot to ..
2609 (size_input_section): .. here. Remove unused relax param.
2610 (lang_size_sections): Change boolean `relax' param to boolean *.
2611 Adjust call to size_input_section. Make use of insert_pad to
2612 place pad after the assignment statement. If relaxing, zap
2613 padding statements.
2614 (reset_memory_regions): Reset output_bfd section sizes too.
2615 (relax_again): Move to..
2616 (lang_process): ..here. Adjust call to lang_size_sections, and
2617 remove duplicated code.
2618 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2619
563e308f
AM
26202001-08-17 Alan Modra <amodra@bigpond.net.au>
2621
2622 * ld.texinfo: Document that fill values now use the four least
2623 significant bytes.
2624 * emulparams/elf32fr30.sh (NOP): Update.
2625 * emulparams/elf32mcore.sh: Likewise.
2626 * emulparams/elf64_s390.sh: Likewise.
2627 * emulparams/elf_i386.sh: Likewise.
2628 * emulparams/elf_i386_be.sh: Likewise.
2629 * emulparams/elf_i386_chaos.sh: Likewise.
2630 * emulparams/elf_i386_ldso.sh: Likewise.
2631 * emulparams/elf_s390.sh: Likewise.
2632 * emulparams/elf_x86_64.sh: Likewise.
2633 * emulparams/i386moss.sh: Likewise.
2634 * emulparams/i386nw.sh: Likewise.
2635 * emulparams/m68kelf.sh: Likewise.
2636 * scripttempl/elf.sc: Update NOP comment.
2637 * scripttempl/elfi370.sc: Likewise.
2638 * scripttempl/elfm68hc11.sc: Likewise.
2639 * scripttempl/elfm68hc12.sc: Likewise.
2640 * scripttempl/nw.sc: Likewise.
2641
b90e1c6f
TR
26422001-08-15 Tom Rix <trix@redhat.com>
2643
2644 * ldgram.y (saved_script_handle): Initialize to NULL.
2645 * ldmain.c (main): Change check on saved_script_handle.
948f9114 2646
39dcfe18
AM
26472001-08-14 Alan Modra <amodra@bigpond.net.au>
2648
cde43e70
AM
2649 * emultempl/elf32.em: Formatting fixes.
2650 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2651 looking at sec->owner.
2652 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2653 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2654 unused code, and reorganize orphan section placement code.
2655
39dcfe18
AM
2656 * ldlang.c (wild_doit): Rename to lang_add_section.
2657 * ldlang.h: Here too.
2658 * mpw-elfmips.c: And here.
2659 * emultempl/beos.em: And here.
2660 * emultempl/elf32.em: And here.
2661 * emultempl/hppaelf.em: And here.
2662 * emultempl/pe.em: And here.
2663
908d20b3
RH
26642001-08-13 Richard Henderson <rth@redhat.com>
2665
2666 * emultempl/needrelax.em: New file.
2667 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2668 * Makefile.am (eelf64_ia64.c): Depend on it.
2669 * Makefile.in: Rebuild.
2670
0f33d40b
AM
26712001-08-13 Alan Modra <amodra@bigpond.net.au>
2672
22af9fd3
AM
2673 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2674 output_section is set non-NULL.
2675
0f33d40b
AM
2676 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2677 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2678 needlessly create an output_section_statement. Treat a correctly
2679 named output_section_statement with NULL bfd_section as compatible.
2680
55ab6103
HPN
26812001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2682
2683 * emultempl/generic.em: Support EXTRA_EM_FILE.
2684 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2685 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2686 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2687 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2688 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2689 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2690 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2691 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2692 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2693 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2694
24098abb
RH
26952001-08-12 Richard Henderson <rth@redhat.com>
2696
2697 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2698 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2699 scripttempl/v850.sc: Keep .jcr data.
2700
b9a8de1e 27012001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
2702 Andrew Haley <aph@cambridge.redhat.com>
2703 Nick Clifton <nickc@redhat.com>
b9a8de1e 2704
146e7110 2705 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
2706 Change type to file handle.
2707 * ld.h (had_script): Rename and retype.
2708 * ldfile.c (ldfile_open_command_file): Save the file handle
2709 used in saved_script_handle.
2710 * lexsup.c (parse_args): Do not allow -c option to alter
2711 saved_script_handle.
2712 * ldmain.c (main): Print out the linker script used if
2713 --verbose is given. Check saved_script_handle to obtain the
2714 external linker script used, or if NULL, dump the builtin
2715 script.
2716 * ld.texinfo: Document that --verbose now dumps the linker
2717 script used, regardless of whether it was an internal or an
2718 external script.
2719
0218d1e4
AJ
27202001-08-10 Andreas Jaeger <aj@suse.de>
2721
2722 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2723 to build warnings.
2724 * configure: Regenerate.
2725
5253f23b
AM
27262001-08-09 Alan Modra <amodra@bigpond.net.au>
2727
73810896
AM
2728 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2729
5253f23b
AM
2730 * scripttempl/elf.sc: Move non-text .dynamic section before
2731 .plt/.got/.sdata* group.
2732 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2733 (OTHER_SDATA_SECTIONS): Add.
2734 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2735 OTHER_GOT_SECTIONS.
2736 * emulparams/crislinux.sh: Likewise.
2737 * emulparams/elf32b4300.sh: Likewise.
2738 * emulparams/elf32bmip.sh: Likewise.
2739 * emulparams/elf32bmipn32.sh: Likewise.
2740 * emulparams/elf32bsmip.sh: Likewise.
2741 * emulparams/elf32btsmip.sh: Likewise.
2742 * emulparams/elf32ebmip.sh: Likewise.
2743 * emulparams/elf32elmip.sh: Likewise.
2744 * emulparams/elf32l4300.sh: Likewise.
2745 * emulparams/elf32lmip.sh: Likewise.
2746 * emulparams/elf32lsmip.sh: Likewise.
2747 * emulparams/elf32ltsmip.sh: Likewise.
2748 * emulparams/elf64bmip.sh: Likewise.
2749 * emulparams/elf64btsmip.sh: Likewise.
2750 * emulparams/elf64ltsmip.sh: Likewise.
2751
179c732c
AM
27522001-08-08 Alan Modra <amodra@bigpond.net.au>
2753
2754 * genscripts.sh: Source the emulparams script before each output
2755 script is generated so that variables like `RELOCATING' may affect
2756 variables defined in the emulparams script.
2757
3fd36710
AM
27582001-08-04 Alan Modra <amodra@bigpond.net.au>
2759
20713691
AM
2760 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2761 order.
2762
3fd36710
AM
2763 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2764 ie. iterate over wild_statement.section_list.
2765 (gld${EMULATION_NAME}_place_orphan): Likewise.
2766
de0b1853
SC
27672001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2768
2769 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2770 .fini[0-4] sections used by _exit
2771 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2772 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2773 * scripttempl/elfm68hc11.sc: Likewise.
2774
ff7e6f88
L
27752001-08-03 H.J. Lu <hjl@gnu.org>
2776
2777 * emultempl/beos.em (init): Add the missing initialization.
2778
b6bf44ba
AM
27792001-08-03 Alan Modra <amodra@bigpond.net.au>
2780
2781 * ld.texinfo (Input Section Basics): Clarify ordering of output
2782 sections.
2783 * ldlang.c (callback_t): Add wildcard_list param.
2784 (walk_wild_section): Remove "section" param. Rewrite for
2785 lang_wild_statement_type change. Remove unique_section_p test.
2786 (walk_wild_file): Remove "section" param.
2787 (walk_wild): Remove "section" and "file" params.
2788 (lang_gc_wild): Likewise.
2789 (wild): Likewise. Modify for lang_wild_statement_type change.
2790 (wild_sort): Likewise. Add "sec" param.
2791 (gc_section_callback): Likewise.
2792 (output_section_callback): Likewise. Do unique_section_p test.
2793 (map_input_to_output_sections): Modify call to wild.
2794 (lang_gc_sections_1): Likewise.
2795 (print_wild_statement): Modify for lang_wild_statement_type
2796 change.
2797 (lang_add_wild): Replace filename, filenames_sorted param with
2798 filespec. Replace section_name, sections_sorted,
2799 exclude_filename_list with section_list.
2800 * ldlang.h (lang_add_wild): Here too.
2801 (lang_wild_statement_type): Replace section_name, sections_sorted,
2802 and exclude_filename_list with section_list.
2803 * ldgram.y (current_file): Delete.
2804 (%union): Add wildcard_list.
2805 (file_NAME_list): Set type to wildcard_list. Build a linked list
2806 rather than calling lang_add_wild for each entry.
2807 (input_section_spec_no_keep): Call lang_add_wild here instead.
2808 * ld.h (struct wildcard_list): Declare.
2809 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2810
b044cda1
CW
28112001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2812
2813 * ldmain.c (main): initialize link_info.pei386_auto_import
2814 * pe-dll.c: new tables for auto-export filtering
2815 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 2816 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
2817 "by hand".
2818
28192001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2820
b6bf44ba
AM
2821 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2822 static variable current_sec (static struct sec *). Add
b044cda1 2823 forward declaration for add_bfd_to_link.
b6bf44ba
AM
2824 (process_def_file): Don't export undefined symbols. Do not
2825 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
2826 with new API.
2827 (pe_walk_relocs_of_symbol): New function.
2828 (generate_reloc): add optional extra debugging
b6bf44ba 2829 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 2830 line in output
b6bf44ba 2831 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
2832 (DATA auto-import support).
2833 (make_singleton_name_thunk): New function.
2834 (make_import_fixup_mark): New function.
2835 (make_import_fixup_entry): New function.
2836 (pe_create_import_fixup): New function.
b6bf44ba 2837 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 2838 char *.
b6bf44ba
AM
2839 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2840 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
2841 pe_create_import_fixup.
2842 * emultempl/pe.em: add new options --enable-auto-import,
2843 --disable-auto-import, and --enable-extra-pe-debug.
2844 (make_import_fixup): New function.
2845 (pe_find_data_imports): New function.
2846 (pr_sym): New function.
b6bf44ba 2847 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
2848 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2849 CODE.
2850
28512001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 2852
b044cda1
CW
2853 * ld.texinfo: add additional documentation for
2854 --export-all-symbols. Document --out-implib,
2855 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
2856 --dll-search-prefix, --enable-auto-import, and
2857 --disable-auto-import.
b044cda1
CW
2858 * ldint.texinfo: Add detailed documentation on auto-import
2859 implementation.
2860
156e34dd
NC
28612001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2862
2863 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2864 example.
2865
d6231427
AM
28662001-07-24 Alan Modra <amodra@bigpond.net.au>
2867
2868 * Makefile.am: Update dependencies with "make dep-am".
2869 * Makefile.in: Regenerate
2870
e14ec88b
AM
28712001-07-23 Alan Modra <amodra@bigpond.net.au>
2872
2873 * ldcref.c (check_section_sym_xref): New function.
2874 (check_nocrossrefs): Call it.
2875 (check_nocrossref): Interate over h->refs here instead of..
2876 (check_refs): ..here. Pass in the symbol name, section, and bfd
2877 rather than hash_entry pointers.
2878 (struct check_refs_info): Keep symbol name rather than hash entry.
2879 Remove "same".
2880 (check_reloc_refs): Tweak for above changes in check_refs_info.
2881 Only report references to section syms when symname is NULL to
2882 prevent duplicate messages for the same reloc.
2883
1b577b00
NC
28842001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2885
c7d701b0
NC
2886 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2887 available. Do not print NULL trees.
2888 (exp_print_token): Print unknown tokens with values > 126 as
2889 decimal values not ASCII characters.
2890
1545243b
NC
2891 * ldlang.c (lang_leave_overlay): If a region is specified assign
2892 it to all sections inside the overlay unless they have been
2893 assigned to the own, non-default, memory region.
2894
1b577b00
NC
2895 * README: Add header for consistency with other README files.
2896
5030876b
L
28972001-07-14 H.J. Lu <hjl@gnu.org>
2898
2899 * emultempl/elf32.em (output_prev_sec_find): Never return
2900 bfd_abs_section_ptr, bfd_com_section_ptr nor
2901 bfd_und_section_ptr.
2902
18c7a9a5
NC
29032001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2904
22af9fd3 2905 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
2906 elf32.em.
2907 * Makefile.in: Regenerate.
2908
9ffecff1
MG
29092001-07-14 matthew green <mrg@eterna.com.au>
2910
2911 * configure.tgt (i386-*-netbsdelf*): New target.
2912 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2913
95500e1c
JJ
29142001-07-13 Jakub Jelinek <jakub@redhat.com>
2915
2916 * emultempl/elf32.em (output_prev_sec_find): New.
2917 (place_orphan): Use it.
2918
e97cb84f
L
29192001-07-11 H.J. Lu <hjl@gnu.org>
2920
2921 * ldmain.c (main): Fix typos in the last change.
2922
7333607e
JJ
29232001-07-11 Jakub Jelinek <jakub@redhat.com>
2924
2925 * ldmain.c (main): Disallow -F and -f without -shared.
2926
d29d80f2
NC
29272001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2928
2929 * emultempl/pe.em (after_open): Check for the output_bfd not
2930 having any coff_data structure allocated to it.
2931
c2a1a436
DB
29322001-07-09 David O'Brien <obrien@FreeBSD.org>
2933
2934 * emultempl/elf32.em: Do not assuming that contents of the buffer
2935 returned from basename function will remain unchanged accross other
2936 function calls.
2937
63653551
L
29382001-07-03 H.J. Lu <hjl@gnu.org>
2939
2940 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2941 2001-07-03. It creates dynamic entries even for static binaries.
2942
d303a449
L
29432001-07-03 Jakub Jelinek <jakub@redhat.com>
2944
2945 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2946 (DYNAMIC): Use it to reserve few dynamic entries for
2947 post-linking tools.
2948
9f22353f
AM
29492001-06-27 Alan Modra <amodra@bigpond.net.au>
2950
2951 * emulparams/hppa64linux.sh: New file.
2952 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2953 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2954 (ehppa64linux.c): Add rule to make it.
2955 Run "make dep-am".
2956 * Makefile.in: Regenerate.
2957
62bf86b4
HPN
29582001-06-21 Hans-Peter Nilsson <hp@axis.com>
2959
2960 * ld.texinfo (Options, -r): Mention restrictions when using
2961 different object formats.
2962
429d935d
HPN
29632001-06-19 Hans-Peter Nilsson <hp@axis.com>
2964
2965 * ldlang.c (lang_check): Emit fatal error if relocatable link
2966 between different object flavours with relocations in input.
2967
cb840a31
L
29682001-06-19 H.J. Lu <hjl@gnu.org>
2969
2970 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2971 (--version-script): Mention the language support.
2972
9bf03acc
L
29732001-06-19 H.J. Lu <hjl@gnu.org>
2974
2975 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2976
c45021f2
NC
29772001-06-18 H.J. Lu <hjl@gnu.org>
2978
b6bf44ba
AM
2979 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2980 (diststuff): Add $(MANS).
2981 * Makefile.in: Regenerated.
c45021f2 2982
b6bf44ba 2983 * ld.1: Removed.
c45021f2 2984
6caa99ab
HPN
29852001-06-18 Hans-Peter Nilsson <hp@axis.com>
2986
605d9b3a
HPN
2987 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2988 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2989 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2990 * ld.h (args_type): Remove member export_dynamic. All users
2991 changed to use struct bfd_link_info member.
2992
6caa99ab
HPN
2993 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2994 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2995 * Makefile.in: Regenerate.
2996
6f9efd97
L
29972001-06-18 H.J. Lu <hjl@gnu.org>
2998
2999 * ldlang.c (init_os): Add the newline to the einfo call.
3000 (lang_check): Likewise.
3001 (lang_do_version_exports_section): Likewise.
3002
5af9fd8b
L
30032001-06-15 H.J. Lu <hjl@gnu.org>
3004
3005 * lexsup.c (parse_args); Save optind to report unrecognized
3006 option.
3007
2a096f04
HPN
30082001-06-15 Hans-Peter Nilsson <hp@axis.com>
3009
7e66c3f5
HPN
3010 * ldlang.c (lang_check): Emit fatal error if relocatable link
3011 between different object flavours.
3012
2a096f04
HPN
3013 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3014 Set new link_info member export_dynamic.
3015 * ldmain.c (main): Initialize new link_info member export_dynamic.
3016
6770ec8c
NC
30172001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3018
3019 * ldlang.c (walk_wild): Only call walk_wild_file if
3020 lookup_name returns something.
b6bf44ba 3021 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 3022 (load_symbols): Change to a boolean function.
b6bf44ba 3023 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
3024 executable.
3025
8529105a
AM
30262001-06-08 Alan Modra <amodra@bigpond.net.au>
3027
3028 * ldlang.c (record_bfd_errors): Remove.
3029
3030 * emultempl/aix.em: Fix copyright dates.
3031
8f3aa7a0
AJ
30322001-06-07 Andreas Jaeger <aj@suse.de>
3033
3034 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3035 (TEXT_START_ADDR): Likewise.
3036
3277f888
AM
30372001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3038
3039 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3040
3763134d
DD
30412001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3042
3043 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3044
5929ebc0
L
30452001-05-31 H.J. Lu <hjl@gnu.org>
3046
3047 * ldlang.c (open_input_bfds): Don't change the bfd error
3048 handler whilst loading symbols.
3049
c04a062d
NC
30502001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3051
3052 * configure.tgt: Remove i370-mvs architecture, it is not currently
3053 supported.
3054
96fcab3e
L
30552001-05-25 H.J. Lu <hjl@gnu.org>
3056
3057 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3058 like emulparams/aixppc.sh.
3059
db8d4f23
L
30602001-05-25 H.J. Lu <hjl@gnu.org>
3061
3062 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3063 setting of output_filename after bfd_scan_arch.
3064 * emultempl/pe.em: Likewise.
3065
5f642101
L
30662001-05-25 H.J. Lu <hjl@gnu.org>
3067
3068 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3069 like emulparams/aixppc.sh.
3070
3071 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3072 instead of ${srcdir}/emultempl/stringify.sed.
3073
64e9ece0
TW
30742001-05-25 Timothy Wall <twall@oculustech.com>
3075
3076 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 3077 output.
64e9ece0 3078
c709b096
AM
30792001-05-25 Alan Modra <amodra@one.net.au>
3080
3081 * configure.host: Replace linuxoldld with linux*oldld.
3082 * configure.tgt: Likewise.
3083
6cbdcc6f
L
30842001-05-24 H.J. Lu <hjl@gnu.org>
3085
3086 * emultempl/stringify.sed: Removed again.
3087
86af25fe
L
30882001-05-24 H.J. Lu <hjl@gnu.org>
3089
3090 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3091 (gld${EMULATION_NAME}_before_parse): Initialize
3092 ldfile_output_architecture, ldfile_output_machine and
3093 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3094 * emultempl/beos.em: Likewise.
3095 * emultempl/elf32.em: Likewise.
3096 * emultempl/linux.em: Likewise.
3097 * emultempl/mipsecoff.em: Likewise.
3098 * emultempl/pe.em: Likewise.
3099 * emultempl/sunos.em: Likewise.
3100
3b1b01cf
TR
31012001-05-24 Tom Rix <trix@redhat.com>
3102
8f3aa7a0 3103 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
3104 udate import file format.
3105 (change_symbol_mode) New, same
3106 (is_syscall) New, same
3107 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3108 * emulparams/aixppc64.sh : same
3109 * emulparams/aixrs6.sh : same
3110 * emulparams/ppcmacos.sh : same
3111 * emultempl/aix.em : use strtoull to parse options
3112 * Makefile.am : add eaixppc64 emulation for xcoff64
3113 * Makefile.in : same
3114 * configure.tgt : same
3115
3116 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 3117 default data section offset to 0x20000000
3b1b01cf 3118 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 3119 loader and debug sections use the currect section offset.
3b1b01cf
TR
3120
3121 * emultempl/aix.em : Add xcoff64 support
3122 Add -binitfini support
8f3aa7a0 3123 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 3124 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 3125 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
3126 sections
3127
3128 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 3129
57e6abd2
AO
31302001-05-23 Alexandre Oliva <aoliva@redhat.com>
3131
3132 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3133 variable to avoid non-portable shell construct.
3134
d1cf510e
NC
31352001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3136
3137 * ldmain.c (get_emulation): Add -mips5 command line argument.
3138
506eee22
NC
31392001-05-22 Alexandre Oliva <aoliva@redhat.com>
3140
3141 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3142 (ELF_INTERPRETER_NAME): Define it.
3143 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3144 it.
3145 * configure.tgt (targ_emul, targ_extra_emuls)
3146 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3147 as primary, elf_i386 as extra.
3148 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3149 (eelf_i386_ldso.c): New rule.
3150 * Makefile.in: Rebuilt.
3151
31522001-05-22 Nick Clifton <nickc@redhat.com>
3153
3154 * lexsup.c (ld_options): Allow -I to be an alias for
3155 --dynamic-linker. This is for Solaris compatability.
3156 * ld.texinfo: Document that -I can be used.
3157 * ld.1: Regenerate.
3158
d1778b88
AM
31592001-05-16 Alan Modra <amodra@one.net.au>
3160
3161 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3162 whether an input section is the first one assigned to an output
3163 section.
3164 Assorted formatting fixes.
3165
02649152
DD
31662001-05-14 DJ Delorie <dj@delorie.com>
3167
3168 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3169 * Makefile.in: Ditto.
3170
579f31ac
JJ
31712001-05-11 Jakub Jelinek <jakub@redhat.com>
3172
3173 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3174 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3175 output sections.
3176 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3177
8550eb6e
JJ
31782001-05-11 Jakub Jelinek <jakub@redhat.com>
3179
3180 * ldlang.c (lang_process): Call bfd_merge_sections.
3181
8e5a525c
AM
31822001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3183
3184 * ldgram.y: Fix typo.
3185
1c9acd94
L
31862001-05-03 H.J. Lu <hjl@gnu.org>
3187
3188 * emultempl/elf32.em: Include "libiberty.h".
3189 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3190 basename of the bfd filename.
3191 (gld${EMULATION_NAME}_stat_needed): Likewise.
3192 (gld${EMULATION_NAME}_try_needed): Likewise.
3193 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3194
14fe918e
L
31952001-05-02 H.J. Lu <hjl@gnu.org>
3196
3197 * emultempl/pe.em: Include <ctype.h>.
3198
c7e40348
NC
31992001-05-02 Johan Rydberg <jrydberg@opencores.org>
3200
b6bf44ba 3201 * emulparams/elf32openrisc.sh: New file.
c7e40348 3202
b6bf44ba
AM
3203 * Makefile.am: Add OpenRISC target.
3204 * Makefile.in: Regenerated.
c7e40348 3205
b6bf44ba 3206 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
3207
32082001-05-02 Nick Clifton <nickc@redhat.com>
3209
3210 * emultempl/aix.em: Replace buystring with xstrdup.
3211 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 3212
d1b2b2dc
L
32132001-05-02 H.J. Lu <hjl@gnu.org>
3214
3215 * ldfile.c: Include "libiberty.h".
3216 * ldlex.l: Likewise.
3217
3218 * ldmisc.c (buystring): Removed.
3219 * ldmisc.h: Likewise.
3220
3221 * ldfile.c: Replace buystring with xstrdup.
3222 * ldlang.c: Likewise.
3223 * ldlex.l: Likewise.
3224 * ldmain.c: Likewise.
3225 * ldmisc.c: Likewise.
3226 * lexsup.c: Likewise.
3227 * mpw-eppcmac.c: Likewise.
3228
35714f2a
AJ
32292001-04-30 Andreas Jaeger <aj@suse.de>
3230
3231 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3232
884fb58e
NC
32332001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3234
b6bf44ba
AM
3235 * ldlang.c (load_symbols): Give emulation a chance
3236 to process unrecognized file before fatal error is
3237 reported, not after.
884fb58e 3238
87748b32
NC
32392001-04-27 Sean McNeil <sean@mcneil.com>
3240
3241 * configure.tgt: Add arm-vxworks target.
3242 * scripttempl/armcoff.sc: Support .text or .data as a section name
3243 prefix.
3244 Define _etext.
35714f2a 3245
7ce691ae
C
32462001-04-13 J.T. Conklin <jtc@redback.com>
3247
3248 * ld.texinfo: Document --fatal-warnings.
3249 * ld.1: Regenerate.
3250
3251 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 3252 warnings have been turned into errors.
7ce691ae
C
3253 * lexsup.c (OPTION_WARN_FATAL): Define.
3254 (ld_options): Entry for --fatal-warnings.
3255 (parse_args): Handle OPTION_WARN_FATAL.
3256 * ld.h (ld_config_type): Add fatal_warnings field.
3257
f5fa8ca2
JJ
32582001-04-13 Jakub Jelinek <jakub@redhat.com>
3259
3260 * ldmain.c (main): Default to discard_sec_merge.
3261 * lexsup.c (OPTION_DISCARD_NONE): Define.
3262 (ld_options): Add --discard-none.
3263 (parse_args): Handle OPTION_DISCARD_NONE.
3264 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3265 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3266 all its input sections match.
3267
fdec3cfc
L
32682001-04-05 Steven J. Hill <sjhill@cotw.com>
3269
3270 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3271 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3272 (eelf32ltsmip.c): New target.
3273 (eelf64btsmip.c): Likewise.
3274 (eelf64ltsmip.c): Likewise.
3275 * Makefile.in: Regenerated.
3276
3277 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3278 target.
3279 (mips*-*-linux-gnu*): Likewise.
3280
3281 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3282 MIPS taget.
35714f2a 3283 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
3284 target.
3285 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3286 endian target.
3287
589bad82
HPN
32882001-04-05 Hans-Peter Nilsson <hp@axis.com>
3289
3290 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3291 correct value of __Stext here.
3292 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3293 .startup section.
3294
3295 * emulparams/crislinux.sh: Remove FIXME.
3296
94202e16
AM
32972001-04-02 Alan Modra <alan@linuxcare.com.au>
3298
3299 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3300 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3301
1268a053
HPN
33022001-03-27 Hans-Peter Nilsson <hp@axis.com>
3303
3304 * configure.tgt (cris-*-*): Change default emulation to criself.
3305 (cris-*-*aout*): New rule.
3306
d85e9ff7
AM
33072001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3308
3309 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3310 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3311
0879a67a
AJ
33122001-03-26 Andreas Jaeger <aj@suse.de>
3313
3314 * ld.texinfo (Overview): Fix syntax in texi code.
3315
0285c67d
NC
33162001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3317
3318 * ld.texinfo: Put @c man indications to generate the ld man page.
3319 When generating man, define all the variables. Define SEEALSO
3320 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3321 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3322 (ld.1): Generate from ld.texinfo.
3323 * Makefile.in: Regenerate.
3324
c20ec07b
NC
33252001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3326
3327 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 3328 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 3329
cc5ce052
UD
33302001-03-17 Ulrich Drepper <drepper@redhat.com>
3331
3332 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3333 is an absolute path look only for this file and not along the path.
3334
a1ab1d2a
UD
33352001-03-17 Ulrich Drepper <drepper@redhat.com>
3336
3337 * emultempl/elf32.em (OPTION_GROUP): New macro.
3338 Add new option Bgroup to longopts.
3339 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3340 (gld*_list_options): Add -Bgroup and -z defs.
3341 * ld.1: Document -Bgroup and -z defs.
3342 * ld.texinfo: Likewise.
3343
788fca5a
MM
33442001-03-07 Michael Meissner <meissner@redhat.com>
3345
3346 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3347 with sections created by -fdata-sections.
3348 (.dynbss,.bss): Ditto.
3349
1c7566d1
AM
33502001-03-05 Alan Modra <alan@linuxcare.com.au>
3351
3352 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3353 after_allocation_default, not gld..._before_allocation.
3354
27b7e12d
AM
33552001-02-27 Alan Modra <alan@linuxcare.com.au>
3356
3357 * configure.in (BFD_VERSION): New.
3358 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3359 * configure: Regenerate.
3360 * Makefile.am: Run "make dep-am"
3361 * Makefile.in: Regenerate.
3362
2bc551c7
TW
33632001-02-26 Timothy Wall <twall@cygnus.com>
3364
3365 * emulparams/elf64_aix.sh: Add additional read-only sections;
3366 uncomment lines which are now required.
3367
1276aefa
NC
33682001-02-26 H.J. Lu <hjl@gnu.org>
3369
3370 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
3371 that problems can be caught whilst loading symbols.
3372 (record_bfd_errors): New function: Report BFD errors and mark
3373 the executable output as being invalid.
1276aefa 3374
41c49998
TW
33752001-02-22 Timothy Wall <twall@cygnus.com>
3376
3377 * configure.host: Add configuration for ia64-*-aix*.
3378 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3379 Add dependencies for eelf64_aix.c.
3380 * Makefile.in: Regenerate.
3381 * configure.tgt: Add ia64-*-aix* mapping.
3382 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 3383 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
3384 AIX-specific test.
3385
78f85fd7
L
33862001-02-20 H.J. Lu <hjl@gnu.org>
3387
3388 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3389 false if we found the file.
3390
1ac7e077 33912001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
3392
3393 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3394 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3395
e135f41b
NC
33962001-02-18 lars brinkhoff <lars@nocrew.org>
3397
3398 * Makefile.am: Add PDP-11 target.
3399 * configure.tgt: Likewise.
3400 * emulparams/pdp11.sh: New file.
3401
a842aceb
DB
34022001-02-17 David O'Brien <obrien@FreeBSD.org>
3403
3404 * configure.host: Add a generic FreeBSD configuration entry such that
3405 all [modern] FreeBSD systems on all platforms will look the same.
3406
24174db0
L
34072001-02-14 H.J. Lu <hjl@gnu.org>
3408
3409 * configure.tgt: Remove mention of earmelf_linux26.
3410
30c3c13a
RH
34112001-02-13 Richard Henderson <rth@redhat.com>
3412
3413 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3414
b46a87b1
L
34152001-02-13 H.J. Lu <hjl@gnu.org>
3416
3417 * ldexp.h (node_type): Add etree_provided.
3418 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3419 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 3420 for etree_provided.
b46a87b1
L
3421 (exp_print_tree): Handle etree_provided.
3422 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3423 etree_provided.
3424
f3988fd9
RH
34252001-02-09 David Mosberger <davidm@hpl.hp.com>
3426
3427 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3428 .IA_64.unwind.* pattern to unwind table section and
3429 .IA_64.unwind_info* pattern to unwind info section.
3430
a85d7ed0
NC
34312001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3432
3433 * Makefile.am: Add linux target for S/390.
3434 * Makefile.in: Likewise.
3435 * configure.host: Likewise.
3436 * configure.tgt: Likewise.
3437 * emulparams/elf64_s390.sh: New file.
3438 * emulparams/elf_s390.sh: New file.
3439
780248c4
JJ
34402001-02-09 Jakub Jelinek <jakub@redhat.com>
3441
3442 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3443 targ_extra_libpath.
3444 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3445
0e2534bd
PB
34462001-02-06 Philip Blundell <philb@gnu.org>
3447
3448 * Makefile.am: Remove mention of earmelf_linux26.
3449 * Makefile.in: Regenerate.
3450
46c1ea57
PB
34512001-02-04 Philip Blundell <philb@gnu.org>
3452
3453 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3454 * emulparams/armelf_linux26.sh: Delete.
3455 * configure.tgt: Remove mention of armelf_linux26 emulation.
3456
0088edd2
NC
34572001-02-01 Nick Clifton <nickc@redhat.com>
3458
3459 * ld.1: Replace occurances of -oformat with --oformat.
3460
02aa14fb
AM
34612001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3462
3463 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3464 load_base is specified.
3465
f813923c
HPN
34662001-01-24 Hans-Peter Nilsson <hp@axis.com>
3467
3468 * emultempl/elf32.em: Correct spelling in comments and listed
3469 options.
3470
c1eb1488
AM
34712001-01-23 Alan Modra <alan@linuxcare.com.au>
3472
3473 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3474 default for the first section of a group of overlay sections.
3475
d9fc3714
AM
34762001-01-22 Alan Modra <alan@linuxcare.com.au>
3477
3478 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3479 * Makefile.in: Regenerate.
3480 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3481 Check for null tool_dir.
3482
6be0ca94
JW
34832001-01-16 Jim Wilson <wilson@redhat.com>
3484
3485 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3486 and IA_64.unwind.info.
3487
b9247304
L
34882001-01-16 H.J. Lu <hjl@gnu.org>
3489
3490 * ldlang.c (lang_check): Merge the private data only if the
3491 input file has contents.
3492
577a0623
AM
34932001-01-14 Alan Modra <alan@linuxcare.com.au>
3494
d952f17a
AM
3495 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3496
ffd6e9de
AM
3497 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3498 enabling search for libmilli. On a relocatable link, make .text
3499 sections unique.
3500 (LDEMUL_AFTER_PARSE): Define.
3501 (hppaelf_finish): Correct spelling of relocatable in comments.
3502
577a0623
AM
3503 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3504 rummage through the script for sections on the unique list.
3505 Correct length of strncmp for ".note".
3506 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3507
3508 * ldlang.c (unique_section_list): New var.
3509 (unique_section_p): New function.
3510 (walk_wild_section): Don't match sections on unique_section_list.
3511 (lang_add_unique): New function.
ffd6e9de 3512 Correct spelling of relocatable in comments.
577a0623
AM
3513
3514 * ldlang.h (struct unique_sections): Declare.
3515 (unique_section_list): Declare.
3516 (unique_section_p): Declare.
3517 (lang_add_unique): Declare.
3518
3519 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3520 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3521
3522 * ld.texinfo (--unique): Update.
3523
b7ed8fad
NC
35242001-01-13 Nick Clifton <nickc@redhat.com>
3525
3526 * lexsup.c (parse_args): Remove spurious white space.
3527
d0398d6a
NC
35282001-01-12 Nick Clifton <nickc@redhat.com>
3529
3530 * lexsup.c (parse_args): Update copyright date.
3531
350fdb00
PB
35322001-01-12 Philip Blundell <pb@futuretv.com>
3533
3534 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3535
60c6797e
KH
35362001-01-10 Kazu Hirata <kazu@hxi.com>
3537
3538 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3539 * scripttempl/h8300h.sc: Fix formatting.
3540 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
3541 * scripttempl/h8500.sc: Likewise.
3542 * scripttempl/h8500b.sc: Likewise.
3543 * scripttempl/h8500c.sc: Likewise.
3544 * scripttempl/h8500m.sc: Likewise.
3545 * scripttempl/h8500s.sc: Likewise.
60c6797e 3546
482e8b32
DB
35472000-01-07 David O'Brien <obrien@BSDi.com>
3548
3549 * emultempl/elf32.em: Only perform Linux ld hints processing when
3550 targeting Linux.
3551
d7ed7ca6
PB
35522001-01-07 Philip Blundell <philb@gnu.org>
3553
3554 * ld.texinfo (Bug Reporting): Update email address for reports.
3555
0fc3347a
NC
35562000-12-31 Nick Clifton <nickc@redhat.com>
3557
3558 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3559 options by checking for a return value of '?' not -1.
3560
e4897a32
NC
35612000-12-28 Nick Clifton <nickc@redhat.com>
3562
3563 * lexsup.c (struct ld_option): Add new enum value:
3564 EXACTLY_TWO_DASHES.
3565 (ld_options[]): Change -omagic, -output and -oformat options
3566 to be EXACTLY_TWO_DASHES.
3567 (OUTPUT_COUNT): Use ARRAY_SIZE.
3568 (parse_args): Change parameter 'argc' to unsigned.
3569 Place EXACTLY_TWO_DASHES options into new really_longopts
3570 array.
3571 If getopt_long_only fails, try calling getopt_long using the
3572 really_longopts array.
3573 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3574 TWO_DASHES options.
3575
3576 * ldlex.h: Fix prototype of parse_args.
3577
3578 * ld.texinfo: Document that long options starting with 'o'
3579 must be preceeded by two dashes. Change example of a single
3580 dashed long option from -oformat to -trace-symbol.
3581
1122a5fc
NC
35822000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3583
3584 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3585 (longopts[]): New --no-default-excludes option.
3586 (gld_${EMULATION_NAME}_list_options): Document.
3587 (gld_${EMULATION_NAME}_parse_args): Handle.
3588
037849a9
NC
35892000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3590
3591 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3592 whitespace, it breaks the K&R C preprocessor.
3593
7ec229ce
DD
35942000-12-11 DJ Delorie <dj@redhat.com>
3595
3596 * ld.texinfo: Add notes about --whole-archive and gcc.
3597
b79e8c78
NC
35982000-11-18 Fred Fish <fnf@be.com>
3599
3600 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3601 (ld_options): Entry for --allow-shlib-undefined.
3602 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3603 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3604 to false.
3605 * ld.texinfo: Document new command line switch.
d952f17a 3606
9a8e2505
GK
36072000-12-12 Geoffrey Keating <geoffk@redhat.com>
3608
3609 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3610 .fixup is actually read/write.
3611 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3612 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3613 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3614
3b16e843 36152000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
3616
3617 * NEWS: Add note about x86_64 architecture.
3618
93b63cd3
DD
36192000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3620
3621 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3622 Set DWARF2 sections to a VMA of zero.
3623
68b2fc7a 36242000-12-01 Joel Sherrill <joel@OARcorp.com>
24f6971a 3625
d952f17a 3626 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
3627 New targets.
3628 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3629 (sparc*-*-rtems*): Switched from a.out to ELF.
3630
2be3aa03
NC
36312000-11-30 Jan Hubicka <jh@suse.cz>
3632
3633 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3634 (eelf_x86_64.c): New.
3635 * Makefile.in: Regenerate.
3636 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3637 * emulparams/elf_x86_64.sh: New.
3638
8c899858
HPN
36392000-11-30 Hans-Peter Nilsson <hp@axis.com>
3640
3641 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3642 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3643
3644 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3645 merging non-a.out sections into CONSTRUCTING.
3646
e47b9e39
NC
36472000-11-28 Nick Clifton <nickc@redhat.com>
3648
3649 * ld.1 (COPYING): Mention that the GNU Free Documentation
3650 License is present in the sources, but not the output, and
3651 also available from the GNU website.
3652 (GNU Free Documentation License): Comment out this section.
3653
ad95f82a
DB
36542000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3655
3656 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3657 does not use them.
3658
fd89e65f
DB
36592000-11-25 David O'Brien <obrien@FreeBSD.org>
3660
3661 * ld.1: Remove old date so it does not give the impression the manpage
3662 is way out of date.
3663
077b8428
NC
36642000-11-24 Nick Clifton <nickc@redhat.com>
3665
3666 * configure.tgt (xscale-coff): Add target.
3667 (xscale-elf): Add target.
3668
49425d28
NC
36692000-11-24 Fred Fish <fnf@be.com>
3670
d952f17a
AM
3671 * ldmain.c (main): Remove redundant init of config.make_executable
3672 to true.
49425d28 3673
d3480244
RH
36742000-11-15 Richard Henderson <rth@redhat.com>
3675
3676 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3677
1ce7de8b
KH
36782000-11-14 Kazu Hirata <kazu@hxi.com>
3679
3680 * scripttempl/h8300.sc: Fix formatting.
3681 * scripttempl/h8300h.sc: Likewise.
3682 * scripttempl/h8300s.sc: Likewise.
3683
3b16e843 36842000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
3685
3686 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3687
2e418547
PB
36882000-11-09 Philip Blundell <pb@futuretv.com>
3689
3690 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3691 around orphan sections whose names can be represented in C.
3692
c940e6fc
JW
36932000-11-07 Jim Wilson <wilson@redhat.com>
3694
3695 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3696 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3697
704c465c
NC
36982000-11-06 Nick Clifton <nickc@redhat.com>
3699
3700 * ld.texinfo: Add GNU Free Documentation License.
3701 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 3702 * ld.1: Add GNU Free Documentation License.
704c465c 3703
dca7760f
AM
37042000-11-05 Alan Modra <alan@linuxcare.com.au>
3705
3706 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3707 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3708
3709 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3710 Move 2000-11-02 Makefile.in changes to this file.
3711 * Makefile.in: Regenerate.
3712
40a633d5
NC
37132000-11-03 Nick Clifton <nickc@redhat.com>
3714
3715 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3716 constructors and destructors.
3717 * scripttempl/h8300h.sc: Ditto.
3718 * scripttempl/h8300s.sc: Ditto.
3719 * scripttempl/h8500.sc: Ditto.
3720 * scripttempl/h8500b.sc: Ditto.
3721 * scripttempl/h8500c.sc: Ditto.
3722 * scripttempl/h8500m.sc: Ditto.
3723 * scripttempl/h8500s.sc: Ditto.
3724 * scripttempl/v850.sc: Ditto.
3725 * scripttempl/w65.sc: Ditto.
3726 * scripttempl/z8000.sc: Ditto.
3727
59ff2774
NC
37282000-11-02 Per Lundberg <plundis@chaosdev.org>
3729
3730 * Makefile.in (e_i386_chaos.c): New rule.
3731 (ALL_EMULATIONS): Added e_i386_chaos.o.
3732 * emulparams/elf_i386_chaos.sh: New file.
3733 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3734
645571e1
JJ
37352000-10-20 Jakub Jelinek <jakub@redhat.com>
3736
3737 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3738 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3739 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3740 library path suffix.
3741 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3742
c5975a45
HPN
37432000-10-18 Hans-Peter Nilsson <hp@axis.com>
3744
3745 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3746 for consecutive sections.
3747
ea20a7da
CC
37482000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3749
d952f17a
AM
3750 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3751 options.
3752 * ld.texinfo: Added notes about this new option.
ea20a7da 3753
6e45556a
NC
37542000-10-16 Nick Clifton <nickc@redhat.com>
3755
3756 * emultempl/pe.em (_after_open): Add tests of return values from
3757 bfd functions. Emit appropriate error messages if necessary.
3758
b9a69188
NC
37592000-10-13 Nick Clifton <nickc@redhat.com>
3760
3761 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
3762 local variables - they are not used, but leave in the call to
3763 bfd_canonicalize_symtab.
b9a69188
NC
3764 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3765 pe_dll_search_prefix.
3766
627427de 37672000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 3768
627427de
DD
3769 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3770 (longopts): New --dll-search-prefix option.
3771 (gld_${EMULATION_NAME}_list_options): Document.
3772 (gld_${EMULATION_NAME}_parse_args): Handle.
3773 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3774 dynamically, search for a dll named '<prefix><basename>.dll'
3775 in preference to 'lib<basename>.dll' if --dll-search-prefix
3776 is specified.
3777
24376d1b
AM
37782000-10-12 Alan Modra <alan@linuxcare.com.au>
3779
3780 * ldlang.c (section_already_linked): Set kept_section instead of
3781 sec->comdat->sec.
3782
e47d05ad
KH
37832000-10-10 Kazu Hirata <kazu@hxi.com>
3784
3785 * deffile.h: Fix formatting.
3786 * lexsup.c: Likewise.
3787 * mri.c: Likewise.
3788
23a87948
DD
37892000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3790
3791 * pe-dll.c (make_one): Do not generate code thunk for DATA
3792 exports.
3793 (process_def_file): deduce DATA flag for auto-export sumbols.
3794
86b1cc60
KH
37952000-10-09 Kazu Hirata <kazu@hxi.com>
3796
89cdebba
KH
3797 * ld.h: Fix formatting.
3798 * ldcref.c: Likewise.
3799 * ldctor.h: Likewise.
3800 * ldemul.c: Likewise.
3801 * ldemul.h: Likewise.
3802 * ldexp.c: Likewise.
3803 * ldexp.h: Likewise.
3804 * ldfile.c: Likewise.
3805 * ldfile.h: Likewise.
3806 * ldlang.c: Likewise.
3807 * ldlang.h: Likewise.
3808 * ldmain.c: Likewise.
7bfd51a3
KH
3809 * pe-dll.c: Likewise.
3810
3811 * pe-dll.c: Revert some formatting fixes.
86b1cc60 3812
d643799d
KH
38132000-10-08 Kazu Hirata <kazu@hxi.com>
3814
3815 * pe-dll.c: Fix formatting.
3816
08da4cac
KH
38172000-10-05 Kazu Hirata <kazu@hxi.com>
3818
3819 * ldlang.c: Fix formatting.
3820
c2a94a7a
DD
38212000-10-03 DJ Delorie <dj@redhat.com>
3822
3823 * pe-dll.c (fill_edata): initialize entire block
3824 (make_one): fill in correct section.
3825
8c95a62e
KH
38262000-10-03 Kazu Hirata <kazu@hxi.com>
3827
3828 * ldexp.c: Fix formatting.
3829
486e80e2
DD
38302000-10-02 DJ Delorie <dj@redhat.com>
3831
3832 * emultempl/pe.em (gld_*_after_open): detect case where there two
3833 import libraries for same dll; rename one to ensure proper link
3834 order.
3835
3836 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3837 typo
3838 (generate_edata): fix typo
3839
24dd9f75
HPN
38402000-09-29 Hans-Peter Nilsson <hp@axis.com>
3841
3842 * scripttempl/crisaout.sc (ENTRY): Now __start.
3843 (.text): Add default setting for __start.
3844 Remove CONSTRUCTORS handling.
3845 (/DISCARD/): Add .gnu.warning.*.
3846 * emulparams/crislinux.sh (ENTRY): Now __start.
3847 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3848 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3849 (ENTRY): Now __start.
3850 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3851 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3852
4de2d33d
KH
38532000-09-29 Kazu Hirata <kazu@hxi.com>
3854
5cc18311
KH
3855 * deffile.h: Fix formatting.
3856 * ld.h: Likewise.
3857 * ldcref.c: Likewise.
4de2d33d 3858 * ldctor.c: Likewise.
5cc18311 3859 * ldctor.h: Likewise.
4de2d33d 3860 * ldemul.c: Likewise.
5cc18311 3861 * ldemul.h: Likewise.
4de2d33d 3862 * ldexp.c: Likewise.
5cc18311 3863 * ldexp.h: Likewise.
4de2d33d 3864 * ldfile.c: Likewise.
5cc18311 3865 * ldfile.h: Likewise.
4de2d33d 3866 * ldlang.c: Likewise.
5cc18311
KH
3867 * ldlang.h: Likewise.
3868 * lexsup.c: Likewise.
3869 * mri.c: Likewise.
3870 * pe-dll.c: Likewise.
4de2d33d 3871
45b1f63c
DD
38722000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3873
3874 * pe-dll.c (process_def_file): Uninitialized data wasn't
3875 exported with --export-all-symbols switch.
d952f17a 3876
45b1f63c
DD
38772000-09-28 DJ Delorie <dj@redhat.com>
3878
3879 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3880 noname work properly.
3881
47d89dba
AM
38822000-09-28 Alan Modra <alan@linuxcare.com.au>
3883
3884 * ld.texinfo (HPPA ELF32): New section.
3885
3886 * emultempl/hppaelf.em (group_size): New.
3887 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3888 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3889 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3890 options to prevent abbreviations matching.
3891 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3892 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3893
36bdbeec
NC
38942000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3895
3896 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3897 on the m68*-*-elf target. Make it support COFF input objects.
3898
6d5e62f8
KH
38992000-09-21 Kazu Hirata <kazu@hxi.com>
3900
3901 * ldmain.c: Fix formatting.
3902 * ldmisc.c: Likewise.
3903 * ldver.c: Likewise.
3904 * ldwrite.c: Likewise.
3905
e2eb67d9
AM
39062000-09-21 Alan Modra <alan@linuxcare.com.au>
3907
3908 * ldwrite.c (clone_section): Silence gcc warnings.
3909
b3ea3584
AM
39102000-09-20 Alan Modra <alan@linuxcare.com.au>
3911
3912 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3913 out of memory failure.
3914
3915 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3916 (clone_section): Handle out of memory failures. Rename var to
3917 avoid c++ reserved word.
3918
25f72752
AM
39192000-09-18 Alan Modra <alan@linuxcare.com.au>
3920
3921 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3922 stub_name param to stub_sec_name.
3923 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3924
0752970e
NC
39252000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3926
3927 * emultempl/m68kelf.em: New file.
3928 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3929 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3930 * Makefile.in: Regenerate.
3931
92b7e9d8
AM
39322000-09-15 Alan Modra <alan@linuxcare.com.au>
3933
3934 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3935 only as needed.
3936
9b14b192
NC
39372000-09-13 Nick Clifton <nickc@redhat.com>
3938
3939 * ldmain.c (multiple_definition): Disable relaxation if
3940 multiple symbol definitions are encountered - otherwise the
3941 linker could abort with an assertion failure.
3942
891fa266
NC
39432000-09-10 Nick Clifton <nickc@redhat.com>
3944
3945 * mri.c: Fix formatting.
3946
5d64ca4e
L
39472000-09-07 H.J. Lu <hjl@gnu.org>
3948
3949 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3950 * configure: Rebuild.
3951
dd94604f
L
39522000-09-07 H.J. Lu <hjl@gnu.org>
3953
3954 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3955 * Makefile.in: Rebuild.
3956
71bfc0ae
AM
39572000-09-07 Alan Modra <alan@linuxcare.com.au>
3958
3959 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3960 broken list handling. Create __start_SECNAME and __stop_SECNAME
3961 when no place-holder. Add some comments. Test both SEC_CODE and
3962 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 3963 Handle case where no output section statement created.
71bfc0ae 3964
4a428502
AO
39652000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3966
3967 * configure.tgt (sh-*-linux*): Added.
3968 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3969 * Makefile.in: Rebuilt.
3970 * emulparams/shelf_linux.sh: New file.
3971 * emulparams/shlelf_linux.sh: New file.
3972
f9989030
AM
39732000-09-06 Alan Modra <alan@linuxcare.com.au>
3974
3975 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3976 try shuffling sections when the orphan happens to be the place
3977 holder. Keep count of unique section names generated so we speed
3978 the search for a new name.
3979
58cccadb
AO
39802000-09-06 Alexandre Oliva <aoliva@redhat.com>
3981
3982 * configure: Rebuilt with new libtool.m4.
3983
5b343f5a
NC
39842000-09-05 Nick Clifton <nickc@redhat.com>
3985
3986 * Makefile.in: Regenerate.
3987 * aclocal.m4: Regenerate.
3988 * configure: Regenerate.
3989 * config.in: Regenerate.
3990 * po/ld.pot: Regenerate.
3991
3992 * ldint.texinfo: Remove CVS revision marker - it foils local
3993 comparisons.
3994
3995 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 3996
a854a4a7
AM
39972000-09-05 Alan Modra <alan@linuxcare.com.au>
3998
3231d22e
AM
3999 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4000 to stub section flags.
4001 (hppa_for_each_input_file_wrapper): New.
4002 (hppa_lang_for_each_input_file): New.
4003 (lang_for_each_input_file): Define to call above.
4004 (multi_subspace): New.
4005 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4006 (PARSE_AND_LIST_PROLOGUE): Define.
4007 (PARSE_AND_LIST_LONGOPTS): Define.
4008 (PARSE_AND_LIST_OPTIONS): Define.
4009 (PARSE_AND_LIST_ARGS_CASES): Define.
4010 (hppaelf_finish): Call elf32_hppa_set_gp.
4011 (hppaelf_set_output_arch): Remove.
4012 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4013
4014 * emulparams/hppalinux.sh (ELFSIZE): Define.
4015 (MACHINE): Define.
4016 (OTHER_READONLY_SECTIONS): Define.
4017 (DATA_PLT): Define.
4018 (GENERATE_SHLIB_SCRIPT): Define.
4019
5f992e62
AM
4020 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4021 to const throughout. Change `void *' to `PTR' throughout.
4022 (lang_memory_default): Function is local to file, add `static'.
4023
4024 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4025 (ehppalinux.c): Likewise.
4026 (earmelf.c): Likewise.
4027 (earmelf_linux.c): Likewise.
4028 (earmelf_linux26.c): Likewise.
4029 * Makefile.in: Regenerate.
4030
a854a4a7
AM
4031 * ld.h (ld_config_type): Add unique_orphan_sections.
4032 * lexsup.c (OPTION_UNIQUE): Define.
4033 (ld_options): Add "--unique".
4034 (parse_args): Handle it.
4035 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4036 search for an existing output section if unique_orphan_sections is
4037 set. Make use of bfd_get_unique_section_name rather than
4038 duplicating code here.
4039 * ld.texinfo: Describe --unique.
4040
4041 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4042 optional arg to split-by-file.
4043 (parse_args): Handle them.
4044 * ld.texinfo: Update description of these options.
4045 * ldwrite.c (clone_section): Pass in the section name. Replace
4046 local code with bfd_get_unique_section_name.
4047 (split_sections): Tidy code and comments. Use a list traversal
4048 more appropriate to the list construction. Handle cooked section
4049 sizes. Split when split_by_reloc reached rather than exceeded.
4050 Track section size and split when split_by_file reached. Fix
4051 link_order_tail (even though it's not used).
4052 (ldwrite): Modify condition for calling split_sections to suit
4053 changed split_by_reloc and split_by_file.
4054 * ldmain.c (main): Init config.split_by_reloc and
4055 config.split_by_file to -1.
4056 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4057 Change split_by_file to bfd_size_type.
4058
18e03609
NC
40592000-09-02 Nick Clifton <nickc@redhat.com>
4060
4061 * configure.in: Increase version number to 2.10.91.
4062 * NEWS: Mention new ability to support removal of duplicate DWARF2
4063 debug information.
4064 * configure: Regenerate.
4065 * aclocal.m4: Regenerate.
4066 * config.in: Regenerate.
4067
3a9d486c
NC
40682000-09-02 Daniel Berlin <dberlin@redhat.com>
4069
4070 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4071 sections.
a2b64bed 4072 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
4073 * scripttempl/elfd10v.sc: Ditto.
4074 * scripttempl/elfd30v.sc: Ditto.
4075 * scripttempl/elfi370.sc: Ditto.
4076 * scripttempl/elfm68hc11.sc: Ditto.
4077 * scripttempl/elfm68hc12.sc: Ditto.
4078 * scripttempl/elfi386beos.sc: Ditto.
4079 * scripttempl/v850.sc: Ditto.
50bbae35 4080
ac48eca1
AO
40812000-08-31 Alexandre Oliva <aoliva@redhat.com>
4082
4083 * acinclude.m4: Include libtool and gettext macros from the
4084 top level.
4085 * aclocal.m4, configure: Rebuilt.
4086
c13b1b77
NC
40872000-08-25 Nick Clifton <nickc@redhat.com>
4088
4089 * ldlang.c (open_output): When choosing the target for a
4090 particular endianness, do nothing if the target is not
4091 supported.
4092
dcb0bd0e
L
40932000-08-25 H.J. Lu <hjl@gnu.org>
4094
4095 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4096 check -rpath nor LD_RUN_PATH for cross link.
4097 * ld.texinfo: Document the change.
4098
5bcac8a4
HPN
40992000-08-24 Hans-Peter Nilsson <hp@axis.com>
4100
4101 * NEWS: Mention support for CRIS.
4102
6dd8c765
L
41032000-08-23 H.J. Lu <hjl@gnu.org>
4104
4105 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4106 the current runpath list from bfd_elf_get_runpath_list ()
4107 before search.
4108
ec4eb78a
L
41092000-08-22 H.J. Lu <hjl@gnu.org>
4110
4111 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4112 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4113 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4114 trace_file_tries is non-zero.
4115 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4116 if trace_file_tries is non-zero.
4117
4118 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 4119 * NEWS: Mention it.
ec4eb78a 4120
22b36938
JE
41212000-08-14 Jason Eckhardt <jle@cygnus.com>
4122
4123 * NEWS: Mention i860 support.
4124
d73e9da0
AS
41252000-08-14 Andreas Schwab <schwab@suse.de>
4126
4127 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 4128 syntax.
d73e9da0 4129
9ac4db9c
GK
41302000-08-10 Geoff Keating <geoffk@cygnus.com>
4131
4132 * scripttempl/elf.sc: Add a comment giving the correspondence
4133 between sections, per-datum sections, and linkonce sections. Make
4134 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4135 .sbss2.
4136
165589e4
JE
41372000-08-10 Jason Eckhardt <jle@cygnus.com>
4138
4139 * emulparams/elf32_i860.sh: New file.
4140 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4141 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4142 (eelf32_i860.c): New rule.
4143 * Makefile.in: Regenerate.
4144
345a835d
NC
41452000-08-10 Nick Clifton <nickc@cygnus.com>
4146
4147 * emulparams/mipspe.sh (ENTRY): Add definition.
4148
e374f1d9
NC
41492000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4150
4151 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4152 in error message.
4153
236d5abf
NC
41542000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4155
4156 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4157 the final size of .bss section.
4158 * scripttempl/elfm68hc12.sc: Likewise.
4159
4b209b22
AM
41602000-08-04 Alan Modra <alan@linuxcare.com.au>
4161
4162 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4163 gld${EMULATION_NAME}_parse_args for consistency. Combine
4164 lastoptind and prevoptind vars, and keep track of last optind.
4165 (gld_${EMULATION_NAME}_list_options): Rename to
4166 gld${EMULATION_NAME}_list_options.
4167
28423a68
AM
41682000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4169
4170 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4171 (i586-sco-sysv5uw7.1.0).
4172
b2009ff7
L
41732000-07-27 H.J. Lu <hjl@gnu.org>
4174
4175 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4176 (PARSE_AND_LIST_PROLOGUE): New.
4177 (PARSE_AND_LIST_LONGOPTS): Likewise.
4178 (PARSE_AND_LIST_OPTIONS): Likewise.
4179 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4180 (PARSE_AND_LIST_EPILOGUE): Likewise.
4181
04925e1e
AM
41822000-07-28 Alan Modra <alan@linuxcare.com.au>
4183
41392f03
AM
4184 * emultempl/armelf.em: Elide functions common to elf32.em,
4185 ie. most of the file.
4186 (arm_elf_after_open): New. Do arm specific things then call
4187 gld${EMULATION_NAME}_after_open.
4188 (arm_elf_before_allocation): New. Call
4189 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4190 (PARSE_AND_LIST_PROLOGUE): Define.
4191 (PARSE_AND_LIST_SHORTOPTS): Define.
4192 (PARSE_AND_LIST_LONGOPTS): Define.
4193 (PARSE_AND_LIST_OPTIONS): Define.
4194 (PARSE_AND_LIST_ARGS_CASES): Define.
4195 (LDEMUL_AFTER_OPEN): Define.
4196 (LDEMUL_BEFORE_ALLOCATION): Define.
4197 (LDEMUL_BEFORE_PARSE): Define.
4198 (LDEMUL_FINISH): Define.
4199
4200 * emultempl/hppaelf.em: Similarly zap most of this file.
4201 (hppaelf_add_stub_section): Prototype.
4202 (hppaelf_layaout_sections_again): Prototype.
4203 (hook_in_stub): Prototype.
4204 (LDEMUL_SET_OUTPUT_ARCH): Define.
4205 (LDEMUL_FINISH): Define.
4206 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4207
4208 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4209 (EXTRA_EM_FILE): New.
4210 * emulparams/armelf_linux.sh: Likewise.
4211 * emulparams/armelf_linux26.sh: Likewise.
4212 * emulparams/hppalinux.sh: Likewise.
4213 * emulparams/hppaelf.sh: Likewise.
4214 (NOP): Define.
4215
4216 * emultempl/elf32.em: Fix formatting.
4217 (EXTRA_EM_FILE): Source it.
4218 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4219 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4220 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4221 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4222 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4223 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4224 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4225 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4226 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4227 allow functions in this file to be overridden.
4228 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4229
4230 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4231
04925e1e
AM
4232 * emultempl/elf32.em: Reorganize file.
4233
88cdf297
NC
42342000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4235
4236 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4237 specific option to fit 64-bit executable in the lower
4238 31-bit address range. This is done by changing start
4239 address of .interp (the very first section of executable)
4240 and then setting EF_ALPHA_32BIT elf header flag.
4241
20bccb34
NC
42422000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4243
4244 * emultempl/m68kcoff.em: New file.
4245 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4246 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4247 generic.em.
4248 * Makefile.in: Regenerate.
4249
699845ef
L
42502000-07-20 H.J. Lu <hjl@gnu.org>
4251
4252 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4253 and "disable-new-dtags" to stop getopt from treating -d/-e as
4254 abbreviations for these options.
4255
6c1439be
L
42562000-07-20 H.J. Lu <hjl@gnu.org>
4257
4258 * ld.texinfo: Add documentation for --disable-new-dtags and
4259 --enable-new-dtags.
4260
4261 * ldmain.c (main): Initialize link_info.new_dtags to false.
4262
4263 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4264 --disable-new-dtags and --enable-new-dtags.
4265 (gld_${EMULATION_NAME}_list_options): Likewise.
4266
28c309a2
NC
42672000-07-05 Kenneth Block <krblock@computer.org>
4268
a2b64bed
NC
4269 * lexsup.c: Add optional style to demangle switch
4270 * ld.texinfo: Document optional style to demangle switch.
50bbae35 4271
9d06555c
HPN
42722000-07-20 Hans-Peter Nilsson <hp@axis.com>
4273
4274 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4275 ecrislinux.o.
4276 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4277 Regenerate dependencies.
4278 * Makefile.in: Rebuild.
4279 * configure.tgt (cris-*-*): New target.
4280 * emulparams/crisaout.sh, emulparams/criself.sh,
4281 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4282 * po/POTFILES.in, po/ld.pot: Regenerate.
4283
19e3be22
L
42842000-07-20 H.J. Lu <hjl@gnu.org>
4285
4286 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4287 Print out ignored -z options.
4288
e0ee487b
L
42892000-07-19 H.J. Lu <hjl@gnu.org>
4290
19e3be22
L
4291 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4292 (PARSE_AND_LIST_PROLOGUE): New.
4293 (PARSE_AND_LIST_LONGOPTS): Likewise.
4294 (PARSE_AND_LIST_OPTIONS): Likewise.
4295 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4296
4297 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4298
4299 * lexsup.c (ld_options): Comment out 'z'.
4300 (parse_args): Likewise.
4301
4302 * emultempl/elf32.em: Include "elf/common.h".
4303 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4304 options.
4305 (gld_${EMULATION_NAME}_list_options): Likewise.
4306
4307 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 4308
49e56c49
L
43092000-07-19 H.J. Lu <hjl@gnu.org>
4310
4311 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4312 bfd_elf_set_dt_needed_soname ().
4313
9d68bc82
DD
43142000-07-18 DJ Delorie <dj@cygnus.com>
4315
4316 * pe-dll.c (pe_dll_id_target): check object target name also
4317
53db15ed
HPN
43182000-07-18 Hans-Peter Nilsson <hp@axis.com>
4319
4320 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4321 ${INIT_END} if relocating.
4322 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4323
0ad8cf4c
DD
43242000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4325
a2b64bed 4326 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
4327 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4328 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4329 errors introduced by the old dynamic lib search order.
4330
874c8c99
DD
43312000-07-17 DJ Delorie <dj@cygnus.com>
4332
4333 * pe-dll.c (process_def_file): auto-export data items also
4334 (pe_process_import_defs): also see if _imp_ form needed
4335
5b4cf3f4
DD
43362000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4337
4338 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4339 for dll import libraries
4340
062739d1
NC
43412000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4342
4343 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 4344 gcc 2.95.2 and later.
062739d1 4345
1c64c4ed
NC
43462000-07-11 Kazu Hirata <kazu@hxi.com>
4347
50bbae35
AM
4348 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4349 message.
1c64c4ed 4350
b71e2778
AM
43512000-07-10 Alan Modra <alan@linuxcare.com.au>
4352
4353 * ldemul.h (struct lang_input_statement_struct): Remove forward
4354 declaration.
4355 (struct search_dirs): Likewise.
4356 * ldfile.h (struct lang_input_statement_struct): Likewise.
4357 Protect file from multiple inclusion.
4358 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4359 declaration from macro to file scope.
4360
4361 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4362 * ldgram.y: Likewise here.
4363 * ldlang.c: And here.
4364 * ldmain.c: And here.
4365 * mpw-elfmips.c: And here.
4366 * mpw-eppcmac.c: And here.
4367 * emultempl/aix.em: And here.
4368 * emultempl/armcoff.em: And here.
4369 * emultempl/armelf.em: And here.
4370 * emultempl/armelf_oabi.em: And here.
4371 * emultempl/beos.em: And here.
4372 * emultempl/elf32.em: And here.
4373 * emultempl/hppaelf.em: And here.
4374 * emultempl/linux.em: And here.
4375 * emultempl/lnk960.em: And here.
4376 * emultempl/pe.em: And here.
4377 * emultempl/sunos.em: And here.
4378 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4379 * mpw-idtmips.c: Ditto.
4380 * emultempl/generic.em: Ditto.
4381 * emultempl/gld960.em: Ditto.
4382 * emultempl/gld960c.em: Ditto.
4383 * emultempl/mipsecoff.em: Ditto.
4384 * emultempl/ticoff.em: Ditto.
4385 * emultempl/vanilla.em: Ditto.
4386
4387 * pe-dll.c: Include ldfile.h
4388 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4389
4390 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4391 arguments to bfd_elf32_size_dynamic_sections call.
4392 (gldelf32ebmip_place_orphan): Add missing arguments to
4393 lang_leave_output_section_statement call.
4394
2ef53d66
L
43952000-07-10 H.J. Lu <hjl@gnu.org>
4396
4397 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4398 DLL_SUPPORT.
4399 (strhash): Likewise.
4400 (compute_dll_image_base): Likewise.
4401 (pe_undef_found_sym): Likewise.
4402 (pe_undef_cdecl_match): Likewise.
4403 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4404 argument "arch" with ATTRIBUTE_UNUSED.
4405
9a8cbb09
AM
44062000-07-10 Alan Modra <alan@linuxcare.com.au>
4407
4408 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4409
4410 From Ryan Bradetich <rbradetich@uswest.net>
4411 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 4412
4900fc06
AM
44132000-07-09 Alan Modra <alan@linuxcare.com.au>
4414
4415 Changes to create multiple linker stubs, positioned immediately
4416 before the section where they are required.
4417 * emultempl/hppaelf.em: Include elf32-hppa.h.
4418 (stub_sec, file_chain): Delete.
4419 (hppaelf_create_output_section_statements): Don't make a stub
4420 section here.
4421 (hook_stub_info): New struct.
4422 (hook_in_stub): New function.
4423 (hppaelf_add_stub_section): New function.
4424 (hppaelf_finish): Do nothing for relocateable links. Modify the
4425 call to elf32_hppa_size_stubs. Move code for updating section
4426 layout from here...
4427 (hppaelf_layaout_sections_again): ..to here, a new function.
4428
4429 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4430 broken list handling. Pass in a pointer to the list.
4431 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4432 for above changes.
4433 (hppaelf_before_parse): Prototype.
4434 (hppaelf_set_output_arch): Prototype.
4435 (hppaelf_create_output_section_statements): Prototype.
4436 (hppaelf_delete_padding_statements): Prototype.
4437 (hppaelf_finish): Prototype.
4438
4439 Merge from elf32.em
4440 * emultempl/hppaelf.em: Include ctype.h.
4441 (struct orphan_save): New.
4442 (gld${EMULATION_NAME}_place_orphan): New.
4443 (output_rel_find): New.
4444 (hppaelf_get_script): Update from elf32.em.
4445 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4446 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 4447 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
4448
4449 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4450 ehppalinux.o, sort it. Regenerate dependencies.
4451 (ehppalinux.c): Depend on hppaelf.em
4452 * Makefile.in: Regenerate.
4453
4454 * configure.tgt: targ_emul=hppalinux for hppa*linux
4455
4456 * emulparams/hppalinux.sh: New.
4457 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4458
227aeb07
AM
44592000-07-08 Alan Modra <alan@linuxcare.com.au>
4460
4461 * lexsup.c (parse_args): Copy section name.
4462
28609fd4 44632000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 4464
2ef53d66 4465 * emultempl/pe.em: institute the following search order for
602e90d3
DD
4466 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4467 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4468 static lib (libfoo.a) if none of the above are found.
4469
5f577f7d
DD
44702000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4471
50bbae35 4472 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 4473 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 4474 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
4475 (gld_${EMULATION_NAME}_parse): Handle.
4476 (strhash): New static function.
50bbae35 4477 (compute_dll_image_base): New static function.
5f577f7d
DD
4478 (gld_${EMULATION_NAME}_set_symbols): Use.
4479
9a8cbb09 44802000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
4481
4482 * MAINTAINERS: new
4483
3548145d 44842000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
4485
4486 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4487 * emulparams/elf32btsmip.sh: New file.
4488 * Makefile.am: Add traditional mips target.
4489 * Makefile.in: Rebuild.
4490
67798033
L
44912000-07-01 H.J. Lu <hjl@gnu.org>
4492
4493 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4494 automake to use YLWRAP.
4495 * Makefile.in: Rebuild.
4496
0bdaf48b
AM
44972000-07-01 Alan Modra <alan@linuxcare.com.au>
4498
4499 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4500 (CLEANFILES): Add DEPA.
4501 * Makefile.in: Regenerate.
4502
c9e769c2
TW
45032000-06-30 Timothy Wall <twall@ppc>
4504
4505 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4506 the page in the upper octet of the address.
4507
65aa24b6
NC
45082000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4509
4510 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4511
4667035e
AM
45122000-06-24 Alan Modra <alan@linuxcare.com.au>
4513
4514 * NEWS: arm-elf does --gc-sections too.
4515
1581f8c9
AM
45162000-06-22 Alan Modra <alan@linuxcare.com.au>
4517
4518 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4519 find one.
4520 * Makefile.in: Regenerate.
4521
01580992
L
45222000-06-21 H.J. Lu <hjl@gnu.org>
4523
4524 * Makefile.am: Rebuild dependency.
4525 * Makefile.in: Rebuild.
4526
bbeb2e03
L
45272000-06-20 H.J. Lu <hjl@gnu.org>
4528
4529 * Makefile.am: Rebuild dependency.
4530 * Makefile.in: Rebuild.
4531
74459f0e
TW
45322000-06-20 Timothy Wall <twall@cygnus.com>
4533
4534 * scripttempl/tic54xcoff.sc: New.
4535 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4536 * gen-doc.texi: Add flag for TI COFF.
4537 * ld.texinfo: Add documentation for TI COFF handling switches.
4538 * emultempl/ticoff.em: New. TI COFF handling.
4539 * configure.tgt: Add tic54x target.
4540 * Makefile.am: Add tic54x target.
4541 * Makefile.in: Ditto.
4542
2ab47eed
AM
45432000-06-20 Alan Modra <alan@linuxcare.com.au>
4544
4545 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4546 checking for backslashes.
4547
919e4093
AM
45482000-06-19 Alan Modra <alan@linuxcare.com.au>
4549
4550 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4551
987fd5b4
AM
45522000-06-18 Alan Modra <alan@linuxcare.com.au>
4553
4554 * NEWS: Update list of targets supporting --gc-sections.
4555
4556 * scripttempl/elf.sc: KEEP .eh_frame contents.
4557 * scripttempl/elfd30v.sc: Same here.
4558
60bcf0fa
NC
45592000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4560
4561 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4562 and m68hc11 (elf).
4563 * Makefile.in: Rebuild.
4564 * configure.tgt: Recognize m68hc12 and m68hc11.
4565 * scripttempl/elfm68hc12.sc: New file.
4566 * emulparams/m68hc12elfb: New emulation.
4567 * emulparams/m68hc12elf: New emulation.
4568 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4569 (includes a memory.x script to define the ROM and RAM banks).
4570 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4571 New configuration files for support of Motorola 68hc11
4572
c7c54483
AM
45732000-06-15 Alan Modra <alan@linuxcare.com.au>
4574
4575 * ldmain.c (main): Only change SEC_READONLY for final link.
4576
bcef29e6
L
45772000-06-13 H.J. Lu <hjl@gnu.org>
4578
4579 * configure: Regenerate.
4580
946efd95
DB
45812000-06-08 David O'Brien <obrien@FreeBSD.org>
4582
4583 * configure.in (VERSION): Update to show this is the CVS mainline.
4584
57a6fd07
DB
45852000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4586
4587 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4588 input objects to be ECOFF.
4589 (check_sections): einfo takes %B, not %P, to print a BFD name.
4590
e06cae36
L
45912000-06-05 Michael Matz <matz@ifh.de>
4592
4593 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 4594 version scripts.
e06cae36 4595
d952f17a 4596 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 4597
2f0b56c0
DC
45982000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4599
4600 * emulparams/avr1200.sh (STACK): Define as 0.
4601 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4602 * emulparams/avr4433.sh (STACK): Likewise.
4603 * emulparams/avr44x4.sh (STACK): Likewise.
4604 * emulparams/avr85xx.sh (STACK): Likewise.
4605 * emulparams/avrmega103.sh (STACK): Likewise.
4606 * emulparams/avrmega161.sh (STACK): Likewise.
4607 * emulparams/avrmega603.sh (STACK): Likewise.
4608 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4609 (__stack): Define from ${STACK} for main().
4610
2114f57b
AM
46112000-05-26 Alan Modra <alan@linuxcare.com.au>
4612
4613 * Makefile.am: Update dependencies with "make dep-am"
4614 * Makefile.in: Regenerate.
4615
5af11cab
AM
46162000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4617
4618 * ldmain.c: Include filenames.h.
4619 (set_scripts_dir): Support backslashes in program name.
4620
1f0df59a
NC
46212000-05-22 Igor Shevlyakov <igor@windriver.com>
4622
4623 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
4624 read-only, don't forget to reset SEC_READONLY because it
4625 could be already set.
1f0df59a 4626
176355da
NC
46272000-05-22 Thomas de Lellis <tdel@windriver.com>
4628
50bbae35
AM
4629 * ld.1: Add documentation for new command line option:
4630 --section-start <sectionname>=<sectionorg>
4631 This is a generic version of -Ttext etc. which accepts
4632 any section name as a parameter instead of just text/data/
4633 bss.
4634 * ld.texinfo: More docs.
4635 * NEWS: More docs.
4636 * lexsup.c: (parse_args): Recognize new command line option.
176355da 4637 (ld_options): Add new option.
50bbae35 4638
8c5ff972
L
46392000-05-18 H.J. Lu <hjl@gnu.org>
4640
4641 * lexsup.c (parse_args): `i' == `r', not `q'.
4642
3b16e843 46432000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
4644
4645 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4646
a712da20
NC
46472000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4648 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 4649
a712da20
NC
4650 Add support for '-q' == '--emit-relocs' switch.
4651 * ldmain.c (main): Default to false.
4652 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4653 * NEWS: Describe the emitrelocations switch.
4654 * ld.texinfo: Describe the emitrelocations switch.
4655
690a460e
NC
46562000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4657
a2b64bed 4658 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
4659 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4660 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4661 link options.
50bbae35 4662
c2f1343c
AM
46632000-05-15 David O'Brien <obrien@FreeBSD.org>
4664
4665 * lexsup.c (parse_args): Update the year in the copyright notice.
4666
897083bd
AM
46672000-05-13 Alan Modra <alan@linuxcare.com.au>
4668
4669 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4670 Replace defines with those from intl/libgettext.h to quieten gcc
4671 warnings.
4672
cd4c806a
L
46732000-05-10 H.J. Lu <hjl@gnu.org>
4674
4675 * ldlang.c (open_input_bfds): Don't load the same file within
4676 a group again if the whole archive has been loaded already.
4677
93697284
AM
46782000-05-03 Alan Modra <alan@linuxcare.com.au>
4679
4680 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4681 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4682 strtoul.
4683
3b16e843 46842000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 4685
99a4150f 4686 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 4687
ebd6fc29
JW
4688 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4689 host "ia64-*-linux-gnu*".
4690
a1934524
AM
46912000-04-29 Andreas Jaeger <aj@suse.de>
4692
4693 * ld.h: Correctly check GCC version.
4694
3b16e843 46952000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
4696
4697 * Makefile.am: Add PA64 support. Add missing dependencies for
4698 PA32 elf support.
4699 * Makefile.in: Rebuilt.
4700 * configure.tgt: Add PA64 support (currently disabled).
4701
aea4bd9d
AM
47022000-04-25 Alan Modra <alan@linuxcare.com.au>
4703
4704 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4705 (output_rel_find): New function.
4706 (hold_section, hold_use): Delete.
4707 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4708 hold_interp): Make local to place_orphan.
4709 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4710 rather than place_section to find possible previous use of orphan.
4711 Similarly find the place-holder output sections. Use returned
4712 value from lang_enter_output_section_statement rather than calling
4713 lang_output_section_statement_lookup.
4714 * emultempl/armelf.em: Same here.
4715 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4716
4717 * ldlang.c (lang_enter_output_section_statement): Return output
4718 section statement.
4719 * ldlang.h (lang_enter_output_section_statement): Change
4720 declaration too.
4721
4722 * ldlang.h (lang_output_section_statement): Export it.
4723 * ldlang.c (lang_output_section_statement): Ditto.
4724
2b5fc1f5
NC
47252000-04-24 Nick Clifton <nickc@cygnus.com>
4726
4727 * ld.texinfo (Output Section Data): Add note that section data
4728 commands cannot appear outside of section directives.
4729
d8475ff6
JL
47302000-04-2 Matthew Green <mrg@cygnus.com>
4731
4732 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4733
3b16e843
NC
47342000-04-21 Richard Henderson <rth@cygnus.com>
4735 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
4736
4737 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4738 (eelf64_ia64.c): New rule.
4739 * Makefile.in: Rebuild.
4740 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4741 * emulparams/elf64_ia64.sh: New file.
50bbae35 4742
c9637625
RH
47432000-04-21 Richard Henderson <rth@cygnus.com>
4744
4745 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4746
28ea9521
AM
47472000-04-19 Alan Modra <alan@linuxcare.com.au>
4748
4749 * dep-in.sed: Match space at start of file name, not at end.
4750
20d04697
L
47512000-04-18 H.J. Lu <hjl@gnu.org>
4752
4753 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4754 lang_leave_output_section_statement () after calling
4755 lang_enter_output_section_statement ().
4756 * emultempl/armelf.em: Likewise.
4757
5ba47421
AM
47582000-04-18 Alan Modra <alan@linuxcare.com.au>
4759
4760 * emultempl/elf32.em (struct orphan_save): Add section field.
4761 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4762 better order, and place first orphan section as we did before the
4763 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4764 Don't call make_bfd_section here, let wild_doit do the job for us.
4765 Don't build a statement list when we'll only throw it away.
4766 * emultempl/armelf.em: Ditto.
4767 * emultempl/pe.em: Similarly.
4768
bdbe5705
GK
47692000-04-14 Geoff Keating <geoffk@cygnus.com>
4770
4771 * scripttempl/elfppc.sc: Remove.
4772 * emulparams/elf32ppc.sh: Use elf.sc.
4773 * emulparams/elf32lppc.sh: Use elf.sc.
4774 * emulparams/elf32ppclinux.sh: Use elf.sc.
4775 * emulparams/elf32ppcsim.sh: New file.
4776 * emulparams/elf32lppcsim.sh: New file.
4777 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4778 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4779 * Makefile.in: Regenerate.
4780 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4781
01cc8ff8
AM
47822000-04-14 Alan Modra <alan@linuxcare.com.au>
4783
5ba47421 4784 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 4785 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
4786 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4787 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
4788 Also set all relocateable section start addresses.
4789
6c86c541
GK
47902000-04-13 Geoff Keating <geoffk@cygnus.com>
4791
4792 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4793 Add new BSS_PLT variable for when .plt need not be contained in
4794 the file. Move _etext so that it is also after .fini, and provide
4795 both etext and _etext with a leading underscore. Mark the start
4796 and end of .sbss.
4797
6a345e87
AM
47982000-04-12 Alan Modra <alan@linuxcare.com.au>
4799
4800 * emultempl/elf32.em (struct orphan_save): New.
4801 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4802 hold_interp): Make them struct orphan_save.
4803 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4804 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4805 the end of the relevant section list. Also add associated section
4806 statements to the end of any previous orphan statements.
4807 * emultempl/armelf.em: Similarly.
4808 * emultempl/pe.em: Similarly.
4809
8be86746
AM
48102000-04-11 Alan Modra <alan@linuxcare.com.au>
4811
4812 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4813
3b16e843 48142000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 4815
a2d91340 4816 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 4817 --enable-build-warnings option.
a2d91340
AC
4818 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4819 * Makefile.in, configure: Re-generate.
4820
41b49281
AM
48212000-04-04 Alan Modra <alan@linuxcare.com.au>
4822
8ad3436c
AM
4823 * po/ld.pot: Regenerate.
4824
4825 * lexsup.c (help): Restore translated part of bug string.
4826
41b49281
AM
4827 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4828 (DEP): Quote when passing vars to sub-make. Add warning message
4829 to end.
4830 (DEP1): Rewrite for "gcc -MM".
4831 (CLEANFILES): Add DEP2.
4832 Update dependencies.
4833 * Makefile.in: Regenerate.
4834
c20f4f8c
AM
48352000-04-03 Alan Modra <alan@linuxcare.com.au>
4836
4837 * ld.h: #include "bin-bugs.h"
4838 * lexsup.c (help): Use REPORT_BUGS_TO.
4839
adde6300
AM
48402000-03-27 Denis Chertykov <denisc@overta.ru>
4841
4842 * configure.tgt (avr-*-*): New target support.
4843 * Makefile.am: Likewise.
4844 * scripttempl/elf32avr.sc: New script file.
4845 * emulparams/avr1200.sh: New file.
4846 * emulparams/avr23xx.sh: New file.
4847 * emulparams/avr4433.sh New file.
4848 * emulparams/avr44x4.sh New file.
4849 * emulparams/avr85xx.sh New file.
4850 * emulparams/avrmega103.sh New file.
4851 * emulparams/avrmega161.sh New file.
4852 * emulparams/avrmega603.sh New file.
4853 * Makefile.in: Regenerate.
4854
9282ff41
L
48552000-03-09 Andreas Jaeger <aj@suse.de>
4856
4857 * Makefile.am (check-DEJAGNU): Also unset LANG.
4858 * Makefile.in: Rebuild.
4859
a9998805
ILT
48602000-03-06 Ian Lance Taylor <ian@zembu.com>
4861
4862 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4863 archive.
4864
f9bc20e7
NC
48652000-03-02 H.J. Lu <hjl@gnu.org>
4866
4867 * emulparams/elf32mcore.sh: Include "getopt.h".
4868
4e277b38
ILT
48692000-03-01 Ian Lance Taylor <ian@zembu.com>
4870
4871 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4872
f0c87f88
NC
48732000-03-01 H.J. Lu <hjl@gnu.org>
4874
4875 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4876 * emulparams/shpe.sh: Likewise.
4877
48782000-03-01 Nick Clifton <nickc@cygnus.com>
4879
4880 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4881 to unused parameters.
4882
4883 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4884 functions only used by DLL code.
4885 (_place_orphan): Initialise 'dollar'.
4886
b6f29aaa
L
48872000-03-01 H.J. Lu <hjl@gnu.org>
4888
4889 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4890 indicate if the undefined symbol is a fatal error or not.
4891 Don't delete the output file if "fatal" is false.
4892
af28fce3
L
48932000-02-29 H.J. Lu <hjl@gnu.org>
4894
50bbae35 4895 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
4896 Set LC_COLLATE and LC_ALL to null and export them. It is for
4897 sort which expects the C locale.
4898 Add $(LIBS) to all $(HOSTING_LIBS).
4899 * Makefile.in: Rebuild.
4900
40d109bf
AM
49012000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4902
4903 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4904 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4905 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4906 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4907 find_potential_libraries.
4908
db5be682
JB
49092000-02-28 Jim Blandy <jimb@redhat.com>
4910
4911 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 4912 list entries; the lexer considers commas to be valid part of a
db5be682
JB
4913 filename, so in something like `foo, bar' the comma is considered
4914 part of the first filename, `foo,'.
4915 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4916
3558ff4c
ILT
49172000-02-27 Loren J. Rittle <ljrittle@acm.org>
4918
4919 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4920 host "i[3456]86-*-freebsdelf*".
4921
4eee2681
ILT
49222000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4923
4924 * scripttempl/i386go32.sc: Move misplaced semicolons.
4925
8d75d12d
ILT
49262000-02-25 Ian Lance Taylor <ian@zembu.com>
4927
4928 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4929 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4930 (eelf64hppa.c, ehppaelf.c): Remove targets.
4931 * Makefile.in: Rebuild.
4932
a1836d49
AO
49332000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4934
ad51fb57
AO
4935 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4936 GNU/Linux/sparc, but keep the default as 32.
4937
a1836d49
AO
4938 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4939 it default if sparcv9 or sparc64.
4940
344a211f
NC
49412000-02-24 Nick Clifton <nickc@cygnus.com>
4942
4943 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4944 * Makefile.in: Regenerate.
4945 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4946
4947 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4948 find_potential_libraries.
4949 * ldemul.c (ldemul_find_potential_libraries): New function.
4950
4951 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 4952 exported.
344a211f
NC
4953 (ldfile_open_file): Call ldemul_find_potential_libraries.
4954 * ldfile.h: Add prototype for ldfile_open_file_search.
4955
4956 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4957
4958 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4959 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4960
4961 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4962 (gld_X_find_potential_libraries): New function. Search for
4963 libraries called "*.lib".
4964
a2b64bed 4965 * scripttempl/pe.sc: Add .pdata section.
344a211f 4966
eaba1dd3
RH
49672000-02-23 Richard Henderson <rth@cygnus.com>
4968
4969 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4970 Add and use memory regions.
4971
5b93d8bb
AM
49722000-02-23 Linas Vepstas (linas@linas.org)
4973
4974 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4975
4976 * Makefile.am: Add support for Linux/IBM 370.
4977 * configure.tgt: Likewise.
4978
4979 * Makefile.in: Regenerate.
4980
f6af82bd
AM
49812000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4982
4983 * ldlang.c (print_input_section, print_data_statement,
4984 print_reloc_statement, print_padding_statement, insert_pad,
4985 size_input_section, lang_check_section_addresses,
4986 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 4987 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
4988 (lang_do_assignments): Also change `size' to unsigned.
4989
9e673ad1
RH
49902000-02-16 Richard Henderson <rth@cygnus.com>
4991
4992 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4993
562d3460
TW
49942000-02-16 Timothy Wall <twall@cygnus.com>
4995
4996 * mri.c (mri_draw_tree): Add default LMA region argument to call
4997 to lang_leave_output_section_statement.
4998 * ldlang.h: Update prototypes with LMA region arguments.
4999 * ldlang.c (lang_size_sections): Encapsulate region bounds
5000 checking in os_check_region call.
5001 (os_check_region): New function.
5002 (lang_output_section_statement_lookup): Initialize lma_region.
5003 (lang_leave_output_section_statement): Add LMA region argument.
5004 (lang_leave_overlay): Ditto.
5005 * ldgram.y: Handle LMA region syntax.
5006 * ld.texinfo (Output Section Description): Describe LMA region usage.
5007 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 5008 lma region in call to lang_leave_output_section_statement.
562d3460 5009 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 5010 lma region in call to lang_leave_output_section_statement.
562d3460 5011 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 5012 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
5013
5014
9e4ed18c
TW
50152000-02-04 Timothy Wall <twall@redhat.com>
5016
5017 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5018 octets when calculating section end addresses.
5019
32edc927
TW
50202000-02-04 Timothy Wall <twall@redhat.com>
5021
5022 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5023
4cbfc3ac
TW
50242000-02-03 Timothy Wall <twall@redhat.com>
5025
a2b64bed 5026 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 5027 octet count.
a2b64bed 5028 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
5029 print_reloc_statement, print_padding_statement): Print target
5030 address values and section sizes as bytes, not octets.
5031 (insert_pad) Calculate padding size in octets, and adjust "dot"
5032 by bytes.
5033 (size_input_section) Always adjust "dot" by bytes, not octets.
5034 (lang_check_section_addresses, lang_do_assignments) Adjust
5035 "dot" by bytes, not octets. Use the larger of the directive size
5036 or octets_per_byte for the number of octets actually allocated in
5037 the output section.
5038 (lang_set_startof) Make sure STARTOF returns a target address.
5039 (lang_one_common) Record size changes in octets.
5040 (lang_abs_symbol_at_end_of) Section end symbol's value is
5041 recorded in target bytes.
68b2fc7a 5042 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4cbfc3ac 5043 to be clear about behavior when an octet is smaller than one byte.
50bbae35 5044
305c7206
AM
50452000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5046
5047 * ldcref.c (output_cref): Don't pass message strings to printf
5048 as format arg.
5049 Update copyright.
5050
5051 * ldmisc.c (vfinfo): Same here.
5052 Update copyright.
5053
e1c47aa4
AM
50542000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5055
5056 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5057 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5058 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5059 Add missing NULL initialisers, and comments.
5060
5061 * testsuite/ld-srec/sr3.cc (__rethrow): New.
5062
13392b77
NC
50632000-01-21 Nick Clifton <nickc@cygnus.com>
5064
5065 * ldlang.c (lang_size_sections): Fix typo in comment.
5066
cce4c4c5
NC
50672000-01-18 H.J. Lu <hjl@gnu.org>
5068
5069 * ldlang.c (lang_size_sections): Also update the current
5070 address of a region if the SEC_NEVER_LOAD bit is not set.
5071
0decc840
NC
50722000-01-10 Philip Blundell <pb@futuretv.com>
5073
5074 * configure.tgt (arm*-*-conix*): New target.
5075
4e53152f
NC
50762000-01-07 Nick Clifton <nickc@cygnus.com>
5077
5078 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
5079 line switches with -Wl, (or whatever is appropriate) if it is
5080 being invoked by a comnpiler driver program.
50bbae35 5081 Fix description of the behaviour of the -n command line switch.
4e53152f 5082
3b16e843 50832000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
5084
5085 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5086 (name_list): New.
5087 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5088 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5089 (exclude_name_list): New.
5090 ldlang.c (walk_wild_section): Support list of excluded files.
5091 (print_wild_statement): Likewise.
5092 (lang_add_wild): Likewise.
5093 * ldlang.h (lang_wild_statement_type): Likewise.
5094 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 5095
5aaace27
NC
50962000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5097
870df5dc
NC
5098 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5099 (process_def_file): Use.
5100 (pe_dll_compat_implib): New variable.
5101 (make_one): Use.
50bbae35 5102
870df5dc
NC
5103 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5104 pe_dll_compat_implib.
50bbae35
AM
5105
5106 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
5107 compat-implib options.
5108 (gld_${EMULATION_NAME}_list_options): List new options.
5109 (gld_${EMULATION_NAME}_parse_args): Handle.
5110
50bbae35 5111 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 5112 dll.
50bbae35
AM
5113
5114 * deffilep.y (opt_name): Allow "." in name.
5aaace27 5115
2f6d2f85 5116For older changes see ChangeLog-9899
252b5132
RH
5117\f
5118Local Variables:
5119mode: change-log
5120left-margin: 8
5121fill-column: 74
5122version-control: never
5123End:
This page took 0.45271 seconds and 4 git commands to generate.