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