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