* tc-arm.c (struct asm_opcode): Delete comp_suffix and flags. Add
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
5b5cd1b0
HPN
12001-12-04 Hans-Peter Nilsson <hp@axis.com>
2
3 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
4 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
5 __Sbss.
6 (OTHER_END_SYMBOLS): Fix formatting.
7 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
8 (OTHER_END_SYMBOLS): Fix formatting.
9
7cecdbff
AM
102001-12-04 Alan Modra <amodra@bigpond.net.au>
11
12 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
13
742aeb63 142001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 15
742aeb63 16 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 17 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
18 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
19 (ldemul_default_target): Same.
20 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
21 * emultempl/gld960c.em (gld960_choose_target): Same.
22 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
23 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
24 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
25 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 26 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
27 -b32 and -b64.
28
48459341
L
292001-11-27 H.J. Lu <hjl@gnu.org>
30
31 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
32 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
33 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
34 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
35 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
36 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
37 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
38 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
39
7cecdbff 40 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
41 is not empty.
42 (SDATA): Likewise.
43 (REL_SDATA): Likewise.
44 (REL_SBSS): Likewise.
45 (REL_SDATA2): Likewise.
46 (REL_SBSS2): Likewise.
47 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
48 (SDATA2): Likewise.
49
ecfdd20c
SC
502001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
51
52 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
53 destructor in rom.
7cecdbff 54 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 55
da54c6eb
L
562001-11-22 H.J. Lu <hjl@gnu.org>
57
58 * Makefile.in: Regenerated with automake based on automake
59 1.4-8 in RedHat 7.1.
60
465bc359
AM
612001-11-22 Alan Modra <amodra@bigpond.net.au>
62
63 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
64 (config.status): Delete rule.
65 Add extra dependencies to cover sourced emulparams files.
66 * Makefile.in: Regenerate.
67
68 * scripttempl/elf.sc: Order <section>, <section>.* and
69 corresponding linkonce sections as seen in input files.
70 Formatting fixes. Zero vma of all sections if not relocating.
71 (STACK): Define and insert if STACK_ADDR defined.
72 (OTHER_RELOCATING_SECTIONS): Delete.
73 (OTHER_END_SYMBOLS): Define.
74 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
75 (OTHER_READWRITE_SECTIONS): Likewise.
76 (OTHER_GOT_SECTIONS): Likewise.
77 (OTHER_SDATA_SECTIONS): Likewise.
78 (OTHER_BSS_SECTIONS): Likewise.
79 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
80 (OTHER_READWRITE_SECTIONS): Likewise.
81 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
82 (OTHER_READWRITE_SECTIONS): Likewise
83
84 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
85 (STACK_ADDR): Define.
86 * emulparams/armelf_oabi.sh: As for armelf.sh.
87 * emulparams/elf32mcore.sh: As for armelf.sh.
88 * emulparams/h8300elf.sh: As for armelf.sh.
89 * emulparams/mn10200.sh: As for armelf.sh.
90 * emulparams/shelf.sh: As for armelf.sh.
91
92 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
93 (OTHER_END_SYMBOLS): Define.
94 * emulparams/m32relf.sh: As for elf32fr30.sh.
95 * emulparams/h8300helf.sh: As for elf32fr30.sh.
96 * emulparams/h8300self.sh: As for elf32fr30.sh.
97
98 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
99 defines with RELOCATING test.
100 (OTHER_SDATA_SECTIONS): Likewise.
101 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
102 (OTHER_END_SYMBOLS): ..this.
103 * emulparams/crislinux.sh: As for criself.sh.
104
105 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
106 if not relocating.
107 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
108 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
109 normal and linkonce sections as seen in input files.
110 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
111 (TEXT_DYNAMIC): Likewise.
112 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
113 (OTHER_SDATA_SECTIONS): Likewise.
114 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
115 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
116 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
117 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
118 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
119 (OTHER_PLT_RELOC_SECTIONS): Likewise.
120 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
121 sections as seen in input files.
122 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
123 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
124 if not relocating.
125 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
126 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
127 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
128 (OTHER_SECTIONS): Instead, use this..
129 (OTHER_END_SYMBOLS): ..and this.
130
131 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
132 * emulparams/elf32bsmip.sh: Likewise.
133 * emulparams/elf32btsmip.sh: Likewise.
134 * emulparams/elf32ebmip.sh: Likewise.
135 * emulparams/elf32lmip.sh: Likewise.
136 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
137 * emulparams/elf32lsmip.sh: Likewise.
138 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
139 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
140 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
141 * emulparams/elf64btsmip.sh: Likewise.
142 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
143 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
144 * emulparams/elf32ppclinux.sh: Likewise.
145 * emulparams/elf32ppcsim.sh: Likewise.
146 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
147 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
148 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
149 * emulparams/h8300self.sh: Likewise.
150 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
151 * emulparams/sh.sh: Comment.
152 * emulparams/shl.sh: Source sh.sh, remove duplicates.
153 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
154 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
155
abc6ab0a
AM
1562001-11-21 David Heine <dlheine@tensilica.com>
157 Alan Modra <amodra@bigpond.net.au>
158
159 * ldlang.c (map_input_to_output_sections): Replace "break"
160 accidentally removed with 2001-08-03 change.
161 (lang_gc_sections_1): Likewise.
162
2181f54f
AM
1632001-11-21 Alan Modra <amodra@bigpond.net.au>
164
165 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
166
ca0b5847
AM
1672001-11-20 Angela Marie Thomas <angela@redhat.com>
168
169 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
170 of false when calling lang_size_sections.
171 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 172
c56feb2b
AM
1732001-11-15 Alan Modra <amodra@bigpond.net.au>
174
175 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
176 function when LDEMUL_FINISH isn't set to the same name. Don't
177 call ${LDEMUL_FINISH}.
178 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
179 * emultempl/armelf.em (arm_elf_finish): Call
180 gld${EMULATION_NAME}_finish.
181 * emultempl/hppaelf.em (hppaelf_finish): Rename to
182 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
183 hppaelf_layout_sections_again if necessary.
184 (need_laying_out): New var.
185 (hppaelf_layaout_sections_again): Rename to
186 hppaelf_layout_sections_again. Clear need_laying_out.
187 (PARSE_AND_LIST_OPTIONS): Format text.
188
a48ca7f2
L
1892001-11-14 H.J. Lu <hjl@gnu.org>
190
191 * emultempl/armelf.em (arm_elf_finish): Renamed from
192 gld${EMULATION_NAME}_finish.
193 (LDEMUL_FINISH): Set to arm_elf_finish.
194
73d074b4
DJ
1952001-11-14 Daniel Jacobowitz <drow@mvista.com>
196
197 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
198 (struct ld_emulation_xfer_struct): Use it.
199
fc65c602
JL
200Tue Nov 13 11:27:14 2001 Ross Alexander <ross.alexander@uk.neceur.com>
201
465bc359 202 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
203 additional symbols referenced by newer crt0.o files from HP.
204
f11b7027
NC
2052001-11-12 Anthony Green <green@redhat.com>
206
207 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
208
3bf2994f
AM
2092001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
210
211 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
212 * Makefile.in: Regenerate.
213
ff5dcc92
SC
2142001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
215
216 * ld.texinfo: Use @command for commands, @option for options.
217 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
218 the page man title.
219 * Makefile.in: Rebuild.
220
9fb9af6e
CD
2212001-11-04 Chris Demetriou <cgd@broadcom.com>
222
223 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
224 Add support for targets.
2181f54f 225
3c62831e
NC
2262001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
227
228 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
229 * configure: Regernate.
230 * po/fr.po: New file.
231 * po/sv.po: New file.
232
3a9091c4
NC
2332001-11-01 NIIBE Yutaka <gniibe@m17n.org>
234
235 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
236 as little endian default and to support big endian.
2181f54f 237
361b220e
CD
2382001-11-01 Chris Demetriou <cgd@broadcom.com>
239
240 * ld.texinfo (Options): Document new option, -nostdlib.
241 * lexsup.c (OPTION_NOSTDLIB): New definition.
242 (ld_options): Add entry for "nostdlib".
243 (parse_args): Handle OPTIONS_NOSTDLIB.
244 * ldfile.c (ldfile_add_library_path): Don't add directories
245 to the search path if they weren't specified on the command line
246 and -nostdlib was specified.
247 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
248
210a7bd1
NC
2492001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
250
251 * lexsup.c (parse_args): Prevent infinite parsing loop when
252 "-rpath.a" is specified on the command line.
253 Replace calls to fprintf with calls to einfo.
254
114283d8
NC
2552001-10-31 John Marshall <jmarshall@acm.org>
256
257 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
258 appear only once across all the linker scripts involved in a link
259 invocation no longer applies. Make the documentation reflect
260 that.
261
7649aa50
NC
2622001-10-31 NIIBE Yutaka <gniibe@m17n.org>
263
264 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
265 targets.
266 (sh-*-linux*): Added targ_extra_libpath.
267
6e814ff8
AM
2682001-10-31 David Heine <dlheine@tensilica.com>
269
270 * ldlang.c (lang_size_sections): Keep a valid output_offset field
271 for padding statements.
272
3c3bdf30
NC
2732001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
274
275 * configure.tgt (mmix-*-*): New target.
276 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
277 Add dependencies to match.
278 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
279 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
280 scripttempl/mmo.sc: New files.
281 * gen-doc.texi: @set MMIX.
282 * ld.texinfo: Ditto.
6e814ff8 283 [MMIX] Add MMIX node.
3c3bdf30
NC
284 * Makefile.in: Regenerate.
285
ca0c1d3e
KH
2862001-10-29 Kazu Hirata <kazu@hxi.com>
287
288 * ldlang.c: Fix a comment typo.
289
1a3d33ce
AM
2902001-10-23 Alan Modra <amodra@bigpond.net.au>
291
292 * configure.host: Move alpha*-*-linux-gnu* entry to generic
293 entries, and match *-*-linux*.
294
b47c4208
AM
2952001-10-20 Alan Modra <amodra@bigpond.net.au>
296
297 * ldgram.y (mri_script_command): Surround processing of INCLUDE
298 with ldlex_script, ldlex_popstate.
299 (ifile_p1): Likewise.
300 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
301 correct slot.
302 (lex_push_file): Save current lineno to lineno_stack. Set lineno
303 to 1. Don't BEGIN(SCRIPT).
304 (lex_redirect): Similarly.
305 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
306
fd521b47
NC
3072001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
308
309 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
310 __EH_FRAME_END__ and accept eh frames into data section.
311 Add ctor and dtor sections.
312
59d28a94
DD
3132001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
314
315 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
316 (auto-export): Fix indentation.
317
663dd378
DD
3182001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
319
320 * pe-dll.c (autofilter_objectlist): Add startup objects
321 for profiling.
322 (auto-export): Constify char * p.
6e814ff8 323 Extract file basename and use strcmp rather than ststr
663dd378
DD
324 for object lookup.
325
31d677f9
CD
3262001-10-18 Chris Demetriou <cgd@broadcom.com>
327
328 * ldmain.c (get_emulation): Improve comment about the handling
329 of -mipsN options.
330
aa200fe8
AM
3312001-10-17 Alan Modra <amodra@bigpond.net.au>
332
333 * po/POTFILES.in: Regenerate.
334
146e7110
AM
3352001-10-16 Vassili Karpov <malc@pulsesoft.com>
336
337 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
338 -z nocopyreloc and -z nocombreloc usage strings.
339
b4330e85
NC
3402001-10-12 Vassili Karpov <malc@pulsesoft.com>
341
146e7110 342 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
343 in usage.
344
5af8a2fb
NC
3452001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
346
347 * scripttempl/armaout.sc: Place .bss section after end of aligned
348 data section to match behaviour of aout code in constructrion of
349 header.
350
5b784096
DD
3512001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
352
353 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
354 startup files for mingw32 dlls to list.
355
61585df2
CD
3562001-10-10 Chris Demetriou <cgd@broadcom.com>
357
358 * emultempl/elf32.em: Fix shell 'if' usage for portability.
359
45cf6f3e
AH
3602001-10-08 Aldy Hernandez <aldyh@redhat.com>
361
362 * configure.tgt (targ): Add arm9e-*-elf.
363
e24d7c12
L
3642001-10-05 H.J. Lu <hjl@gnu.org>
365
366 * genscripts.sh: Fix a typo in the last change.
367
ec38dd05
JJ
3682001-10-05 Jakub Jelinek <jakub@redhat.com>
369
370 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
371 -z nocombreloc in usage.
372
cedd6b0d
JB
3732001-10-03 Jim Blandy <jimb@redhat.com>
374
375 * genscripts.sh: Include a comment at the top of each generated
376 script, explaining its purpose.
377
8bd621d8
AM
3782001-10-03 Vassili Karpov <malc@pulsesoft.com>
379
380 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
381 * NEWS: Mention -z nocopyreloc.
382 * ld.texinfo (Options): Describe nocopyreloc.
383
fcd8210c
AM
3842001-10-03 Alan Modra <amodra@bigpond.net.au>
385
386 * configure: Regenerate.
387
d32820f2
AM
3882001-10-02 Alan Modra <amodra@bigpond.net.au>
389
390 * ldver.h (ld_program_version): Remove declaration.
391 * lexsup.c (parse_args): Move printing of copyright message..
392 * ldver.c (ldversion): .. to here.
393 Use BFD_VERSION_STRING in place of BFD_VERSION.
394 (ld_program_version): Remove.
395 * Makefile.am (Makefile): Depend on bfd/configure.in.
396 Run "make dep-am".
397 * Makefile.in: Regenerate.
398
af46bcdc
HPN
3992001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
400
401 * Makefile.am: Update dependencies with "make dep-am".
402 * Makefile.in: Regenerate.
403
4818e05f 4042001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 405
4818e05f
AM
406 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
407 * lexsup.c: Add --no-define-common commandline option.
408 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
409 * ldlex.l: Likewise.
410 * ld.h: Add command_line.inhibit_common_definition.
411 * ldmain.c (main): Initialize.
412 * ld.texinfo: Document.
862517b6 413
d5e0ebeb
AM
4142001-09-26 Alan Modra <amodra@bigpond.net.au>
415
416 * ldmisc.c (USE_STDARG): Remove.
417 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
418 (einfo): Likewise.
419 (minfo): Likewise.
420 (lfinfo): Likewise.
421
422 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
423 declarations. Update copyright.
424
2f8d8971
NC
4252001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
426
85c77458
NC
427 * pe-dll.c: Remove obsoleted declaration of
428 pe_get_data_import_dll_name.
429 (pe_create_import_fixup): Fix thinko.
430
2f8d8971
NC
431 * ld.texinfo(enable-auto-import): Clarify the explanation.
432
4332001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
434
435 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
436 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
437 DLL_SUPPORT controlled code.
438
72358f65 4392001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 440
72358f65
NC
441 * emultempl/pe.em(pe_data_import_dll): Make static.
442 (pe_get_data_import_dll_name): New accessor function.
146e7110 443 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
444 pe_get_data_import_dll_name() from pe.em, instead of
445 directly accessing pe_data_import_dll variable from pe.em.
446
3882b010
L
4472001-09-18 Bruno Haible <haible@clisp.cons.org>
448
449 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
450 (def_file_add_directive): Use ISSPACE instead of isspace.
451 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
452 isdigit/isxdigit/isalpha/isalnum.
453 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
454 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
455 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
456 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
457 isalnum.
458 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
459 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
460 isupper/tolower.
461 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
462 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
463 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
464 (ctor_prio): Use ISDIGIT instead of isdigit.
465 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
466 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
467 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
468 isupper/tolower.
469 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
470 (stricpy): Use TOLOWER instead of isupper/tolower.
471 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
472 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
473 (lex_warn_invalid): Use ISPRINT instead of isprint.
474 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
475 (main): For gettext, also set the LC_CTYPE locate facet.
476 (add_keepsyms_file): Use ISSPACE instead of isspace.
477 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
478 (is_num, parse_args): Use ISDIGIT instead of isdigit.
479 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
480 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
481 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
482 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
483 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
484 (quoteput): Use ISSPACE instead of isspace.
485 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
486 instead of isalnum.
487
db09f25b
AM
4882001-09-18 Alan Modra <amodra@bigpond.net.au>
489
490 * deffilep.y (def_stash_module): Constify "name" param.
491
492 * pe-dll.c: Replace CONST with const throughout.
493 (quick_symbol): Constify "n1", "n2", "n3" params.
494 (make_singleton_name_thunk): Constify "import" param. Make
495 "buffer_len" a size_t.
496 (make_import_fixup_entry): Constify "name", "fixup_name",
497 "dll_symname" params.
498 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
499 (pe_get32): Likewise.
500 (pe_implied_import_dll): Likewise.
501
502 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
503 (sort_by_section_name): Likewise.
504
505 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
506 (make_import_fixup): Cast printf arg, rel->address to long rather
507 than int.
508 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
509
74699268
AM
5102001-09-15 Alan Modra <amodra@bigpond.net.au>
511
512 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
513 defines BufferSize. Increase buffer size by one.
514
775cabad
NC
5152001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
516
517 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
518
056a1d49
NC
5192001-09-14 Kevin Lo <kevlo@openbsd.org>
520
521 * configure.tgt: Add arm-openbsd target.
522
a7d792bb
L
5232001-09-12 H.J. Lu <hjl@gnu.org>
524
525 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
526 eelf64lppc.o to ...
527 (ALL_64_EMULATIONS): Here.
528 * Makefile.in: Regenerated.
529
0d888aac
CW
5302001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
531
532 * emultempl/pe.em(make_import_fixup): change signature to
533 take asection as well as arelec; we need this for proper
146e7110 534 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
535 there is no attempt to add a constant addend to the reloc;
536 otherwise, report error condition.
537 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
538 since final argument is a pointer to make_import_fixup().
539 Change call to cb() to match make_import_fixup() signature.
540 (make_import_fixup_mark): make buffer_len unsigned.
541 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
542
5432001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
544
545 * ld.texinfo: add verbose documentation for auto-import
146e7110 546 direct-addressing workaround, to compliment the terse
0d888aac
CW
547 error message.
548
cedacdc0
CM
5492001-09-12 Andrew MacLeod <amacleod@redhat.com>
550
146e7110 551 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 552
38be0bb1
JL
553Fri Sep 7 11:34:24 2001 Jeffrey A Law (law@cygnus.com)
554
555 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
556 * emulparams/h8300self.sh: Similarly.
557
559e4713
NC
5582001-09-05 Danny Smith <dannysmith@users.souceforge.net>
559
560 * ld.texinfo (Options, --stack): Correct default value for stack
561 reserve.
562
1fdf0249
TR
5632001-09-05 Tom Rix <trix@redhat.com>
564
565 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 566
9b5799b8
AJ
5672001-09-03 Andreas Jaeger <aj@suse.de>
568
569 * emultempl/beos.em: Declare prototypes for comparions functions,
570 adjust definitions.
571
48f6162b
AJ
5722001-09-02 Andreas Jaeger <aj@suse.de>
573
574 * emultempl/aix.em: Add missing prototype.
575 * emultempl/lnk960.em: Likewise.
576 * emultempl/vanilla.em: Likewise.
577 * emultempl/armcoff.em: Likewise.
578 * emultempl/armelf_oabi.em: Likewise.
579 * emultempl/beos.em: Likewise.
580 * emultempl/gld960c.em: Likewise.
581 * emultempl/gld960.em: Likewise.
582
583 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
584 for prototype declaration.
585
39e5585e
EC
5862001-08-31 Eric Christopher <echristo@redhat.com>
587 Jason Eckhardt <jle@redhat.com>
588
589 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
590
3fc90ddb
AJ
5912001-08-31 Andreas Jaeger <aj@suse.de>
592
593 * emultempl/pe.em: Add missing prototypes.
594 (gld_${EMULATION_NAME}_after_open): Remove extra args to
595 pe_find_data_imports.
596 (pr_sym): Add unused attribute.
597
d43ded80
PB
5982001-08-29 Joel Sherrill <joel@OARcorp.com>
599
39e5585e 600 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
601 default from coff to elf.
602
3946dd2f
JL
6032001-08-29 Jeff Law <law@redhat.com>
604
605 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
606 ARCH specification.
607 * emulparams/h8300self.sh: Similarly.
608
609Wed Aug 28 13:37:20 2001 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
610
611 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
612 eh8300self.o .
613 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
614 * configure.tgt (h8300-*-elf*): New case.
615 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
616 * emulparams/h8300self.sh: New file.
617 * Makefile.in: Regenerated.
618
70d0c6e9
NC
6192001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
620
621 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
622 with macro name.
623
5c67d4bb
AM
6242001-08-27 Linus Nordberg <linus@swox.com>
625 Alan Modra <amodra@bigpond.net.au>
626
627 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
628 (eelf64ppc.c, eelf64lppc.c): Add make targets.
629 Run "make dep-am"
630 * Makefile.in: Regenerate.
631 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
632 entries to correct alphabetical position.
633 * emulparams/elf64ppc.sh: New.
634 * emulparams/elf64lppc.sh: New.
635
08131015
NC
6362001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
637
638 * ldmain.c (main): Declare BSIZE as static.
639
db6751f2
JJ
6402001-08-23 Jakub Jelinek <jakub@redhat.com>
641
642 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
643 into .rel.dyn resp. .rela.dyn if combreloc.
644 (get_script): If .x linker script is equal to .xn, only put it
645 once into the binary.
646 Add .xc and .xsc scripts.
647 (parse_args): Handle -z combreloc and -z nocombreloc.
648 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
649 For .xc and .xsc scripts put all .rel* or .rela* input sections
650 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
651 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
652 is elf.
653 Strip trailing whitespace from script.
654 Generate .xc and .xsc scripts if requested.
655 * ldmain.c (main): Initialize link_info.combreloc and
656 link_info.spare_dynamic_tags.
657 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
658 (ld_options): Add --spare-dynamic-tags option.
659 (parse_args): Likewise.
660 * ld.texinfo: Document -z combreloc and -z nocombreloc.
661 * ldint.texinfo: Document .xc and .xsc linker scripts.
662 * NEWS: Add notes about -z combreloc and SHF_MERGE.
663
63d069c0
L
6642001-08-22 H.J. Lu <hjl@gnu.org>
665
666 * emulparams/elf32fr30.sh: Add a newline.
667
948f9114
AJ
6682001-08-21 Andreas Jaeger <aj@suse.de>
669
670 * deffilep.y: Add missing prototypes.
671 * pe-dll.c: Likewise.
672
ae7fb08f
AM
6732001-08-20 Alan Modra <amodra@bigpond.net.au>
674
2af02257
AM
675 * ldlang.c (insert_pad): Fix typos in last patch.
676
677 * ldlang.c: When traversing lang_statement_union_type lists,
678 consistently use "header.next" rather than "next".
679 * mpw-eppcmac.c: Likewise.
680 * emultempl/beos.em: Likewise.
681 * emultempl/hppaelf.em: Likewise.
682 * emultempl/pe.em: Likewise.
683 * ldlang.h (union lang_statement_union): Remove "next" field.
684
c0c330a7
AM
685 * ldlang.c (insert_pad): Use offsetof macro.
686 (lang_size_sections): Always neuter padding statements.
687 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
688
ae7fb08f
AM
689 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
690 passed to lang_size_sections.
691 (pe_exe_fill_sections): Likewise.
692 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
693 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
694
fab80407
AM
6952001-08-18 Alan Modra <amodra@bigpond.net.au>
696
697 * emultempl/aix.em: Formatting fixes.
698
b3327aad
AM
6992001-08-18 Alan Modra <amodra@bigpond.net.au>
700
701 * ldlang.c (insert_pad): Make use of an existing pad statement if
702 available. Move code calculating alignment, adjusting section
703 alignment power, and adjusting dot to ..
704 (size_input_section): .. here. Remove unused relax param.
705 (lang_size_sections): Change boolean `relax' param to boolean *.
706 Adjust call to size_input_section. Make use of insert_pad to
707 place pad after the assignment statement. If relaxing, zap
708 padding statements.
709 (reset_memory_regions): Reset output_bfd section sizes too.
710 (relax_again): Move to..
711 (lang_process): ..here. Adjust call to lang_size_sections, and
712 remove duplicated code.
713 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
714
563e308f
AM
7152001-08-17 Alan Modra <amodra@bigpond.net.au>
716
717 * ld.texinfo: Document that fill values now use the four least
718 significant bytes.
719 * emulparams/elf32fr30.sh (NOP): Update.
720 * emulparams/elf32mcore.sh: Likewise.
721 * emulparams/elf64_s390.sh: Likewise.
722 * emulparams/elf_i386.sh: Likewise.
723 * emulparams/elf_i386_be.sh: Likewise.
724 * emulparams/elf_i386_chaos.sh: Likewise.
725 * emulparams/elf_i386_ldso.sh: Likewise.
726 * emulparams/elf_s390.sh: Likewise.
727 * emulparams/elf_x86_64.sh: Likewise.
728 * emulparams/i386moss.sh: Likewise.
729 * emulparams/i386nw.sh: Likewise.
730 * emulparams/m68kelf.sh: Likewise.
731 * scripttempl/elf.sc: Update NOP comment.
732 * scripttempl/elfi370.sc: Likewise.
733 * scripttempl/elfm68hc11.sc: Likewise.
734 * scripttempl/elfm68hc12.sc: Likewise.
735 * scripttempl/nw.sc: Likewise.
736
b90e1c6f
TR
7372001-08-15 Tom Rix <trix@redhat.com>
738
739 * ldgram.y (saved_script_handle): Initialize to NULL.
740 * ldmain.c (main): Change check on saved_script_handle.
948f9114 741
39dcfe18
AM
7422001-08-14 Alan Modra <amodra@bigpond.net.au>
743
cde43e70
AM
744 * emultempl/elf32.em: Formatting fixes.
745 (output_prev_sec_find): Test for bfd_ind_section too; do so by
746 looking at sec->owner.
747 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
748 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
749 unused code, and reorganize orphan section placement code.
750
39dcfe18
AM
751 * ldlang.c (wild_doit): Rename to lang_add_section.
752 * ldlang.h: Here too.
753 * mpw-elfmips.c: And here.
754 * emultempl/beos.em: And here.
755 * emultempl/elf32.em: And here.
756 * emultempl/hppaelf.em: And here.
757 * emultempl/pe.em: And here.
758
908d20b3
RH
7592001-08-13 Richard Henderson <rth@redhat.com>
760
761 * emultempl/needrelax.em: New file.
762 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
763 * Makefile.am (eelf64_ia64.c): Depend on it.
764 * Makefile.in: Rebuild.
765
0f33d40b
AM
7662001-08-13 Alan Modra <amodra@bigpond.net.au>
767
22af9fd3
AM
768 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
769 output_section is set non-NULL.
770
0f33d40b
AM
771 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
772 `true' for SEC_EXCLUDE sections so that the generic code doesn't
773 needlessly create an output_section_statement. Treat a correctly
774 named output_section_statement with NULL bfd_section as compatible.
775
55ab6103
HPN
7762001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
777
778 * emultempl/generic.em: Support EXTRA_EM_FILE.
779 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
780 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
781 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
782 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
783 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
784 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
785 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
786 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
787 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
788 LDEMUL_FIND_POTENTIAL_LIBRARIES.
789
24098abb
RH
7902001-08-12 Richard Henderson <rth@redhat.com>
791
792 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
793 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
794 scripttempl/v850.sc: Keep .jcr data.
795
b9a8de1e 7962001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
797 Andrew Haley <aph@cambridge.redhat.com>
798 Nick Clifton <nickc@redhat.com>
b9a8de1e 799
146e7110 800 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
801 Change type to file handle.
802 * ld.h (had_script): Rename and retype.
803 * ldfile.c (ldfile_open_command_file): Save the file handle
804 used in saved_script_handle.
805 * lexsup.c (parse_args): Do not allow -c option to alter
806 saved_script_handle.
807 * ldmain.c (main): Print out the linker script used if
808 --verbose is given. Check saved_script_handle to obtain the
809 external linker script used, or if NULL, dump the builtin
810 script.
811 * ld.texinfo: Document that --verbose now dumps the linker
812 script used, regardless of whether it was an internal or an
813 external script.
814
0218d1e4
AJ
8152001-08-10 Andreas Jaeger <aj@suse.de>
816
817 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
818 to build warnings.
819 * configure: Regenerate.
820
5253f23b
AM
8212001-08-09 Alan Modra <amodra@bigpond.net.au>
822
73810896
AM
823 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
824
5253f23b
AM
825 * scripttempl/elf.sc: Move non-text .dynamic section before
826 .plt/.got/.sdata* group.
827 (OTHER_GOT_SECTIONS): Move to immediately after .got.
828 (OTHER_SDATA_SECTIONS): Add.
829 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
830 OTHER_GOT_SECTIONS.
831 * emulparams/crislinux.sh: Likewise.
832 * emulparams/elf32b4300.sh: Likewise.
833 * emulparams/elf32bmip.sh: Likewise.
834 * emulparams/elf32bmipn32.sh: Likewise.
835 * emulparams/elf32bsmip.sh: Likewise.
836 * emulparams/elf32btsmip.sh: Likewise.
837 * emulparams/elf32ebmip.sh: Likewise.
838 * emulparams/elf32elmip.sh: Likewise.
839 * emulparams/elf32l4300.sh: Likewise.
840 * emulparams/elf32lmip.sh: Likewise.
841 * emulparams/elf32lsmip.sh: Likewise.
842 * emulparams/elf32ltsmip.sh: Likewise.
843 * emulparams/elf64bmip.sh: Likewise.
844 * emulparams/elf64btsmip.sh: Likewise.
845 * emulparams/elf64ltsmip.sh: Likewise.
846
179c732c
AM
8472001-08-08 Alan Modra <amodra@bigpond.net.au>
848
849 * genscripts.sh: Source the emulparams script before each output
850 script is generated so that variables like `RELOCATING' may affect
851 variables defined in the emulparams script.
852
3fd36710
AM
8532001-08-04 Alan Modra <amodra@bigpond.net.au>
854
20713691
AM
855 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
856 order.
857
3fd36710
AM
858 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
859 ie. iterate over wild_statement.section_list.
860 (gld${EMULATION_NAME}_place_orphan): Likewise.
861
de0b1853
SC
8622001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
863
864 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
865 .fini[0-4] sections used by _exit
866 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
867 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
868 * scripttempl/elfm68hc11.sc: Likewise.
869
ff7e6f88
L
8702001-08-03 H.J. Lu <hjl@gnu.org>
871
872 * emultempl/beos.em (init): Add the missing initialization.
873
b6bf44ba
AM
8742001-08-03 Alan Modra <amodra@bigpond.net.au>
875
876 * ld.texinfo (Input Section Basics): Clarify ordering of output
877 sections.
878 * ldlang.c (callback_t): Add wildcard_list param.
879 (walk_wild_section): Remove "section" param. Rewrite for
880 lang_wild_statement_type change. Remove unique_section_p test.
881 (walk_wild_file): Remove "section" param.
882 (walk_wild): Remove "section" and "file" params.
883 (lang_gc_wild): Likewise.
884 (wild): Likewise. Modify for lang_wild_statement_type change.
885 (wild_sort): Likewise. Add "sec" param.
886 (gc_section_callback): Likewise.
887 (output_section_callback): Likewise. Do unique_section_p test.
888 (map_input_to_output_sections): Modify call to wild.
889 (lang_gc_sections_1): Likewise.
890 (print_wild_statement): Modify for lang_wild_statement_type
891 change.
892 (lang_add_wild): Replace filename, filenames_sorted param with
893 filespec. Replace section_name, sections_sorted,
894 exclude_filename_list with section_list.
895 * ldlang.h (lang_add_wild): Here too.
896 (lang_wild_statement_type): Replace section_name, sections_sorted,
897 and exclude_filename_list with section_list.
898 * ldgram.y (current_file): Delete.
899 (%union): Add wildcard_list.
900 (file_NAME_list): Set type to wildcard_list. Build a linked list
901 rather than calling lang_add_wild for each entry.
902 (input_section_spec_no_keep): Call lang_add_wild here instead.
903 * ld.h (struct wildcard_list): Declare.
904 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
905
b044cda1
CW
9062001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
907
908 * ldmain.c (main): initialize link_info.pei386_auto_import
909 * pe-dll.c: new tables for auto-export filtering
910 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 911 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
912 "by hand".
913
9142001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
915
b6bf44ba
AM
916 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
917 static variable current_sec (static struct sec *). Add
b044cda1 918 forward declaration for add_bfd_to_link.
b6bf44ba
AM
919 (process_def_file): Don't export undefined symbols. Do not
920 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
921 with new API.
922 (pe_walk_relocs_of_symbol): New function.
923 (generate_reloc): add optional extra debugging
b6bf44ba 924 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 925 line in output
b6bf44ba 926 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
927 (DATA auto-import support).
928 (make_singleton_name_thunk): New function.
929 (make_import_fixup_mark): New function.
930 (make_import_fixup_entry): New function.
931 (pe_create_import_fixup): New function.
b6bf44ba 932 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 933 char *.
b6bf44ba
AM
934 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
935 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
936 pe_create_import_fixup.
937 * emultempl/pe.em: add new options --enable-auto-import,
938 --disable-auto-import, and --enable-extra-pe-debug.
939 (make_import_fixup): New function.
940 (pe_find_data_imports): New function.
941 (pr_sym): New function.
b6bf44ba 942 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
943 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
944 CODE.
945
9462001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 947
b044cda1
CW
948 * ld.texinfo: add additional documentation for
949 --export-all-symbols. Document --out-implib,
950 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
951 --dll-search-prefix, --enable-auto-import, and
952 --disable-auto-import.
b044cda1
CW
953 * ldint.texinfo: Add detailed documentation on auto-import
954 implementation.
955
156e34dd
NC
9562001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
957
958 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
959 example.
960
d6231427
AM
9612001-07-24 Alan Modra <amodra@bigpond.net.au>
962
963 * Makefile.am: Update dependencies with "make dep-am".
964 * Makefile.in: Regenerate
965
e14ec88b
AM
9662001-07-23 Alan Modra <amodra@bigpond.net.au>
967
968 * ldcref.c (check_section_sym_xref): New function.
969 (check_nocrossrefs): Call it.
970 (check_nocrossref): Interate over h->refs here instead of..
971 (check_refs): ..here. Pass in the symbol name, section, and bfd
972 rather than hash_entry pointers.
973 (struct check_refs_info): Keep symbol name rather than hash entry.
974 Remove "same".
975 (check_reloc_refs): Tweak for above changes in check_refs_info.
976 Only report references to section syms when symname is NULL to
977 prevent duplicate messages for the same reloc.
978
1b577b00
NC
9792001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
980
c7d701b0
NC
981 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
982 available. Do not print NULL trees.
983 (exp_print_token): Print unknown tokens with values > 126 as
984 decimal values not ASCII characters.
985
1545243b
NC
986 * ldlang.c (lang_leave_overlay): If a region is specified assign
987 it to all sections inside the overlay unless they have been
988 assigned to the own, non-default, memory region.
989
1b577b00
NC
990 * README: Add header for consistency with other README files.
991
5030876b
L
9922001-07-14 H.J. Lu <hjl@gnu.org>
993
994 * emultempl/elf32.em (output_prev_sec_find): Never return
995 bfd_abs_section_ptr, bfd_com_section_ptr nor
996 bfd_und_section_ptr.
997
18c7a9a5
NC
9982001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
999
22af9fd3 1000 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
1001 elf32.em.
1002 * Makefile.in: Regenerate.
1003
9ffecff1
MG
10042001-07-14 matthew green <mrg@eterna.com.au>
1005
1006 * configure.tgt (i386-*-netbsdelf*): New target.
1007 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1008
95500e1c
JJ
10092001-07-13 Jakub Jelinek <jakub@redhat.com>
1010
1011 * emultempl/elf32.em (output_prev_sec_find): New.
1012 (place_orphan): Use it.
1013
e97cb84f
L
10142001-07-11 H.J. Lu <hjl@gnu.org>
1015
1016 * ldmain.c (main): Fix typos in the last change.
1017
7333607e
JJ
10182001-07-11 Jakub Jelinek <jakub@redhat.com>
1019
1020 * ldmain.c (main): Disallow -F and -f without -shared.
1021
d29d80f2
NC
10222001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1023
1024 * emultempl/pe.em (after_open): Check for the output_bfd not
1025 having any coff_data structure allocated to it.
1026
c2a1a436
DB
10272001-07-09 David O'Brien <obrien@FreeBSD.org>
1028
1029 * emultempl/elf32.em: Do not assuming that contents of the buffer
1030 returned from basename function will remain unchanged accross other
1031 function calls.
1032
63653551
L
10332001-07-03 H.J. Lu <hjl@gnu.org>
1034
1035 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1036 2001-07-03. It creates dynamic entries even for static binaries.
1037
d303a449
L
10382001-07-03 Jakub Jelinek <jakub@redhat.com>
1039
1040 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1041 (DYNAMIC): Use it to reserve few dynamic entries for
1042 post-linking tools.
1043
9f22353f
AM
10442001-06-27 Alan Modra <amodra@bigpond.net.au>
1045
1046 * emulparams/hppa64linux.sh: New file.
1047 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1048 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1049 (ehppa64linux.c): Add rule to make it.
1050 Run "make dep-am".
1051 * Makefile.in: Regenerate.
1052
62bf86b4
HPN
10532001-06-21 Hans-Peter Nilsson <hp@axis.com>
1054
1055 * ld.texinfo (Options, -r): Mention restrictions when using
1056 different object formats.
1057
429d935d
HPN
10582001-06-19 Hans-Peter Nilsson <hp@axis.com>
1059
1060 * ldlang.c (lang_check): Emit fatal error if relocatable link
1061 between different object flavours with relocations in input.
1062
cb840a31
L
10632001-06-19 H.J. Lu <hjl@gnu.org>
1064
1065 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1066 (--version-script): Mention the language support.
1067
9bf03acc
L
10682001-06-19 H.J. Lu <hjl@gnu.org>
1069
1070 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1071
c45021f2
NC
10722001-06-18 H.J. Lu <hjl@gnu.org>
1073
b6bf44ba
AM
1074 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1075 (diststuff): Add $(MANS).
1076 * Makefile.in: Regenerated.
c45021f2 1077
b6bf44ba 1078 * ld.1: Removed.
c45021f2 1079
6caa99ab
HPN
10802001-06-18 Hans-Peter Nilsson <hp@axis.com>
1081
605d9b3a
HPN
1082 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1083 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1084 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1085 * ld.h (args_type): Remove member export_dynamic. All users
1086 changed to use struct bfd_link_info member.
1087
6caa99ab
HPN
1088 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1089 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1090 * Makefile.in: Regenerate.
1091
6f9efd97
L
10922001-06-18 H.J. Lu <hjl@gnu.org>
1093
1094 * ldlang.c (init_os): Add the newline to the einfo call.
1095 (lang_check): Likewise.
1096 (lang_do_version_exports_section): Likewise.
1097
5af9fd8b
L
10982001-06-15 H.J. Lu <hjl@gnu.org>
1099
1100 * lexsup.c (parse_args); Save optind to report unrecognized
1101 option.
1102
2a096f04
HPN
11032001-06-15 Hans-Peter Nilsson <hp@axis.com>
1104
7e66c3f5
HPN
1105 * ldlang.c (lang_check): Emit fatal error if relocatable link
1106 between different object flavours.
1107
2a096f04
HPN
1108 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1109 Set new link_info member export_dynamic.
1110 * ldmain.c (main): Initialize new link_info member export_dynamic.
1111
6770ec8c
NC
11122001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1113
1114 * ldlang.c (walk_wild): Only call walk_wild_file if
1115 lookup_name returns something.
b6bf44ba 1116 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 1117 (load_symbols): Change to a boolean function.
b6bf44ba 1118 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
1119 executable.
1120
8529105a
AM
11212001-06-08 Alan Modra <amodra@bigpond.net.au>
1122
1123 * ldlang.c (record_bfd_errors): Remove.
1124
1125 * emultempl/aix.em: Fix copyright dates.
1126
8f3aa7a0
AJ
11272001-06-07 Andreas Jaeger <aj@suse.de>
1128
1129 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1130 (TEXT_START_ADDR): Likewise.
1131
3277f888
AM
11322001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1133
1134 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1135
3763134d
DD
11362001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1137
1138 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1139
5929ebc0
L
11402001-05-31 H.J. Lu <hjl@gnu.org>
1141
1142 * ldlang.c (open_input_bfds): Don't change the bfd error
1143 handler whilst loading symbols.
1144
c04a062d
NC
11452001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1146
1147 * configure.tgt: Remove i370-mvs architecture, it is not currently
1148 supported.
1149
96fcab3e
L
11502001-05-25 H.J. Lu <hjl@gnu.org>
1151
1152 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1153 like emulparams/aixppc.sh.
1154
db8d4f23
L
11552001-05-25 H.J. Lu <hjl@gnu.org>
1156
1157 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
1158 setting of output_filename after bfd_scan_arch.
1159 * emultempl/pe.em: Likewise.
1160
5f642101
L
11612001-05-25 H.J. Lu <hjl@gnu.org>
1162
1163 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1164 like emulparams/aixppc.sh.
1165
1166 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
1167 instead of ${srcdir}/emultempl/stringify.sed.
1168
64e9ece0
TW
11692001-05-25 Timothy Wall <twall@oculustech.com>
1170
1171 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 1172 output.
64e9ece0 1173
c709b096
AM
11742001-05-25 Alan Modra <amodra@one.net.au>
1175
1176 * configure.host: Replace linuxoldld with linux*oldld.
1177 * configure.tgt: Likewise.
1178
6cbdcc6f
L
11792001-05-24 H.J. Lu <hjl@gnu.org>
1180
1181 * emultempl/stringify.sed: Removed again.
1182
86af25fe
L
11832001-05-24 H.J. Lu <hjl@gnu.org>
1184
1185 * emultempl/aix.em (OUTPUT_ARCH): Defined.
1186 (gld${EMULATION_NAME}_before_parse): Initialize
1187 ldfile_output_architecture, ldfile_output_machine and
1188 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
1189 * emultempl/beos.em: Likewise.
1190 * emultempl/elf32.em: Likewise.
1191 * emultempl/linux.em: Likewise.
1192 * emultempl/mipsecoff.em: Likewise.
1193 * emultempl/pe.em: Likewise.
1194 * emultempl/sunos.em: Likewise.
1195
3b1b01cf
TR
11962001-05-24 Tom Rix <trix@redhat.com>
1197
8f3aa7a0 1198 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
1199 udate import file format.
1200 (change_symbol_mode) New, same
1201 (is_syscall) New, same
1202 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
1203 * emulparams/aixppc64.sh : same
1204 * emulparams/aixrs6.sh : same
1205 * emulparams/ppcmacos.sh : same
1206 * emultempl/aix.em : use strtoull to parse options
1207 * Makefile.am : add eaixppc64 emulation for xcoff64
1208 * Makefile.in : same
1209 * configure.tgt : same
1210
1211 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 1212 default data section offset to 0x20000000
3b1b01cf 1213 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 1214 loader and debug sections use the currect section offset.
3b1b01cf
TR
1215
1216 * emultempl/aix.em : Add xcoff64 support
1217 Add -binitfini support
8f3aa7a0 1218 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 1219 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 1220 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
1221 sections
1222
1223 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 1224
57e6abd2
AO
12252001-05-23 Alexandre Oliva <aoliva@redhat.com>
1226
1227 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
1228 variable to avoid non-portable shell construct.
1229
d1cf510e
NC
12302001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1231
1232 * ldmain.c (get_emulation): Add -mips5 command line argument.
1233
506eee22
NC
12342001-05-22 Alexandre Oliva <aoliva@redhat.com>
1235
1236 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
1237 (ELF_INTERPRETER_NAME): Define it.
1238 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
1239 it.
1240 * configure.tgt (targ_emul, targ_extra_emuls)
1241 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
1242 as primary, elf_i386 as extra.
1243 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
1244 (eelf_i386_ldso.c): New rule.
1245 * Makefile.in: Rebuilt.
1246
12472001-05-22 Nick Clifton <nickc@redhat.com>
1248
1249 * lexsup.c (ld_options): Allow -I to be an alias for
1250 --dynamic-linker. This is for Solaris compatability.
1251 * ld.texinfo: Document that -I can be used.
1252 * ld.1: Regenerate.
1253
d1778b88
AM
12542001-05-16 Alan Modra <amodra@one.net.au>
1255
1256 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
1257 whether an input section is the first one assigned to an output
1258 section.
1259 Assorted formatting fixes.
1260
02649152
DD
12612001-05-14 DJ Delorie <dj@delorie.com>
1262
1263 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
1264 * Makefile.in: Ditto.
1265
579f31ac
JJ
12662001-05-11 Jakub Jelinek <jakub@redhat.com>
1267
1268 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
1269 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
1270 output sections.
1271 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
1272
8550eb6e
JJ
12732001-05-11 Jakub Jelinek <jakub@redhat.com>
1274
1275 * ldlang.c (lang_process): Call bfd_merge_sections.
1276
8e5a525c
AM
12772001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1278
1279 * ldgram.y: Fix typo.
1280
1c9acd94
L
12812001-05-03 H.J. Lu <hjl@gnu.org>
1282
1283 * emultempl/elf32.em: Include "libiberty.h".
1284 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
1285 basename of the bfd filename.
1286 (gld${EMULATION_NAME}_stat_needed): Likewise.
1287 (gld${EMULATION_NAME}_try_needed): Likewise.
1288 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
1289
14fe918e
L
12902001-05-02 H.J. Lu <hjl@gnu.org>
1291
1292 * emultempl/pe.em: Include <ctype.h>.
1293
c7e40348
NC
12942001-05-02 Johan Rydberg <jrydberg@opencores.org>
1295
b6bf44ba 1296 * emulparams/elf32openrisc.sh: New file.
c7e40348 1297
b6bf44ba
AM
1298 * Makefile.am: Add OpenRISC target.
1299 * Makefile.in: Regenerated.
c7e40348 1300
b6bf44ba 1301 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
1302
13032001-05-02 Nick Clifton <nickc@redhat.com>
1304
1305 * emultempl/aix.em: Replace buystring with xstrdup.
1306 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 1307
d1b2b2dc
L
13082001-05-02 H.J. Lu <hjl@gnu.org>
1309
1310 * ldfile.c: Include "libiberty.h".
1311 * ldlex.l: Likewise.
1312
1313 * ldmisc.c (buystring): Removed.
1314 * ldmisc.h: Likewise.
1315
1316 * ldfile.c: Replace buystring with xstrdup.
1317 * ldlang.c: Likewise.
1318 * ldlex.l: Likewise.
1319 * ldmain.c: Likewise.
1320 * ldmisc.c: Likewise.
1321 * lexsup.c: Likewise.
1322 * mpw-eppcmac.c: Likewise.
1323
35714f2a
AJ
13242001-04-30 Andreas Jaeger <aj@suse.de>
1325
1326 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
1327
884fb58e
NC
13282001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1329
b6bf44ba
AM
1330 * ldlang.c (load_symbols): Give emulation a chance
1331 to process unrecognized file before fatal error is
1332 reported, not after.
884fb58e 1333
87748b32
NC
13342001-04-27 Sean McNeil <sean@mcneil.com>
1335
1336 * configure.tgt: Add arm-vxworks target.
1337 * scripttempl/armcoff.sc: Support .text or .data as a section name
1338 prefix.
1339 Define _etext.
35714f2a 1340
7ce691ae
C
13412001-04-13 J.T. Conklin <jtc@redback.com>
1342
1343 * ld.texinfo: Document --fatal-warnings.
1344 * ld.1: Regenerate.
1345
1346 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 1347 warnings have been turned into errors.
7ce691ae
C
1348 * lexsup.c (OPTION_WARN_FATAL): Define.
1349 (ld_options): Entry for --fatal-warnings.
1350 (parse_args): Handle OPTION_WARN_FATAL.
1351 * ld.h (ld_config_type): Add fatal_warnings field.
1352
f5fa8ca2
JJ
13532001-04-13 Jakub Jelinek <jakub@redhat.com>
1354
1355 * ldmain.c (main): Default to discard_sec_merge.
1356 * lexsup.c (OPTION_DISCARD_NONE): Define.
1357 (ld_options): Add --discard-none.
1358 (parse_args): Handle OPTION_DISCARD_NONE.
1359 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
1360 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
1361 all its input sections match.
1362
fdec3cfc
L
13632001-04-05 Steven J. Hill <sjhill@cotw.com>
1364
1365 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
1366 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
1367 (eelf32ltsmip.c): New target.
1368 (eelf64btsmip.c): Likewise.
1369 (eelf64ltsmip.c): Likewise.
1370 * Makefile.in: Regenerated.
1371
1372 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
1373 target.
1374 (mips*-*-linux-gnu*): Likewise.
1375
1376 * emulparams/elf32ltsmip.sh: New. Traditional little endian
1377 MIPS taget.
35714f2a 1378 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
1379 target.
1380 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
1381 endian target.
1382
589bad82
HPN
13832001-04-05 Hans-Peter Nilsson <hp@axis.com>
1384
1385 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
1386 correct value of __Stext here.
1387 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
1388 .startup section.
1389
1390 * emulparams/crislinux.sh: Remove FIXME.
1391
94202e16
AM
13922001-04-02 Alan Modra <alan@linuxcare.com.au>
1393
1394 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
1395 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
1396
1268a053
HPN
13972001-03-27 Hans-Peter Nilsson <hp@axis.com>
1398
1399 * configure.tgt (cris-*-*): Change default emulation to criself.
1400 (cris-*-*aout*): New rule.
1401
d85e9ff7
AM
14022001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
1403
1404 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
1405 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
1406
0879a67a
AJ
14072001-03-26 Andreas Jaeger <aj@suse.de>
1408
1409 * ld.texinfo (Overview): Fix syntax in texi code.
1410
0285c67d
NC
14112001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1412
1413 * ld.texinfo: Put @c man indications to generate the ld man page.
1414 When generating man, define all the variables. Define SEEALSO
1415 and SYNOPSIS. Re-organize some lines to avoid the cross references.
1416 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
1417 (ld.1): Generate from ld.texinfo.
1418 * Makefile.in: Regenerate.
1419
c20ec07b
NC
14202001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
1421
1422 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 1423 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 1424
cc5ce052
UD
14252001-03-17 Ulrich Drepper <drepper@redhat.com>
1426
1427 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
1428 is an absolute path look only for this file and not along the path.
1429
a1ab1d2a
UD
14302001-03-17 Ulrich Drepper <drepper@redhat.com>
1431
1432 * emultempl/elf32.em (OPTION_GROUP): New macro.
1433 Add new option Bgroup to longopts.
1434 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
1435 (gld*_list_options): Add -Bgroup and -z defs.
1436 * ld.1: Document -Bgroup and -z defs.
1437 * ld.texinfo: Likewise.
1438
788fca5a
MM
14392001-03-07 Michael Meissner <meissner@redhat.com>
1440
1441 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
1442 with sections created by -fdata-sections.
1443 (.dynbss,.bss): Ditto.
1444
1c7566d1
AM
14452001-03-05 Alan Modra <alan@linuxcare.com.au>
1446
1447 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
1448 after_allocation_default, not gld..._before_allocation.
1449
27b7e12d
AM
14502001-02-27 Alan Modra <alan@linuxcare.com.au>
1451
1452 * configure.in (BFD_VERSION): New.
1453 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
1454 * configure: Regenerate.
1455 * Makefile.am: Run "make dep-am"
1456 * Makefile.in: Regenerate.
1457
2bc551c7
TW
14582001-02-26 Timothy Wall <twall@cygnus.com>
1459
1460 * emulparams/elf64_aix.sh: Add additional read-only sections;
1461 uncomment lines which are now required.
1462
1276aefa
NC
14632001-02-26 H.J. Lu <hjl@gnu.org>
1464
1465 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
1466 that problems can be caught whilst loading symbols.
1467 (record_bfd_errors): New function: Report BFD errors and mark
1468 the executable output as being invalid.
1276aefa 1469
41c49998
TW
14702001-02-22 Timothy Wall <twall@cygnus.com>
1471
1472 * configure.host: Add configuration for ia64-*-aix*.
1473 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
1474 Add dependencies for eelf64_aix.c.
1475 * Makefile.in: Regenerate.
1476 * configure.tgt: Add ia64-*-aix* mapping.
1477 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 1478 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
1479 AIX-specific test.
1480
78f85fd7
L
14812001-02-20 H.J. Lu <hjl@gnu.org>
1482
1483 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
1484 false if we found the file.
1485
1ac7e077 14862001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
1487
1488 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
1489 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
1490
e135f41b
NC
14912001-02-18 lars brinkhoff <lars@nocrew.org>
1492
1493 * Makefile.am: Add PDP-11 target.
1494 * configure.tgt: Likewise.
1495 * emulparams/pdp11.sh: New file.
1496
a842aceb
DB
14972001-02-17 David O'Brien <obrien@FreeBSD.org>
1498
1499 * configure.host: Add a generic FreeBSD configuration entry such that
1500 all [modern] FreeBSD systems on all platforms will look the same.
1501
24174db0
L
15022001-02-14 H.J. Lu <hjl@gnu.org>
1503
1504 * configure.tgt: Remove mention of earmelf_linux26.
1505
30c3c13a
RH
15062001-02-13 Richard Henderson <rth@redhat.com>
1507
1508 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
1509
b46a87b1
L
15102001-02-13 H.J. Lu <hjl@gnu.org>
1511
1512 * ldexp.h (node_type): Add etree_provided.
1513 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
1514 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 1515 for etree_provided.
b46a87b1
L
1516 (exp_print_tree): Handle etree_provided.
1517 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
1518 etree_provided.
1519
f3988fd9
RH
15202001-02-09 David Mosberger <davidm@hpl.hp.com>
1521
1522 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
1523 .IA_64.unwind.* pattern to unwind table section and
1524 .IA_64.unwind_info* pattern to unwind info section.
1525
a85d7ed0
NC
15262001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1527
1528 * Makefile.am: Add linux target for S/390.
1529 * Makefile.in: Likewise.
1530 * configure.host: Likewise.
1531 * configure.tgt: Likewise.
1532 * emulparams/elf64_s390.sh: New file.
1533 * emulparams/elf_s390.sh: New file.
1534
780248c4
JJ
15352001-02-09 Jakub Jelinek <jakub@redhat.com>
1536
1537 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
1538 targ_extra_libpath.
1539 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
1540
0e2534bd
PB
15412001-02-06 Philip Blundell <philb@gnu.org>
1542
1543 * Makefile.am: Remove mention of earmelf_linux26.
1544 * Makefile.in: Regenerate.
1545
46c1ea57
PB
15462001-02-04 Philip Blundell <philb@gnu.org>
1547
1548 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
1549 * emulparams/armelf_linux26.sh: Delete.
1550 * configure.tgt: Remove mention of armelf_linux26 emulation.
1551
0088edd2
NC
15522001-02-01 Nick Clifton <nickc@redhat.com>
1553
1554 * ld.1: Replace occurances of -oformat with --oformat.
1555
02aa14fb
AM
15562001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
1557
1558 * ldlang.c (lang_leave_overlay): Don't set lma_region when
1559 load_base is specified.
1560
f813923c
HPN
15612001-01-24 Hans-Peter Nilsson <hp@axis.com>
1562
1563 * emultempl/elf32.em: Correct spelling in comments and listed
1564 options.
1565
c1eb1488
AM
15662001-01-23 Alan Modra <alan@linuxcare.com.au>
1567
1568 * ldlang.c (lang_leave_overlay): Only set lma_region from the
1569 default for the first section of a group of overlay sections.
1570
d9fc3714
AM
15712001-01-22 Alan Modra <alan@linuxcare.com.au>
1572
1573 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
1574 * Makefile.in: Regenerate.
1575 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
1576 Check for null tool_dir.
1577
6be0ca94
JW
15782001-01-16 Jim Wilson <wilson@redhat.com>
1579
1580 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
1581 and IA_64.unwind.info.
1582
b9247304
L
15832001-01-16 H.J. Lu <hjl@gnu.org>
1584
1585 * ldlang.c (lang_check): Merge the private data only if the
1586 input file has contents.
1587
577a0623
AM
15882001-01-14 Alan Modra <alan@linuxcare.com.au>
1589
d952f17a
AM
1590 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
1591
ffd6e9de
AM
1592 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
1593 enabling search for libmilli. On a relocatable link, make .text
1594 sections unique.
1595 (LDEMUL_AFTER_PARSE): Define.
1596 (hppaelf_finish): Correct spelling of relocatable in comments.
1597
577a0623
AM
1598 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1599 rummage through the script for sections on the unique list.
1600 Correct length of strncmp for ".note".
1601 (gld${EMULATION_NAME}_check_needed): Rearrange function.
1602
1603 * ldlang.c (unique_section_list): New var.
1604 (unique_section_p): New function.
1605 (walk_wild_section): Don't match sections on unique_section_list.
1606 (lang_add_unique): New function.
ffd6e9de 1607 Correct spelling of relocatable in comments.
577a0623
AM
1608
1609 * ldlang.h (struct unique_sections): Declare.
1610 (unique_section_list): Declare.
1611 (unique_section_p): Declare.
1612 (lang_add_unique): Declare.
1613
1614 * lexsup.c (ld_options): Allow --unique to take an optional arg.
1615 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
1616
1617 * ld.texinfo (--unique): Update.
1618
b7ed8fad
NC
16192001-01-13 Nick Clifton <nickc@redhat.com>
1620
1621 * lexsup.c (parse_args): Remove spurious white space.
1622
d0398d6a
NC
16232001-01-12 Nick Clifton <nickc@redhat.com>
1624
1625 * lexsup.c (parse_args): Update copyright date.
1626
350fdb00
PB
16272001-01-12 Philip Blundell <pb@futuretv.com>
1628
1629 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
1630
60c6797e
KH
16312001-01-10 Kazu Hirata <kazu@hxi.com>
1632
1633 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
1634 * scripttempl/h8300h.sc: Fix formatting.
1635 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
1636 * scripttempl/h8500.sc: Likewise.
1637 * scripttempl/h8500b.sc: Likewise.
1638 * scripttempl/h8500c.sc: Likewise.
1639 * scripttempl/h8500m.sc: Likewise.
1640 * scripttempl/h8500s.sc: Likewise.
60c6797e 1641
482e8b32
DB
16422000-01-07 David O'Brien <obrien@BSDi.com>
1643
1644 * emultempl/elf32.em: Only perform Linux ld hints processing when
1645 targeting Linux.
1646
d7ed7ca6
PB
16472001-01-07 Philip Blundell <philb@gnu.org>
1648
1649 * ld.texinfo (Bug Reporting): Update email address for reports.
1650
0fc3347a
NC
16512000-12-31 Nick Clifton <nickc@redhat.com>
1652
1653 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
1654 options by checking for a return value of '?' not -1.
1655
e4897a32
NC
16562000-12-28 Nick Clifton <nickc@redhat.com>
1657
1658 * lexsup.c (struct ld_option): Add new enum value:
1659 EXACTLY_TWO_DASHES.
1660 (ld_options[]): Change -omagic, -output and -oformat options
1661 to be EXACTLY_TWO_DASHES.
1662 (OUTPUT_COUNT): Use ARRAY_SIZE.
1663 (parse_args): Change parameter 'argc' to unsigned.
1664 Place EXACTLY_TWO_DASHES options into new really_longopts
1665 array.
1666 If getopt_long_only fails, try calling getopt_long using the
1667 really_longopts array.
1668 (help): Print a double dash for both EXACTLY_TWO_DASHES and
1669 TWO_DASHES options.
1670
1671 * ldlex.h: Fix prototype of parse_args.
1672
1673 * ld.texinfo: Document that long options starting with 'o'
1674 must be preceeded by two dashes. Change example of a single
1675 dashed long option from -oformat to -trace-symbol.
1676
1122a5fc
NC
16772000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1678
1679 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
1680 (longopts[]): New --no-default-excludes option.
1681 (gld_${EMULATION_NAME}_list_options): Document.
1682 (gld_${EMULATION_NAME}_parse_args): Handle.
1683
037849a9
NC
16842000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1685
1686 * ldlang.c (new_stat): Revert the last beautification with "innocent"
1687 whitespace, it breaks the K&R C preprocessor.
1688
7ec229ce
DD
16892000-12-11 DJ Delorie <dj@redhat.com>
1690
1691 * ld.texinfo: Add notes about --whole-archive and gcc.
1692
b79e8c78
NC
16932000-11-18 Fred Fish <fnf@be.com>
1694
1695 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
1696 (ld_options): Entry for --allow-shlib-undefined.
1697 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
1698 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
1699 to false.
1700 * ld.texinfo: Document new command line switch.
d952f17a 1701
9a8e2505
GK
17022000-12-12 Geoffrey Keating <geoffk@redhat.com>
1703
1704 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
1705 .fixup is actually read/write.
1706 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1707 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1708 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1709
b8355149
JH
1710Mon Dec 11 14:50:33 MET 2000 Jan Hubicka <jh@suse.cz>
1711
1712 * NEWS: Add note about x86_64 architecture.
1713
93b63cd3
DD
17142000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
1715
1716 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
1717 Set DWARF2 sections to a VMA of zero.
1718
24f6971a
NC
17192000-12-01 Joel Sherrill <joel@OARcorp.com>
1720
d952f17a 1721 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
1722 New targets.
1723 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1724 (sparc*-*-rtems*): Switched from a.out to ELF.
1725
2be3aa03
NC
17262000-11-30 Jan Hubicka <jh@suse.cz>
1727
1728 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
1729 (eelf_x86_64.c): New.
1730 * Makefile.in: Regenerate.
1731 * configure.tgt: Add support for x86_64-*-linux-gnu*.
1732 * emulparams/elf_x86_64.sh: New.
1733
8c899858
HPN
17342000-11-30 Hans-Peter Nilsson <hp@axis.com>
1735
1736 * emulparams/crislinux.sh (ENTRY): Change back to _start.
1737 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
1738
1739 * scripttempl/crisaout.sc: Change all RELOCATING not related to
1740 merging non-a.out sections into CONSTRUCTING.
1741
e47b9e39
NC
17422000-11-28 Nick Clifton <nickc@redhat.com>
1743
1744 * ld.1 (COPYING): Mention that the GNU Free Documentation
1745 License is present in the sources, but not the output, and
1746 also available from the GNU website.
1747 (GNU Free Documentation License): Comment out this section.
1748
ad95f82a
DB
17492000-11-28 David O'Brien <obrien@dragon.nuxi.com>
1750
1751 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
1752 does not use them.
1753
fd89e65f
DB
17542000-11-25 David O'Brien <obrien@FreeBSD.org>
1755
1756 * ld.1: Remove old date so it does not give the impression the manpage
1757 is way out of date.
1758
077b8428
NC
17592000-11-24 Nick Clifton <nickc@redhat.com>
1760
1761 * configure.tgt (xscale-coff): Add target.
1762 (xscale-elf): Add target.
1763
49425d28
NC
17642000-11-24 Fred Fish <fnf@be.com>
1765
d952f17a
AM
1766 * ldmain.c (main): Remove redundant init of config.make_executable
1767 to true.
49425d28 1768
d3480244
RH
17692000-11-15 Richard Henderson <rth@redhat.com>
1770
1771 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
1772
1ce7de8b
KH
17732000-11-14 Kazu Hirata <kazu@hxi.com>
1774
1775 * scripttempl/h8300.sc: Fix formatting.
1776 * scripttempl/h8300h.sc: Likewise.
1777 * scripttempl/h8300s.sc: Likewise.
1778
208d5cd0
DC
1779Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
1780
1781 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
1782
2e418547
PB
17832000-11-09 Philip Blundell <pb@futuretv.com>
1784
1785 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
1786 around orphan sections whose names can be represented in C.
1787
c940e6fc
JW
17882000-11-07 Jim Wilson <wilson@redhat.com>
1789
1790 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
1791 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
1792
704c465c
NC
17932000-11-06 Nick Clifton <nickc@redhat.com>
1794
1795 * ld.texinfo: Add GNU Free Documentation License.
1796 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 1797 * ld.1: Add GNU Free Documentation License.
704c465c 1798
dca7760f
AM
17992000-11-05 Alan Modra <alan@linuxcare.com.au>
1800
1801 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
1802 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
1803
1804 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
1805 Move 2000-11-02 Makefile.in changes to this file.
1806 * Makefile.in: Regenerate.
1807
40a633d5
NC
18082000-11-03 Nick Clifton <nickc@redhat.com>
1809
1810 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
1811 constructors and destructors.
1812 * scripttempl/h8300h.sc: Ditto.
1813 * scripttempl/h8300s.sc: Ditto.
1814 * scripttempl/h8500.sc: Ditto.
1815 * scripttempl/h8500b.sc: Ditto.
1816 * scripttempl/h8500c.sc: Ditto.
1817 * scripttempl/h8500m.sc: Ditto.
1818 * scripttempl/h8500s.sc: Ditto.
1819 * scripttempl/v850.sc: Ditto.
1820 * scripttempl/w65.sc: Ditto.
1821 * scripttempl/z8000.sc: Ditto.
1822
59ff2774
NC
18232000-11-02 Per Lundberg <plundis@chaosdev.org>
1824
1825 * Makefile.in (e_i386_chaos.c): New rule.
1826 (ALL_EMULATIONS): Added e_i386_chaos.o.
1827 * emulparams/elf_i386_chaos.sh: New file.
1828 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
1829
645571e1
JJ
18302000-10-20 Jakub Jelinek <jakub@redhat.com>
1831
1832 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
1833 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
1834 Fix sed invocation, so that it coped with '/' in Solaris 64bit
1835 library path suffix.
1836 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
1837
c5975a45
HPN
18382000-10-18 Hans-Peter Nilsson <hp@axis.com>
1839
1840 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
1841 for consecutive sections.
1842
ea20a7da
CC
18432000-10-17 Chandrakala Chavva <cchavva@redhat.com>
1844
d952f17a
AM
1845 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
1846 options.
1847 * ld.texinfo: Added notes about this new option.
ea20a7da 1848
6e45556a
NC
18492000-10-16 Nick Clifton <nickc@redhat.com>
1850
1851 * emultempl/pe.em (_after_open): Add tests of return values from
1852 bfd functions. Emit appropriate error messages if necessary.
1853
b9a69188
NC
18542000-10-13 Nick Clifton <nickc@redhat.com>
1855
1856 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
1857 local variables - they are not used, but leave in the call to
1858 bfd_canonicalize_symtab.
b9a69188
NC
1859 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
1860 pe_dll_search_prefix.
1861
627427de 18622000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 1863
627427de
DD
1864 * emultempl/pe.em (pe_dll_search_prefix): New variable,
1865 (longopts): New --dll-search-prefix option.
1866 (gld_${EMULATION_NAME}_list_options): Document.
1867 (gld_${EMULATION_NAME}_parse_args): Handle.
1868 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
1869 dynamically, search for a dll named '<prefix><basename>.dll'
1870 in preference to 'lib<basename>.dll' if --dll-search-prefix
1871 is specified.
1872
24376d1b
AM
18732000-10-12 Alan Modra <alan@linuxcare.com.au>
1874
1875 * ldlang.c (section_already_linked): Set kept_section instead of
1876 sec->comdat->sec.
1877
e47d05ad
KH
18782000-10-10 Kazu Hirata <kazu@hxi.com>
1879
1880 * deffile.h: Fix formatting.
1881 * lexsup.c: Likewise.
1882 * mri.c: Likewise.
1883
23a87948
DD
18842000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1885
1886 * pe-dll.c (make_one): Do not generate code thunk for DATA
1887 exports.
1888 (process_def_file): deduce DATA flag for auto-export sumbols.
1889
86b1cc60
KH
18902000-10-09 Kazu Hirata <kazu@hxi.com>
1891
89cdebba
KH
1892 * ld.h: Fix formatting.
1893 * ldcref.c: Likewise.
1894 * ldctor.h: Likewise.
1895 * ldemul.c: Likewise.
1896 * ldemul.h: Likewise.
1897 * ldexp.c: Likewise.
1898 * ldexp.h: Likewise.
1899 * ldfile.c: Likewise.
1900 * ldfile.h: Likewise.
1901 * ldlang.c: Likewise.
1902 * ldlang.h: Likewise.
1903 * ldmain.c: Likewise.
7bfd51a3
KH
1904 * pe-dll.c: Likewise.
1905
1906 * pe-dll.c: Revert some formatting fixes.
86b1cc60 1907
d643799d
KH
19082000-10-08 Kazu Hirata <kazu@hxi.com>
1909
1910 * pe-dll.c: Fix formatting.
1911
08da4cac
KH
19122000-10-05 Kazu Hirata <kazu@hxi.com>
1913
1914 * ldlang.c: Fix formatting.
1915
c2a94a7a
DD
19162000-10-03 DJ Delorie <dj@redhat.com>
1917
1918 * pe-dll.c (fill_edata): initialize entire block
1919 (make_one): fill in correct section.
1920
8c95a62e
KH
19212000-10-03 Kazu Hirata <kazu@hxi.com>
1922
1923 * ldexp.c: Fix formatting.
1924
486e80e2
DD
19252000-10-02 DJ Delorie <dj@redhat.com>
1926
1927 * emultempl/pe.em (gld_*_after_open): detect case where there two
1928 import libraries for same dll; rename one to ensure proper link
1929 order.
1930
1931 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
1932 typo
1933 (generate_edata): fix typo
1934
24dd9f75
HPN
19352000-09-29 Hans-Peter Nilsson <hp@axis.com>
1936
1937 * scripttempl/crisaout.sc (ENTRY): Now __start.
1938 (.text): Add default setting for __start.
1939 Remove CONSTRUCTORS handling.
1940 (/DISCARD/): Add .gnu.warning.*.
1941 * emulparams/crislinux.sh (ENTRY): Now __start.
1942 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
1943 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
1944 (ENTRY): Now __start.
1945 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
1946 (EXECUTABLE_SYMBOLS): Add default setting for __start.
1947
4de2d33d
KH
19482000-09-29 Kazu Hirata <kazu@hxi.com>
1949
5cc18311
KH
1950 * deffile.h: Fix formatting.
1951 * ld.h: Likewise.
1952 * ldcref.c: Likewise.
4de2d33d 1953 * ldctor.c: Likewise.
5cc18311 1954 * ldctor.h: Likewise.
4de2d33d 1955 * ldemul.c: Likewise.
5cc18311 1956 * ldemul.h: Likewise.
4de2d33d 1957 * ldexp.c: Likewise.
5cc18311 1958 * ldexp.h: Likewise.
4de2d33d 1959 * ldfile.c: Likewise.
5cc18311 1960 * ldfile.h: Likewise.
4de2d33d 1961 * ldlang.c: Likewise.
5cc18311
KH
1962 * ldlang.h: Likewise.
1963 * lexsup.c: Likewise.
1964 * mri.c: Likewise.
1965 * pe-dll.c: Likewise.
4de2d33d 1966
45b1f63c
DD
19672000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1968
1969 * pe-dll.c (process_def_file): Uninitialized data wasn't
1970 exported with --export-all-symbols switch.
d952f17a 1971
45b1f63c
DD
19722000-09-28 DJ Delorie <dj@redhat.com>
1973
1974 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
1975 noname work properly.
1976
47d89dba
AM
19772000-09-28 Alan Modra <alan@linuxcare.com.au>
1978
1979 * ld.texinfo (HPPA ELF32): New section.
1980
1981 * emultempl/hppaelf.em (group_size): New.
1982 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
1983 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
1984 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
1985 options to prevent abbreviations matching.
1986 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
1987 (PARSE_AND_LIST_ARGS_CASES): Handle it.
1988
36bdbeec
NC
19892000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1990
1991 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
1992 on the m68*-*-elf target. Make it support COFF input objects.
1993
6d5e62f8
KH
19942000-09-21 Kazu Hirata <kazu@hxi.com>
1995
1996 * ldmain.c: Fix formatting.
1997 * ldmisc.c: Likewise.
1998 * ldver.c: Likewise.
1999 * ldwrite.c: Likewise.
2000
e2eb67d9
AM
20012000-09-21 Alan Modra <alan@linuxcare.com.au>
2002
2003 * ldwrite.c (clone_section): Silence gcc warnings.
2004
b3ea3584
AM
20052000-09-20 Alan Modra <alan@linuxcare.com.au>
2006
2007 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2008 out of memory failure.
2009
2010 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2011 (clone_section): Handle out of memory failures. Rename var to
2012 avoid c++ reserved word.
2013
25f72752
AM
20142000-09-18 Alan Modra <alan@linuxcare.com.au>
2015
2016 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2017 stub_name param to stub_sec_name.
2018 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2019
0752970e
NC
20202000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2021
2022 * emultempl/m68kelf.em: New file.
2023 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2024 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2025 * Makefile.in: Regenerate.
2026
92b7e9d8
AM
20272000-09-15 Alan Modra <alan@linuxcare.com.au>
2028
2029 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2030 only as needed.
2031
9b14b192
NC
20322000-09-13 Nick Clifton <nickc@redhat.com>
2033
2034 * ldmain.c (multiple_definition): Disable relaxation if
2035 multiple symbol definitions are encountered - otherwise the
2036 linker could abort with an assertion failure.
2037
891fa266
NC
20382000-09-10 Nick Clifton <nickc@redhat.com>
2039
2040 * mri.c: Fix formatting.
2041
5d64ca4e
L
20422000-09-07 H.J. Lu <hjl@gnu.org>
2043
2044 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2045 * configure: Rebuild.
2046
dd94604f
L
20472000-09-07 H.J. Lu <hjl@gnu.org>
2048
2049 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2050 * Makefile.in: Rebuild.
2051
71bfc0ae
AM
20522000-09-07 Alan Modra <alan@linuxcare.com.au>
2053
2054 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2055 broken list handling. Create __start_SECNAME and __stop_SECNAME
2056 when no place-holder. Add some comments. Test both SEC_CODE and
2057 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 2058 Handle case where no output section statement created.
71bfc0ae 2059
4a428502
AO
20602000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2061
2062 * configure.tgt (sh-*-linux*): Added.
2063 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2064 * Makefile.in: Rebuilt.
2065 * emulparams/shelf_linux.sh: New file.
2066 * emulparams/shlelf_linux.sh: New file.
2067
f9989030
AM
20682000-09-06 Alan Modra <alan@linuxcare.com.au>
2069
2070 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2071 try shuffling sections when the orphan happens to be the place
2072 holder. Keep count of unique section names generated so we speed
2073 the search for a new name.
2074
58cccadb
AO
20752000-09-06 Alexandre Oliva <aoliva@redhat.com>
2076
2077 * configure: Rebuilt with new libtool.m4.
2078
5b343f5a
NC
20792000-09-05 Nick Clifton <nickc@redhat.com>
2080
2081 * Makefile.in: Regenerate.
2082 * aclocal.m4: Regenerate.
2083 * configure: Regenerate.
2084 * config.in: Regenerate.
2085 * po/ld.pot: Regenerate.
2086
2087 * ldint.texinfo: Remove CVS revision marker - it foils local
2088 comparisons.
2089
2090 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 2091
a854a4a7
AM
20922000-09-05 Alan Modra <alan@linuxcare.com.au>
2093
3231d22e
AM
2094 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2095 to stub section flags.
2096 (hppa_for_each_input_file_wrapper): New.
2097 (hppa_lang_for_each_input_file): New.
2098 (lang_for_each_input_file): Define to call above.
2099 (multi_subspace): New.
2100 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2101 (PARSE_AND_LIST_PROLOGUE): Define.
2102 (PARSE_AND_LIST_LONGOPTS): Define.
2103 (PARSE_AND_LIST_OPTIONS): Define.
2104 (PARSE_AND_LIST_ARGS_CASES): Define.
2105 (hppaelf_finish): Call elf32_hppa_set_gp.
2106 (hppaelf_set_output_arch): Remove.
2107 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2108
2109 * emulparams/hppalinux.sh (ELFSIZE): Define.
2110 (MACHINE): Define.
2111 (OTHER_READONLY_SECTIONS): Define.
2112 (DATA_PLT): Define.
2113 (GENERATE_SHLIB_SCRIPT): Define.
2114
5f992e62
AM
2115 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2116 to const throughout. Change `void *' to `PTR' throughout.
2117 (lang_memory_default): Function is local to file, add `static'.
2118
2119 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2120 (ehppalinux.c): Likewise.
2121 (earmelf.c): Likewise.
2122 (earmelf_linux.c): Likewise.
2123 (earmelf_linux26.c): Likewise.
2124 * Makefile.in: Regenerate.
2125
a854a4a7
AM
2126 * ld.h (ld_config_type): Add unique_orphan_sections.
2127 * lexsup.c (OPTION_UNIQUE): Define.
2128 (ld_options): Add "--unique".
2129 (parse_args): Handle it.
2130 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2131 search for an existing output section if unique_orphan_sections is
2132 set. Make use of bfd_get_unique_section_name rather than
2133 duplicating code here.
2134 * ld.texinfo: Describe --unique.
2135
2136 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2137 optional arg to split-by-file.
2138 (parse_args): Handle them.
2139 * ld.texinfo: Update description of these options.
2140 * ldwrite.c (clone_section): Pass in the section name. Replace
2141 local code with bfd_get_unique_section_name.
2142 (split_sections): Tidy code and comments. Use a list traversal
2143 more appropriate to the list construction. Handle cooked section
2144 sizes. Split when split_by_reloc reached rather than exceeded.
2145 Track section size and split when split_by_file reached. Fix
2146 link_order_tail (even though it's not used).
2147 (ldwrite): Modify condition for calling split_sections to suit
2148 changed split_by_reloc and split_by_file.
2149 * ldmain.c (main): Init config.split_by_reloc and
2150 config.split_by_file to -1.
2151 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
2152 Change split_by_file to bfd_size_type.
2153
18e03609
NC
21542000-09-02 Nick Clifton <nickc@redhat.com>
2155
2156 * configure.in: Increase version number to 2.10.91.
2157 * NEWS: Mention new ability to support removal of duplicate DWARF2
2158 debug information.
2159 * configure: Regenerate.
2160 * aclocal.m4: Regenerate.
2161 * config.in: Regenerate.
2162
3a9d486c
NC
21632000-09-02 Daniel Berlin <dberlin@redhat.com>
2164
2165 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
2166 sections.
a2b64bed 2167 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
2168 * scripttempl/elfd10v.sc: Ditto.
2169 * scripttempl/elfd30v.sc: Ditto.
2170 * scripttempl/elfi370.sc: Ditto.
2171 * scripttempl/elfm68hc11.sc: Ditto.
2172 * scripttempl/elfm68hc12.sc: Ditto.
2173 * scripttempl/elfi386beos.sc: Ditto.
2174 * scripttempl/v850.sc: Ditto.
50bbae35 2175
ac48eca1
AO
21762000-08-31 Alexandre Oliva <aoliva@redhat.com>
2177
2178 * acinclude.m4: Include libtool and gettext macros from the
2179 top level.
2180 * aclocal.m4, configure: Rebuilt.
2181
c13b1b77
NC
21822000-08-25 Nick Clifton <nickc@redhat.com>
2183
2184 * ldlang.c (open_output): When choosing the target for a
2185 particular endianness, do nothing if the target is not
2186 supported.
2187
dcb0bd0e
L
21882000-08-25 H.J. Lu <hjl@gnu.org>
2189
2190 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2191 check -rpath nor LD_RUN_PATH for cross link.
2192 * ld.texinfo: Document the change.
2193
5bcac8a4
HPN
21942000-08-24 Hans-Peter Nilsson <hp@axis.com>
2195
2196 * NEWS: Mention support for CRIS.
2197
6dd8c765
L
21982000-08-23 H.J. Lu <hjl@gnu.org>
2199
2200 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
2201 the current runpath list from bfd_elf_get_runpath_list ()
2202 before search.
2203
ec4eb78a
L
22042000-08-22 H.J. Lu <hjl@gnu.org>
2205
2206 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
2207 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
2208 LD_LIBRARY_PATH for native linker. Display the needed DSO if
2209 trace_file_tries is non-zero.
2210 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
2211 if trace_file_tries is non-zero.
2212
2213 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 2214 * NEWS: Mention it.
ec4eb78a 2215
22b36938
JE
22162000-08-14 Jason Eckhardt <jle@cygnus.com>
2217
2218 * NEWS: Mention i860 support.
2219
d73e9da0
AS
22202000-08-14 Andreas Schwab <schwab@suse.de>
2221
2222 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 2223 syntax.
d73e9da0 2224
9ac4db9c
GK
22252000-08-10 Geoff Keating <geoffk@cygnus.com>
2226
2227 * scripttempl/elf.sc: Add a comment giving the correspondence
2228 between sections, per-datum sections, and linkonce sections. Make
2229 the comment true even for .bss, .sdata, .sdata2, .sbss, and
2230 .sbss2.
2231
165589e4
JE
22322000-08-10 Jason Eckhardt <jle@cygnus.com>
2233
2234 * emulparams/elf32_i860.sh: New file.
2235 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
2236 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
2237 (eelf32_i860.c): New rule.
2238 * Makefile.in: Regenerate.
2239
345a835d
NC
22402000-08-10 Nick Clifton <nickc@cygnus.com>
2241
2242 * emulparams/mipspe.sh (ENTRY): Add definition.
2243
e374f1d9
NC
22442000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
2245
2246 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
2247 in error message.
2248
236d5abf
NC
22492000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2250
2251 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
2252 the final size of .bss section.
2253 * scripttempl/elfm68hc12.sc: Likewise.
2254
4b209b22
AM
22552000-08-04 Alan Modra <alan@linuxcare.com.au>
2256
2257 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
2258 gld${EMULATION_NAME}_parse_args for consistency. Combine
2259 lastoptind and prevoptind vars, and keep track of last optind.
2260 (gld_${EMULATION_NAME}_list_options): Rename to
2261 gld${EMULATION_NAME}_list_options.
2262
28423a68
AM
22632000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
2264
2265 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
2266 (i586-sco-sysv5uw7.1.0).
2267
b2009ff7
L
22682000-07-27 H.J. Lu <hjl@gnu.org>
2269
2270 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
2271 (PARSE_AND_LIST_PROLOGUE): New.
2272 (PARSE_AND_LIST_LONGOPTS): Likewise.
2273 (PARSE_AND_LIST_OPTIONS): Likewise.
2274 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2275 (PARSE_AND_LIST_EPILOGUE): Likewise.
2276
04925e1e
AM
22772000-07-28 Alan Modra <alan@linuxcare.com.au>
2278
41392f03
AM
2279 * emultempl/armelf.em: Elide functions common to elf32.em,
2280 ie. most of the file.
2281 (arm_elf_after_open): New. Do arm specific things then call
2282 gld${EMULATION_NAME}_after_open.
2283 (arm_elf_before_allocation): New. Call
2284 gld${EMULATION_NAME}_before_allocation then do arm specifics.
2285 (PARSE_AND_LIST_PROLOGUE): Define.
2286 (PARSE_AND_LIST_SHORTOPTS): Define.
2287 (PARSE_AND_LIST_LONGOPTS): Define.
2288 (PARSE_AND_LIST_OPTIONS): Define.
2289 (PARSE_AND_LIST_ARGS_CASES): Define.
2290 (LDEMUL_AFTER_OPEN): Define.
2291 (LDEMUL_BEFORE_ALLOCATION): Define.
2292 (LDEMUL_BEFORE_PARSE): Define.
2293 (LDEMUL_FINISH): Define.
2294
2295 * emultempl/hppaelf.em: Similarly zap most of this file.
2296 (hppaelf_add_stub_section): Prototype.
2297 (hppaelf_layaout_sections_again): Prototype.
2298 (hook_in_stub): Prototype.
2299 (LDEMUL_SET_OUTPUT_ARCH): Define.
2300 (LDEMUL_FINISH): Define.
2301 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2302
2303 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
2304 (EXTRA_EM_FILE): New.
2305 * emulparams/armelf_linux.sh: Likewise.
2306 * emulparams/armelf_linux26.sh: Likewise.
2307 * emulparams/hppalinux.sh: Likewise.
2308 * emulparams/hppaelf.sh: Likewise.
2309 (NOP): Define.
2310
2311 * emultempl/elf32.em: Fix formatting.
2312 (EXTRA_EM_FILE): Source it.
2313 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2314 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2315 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2316 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2317 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2318 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2319 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2320 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2321 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
2322 allow functions in this file to be overridden.
2323 (PARSE_AND_LIST_SHORTOPTS): Handle it.
2324
2325 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
2326
04925e1e
AM
2327 * emultempl/elf32.em: Reorganize file.
2328
88cdf297
NC
23292000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
2330
2331 * emulparams/elf64alpha.sh: Implement "-taso" emulation
2332 specific option to fit 64-bit executable in the lower
2333 31-bit address range. This is done by changing start
2334 address of .interp (the very first section of executable)
2335 and then setting EF_ALPHA_32BIT elf header flag.
2336
20bccb34
NC
23372000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2338
2339 * emultempl/m68kcoff.em: New file.
2340 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
2341 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
2342 generic.em.
2343 * Makefile.in: Regenerate.
2344
699845ef
L
23452000-07-20 H.J. Lu <hjl@gnu.org>
2346
2347 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
2348 and "disable-new-dtags" to stop getopt from treating -d/-e as
2349 abbreviations for these options.
2350
6c1439be
L
23512000-07-20 H.J. Lu <hjl@gnu.org>
2352
2353 * ld.texinfo: Add documentation for --disable-new-dtags and
2354 --enable-new-dtags.
2355
2356 * ldmain.c (main): Initialize link_info.new_dtags to false.
2357
2358 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
2359 --disable-new-dtags and --enable-new-dtags.
2360 (gld_${EMULATION_NAME}_list_options): Likewise.
2361
28c309a2
NC
23622000-07-05 Kenneth Block <krblock@computer.org>
2363
a2b64bed
NC
2364 * lexsup.c: Add optional style to demangle switch
2365 * ld.texinfo: Document optional style to demangle switch.
50bbae35 2366
9d06555c
HPN
23672000-07-20 Hans-Peter Nilsson <hp@axis.com>
2368
2369 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
2370 ecrislinux.o.
2371 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
2372 Regenerate dependencies.
2373 * Makefile.in: Rebuild.
2374 * configure.tgt (cris-*-*): New target.
2375 * emulparams/crisaout.sh, emulparams/criself.sh,
2376 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
2377 * po/POTFILES.in, po/ld.pot: Regenerate.
2378
19e3be22
L
23792000-07-20 H.J. Lu <hjl@gnu.org>
2380
2381 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
2382 Print out ignored -z options.
2383
e0ee487b
L
23842000-07-19 H.J. Lu <hjl@gnu.org>
2385
19e3be22
L
2386 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
2387 (PARSE_AND_LIST_PROLOGUE): New.
2388 (PARSE_AND_LIST_LONGOPTS): Likewise.
2389 (PARSE_AND_LIST_OPTIONS): Likewise.
2390 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2391
2392 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
2393
2394 * lexsup.c (ld_options): Comment out 'z'.
2395 (parse_args): Likewise.
2396
2397 * emultempl/elf32.em: Include "elf/common.h".
2398 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
2399 options.
2400 (gld_${EMULATION_NAME}_list_options): Likewise.
2401
2402 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 2403
49e56c49
L
24042000-07-19 H.J. Lu <hjl@gnu.org>
2405
2406 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
2407 bfd_elf_set_dt_needed_soname ().
2408
9d68bc82
DD
24092000-07-18 DJ Delorie <dj@cygnus.com>
2410
2411 * pe-dll.c (pe_dll_id_target): check object target name also
2412
53db15ed
HPN
24132000-07-18 Hans-Peter Nilsson <hp@axis.com>
2414
2415 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
2416 ${INIT_END} if relocating.
2417 (.fini): Likewise ${FINI_START} and ${FINI_END}.
2418
0ad8cf4c
DD
24192000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
2420
a2b64bed 2421 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
2422 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
2423 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
2424 errors introduced by the old dynamic lib search order.
2425
874c8c99
DD
24262000-07-17 DJ Delorie <dj@cygnus.com>
2427
2428 * pe-dll.c (process_def_file): auto-export data items also
2429 (pe_process_import_defs): also see if _imp_ form needed
2430
5b4cf3f4
DD
24312000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2432
2433 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
2434 for dll import libraries
2435
062739d1
NC
24362000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
2437
2438 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 2439 gcc 2.95.2 and later.
062739d1 2440
1c64c4ed
NC
24412000-07-11 Kazu Hirata <kazu@hxi.com>
2442
50bbae35
AM
2443 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
2444 message.
1c64c4ed 2445
b71e2778
AM
24462000-07-10 Alan Modra <alan@linuxcare.com.au>
2447
2448 * ldemul.h (struct lang_input_statement_struct): Remove forward
2449 declaration.
2450 (struct search_dirs): Likewise.
2451 * ldfile.h (struct lang_input_statement_struct): Likewise.
2452 Protect file from multiple inclusion.
2453 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
2454 declaration from macro to file scope.
2455
2456 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
2457 * ldgram.y: Likewise here.
2458 * ldlang.c: And here.
2459 * ldmain.c: And here.
2460 * mpw-elfmips.c: And here.
2461 * mpw-eppcmac.c: And here.
2462 * emultempl/aix.em: And here.
2463 * emultempl/armcoff.em: And here.
2464 * emultempl/armelf.em: And here.
2465 * emultempl/armelf_oabi.em: And here.
2466 * emultempl/beos.em: And here.
2467 * emultempl/elf32.em: And here.
2468 * emultempl/hppaelf.em: And here.
2469 * emultempl/linux.em: And here.
2470 * emultempl/lnk960.em: And here.
2471 * emultempl/pe.em: And here.
2472 * emultempl/sunos.em: And here.
2473 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
2474 * mpw-idtmips.c: Ditto.
2475 * emultempl/generic.em: Ditto.
2476 * emultempl/gld960.em: Ditto.
2477 * emultempl/gld960c.em: Ditto.
2478 * emultempl/mipsecoff.em: Ditto.
2479 * emultempl/ticoff.em: Ditto.
2480 * emultempl/vanilla.em: Ditto.
2481
2482 * pe-dll.c: Include ldfile.h
2483 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
2484
2485 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
2486 arguments to bfd_elf32_size_dynamic_sections call.
2487 (gldelf32ebmip_place_orphan): Add missing arguments to
2488 lang_leave_output_section_statement call.
2489
2ef53d66
L
24902000-07-10 H.J. Lu <hjl@gnu.org>
2491
2492 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
2493 DLL_SUPPORT.
2494 (strhash): Likewise.
2495 (compute_dll_image_base): Likewise.
2496 (pe_undef_found_sym): Likewise.
2497 (pe_undef_cdecl_match): Likewise.
2498 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
2499 argument "arch" with ATTRIBUTE_UNUSED.
2500
9a8cbb09
AM
25012000-07-10 Alan Modra <alan@linuxcare.com.au>
2502
2503 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
2504
2505 From Ryan Bradetich <rbradetich@uswest.net>
2506 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 2507
4900fc06
AM
25082000-07-09 Alan Modra <alan@linuxcare.com.au>
2509
2510 Changes to create multiple linker stubs, positioned immediately
2511 before the section where they are required.
2512 * emultempl/hppaelf.em: Include elf32-hppa.h.
2513 (stub_sec, file_chain): Delete.
2514 (hppaelf_create_output_section_statements): Don't make a stub
2515 section here.
2516 (hook_stub_info): New struct.
2517 (hook_in_stub): New function.
2518 (hppaelf_add_stub_section): New function.
2519 (hppaelf_finish): Do nothing for relocateable links. Modify the
2520 call to elf32_hppa_size_stubs. Move code for updating section
2521 layout from here...
2522 (hppaelf_layaout_sections_again): ..to here, a new function.
2523
2524 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
2525 broken list handling. Pass in a pointer to the list.
2526 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
2527 for above changes.
2528 (hppaelf_before_parse): Prototype.
2529 (hppaelf_set_output_arch): Prototype.
2530 (hppaelf_create_output_section_statements): Prototype.
2531 (hppaelf_delete_padding_statements): Prototype.
2532 (hppaelf_finish): Prototype.
2533
2534 Merge from elf32.em
2535 * emultempl/hppaelf.em: Include ctype.h.
2536 (struct orphan_save): New.
2537 (gld${EMULATION_NAME}_place_orphan): New.
2538 (output_rel_find): New.
2539 (hppaelf_get_script): Update from elf32.em.
2540 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
2541 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 2542 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
2543
2544 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
2545 ehppalinux.o, sort it. Regenerate dependencies.
2546 (ehppalinux.c): Depend on hppaelf.em
2547 * Makefile.in: Regenerate.
2548
2549 * configure.tgt: targ_emul=hppalinux for hppa*linux
2550
2551 * emulparams/hppalinux.sh: New.
2552 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
2553
227aeb07
AM
25542000-07-08 Alan Modra <alan@linuxcare.com.au>
2555
2556 * lexsup.c (parse_args): Copy section name.
2557
28609fd4 25582000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 2559
2ef53d66 2560 * emultempl/pe.em: institute the following search order for
602e90d3
DD
2561 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
2562 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
2563 static lib (libfoo.a) if none of the above are found.
2564
5f577f7d
DD
25652000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
2566
50bbae35 2567 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 2568 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 2569 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
2570 (gld_${EMULATION_NAME}_parse): Handle.
2571 (strhash): New static function.
50bbae35 2572 (compute_dll_image_base): New static function.
5f577f7d
DD
2573 (gld_${EMULATION_NAME}_set_symbols): Use.
2574
9a8cbb09 25752000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
2576
2577 * MAINTAINERS: new
2578
3548145d 25792000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
2580
2581 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
2582 * emulparams/elf32btsmip.sh: New file.
2583 * Makefile.am: Add traditional mips target.
2584 * Makefile.in: Rebuild.
2585
67798033
L
25862000-07-01 H.J. Lu <hjl@gnu.org>
2587
2588 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
2589 automake to use YLWRAP.
2590 * Makefile.in: Rebuild.
2591
0bdaf48b
AM
25922000-07-01 Alan Modra <alan@linuxcare.com.au>
2593
2594 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2595 (CLEANFILES): Add DEPA.
2596 * Makefile.in: Regenerate.
2597
c9e769c2
TW
25982000-06-30 Timothy Wall <twall@ppc>
2599
2600 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
2601 the page in the upper octet of the address.
2602
65aa24b6
NC
26032000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2604
2605 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
2606
4667035e
AM
26072000-06-24 Alan Modra <alan@linuxcare.com.au>
2608
2609 * NEWS: arm-elf does --gc-sections too.
2610
1581f8c9
AM
26112000-06-22 Alan Modra <alan@linuxcare.com.au>
2612
2613 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2614 find one.
2615 * Makefile.in: Regenerate.
2616
01580992
L
26172000-06-21 H.J. Lu <hjl@gnu.org>
2618
2619 * Makefile.am: Rebuild dependency.
2620 * Makefile.in: Rebuild.
2621
bbeb2e03
L
26222000-06-20 H.J. Lu <hjl@gnu.org>
2623
2624 * Makefile.am: Rebuild dependency.
2625 * Makefile.in: Rebuild.
2626
74459f0e
TW
26272000-06-20 Timothy Wall <twall@cygnus.com>
2628
2629 * scripttempl/tic54xcoff.sc: New.
2630 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
2631 * gen-doc.texi: Add flag for TI COFF.
2632 * ld.texinfo: Add documentation for TI COFF handling switches.
2633 * emultempl/ticoff.em: New. TI COFF handling.
2634 * configure.tgt: Add tic54x target.
2635 * Makefile.am: Add tic54x target.
2636 * Makefile.in: Ditto.
2637
2ab47eed
AM
26382000-06-20 Alan Modra <alan@linuxcare.com.au>
2639
2640 * ldmain.c (set_scripts_dir): Correct pointer comparison when
2641 checking for backslashes.
2642
919e4093
AM
26432000-06-19 Alan Modra <alan@linuxcare.com.au>
2644
2645 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
2646
987fd5b4
AM
26472000-06-18 Alan Modra <alan@linuxcare.com.au>
2648
2649 * NEWS: Update list of targets supporting --gc-sections.
2650
2651 * scripttempl/elf.sc: KEEP .eh_frame contents.
2652 * scripttempl/elfd30v.sc: Same here.
2653
60bcf0fa
NC
26542000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2655
2656 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
2657 and m68hc11 (elf).
2658 * Makefile.in: Rebuild.
2659 * configure.tgt: Recognize m68hc12 and m68hc11.
2660 * scripttempl/elfm68hc12.sc: New file.
2661 * emulparams/m68hc12elfb: New emulation.
2662 * emulparams/m68hc12elf: New emulation.
2663 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
2664 (includes a memory.x script to define the ROM and RAM banks).
2665 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
2666 New configuration files for support of Motorola 68hc11
2667
c7c54483
AM
26682000-06-15 Alan Modra <alan@linuxcare.com.au>
2669
2670 * ldmain.c (main): Only change SEC_READONLY for final link.
2671
bcef29e6
L
26722000-06-13 H.J. Lu <hjl@gnu.org>
2673
2674 * configure: Regenerate.
2675
946efd95
DB
26762000-06-08 David O'Brien <obrien@FreeBSD.org>
2677
2678 * configure.in (VERSION): Update to show this is the CVS mainline.
2679
57a6fd07
DB
26802000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2681
2682 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
2683 input objects to be ECOFF.
2684 (check_sections): einfo takes %B, not %P, to print a BFD name.
2685
e06cae36
L
26862000-06-05 Michael Matz <matz@ifh.de>
2687
2688 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 2689 version scripts.
e06cae36 2690
d952f17a 2691 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 2692
2f0b56c0
DC
26932000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
2694
2695 * emulparams/avr1200.sh (STACK): Define as 0.
2696 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
2697 * emulparams/avr4433.sh (STACK): Likewise.
2698 * emulparams/avr44x4.sh (STACK): Likewise.
2699 * emulparams/avr85xx.sh (STACK): Likewise.
2700 * emulparams/avrmega103.sh (STACK): Likewise.
2701 * emulparams/avrmega161.sh (STACK): Likewise.
2702 * emulparams/avrmega603.sh (STACK): Likewise.
2703 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
2704 (__stack): Define from ${STACK} for main().
2705
2114f57b
AM
27062000-05-26 Alan Modra <alan@linuxcare.com.au>
2707
2708 * Makefile.am: Update dependencies with "make dep-am"
2709 * Makefile.in: Regenerate.
2710
5af11cab
AM
27112000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
2712
2713 * ldmain.c: Include filenames.h.
2714 (set_scripts_dir): Support backslashes in program name.
2715
1f0df59a
NC
27162000-05-22 Igor Shevlyakov <igor@windriver.com>
2717
2718 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
2719 read-only, don't forget to reset SEC_READONLY because it
2720 could be already set.
1f0df59a 2721
176355da
NC
27222000-05-22 Thomas de Lellis <tdel@windriver.com>
2723
50bbae35
AM
2724 * ld.1: Add documentation for new command line option:
2725 --section-start <sectionname>=<sectionorg>
2726 This is a generic version of -Ttext etc. which accepts
2727 any section name as a parameter instead of just text/data/
2728 bss.
2729 * ld.texinfo: More docs.
2730 * NEWS: More docs.
2731 * lexsup.c: (parse_args): Recognize new command line option.
176355da 2732 (ld_options): Add new option.
50bbae35 2733
8c5ff972
L
27342000-05-18 H.J. Lu <hjl@gnu.org>
2735
2736 * lexsup.c (parse_args): `i' == `r', not `q'.
2737
0b76fe77
JL
2738Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
2739
2740 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
2741
a712da20
NC
27422000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
2743 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 2744
a712da20
NC
2745 Add support for '-q' == '--emit-relocs' switch.
2746 * ldmain.c (main): Default to false.
2747 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
2748 * NEWS: Describe the emitrelocations switch.
2749 * ld.texinfo: Describe the emitrelocations switch.
2750
690a460e
NC
27512000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
2752
a2b64bed 2753 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
2754 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
2755 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
2756 link options.
50bbae35 2757
c2f1343c
AM
27582000-05-15 David O'Brien <obrien@FreeBSD.org>
2759
2760 * lexsup.c (parse_args): Update the year in the copyright notice.
2761
897083bd
AM
27622000-05-13 Alan Modra <alan@linuxcare.com.au>
2763
2764 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
2765 Replace defines with those from intl/libgettext.h to quieten gcc
2766 warnings.
2767
cd4c806a
L
27682000-05-10 H.J. Lu <hjl@gnu.org>
2769
2770 * ldlang.c (open_input_bfds): Don't load the same file within
2771 a group again if the whole archive has been loaded already.
2772
93697284
AM
27732000-05-03 Alan Modra <alan@linuxcare.com.au>
2774
2775 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
2776 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
2777 strtoul.
2778
ebd6fc29
JW
2779Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
2780
99a4150f 2781 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 2782
ebd6fc29
JW
2783 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2784 host "ia64-*-linux-gnu*".
2785
a1934524
AM
27862000-04-29 Andreas Jaeger <aj@suse.de>
2787
2788 * ld.h: Correctly check GCC version.
2789
730a39a0
JL
2790Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
2791
2792 * Makefile.am: Add PA64 support. Add missing dependencies for
2793 PA32 elf support.
2794 * Makefile.in: Rebuilt.
2795 * configure.tgt: Add PA64 support (currently disabled).
2796
aea4bd9d
AM
27972000-04-25 Alan Modra <alan@linuxcare.com.au>
2798
2799 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
2800 (output_rel_find): New function.
2801 (hold_section, hold_use): Delete.
2802 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2803 hold_interp): Make local to place_orphan.
2804 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
2805 rather than place_section to find possible previous use of orphan.
2806 Similarly find the place-holder output sections. Use returned
2807 value from lang_enter_output_section_statement rather than calling
2808 lang_output_section_statement_lookup.
2809 * emultempl/armelf.em: Same here.
2810 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
2811
2812 * ldlang.c (lang_enter_output_section_statement): Return output
2813 section statement.
2814 * ldlang.h (lang_enter_output_section_statement): Change
2815 declaration too.
2816
2817 * ldlang.h (lang_output_section_statement): Export it.
2818 * ldlang.c (lang_output_section_statement): Ditto.
2819
2b5fc1f5
NC
28202000-04-24 Nick Clifton <nickc@cygnus.com>
2821
2822 * ld.texinfo (Output Section Data): Add note that section data
2823 commands cannot appear outside of section directives.
2824
d8475ff6
JL
28252000-04-2 Matthew Green <mrg@cygnus.com>
2826
2827 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
2828
800eeca4
JW
2829Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
2830 David Mosberger <davidm@hpl.hp.com>
2831
2832 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
2833 (eelf64_ia64.c): New rule.
2834 * Makefile.in: Rebuild.
2835 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
2836 * emulparams/elf64_ia64.sh: New file.
50bbae35 2837
c9637625
RH
28382000-04-21 Richard Henderson <rth@cygnus.com>
2839
2840 * scripttempl/elfd30v.sc: Place .gcc_except_table.
2841
28ea9521
AM
28422000-04-19 Alan Modra <alan@linuxcare.com.au>
2843
2844 * dep-in.sed: Match space at start of file name, not at end.
2845
20d04697
L
28462000-04-18 H.J. Lu <hjl@gnu.org>
2847
2848 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
2849 lang_leave_output_section_statement () after calling
2850 lang_enter_output_section_statement ().
2851 * emultempl/armelf.em: Likewise.
2852
5ba47421
AM
28532000-04-18 Alan Modra <alan@linuxcare.com.au>
2854
2855 * emultempl/elf32.em (struct orphan_save): Add section field.
2856 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
2857 better order, and place first orphan section as we did before the
2858 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
2859 Don't call make_bfd_section here, let wild_doit do the job for us.
2860 Don't build a statement list when we'll only throw it away.
2861 * emultempl/armelf.em: Ditto.
2862 * emultempl/pe.em: Similarly.
2863
bdbe5705
GK
28642000-04-14 Geoff Keating <geoffk@cygnus.com>
2865
2866 * scripttempl/elfppc.sc: Remove.
2867 * emulparams/elf32ppc.sh: Use elf.sc.
2868 * emulparams/elf32lppc.sh: Use elf.sc.
2869 * emulparams/elf32ppclinux.sh: Use elf.sc.
2870 * emulparams/elf32ppcsim.sh: New file.
2871 * emulparams/elf32lppcsim.sh: New file.
2872 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
2873 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
2874 * Makefile.in: Regenerate.
2875 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
2876
01cc8ff8
AM
28772000-04-14 Alan Modra <alan@linuxcare.com.au>
2878
5ba47421 2879 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 2880 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
2881 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2882 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
2883 Also set all relocateable section start addresses.
2884
6c86c541
GK
28852000-04-13 Geoff Keating <geoffk@cygnus.com>
2886
2887 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
2888 Add new BSS_PLT variable for when .plt need not be contained in
2889 the file. Move _etext so that it is also after .fini, and provide
2890 both etext and _etext with a leading underscore. Mark the start
2891 and end of .sbss.
2892
6a345e87
AM
28932000-04-12 Alan Modra <alan@linuxcare.com.au>
2894
2895 * emultempl/elf32.em (struct orphan_save): New.
2896 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2897 hold_interp): Make them struct orphan_save.
2898 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
2899 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
2900 the end of the relevant section list. Also add associated section
2901 statements to the end of any previous orphan statements.
2902 * emultempl/armelf.em: Similarly.
2903 * emultempl/pe.em: Similarly.
2904
8be86746
AM
29052000-04-11 Alan Modra <alan@linuxcare.com.au>
2906
2907 * ld.texinfo (Simple Example): Remove extraneous paragraph.
2908
a2d91340 2909Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 2910
a2d91340 2911 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 2912 --enable-build-warnings option.
a2d91340
AC
2913 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
2914 * Makefile.in, configure: Re-generate.
2915
41b49281
AM
29162000-04-04 Alan Modra <alan@linuxcare.com.au>
2917
8ad3436c
AM
2918 * po/ld.pot: Regenerate.
2919
2920 * lexsup.c (help): Restore translated part of bug string.
2921
41b49281
AM
2922 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
2923 (DEP): Quote when passing vars to sub-make. Add warning message
2924 to end.
2925 (DEP1): Rewrite for "gcc -MM".
2926 (CLEANFILES): Add DEP2.
2927 Update dependencies.
2928 * Makefile.in: Regenerate.
2929
c20f4f8c
AM
29302000-04-03 Alan Modra <alan@linuxcare.com.au>
2931
2932 * ld.h: #include "bin-bugs.h"
2933 * lexsup.c (help): Use REPORT_BUGS_TO.
2934
adde6300
AM
29352000-03-27 Denis Chertykov <denisc@overta.ru>
2936
2937 * configure.tgt (avr-*-*): New target support.
2938 * Makefile.am: Likewise.
2939 * scripttempl/elf32avr.sc: New script file.
2940 * emulparams/avr1200.sh: New file.
2941 * emulparams/avr23xx.sh: New file.
2942 * emulparams/avr4433.sh New file.
2943 * emulparams/avr44x4.sh New file.
2944 * emulparams/avr85xx.sh New file.
2945 * emulparams/avrmega103.sh New file.
2946 * emulparams/avrmega161.sh New file.
2947 * emulparams/avrmega603.sh New file.
2948 * Makefile.in: Regenerate.
2949
9282ff41
L
29502000-03-09 Andreas Jaeger <aj@suse.de>
2951
2952 * Makefile.am (check-DEJAGNU): Also unset LANG.
2953 * Makefile.in: Rebuild.
2954
a9998805
ILT
29552000-03-06 Ian Lance Taylor <ian@zembu.com>
2956
2957 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
2958 archive.
2959
f9bc20e7
NC
29602000-03-02 H.J. Lu <hjl@gnu.org>
2961
2962 * emulparams/elf32mcore.sh: Include "getopt.h".
2963
4e277b38
ILT
29642000-03-01 Ian Lance Taylor <ian@zembu.com>
2965
2966 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
2967
f0c87f88
NC
29682000-03-01 H.J. Lu <hjl@gnu.org>
2969
2970 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
2971 * emulparams/shpe.sh: Likewise.
2972
29732000-03-01 Nick Clifton <nickc@cygnus.com>
2974
2975 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
2976 to unused parameters.
2977
2978 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
2979 functions only used by DLL code.
2980 (_place_orphan): Initialise 'dollar'.
2981
b6f29aaa
L
29822000-03-01 H.J. Lu <hjl@gnu.org>
2983
2984 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
2985 indicate if the undefined symbol is a fatal error or not.
2986 Don't delete the output file if "fatal" is false.
2987
af28fce3
L
29882000-02-29 H.J. Lu <hjl@gnu.org>
2989
50bbae35 2990 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
2991 Set LC_COLLATE and LC_ALL to null and export them. It is for
2992 sort which expects the C locale.
2993 Add $(LIBS) to all $(HOSTING_LIBS).
2994 * Makefile.in: Rebuild.
2995
40d109bf
AM
29962000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
2997
2998 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
2999 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3000 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3001 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3002 find_potential_libraries.
3003
db5be682
JB
30042000-02-28 Jim Blandy <jimb@redhat.com>
3005
3006 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 3007 list entries; the lexer considers commas to be valid part of a
db5be682
JB
3008 filename, so in something like `foo, bar' the comma is considered
3009 part of the first filename, `foo,'.
3010 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3011
3558ff4c
ILT
30122000-02-27 Loren J. Rittle <ljrittle@acm.org>
3013
3014 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3015 host "i[3456]86-*-freebsdelf*".
3016
4eee2681
ILT
30172000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3018
3019 * scripttempl/i386go32.sc: Move misplaced semicolons.
3020
8d75d12d
ILT
30212000-02-25 Ian Lance Taylor <ian@zembu.com>
3022
3023 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3024 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3025 (eelf64hppa.c, ehppaelf.c): Remove targets.
3026 * Makefile.in: Rebuild.
3027
a1836d49
AO
30282000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3029
ad51fb57
AO
3030 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3031 GNU/Linux/sparc, but keep the default as 32.
3032
a1836d49
AO
3033 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3034 it default if sparcv9 or sparc64.
3035
344a211f
NC
30362000-02-24 Nick Clifton <nickc@cygnus.com>
3037
3038 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3039 * Makefile.in: Regenerate.
3040 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3041
3042 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3043 find_potential_libraries.
3044 * ldemul.c (ldemul_find_potential_libraries): New function.
3045
3046 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 3047 exported.
344a211f
NC
3048 (ldfile_open_file): Call ldemul_find_potential_libraries.
3049 * ldfile.h: Add prototype for ldfile_open_file_search.
3050
3051 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3052
3053 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3054 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3055
3056 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3057 (gld_X_find_potential_libraries): New function. Search for
3058 libraries called "*.lib".
3059
a2b64bed 3060 * scripttempl/pe.sc: Add .pdata section.
344a211f 3061
eaba1dd3
RH
30622000-02-23 Richard Henderson <rth@cygnus.com>
3063
3064 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3065 Add and use memory regions.
3066
5b93d8bb
AM
30672000-02-23 Linas Vepstas (linas@linas.org)
3068
3069 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3070
3071 * Makefile.am: Add support for Linux/IBM 370.
3072 * configure.tgt: Likewise.
3073
3074 * Makefile.in: Regenerate.
3075
f6af82bd
AM
30762000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3077
3078 * ldlang.c (print_input_section, print_data_statement,
3079 print_reloc_statement, print_padding_statement, insert_pad,
3080 size_input_section, lang_check_section_addresses,
3081 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 3082 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
3083 (lang_do_assignments): Also change `size' to unsigned.
3084
9e673ad1
RH
30852000-02-16 Richard Henderson <rth@cygnus.com>
3086
3087 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3088
562d3460
TW
30892000-02-16 Timothy Wall <twall@cygnus.com>
3090
3091 * mri.c (mri_draw_tree): Add default LMA region argument to call
3092 to lang_leave_output_section_statement.
3093 * ldlang.h: Update prototypes with LMA region arguments.
3094 * ldlang.c (lang_size_sections): Encapsulate region bounds
3095 checking in os_check_region call.
3096 (os_check_region): New function.
3097 (lang_output_section_statement_lookup): Initialize lma_region.
3098 (lang_leave_output_section_statement): Add LMA region argument.
3099 (lang_leave_overlay): Ditto.
3100 * ldgram.y: Handle LMA region syntax.
3101 * ld.texinfo (Output Section Description): Describe LMA region usage.
3102 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 3103 lma region in call to lang_leave_output_section_statement.
562d3460 3104 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 3105 lma region in call to lang_leave_output_section_statement.
562d3460 3106 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 3107 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
3108
3109
9e4ed18c
TW
31102000-02-04 Timothy Wall <twall@redhat.com>
3111
3112 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3113 octets when calculating section end addresses.
3114
32edc927
TW
31152000-02-04 Timothy Wall <twall@redhat.com>
3116
3117 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3118
4cbfc3ac
TW
31192000-02-03 Timothy Wall <twall@redhat.com>
3120
a2b64bed 3121 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 3122 octet count.
a2b64bed 3123 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
3124 print_reloc_statement, print_padding_statement): Print target
3125 address values and section sizes as bytes, not octets.
3126 (insert_pad) Calculate padding size in octets, and adjust "dot"
3127 by bytes.
3128 (size_input_section) Always adjust "dot" by bytes, not octets.
3129 (lang_check_section_addresses, lang_do_assignments) Adjust
3130 "dot" by bytes, not octets. Use the larger of the directive size
3131 or octets_per_byte for the number of octets actually allocated in
3132 the output section.
3133 (lang_set_startof) Make sure STARTOF returns a target address.
3134 (lang_one_common) Record size changes in octets.
3135 (lang_abs_symbol_at_end_of) Section end symbol's value is
3136 recorded in target bytes.
3137 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
3138 to be clear about behavior when an octet is smaller than one byte.
50bbae35 3139
305c7206
AM
31402000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3141
3142 * ldcref.c (output_cref): Don't pass message strings to printf
3143 as format arg.
3144 Update copyright.
3145
3146 * ldmisc.c (vfinfo): Same here.
3147 Update copyright.
3148
e1c47aa4
AM
31492000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3150
3151 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
3152 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
3153 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
3154 Add missing NULL initialisers, and comments.
3155
3156 * testsuite/ld-srec/sr3.cc (__rethrow): New.
3157
13392b77
NC
31582000-01-21 Nick Clifton <nickc@cygnus.com>
3159
3160 * ldlang.c (lang_size_sections): Fix typo in comment.
3161
cce4c4c5
NC
31622000-01-18 H.J. Lu <hjl@gnu.org>
3163
3164 * ldlang.c (lang_size_sections): Also update the current
3165 address of a region if the SEC_NEVER_LOAD bit is not set.
3166
0decc840
NC
31672000-01-10 Philip Blundell <pb@futuretv.com>
3168
3169 * configure.tgt (arm*-*-conix*): New target.
3170
4e53152f
NC
31712000-01-07 Nick Clifton <nickc@cygnus.com>
3172
3173 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
3174 line switches with -Wl, (or whatever is appropriate) if it is
3175 being invoked by a comnpiler driver program.
50bbae35 3176 Fix description of the behaviour of the -n command line switch.
4e53152f 3177
18625d54
CM
3178Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
3179
3180 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
3181 (name_list): New.
3182 * ld.texinfo (EXCLUDE_FILE): Update documentation.
3183 * ldgram.y (wildcard_spec): Support a list of excluded_files.
3184 (exclude_name_list): New.
3185 ldlang.c (walk_wild_section): Support list of excluded files.
3186 (print_wild_statement): Likewise.
3187 (lang_add_wild): Likewise.
3188 * ldlang.h (lang_wild_statement_type): Likewise.
3189 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 3190
5aaace27
NC
31912000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3192
870df5dc
NC
3193 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
3194 (process_def_file): Use.
3195 (pe_dll_compat_implib): New variable.
3196 (make_one): Use.
50bbae35 3197
870df5dc
NC
3198 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
3199 pe_dll_compat_implib.
50bbae35
AM
3200
3201 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
3202 compat-implib options.
3203 (gld_${EMULATION_NAME}_list_options): List new options.
3204 (gld_${EMULATION_NAME}_parse_args): Handle.
3205
50bbae35 3206 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 3207 dll.
50bbae35
AM
3208
3209 * deffilep.y (opt_name): Allow "." in name.
5aaace27 3210
2f6d2f85 3211For older changes see ChangeLog-9899
252b5132
RH
3212\f
3213Local Variables:
3214mode: change-log
3215left-margin: 8
3216fill-column: 74
3217version-control: never
3218End:
This page took 0.2792 seconds and 4 git commands to generate.