Do not convert a subtract of zero into an add of zero.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
cc7e59b2
TR
12002-04-30 Tom Rix <trix@redhat.com>
2
3 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
4
9c1d81c1
AM
52002-05-01 Alan Modra <amodra@bigpond.net.au>
6
7 Long branch stubs, multiple stub sections.
8 * emultempl/ppc64elf.em: Include ldctor.h.
9 (stub_file): New var.
10 (group_size): New var.
11 (ppc_create_output_section_statements): New function.
12 (struct hook_stub_info): New.
13 (hook_in_stub): New function.
14 (ppc_add_stub_section): New function.
15 (ppc_layout_sections_again): New function.
16 (build_section_lists): New function.
17 (gld${EMULATION_NAME}_finish): Rewrite.
18 (real_func): New var.
19 (ppc_for_each_input_file_wrapper): New function.
20 (ppc_lang_for_each_input_file): New function.
21 (lang_for_each_input_file): Define.
22 (PARSE_AND_LIST_PROLOGUE): Define.
23 (PARSE_AND_LIST_LONGOPTS): Define.
24 (PARSE_AND_LIST_OPTIONS): Define.
25 (PARSE_AND_LIST_ARGS_CASES): Define.
26 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
27
aa67bccf
TR
282002-04-30 Tom Rix <trix@redhat.com>
29
30 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
31 -blibpath, -bnolibpath support.
32
94349e12
MM
332002-04-30 Mark Mitchell <mark@codesourcery.com>
34
35 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
36 (eelf32ppcwindiss.c): New target.
37 * Makefile.in: Regenerated.
38 * configure.tgt: Add support for powerpc-*-windiss.
39 * emulparams/elf32ppcwindiss.sh: New file.
40
7b17f854
RS
412002-04-30 Richard Sandiford <rsandifo@redhat.com>
42
43 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
44 * ldexp.c (exp_print_token): Add "infix_p" argument.
45 (exp_print_tree): Update accordingly.
46
596dafeb
AM
472002-04-28 Alan Modra <amodra@bigpond.net.au>
48
49 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
50 * Makefile.in: Regenerate.
51 * mpw-elfmips.c: Delete.
52 * mpw-eppcmac.c: Delete.
53 * mpw-esh.c: Delete.
54 * mpw-idtmips.c: Delete.
55
a44d7f9c
JR
56Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
57
58 * emulparams/shelf32.sh (MACHINE): Now sh5.
59
944cd72c
TS
602002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
61
62 * ldgram.y: Fix syntax warning.
63
5835c212
NC
642002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
65
66 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
67 to prevent "-n" from being taken as an abbreviation for
68 "--no-pipeline-knowledge".
69
024531e2
AM
702002-04-08 Alan Modra <amodra@bigpond.net.au>
71
d08a14c3
AM
72 * ldlang.c (lang_size_sections_1): Don't complain about
73 SEC_NEVER_LOAD sections having no memory region specified.
74
024531e2
AM
75 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
76
c657a1f0
MG
772002-04-07 matthew green <mrg@redhat.com>
78
79 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
80
61bef6f1
AM
812002-04-04 Alan Modra <amodra@bigpond.net.au>
82
83 * dep-in.sed: Cope with absolute paths.
84 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
85 Run "make dep-am".
86 * Makefile.in: Regenerate.
87
49ba2791
TS
882002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
89
90 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
91
50e60fb5
JJ
922002-04-03 Jakub Jelinek <jakub@redhat.com>
93
94 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
95 is smaller than maximum, round dot up to common page boundary.
96
6f12f4ca
AM
972002-03-28 Alan Modra <amodra@bigpond.net.au>
98
99 * configure.host: Set up for generic hosts first, then tweak as
100 necessary in more specific targets.
101 (HOSTING_LIBS): Include libgcc_eh.a if found.
102
a8f1f017
AJ
1032002-03-23 Andreas Jaeger <aj@suse.de>
104
105 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
106
1d3fdf38
AM
1072002-03-21 Alan Modra <amodra@bigpond.net.au>
108
109 * Makefile.am: Run "make dep-am".
110 * Makefile.in: Regenerate.
111
79b1faa8
AM
1122002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
113
114 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
115
fcf0e35b
AM
1162002-03-20 Alan Modra <amodra@bigpond.net.au>
117
118 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
119 add the symbol to the linker hash table immediately.
120 (lang_place_undefineds): Split symbol creation out..
121 (insert_undefined): ..to here.
122
fed2999d
DB
1232002-03-18 David O'Brien <obrien@FreeBSD.org>
124
125 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
126 the contents of the buffer returned from basename function will are
127 getting overwritten while still being used.
128
beb43bb9
JH
129Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
130 Andreas Jaeger <aj@suse.de>
131 Andreas Schwab <schwab@suse.de>
132
133 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
134 * elf_x86_64.sh (ARCH): Set to i386:x86-64
135 set libraries to default to lib64 paths.
136
eb1e0e80
NC
1372002-03-18 Tom Rix <trix@redhat.com>
138
139 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
140 * configure.tgt : Same.
141 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
142 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
143 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
144 emulation parameters for better -b32, -b64 support.
145 * emulparms/aixrs6.sh : Same.
146 * emulparms/ppcmacos.sh : Same.
147 * emultempl/aix.em (choose_target) : Use new emulation parameters
148 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
149 * Makefile.in : Regenerate.
150
a1c259a1
NC
1512002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
152
153 * po/fr.po: Updated version.
154
862120bd
AM
1552002-03-18 Alan Modra <amodra@bigpond.net.au>
156
157 * ldmain.c (main): Move .text readonly flag fudges from here..
158 * ldlang.c (lang_process): ..to here.
159
d35a52e2
AM
1602002-03-14 Alan Modra <amodra@bigpond.net.au>
161
162 * ldlang.c (lang_check): Remove the word size check added in last
163 change. Treat emitrelocations case as for relocatable links.
164
9ce88e60
NC
1652002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
166
167 * po/fr.po: Updated version.
168
30cba025
AM
1692002-03-13 Alan Modra <amodra@bigpond.net.au>
170
171 * ldlang.c (lang_check): Do relocatable link checks first, so that
172 warn_mismatch can't override. Check compatible and word size too.
173
84ec0e6d
DJ
1742002-03-07 Daniel Jacobowitz <drow@mvista.com>
175
176 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
177
2d13d8c5
JJ
1782002-03-05 Jakub Jelinek <jakub@redhat.com>
179
180 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
181 DATA_SEGMENT_ALIGN.
182
b5090659
L
1832002-03-04 H.J. Lu <hjl@gnu.org>
184
185 * scripttempl/elf.sc: Put .preinit_array, .init_array and
186 .fini_array in the data segment.
187
f42ce16e
AM
1882002-03-04 Alan Modra <amodra@bigpond.net.au>
189
190 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
191
de77b6ac
RH
1922002-03-01 David Mosberger <davidm@hpl.hp.com>
193
194 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
195 .init_array, and .fini_array.
196
997e08c0
AS
1972002-02-20 Andreas Schwab <schwab@suse.de>
198
199 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
200 .IA64_unwind* in a relocatable link.
201
9a66911f
NC
2022002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
203
204 * NEWS: Mark 2.12 branch.
205
d86bcc10
MS
2062002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
207
208 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
209 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
210
69f284c7
TR
2112002-02-18 Tom Rix <trix@redhat.com>
212
213 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
214 (gld*_before_allocation): Same.
a8f1f017 215 (gld*_create_output_section_statements): Generate
69f284c7
TR
216 __rtinit if run time linking. Add librtl.a to the link.
217 (gld*_read_file): Clean.
218
82bd7b59
AM
2192002-02-18 Alan Modra <amodra@bigpond.net.au>
220
221 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
222
ac3e50bf
DB
2232002-02-18 David O'Brien <obrien@FreeBSD.org>
224
6a7f963b 225 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
ac3e50bf
DB
226 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
227 and eelf64alpha_fbsd.
6a7f963b 228 * Makefile.in: Regenerate.
ac3e50bf
DB
229 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
230 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
231 use a FreeBSD-specific emulation rather than the psABI one.
232 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
233 for all FreeBSD ELF systems.
234 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
235 emulation.
236 * emulparams/elf32ppc_fbsd.sh: Likewise.
237 * emulparams/elf64_ia64_fbsd.sh: Likewise.
238 * emulparams/elf64_sparc_fbsd.sh: Likewise.
239 * emulparams/elf64alpha_fbsd.sh: Likewise.
240 * emulparams/elf_i386_fbsd.sh: Likewise.
241 * emulparams/elf_x86_64_fbsd.sh: Likewise.
242
6ad738c5
NC
2432002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
244
245 * po/tr.po: Updated version.
246
9673c93c
AM
2472002-02-18 Alan Modra <amodra@bigpond.net.au>
248
249 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
250 (FILL): Likewise.
251
1c5e6447
HPN
2522002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
253
254 * emultempl/mmo.em (mmo_after_open): Don't call
255 _bfd_mmix_check_all_relocs when producing ELF output.
256
8bb57516
RH
2572002-02-15 Richard Henderson <rth@redhat.com>
258
de77b6ac 259 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
8bb57516
RH
260 definition. Emit a unop+nop pair.
261
49fda6c8
HPN
2622002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
263
83c2d653
HPN
264 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
265 for presence of .MMIX.reg_contents.linker_allocated before early
266 exit.
267
49fda6c8
HPN
268 * NEWS: Mention support for MMIX.
269
2c382fb6
AM
2702002-02-15 Alan Modra <amodra@bigpond.net.au>
271
272 Support arbitrary length fill patterns.
a139d329
AM
273 * ld.texinfo (Output Section Fill): Describe fill expressions.
274 (FILL): Refer to the above.
2c382fb6
AM
275 * ldexp.h (etree_value_type): Add "str" field.
276 (union etree_union): Add "str" to "value" struct.
277 (exp_bigintop): Declare.
278 (exp_get_fill): Declare.
279 * ldexp.c: Include "safe-ctype.h".
280 (exp_intop): Set value.str to NULL.
281 (exp_bigintop): New function.
282 (new_rel): Pass in "str", and set new.str from it.
283 (new_rel_from_section): Set new.str to NULL.
284 (fold_name): Adjust calls to new_rel.
285 (exp_fold_tree): Likewise.
286 (exp_get_fill): New function.
287 * ldgram.y (struct big_int bigint, fill_type *fill): New.
288 (INT): Returns a "bigint". Adjust all code handling INTs.
289 (fill_opt): Returns a "fill".
290 (fill_exp): Split out of fill_opt, use for FILL.
291 * ldlang.h (struct _fill_type): New.
292 (fill_type): Move typedef to ldexp.h.
293 (lang_output_section_statement_type): "fill" is now a pointer.
294 (lang_fill_statement_type): Likewise.
295 (lang_padding_statement_type): Likewise.
296 (lang_add_fill): Now takes a "fill_type *" param.
297 (lang_leave_output_section_statement): Likewise.
298 (lang_do_assignments): Likewise.
299 (lang_size_sections): Likewise.
300 (lang_leave_overlay_section): Likewise.
301 (lang_leave_overlay): Likewise.
302 * ldlang.c: Include ldgram.h after ldexp.h.
303 (lang_output_section_statement_lookup): Adjust for fill_type change.
304 (print_fill_statement): Likewise.
305 (print_padding_statement): Likewise.
306 (insert_pad): Now takes a "fill_type *" arg.
307 (size_input_section): Likewise.
308 (lang_size_sections_1): Likewise.
309 (lang_size_sections): Likewise.
310 (lang_do_assignments): Likewise.
311 (lang_add_fill): Likewise.
312 (lang_leave_output_section_statement): Likewise.
313 (lang_leave_overlay_section): Likewise.
314 (lang_leave_overlay): Likewise.
315 Adjust all callers of the above function.
316 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
317 starting with "0X" as well as "0x". Return bigint.str for hex
318 numbers starting with "0x" or "0X", zero bigint.str otherwise.
319 Always use base 16 for numbers starting with "$".
320 * ldmain.c: Include ldgram.h after ldexp.h.
321 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
322 of bfd_fill_link_order.
323 * pe-dll.c: Adjust lang_do_assignments calls.
324 * emultempl/elf32.em: Likewise.
325 * emultempl/hppaelf.em: Likewise.
326 * emultempl/ppc64elf.em: Likewise.
327 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
328 lang_add_assignment call.
329 * emultempl/pe.em: Likewise.
330
313e35ee
AM
3312002-02-14 Phil Edwards <pme@gcc.gnu.org>
332
a139d329 333 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
313e35ee
AM
334 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
335 the pattern in question is not a regexp.
336 * ldlang.c: Likewise.
337 * ldlang.h: Likewise.
338 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
339
2d20f7bf
JJ
3402002-02-12 Jakub Jelinek <jakub@redhat.com>
341
342 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
343 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
344 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
345 * ldexp.c (exp_data_seg): New variable.
346 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
347 (fold_binary): Handle DATA_SEGMENT_ALIGN.
348 (exp_fold_tree): Handle DATA_SEGMENT_END.
349 Pass allocation_done when recursing instead of hardcoding
350 lang_allocating_phase_enum.
351 * ldexp.h (exp_data_seg): New.
352 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
353 (lang_size_sections): New.
354 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
355 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
356 if COMMONPAGESIZE is defined.
357 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
358 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
359 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
360 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
361 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
362 libraries only.
363
06880219
AM
3642002-02-11 Alan Modra <amodra@bigpond.net.au>
365
366 * Makefile.in: Regenerate.
367
37b0ac0f
DJ
3682002-02-10 Daniel Jacobowitz <drow@mvista.com>
369
370 * lexsup.c: Remove strtoul declaration.
371
4e5bae56
DJ
3722002-02-10 Daniel Jacobowitz <drow@mvista.com>
373
374 * ldmain.c: Add prototype for main ().
375 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
376 * emultempl/lnk960.em (lnk960_choose_target): Function should
377 take two arguments.
378
1e281515
AM
3792002-02-10 Alan Modra <amodra@bigpond.net.au>
380
381 * ldlang.c (entry_section): New initialised variable.
382 (lang_finish): Use it.
383 * ldlang.h (entry_section): Declare.
384 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
385 entry_section to ".opd".
386
f92d92ff 3872002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
388
389 * ld.texinfo (Options): Add back in -nostdlib documentation,
390 which had been inadvertently removed.
391
74c44237
HPN
3922002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
393
394 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
395 register section vma to a sane value after emitting error. Make
396 fatal conditions cause program exit when emitting message.
397
5e37cc46
NC
3982002-02-08 Ivan Guzvinec <ivang@opencores.org>
399
400 * configure.tgt: Add or32-*-rtems target.
401
2d92cb7d
AO
4022002-02-08 Alexandre Oliva <aoliva@redhat.com>
403
404 Contribute sh64-elf.
405 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
406 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
407 in OTHER_RELOCATABLE_SECTIONS.
408 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
409 * emulparams/shelf32.sh (STACK_ADDR): Define.
410 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
411 (OTHER_SECTIONS): this. Removed stack settings.
412 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
413 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
414 2001-03-12 DJ Delorie <dj@redhat.com>
415 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
416 relaxing if any shmedia or mixed sections are found.
417 2001-03-07 DJ Delorie <dj@redhat.com>
418 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
419 einfo. Gracefully decline to output to non-elf formats.
420 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
421 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
422 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
423 * emulparams/shelf32.sh: Ditto.
424 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
425 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
426 comment.
427 2001-01-10 Ben Elliston <bje@redhat.com>
428 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
429 non-portable shell constructs. From Hans-Peter Nilsson.
430 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
431 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
432 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
433 dependencies to the shell script include chain.
434 * Makefile.in: Regenerate.
435 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
436 * emultempl/sh64elf.em: Update and tweak comments.
437 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
438 make a .cranges section SEC_IN_MEMORY.
439 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
440 * emultempl/sh64elf.em
441 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
442 .cranges section found to be necessary; continue and set stored
443 section contents flags for sections with non-mixed contents.
444 Use a struct sh64_section_data container and sh64_elf_section_data
445 to store contents-type flags.
446 Remove unused update of "isec".
447 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
448 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
449 access contents-type flags. Assert that the associated container
450 is initialized. Use that container, not elf_gp_size, to hold size
451 of linker-generated cranges contents.
452 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
453 * emultempl/sh64elf.em
454 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
455 there's already a .cranges section. When section flag difference
456 is found, don't NULL-check cranges a second time. Tweak comments.
457 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
458 merging, not max size, as size of ld-generated .cranges contents.
459 Don't set ELF section flags in output section. When checking for
460 needed .cranges descriptors, don't use a variable; compare
461 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
462 comments.
463 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
464 * emultempl/sh64elf.em: New file.
465 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
466 * Makefile.in: Regenerate.
467 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
468 (OTHER_RELOCATING_SECTIONS): Ditto.
469 (EXTRA_EM_FILE): New, set to sh64elf if not set.
470 * emulparams/shlelf32.sh: Stub out all settings except
471 OUTPUT_FORMAT. Source shelf32.sh.
472 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
473 OTHER_RELOCATING_SECTIONS.
474 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
475 * emulparams/shlelf64.sh: Stub out all settings except
476 OUTPUT_FORMAT. Source shelf64.sh.
477 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
478 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
479 .cranges section.
480 (DATA_START_SYMBOLS): Define, provide ___data.
481 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
482 for consecutive .data section.
483 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
484 section after .data section.
485 * emulparams/shlelf64.sh: Ditto.
486 * emulparams/shelf32.sh: Ditto.
487 (ALIGNMENT): Define to 8.
488 * emulparams/shelf32.sh: Ditto.
489 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
490 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
491 built-in linker scripts.
492 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
493 * emulparams/shlelf64.sh: New.
494 * emulparams/shelf64.sh: New.
495 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
496 targ_extra_emuls.
497 * Makefile.am: Add support for shlelf64 and shelf64.
498 * Makefile.in: Regenerate.
499 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
500 * configure.tgt (sh64-*-elf*): Add shelf as default.
501 Add shlelf to targ_extra_emuls.
502 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
503 * emulparams/shelf32.sh: New file.
504 * emulparams/shlelf32.sh: New file.
505 * Makefile.am: Add support for shlelf32 and shelf32.
506 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
507 * Makefile.in: Regenerate.
508
e3dc8847
HPN
5092002-02-05 Hans-Peter Nilsson <hp@axis.com>
510
511 * ldlang.c (lang_reset_memory_regions): Rename from
512 reset_memory_regions. Change all callers. Make public.
513 * ldlang.h (lang_reset_memory_regions): Prototype.
514 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
515 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
516 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
517 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 518
8017dbcb
HPN
5192002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
520
521 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
522 arithmetic when checking for too many global registers.
523
006336b8
JT
5242002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
525
526 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
527 (ehppanbsd.c): New rule.
528 * Makefile.in: Regenerate.
529 * configure.tgt (hppa*-*-netbsd*): New target.
530 * emulparams/hppalinux.sh: Add comment to check other files
531 that source this file it is modified, and list which
532 files that do.
533 * emulparams/hppanbsd.sh: New file.
534
da1f2fec
GK
5352002-02-01 Geoffrey Keating <geoffk@redhat.com>
536
537 * scripttempl/xstormy16.sc: Don't allocate extra space for the
538 stack.
539
48fa4a5d
HPN
5402002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
541
542 Support on-demand global register allocation from
543 R_MMIX_BASE_PLUS_OFFSET relocs.
544 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
545 mmix_set_reg_section_vma. Call
546 _bfd_mmix_finalize_linker_allocated_gregs.
547 (mmix_before_allocation): New function.
548 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
549 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
550 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
551 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
552 before .MMIX.reg_contents.
553 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
554 (mmo_after_open): New function.
555 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
556 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
557 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
558
3b16e843
NC
5592002-01-31 Ivan Guzvinec <ivang@opencores.org>
560
561 * emulparams/or32.sh: New file.
562 * emulparams/or32elf.sh: New file.
563 * scripttempl/or32.sc: New file.
564 * configure.tgt : Add support for or32.
565 * configure: Regenerate
566 * Makefile.am: Add support for or32.
567 * Makefile.in: Regenerate.
568 * NEWS: Mention support for or32.
569 * po/ld.pot: Regenerate.
570
f744d540 5712002-01-29 Chris Demetriou <cgd@broadcom.com>
313e35ee 572 Mitch Lichtenberg <mpl@broadcom.com>
f744d540
CD
573
574 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
575 * emultempl/mipself.em: New file to handle MIPS ELF embedded
576 reloc creation (ld --embedded-relocs).
577
4867be41
DJ
5782002-01-27 Daniel Jacobowitz <drow@mvista.com>
579
580 * configure: Regenerated.
581
cd8e197b
HPN
5822002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
583
584 * Makefile.am (install): Depend on install-info.
585 * Makefile.in: Regenerate.
586
9cb61eab
AM
5872002-01-26 Christian Rose <menthos@menthos.com>
588
589 * ldmain.c (main): Use full sentences to ease translation.
590
1caa7b23
NC
5912002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
592
593 * po/fr.po: Updated version.
594
1ddbd152
NC
5952002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
596
597 * po/es.po: Updated version.
598
1e84433f
AJ
5992002-01-25 Andreas Jaeger <aj@suse.de>
600
601 * ldlex.l (yy_input): Correct error check.
602
6d39955e
AM
6032002-01-25 Alan Modra <amodra@bigpond.net.au>
604
605 * ldmisc.c (demangle): Put back dots when string not demangled.
606
a9ed1e1b
RH
6072002-01-22 Richard Henderson <rth@redhat.com>
608
609 * emulparams/elf64alpha.sh (NOP): Use unop.
610
968ec2b9
AJ
6112002-01-21 Andreas Jaeger <aj@suse.de>
612
613 * ldlex.l: Use fread instead of read.
614
9596feea
JT
6152002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
616
617 * configure.tgt (ia64-*-netbsd*): New target.
618
493a6d47
L
6192002-01-21 H.J. Lu <hjl@gnu.org>
620
621 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
622 0.
623 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
624
2a538ba5
AJ
6252002-01-18 Andreas Jaeger <aj@suse.de>
626
627 * ldver.c (ldversion): Update year.
628
328577ad
NC
6292002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
630
631 * po/ld.pot: Regenerate.
632
1f808cd5
AM
6332002-01-16 Alan Modra <amodra@bigpond.net.au>
634
635 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
636 * Makefile.in: Regenerate.
637 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
638 * emultempl/ppc64elf.em: New file.
639
335c5610
DD
6402002-01-15 DJ Delorie <dj@redhat.com>
641
642 * scripttempl/pe.sc: Add support for constructor priorities.
643
c40bbade
DC
6442002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
645
646 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
647 * emulparams/avr23xx.sh: Likewise.
648 * emulparams/avr4433.sh: Likewise.
649 * emulparams/avr44x4.sh: Likewise.
650 * emulparams/avr85xx.sh: Likewise.
651 * emulparams/avrmega103.sh: Likewise.
652 * emulparams/avrmega161.sh: Likewise.
653 * emulparams/avrmega603.sh: Likewise.
654 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
655
34efb449
AO
6562002-01-08 Alexandre Oliva <aoliva@redhat.com>
657
658 * ldlang.c (walk_wild_section): Exclude object file if enclosing
659 archive is excluded.
660
8d05742f
JT
6612002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
662
663 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 664 (eshelf_nbsd.c): New rule.
8d05742f
JT
665 (eshlelf_nbsd.c): New rule.
666 * Makefile.in: Regenerate.
667 * configure.tgt (sh*le-*-netbsdelf*): New target.
668 (sh*-*-netbsdelf*): New target.
669 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
670 * ld/emulparams/shelf_nbsd.sh: New emulation.
671 * ld/emulparams/shlelf_nbsd.sh: New emulation.
672
be2d1673
NC
6732002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
674
675 * po/es.po: New file: Spanish translation.
676 * configure.in (ALL_LINGUAS): Add es.
677 * configure: Regenerate.
678
dbab7a7b
NC
6792002-01-06 John Marshall <jmarshall@acm.org>
680
681 * ld.texinfo: Note that --emit-relocs is currently only
682 implemented for ELF.
683
3dfe7a8c
AM
6842002-01-05 Alan Modra <amodra@bigpond.net.au>
685
686 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
687 of bfd_section_list_remove and bfd_section_list_insert macros.
688 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
689 * emultempl/mmo.em (mmo_place_orphan): Likewise.
690
8a8b2d4b
AJ
6912002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
692
693 * configure.tgt (x86_64-*-netbsd*): New target.
694
9a4c7f16
TR
6952001-12-21 Tom Rix <trix@redhat.com>
696
8a8b2d4b 697 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
698 For -binitfini support.
699 * emultempl/aix.em (gld*_before_parse): Fix comment.
700 * emultempl/aix.em (gld*_parse_args): Fix comment.
701
3695c299
AM
7022001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
703
cf86e6df
AM
704 * configure.tgt (mips*-dec-netbsd*): Delete alias for
705 mips*el-*-netbsd*.
706 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
707
3695c299
AM
708 * configure.tgt (arm-*-netbsdelf*): Add target.
709 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
710 * emulparams/armelf_nbsd.sh: Added.
711 * Makefile.am: Add rules for earmelf_nbsd.
712 * Makefile.in: Regenerate.
713
97cb79ae
AJ
7142001-12-19 Andreas Jaeger <aj@suse.de>,
715 Susanne Oberhauser <froh@suse.de>
716
717 * configure.host: Add rules for x86_64-*linux-gnu. Change
718 s390x-linux entry to use gcc to report configuration, replace gcc
719 with $CC in s390-linux
720
9d201f2f
AJ
7212001-12-19 Andreas Jaeger <aj@suse.de>
722
723 * ld.texinfo (VERSION): Fix markup.
724
0b69cd08
MG
7252001-12-18 matthew green <mrg@eterna.com.au>
726
727 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
728 (m68kelfnbsd.c): New rule.
729 * Makefile.in: Regenerate.
730 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
731 (m68*-*-netbsd*4k*): .. this.
732 (m68*-*-netbsdelf*): New target.
733 (m68*-*-netbsd*): Also include ELF support.
734 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
735 * emulparams/m68kelfnbsd.sh: New emulation.
736
6b9b879a
JJ
7372001-12-18 Jakub Jelinek <jakub@redhat.com>
738
739 * ldgram.y (vers_node): Support anonymous version tags.
740 * ldlang.c (lang_register_vers_node): Ensure anonymous version
741 tag is not defined together with non-anonymous versions.
742 * ld.texinfo: Document it.
743
9fc877ed
NC
7442001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
745
746 * po/tr.po: New file: Turkish translation.
747 * configure.in (ALL_LINGUAS): Add tr.
748 * configure: Regenerate.
749
fc18a3f3
RH
7502001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
751
752 * Makefile.am: Add rules for eelf64alpha_nbsd.
753 * Makefile.in: Regenerate.
754 * configure.tgt (alpha*-*-netbsd*): Set
755 targ_emul to elf64alpha_nbsd.
756 * emulparams/elf64alpha_nbsd.sh: Added.
757
76f63e91
AM
7582001-12-17 Alan Modra <amodra@bigpond.net.au>
759
760 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
761 section_tail when fiddling with section list.
762 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
763 broken into separate strings to make translation easier.
764 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
765 fiddling with section list.
766 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
767
d03b89bd
HPN
7682001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
769
770 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
771
320fec9a
AM
7722001-12-15 Alan Modra <amodra@bigpond.net.au>
773
774 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
775
65765700
JJ
7762001-12-13 Jakub Jelinek <jakub@redhat.com>
777
778 * emultempl/elf32.em (finish): Supply output_bfd
779 to bfd_elf*_discard_info.
780 (OPTION_EH_FRAME_HDR): Define.
781 (longopts): Add --eh-frame-hdr.
782 (parse_args): Handle it.
783 (list_options): Add --eh-frame-hdr to help.
784 * emultempl/hppaelf.em (finish): Supply output_bfd
785 to bfd_elf*_discard_info.
786 * scripttempl/elf.sc (.eh_frame_hdr): Add.
787
89894c62
AM
7882001-12-13 Alan Modra <amodra@bigpond.net.au>
789
790 * lexsup.c (parse_args): Don't pass shortopts to second call to
791 getopt functions. Restore optind rather than decrementing before
792 second call. Remove errind as it now duplicates last_optind.
793
583f1926
CF
7942001-12-11 Christopher Faylor <cgf@redhat.com>
795
796 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
797
93fbbb04
GK
7982001-12-07 Geoffrey Keating <geoffk@redhat.com>
799 Richard Henderson <rth@redhat.com>
800
801 * Makefile.am: Add support for xstormy16.
802 * configure.tgt: Add support for xstormy16.
803 * Makefile.in: Regenerate.
804 * emulparams/elf32xstormy16.sh: New file.
805 * scripttempl/xstormy16.sc: New file.
806
583f1926
CF
8072001-10-01 Christopher Faylor <cgf@cygnus.com>
808
fc18a3f3
RH
809 * Makefile.in (LIB_PATH): Make configurable.
810 (GENSCRIPTS): Set LIB_PATH in environment.
811 * configure.in: Substitute LIB_PATH.
812 * configure: Regenerate.
813 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
814 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 815
ff291a48
NC
8162001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
817
818 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
819 describing the -N option so that it is easier to translate into
820 foreign languages.
821
e3c8793a
NC
8222001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
823
824 * emultempl/pe.em (..._list_options): Replace multiple fprintf
825 statements describing a single option with a single, newline
826 escaped fprintf. This allows better translation into other
827 languages.
9d201f2f 828
fc18a3f3
RH
829 * ldmain.c (add_archive_element): Combine multiple strings
830 into a single string to permit better translation into other
831 languages.
e3c8793a 832
f2eab0af
TR
8332001-12-05 Tom Rix <trix@redhat.com>
834
835 * Makefile.am: Remove eaixppc64.
9d201f2f 836 * Makefile.in: Regenerate.
f2eab0af 837
249172c3
TR
8382001-12-04 Tom Rix <trix@redhat.com>
839
9d201f2f 840 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
841 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
842 warning.
843 (gld*_read_file): Fix typo.
844 (change_symbol_mode): Add prototype.
845 (is_syscall): Same.
9d201f2f 846
249172c3
TR
847 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
848 * emulparams/aixrs6.sh : Same.
849 * emulparams/ppcmacos.sh : Same.
850 * emulparams/aixppc64.sh : Delete file.
851 * emultempl/aix.em : Formatting changes.
852
5b5cd1b0
HPN
8532001-12-04 Hans-Peter Nilsson <hp@axis.com>
854
855 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
856 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
857 __Sbss.
858 (OTHER_END_SYMBOLS): Fix formatting.
859 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
860 (OTHER_END_SYMBOLS): Fix formatting.
861
7cecdbff
AM
8622001-12-04 Alan Modra <amodra@bigpond.net.au>
863
864 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
865
742aeb63 8662001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 867
742aeb63 868 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 869 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
870 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
871 (ldemul_default_target): Same.
872 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
873 * emultempl/gld960c.em (gld960_choose_target): Same.
874 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
875 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
876 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
877 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 878 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
879 -b32 and -b64.
880
48459341
L
8812001-11-27 H.J. Lu <hjl@gnu.org>
882
883 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
884 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
885 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
886 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
887 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
888 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
889 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
890 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
891
7cecdbff 892 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
893 is not empty.
894 (SDATA): Likewise.
895 (REL_SDATA): Likewise.
896 (REL_SBSS): Likewise.
897 (REL_SDATA2): Likewise.
898 (REL_SBSS2): Likewise.
899 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
900 (SDATA2): Likewise.
901
ecfdd20c
SC
9022001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
903
904 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
905 destructor in rom.
7cecdbff 906 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 907
da54c6eb
L
9082001-11-22 H.J. Lu <hjl@gnu.org>
909
910 * Makefile.in: Regenerated with automake based on automake
911 1.4-8 in RedHat 7.1.
912
465bc359
AM
9132001-11-22 Alan Modra <amodra@bigpond.net.au>
914
915 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
916 (config.status): Delete rule.
917 Add extra dependencies to cover sourced emulparams files.
918 * Makefile.in: Regenerate.
919
920 * scripttempl/elf.sc: Order <section>, <section>.* and
921 corresponding linkonce sections as seen in input files.
922 Formatting fixes. Zero vma of all sections if not relocating.
923 (STACK): Define and insert if STACK_ADDR defined.
924 (OTHER_RELOCATING_SECTIONS): Delete.
925 (OTHER_END_SYMBOLS): Define.
926 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
927 (OTHER_READWRITE_SECTIONS): Likewise.
928 (OTHER_GOT_SECTIONS): Likewise.
929 (OTHER_SDATA_SECTIONS): Likewise.
930 (OTHER_BSS_SECTIONS): Likewise.
931 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
932 (OTHER_READWRITE_SECTIONS): Likewise.
933 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
934 (OTHER_READWRITE_SECTIONS): Likewise
935
936 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
937 (STACK_ADDR): Define.
938 * emulparams/armelf_oabi.sh: As for armelf.sh.
939 * emulparams/elf32mcore.sh: As for armelf.sh.
940 * emulparams/h8300elf.sh: As for armelf.sh.
941 * emulparams/mn10200.sh: As for armelf.sh.
942 * emulparams/shelf.sh: As for armelf.sh.
943
944 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
945 (OTHER_END_SYMBOLS): Define.
946 * emulparams/m32relf.sh: As for elf32fr30.sh.
947 * emulparams/h8300helf.sh: As for elf32fr30.sh.
948 * emulparams/h8300self.sh: As for elf32fr30.sh.
949
950 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
951 defines with RELOCATING test.
952 (OTHER_SDATA_SECTIONS): Likewise.
953 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
954 (OTHER_END_SYMBOLS): ..this.
955 * emulparams/crislinux.sh: As for criself.sh.
956
957 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
958 if not relocating.
959 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
960 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
961 normal and linkonce sections as seen in input files.
962 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
963 (TEXT_DYNAMIC): Likewise.
964 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
965 (OTHER_SDATA_SECTIONS): Likewise.
966 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
967 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
968 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
969 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
970 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
971 (OTHER_PLT_RELOC_SECTIONS): Likewise.
972 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
973 sections as seen in input files.
974 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
975 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
976 if not relocating.
977 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
978 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
979 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
980 (OTHER_SECTIONS): Instead, use this..
981 (OTHER_END_SYMBOLS): ..and this.
982
983 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
984 * emulparams/elf32bsmip.sh: Likewise.
985 * emulparams/elf32btsmip.sh: Likewise.
986 * emulparams/elf32ebmip.sh: Likewise.
987 * emulparams/elf32lmip.sh: Likewise.
988 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
989 * emulparams/elf32lsmip.sh: Likewise.
990 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
991 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
992 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
993 * emulparams/elf64btsmip.sh: Likewise.
994 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
995 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
996 * emulparams/elf32ppclinux.sh: Likewise.
997 * emulparams/elf32ppcsim.sh: Likewise.
998 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
999 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1000 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1001 * emulparams/h8300self.sh: Likewise.
1002 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1003 * emulparams/sh.sh: Comment.
1004 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1005 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1006 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1007
abc6ab0a
AM
10082001-11-21 David Heine <dlheine@tensilica.com>
1009 Alan Modra <amodra@bigpond.net.au>
1010
1011 * ldlang.c (map_input_to_output_sections): Replace "break"
1012 accidentally removed with 2001-08-03 change.
1013 (lang_gc_sections_1): Likewise.
1014
2181f54f
AM
10152001-11-21 Alan Modra <amodra@bigpond.net.au>
1016
1017 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1018
ca0b5847
AM
10192001-11-20 Angela Marie Thomas <angela@redhat.com>
1020
1021 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
1022 of false when calling lang_size_sections.
1023 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 1024
c56feb2b
AM
10252001-11-15 Alan Modra <amodra@bigpond.net.au>
1026
1027 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1028 function when LDEMUL_FINISH isn't set to the same name. Don't
1029 call ${LDEMUL_FINISH}.
1030 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1031 * emultempl/armelf.em (arm_elf_finish): Call
1032 gld${EMULATION_NAME}_finish.
1033 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1034 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1035 hppaelf_layout_sections_again if necessary.
1036 (need_laying_out): New var.
1037 (hppaelf_layaout_sections_again): Rename to
1038 hppaelf_layout_sections_again. Clear need_laying_out.
1039 (PARSE_AND_LIST_OPTIONS): Format text.
1040
a48ca7f2
L
10412001-11-14 H.J. Lu <hjl@gnu.org>
1042
1043 * emultempl/armelf.em (arm_elf_finish): Renamed from
1044 gld${EMULATION_NAME}_finish.
1045 (LDEMUL_FINISH): Set to arm_elf_finish.
1046
73d074b4
DJ
10472001-11-14 Daniel Jacobowitz <drow@mvista.com>
1048
1049 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1050 (struct ld_emulation_xfer_struct): Use it.
1051
3b16e843 10522001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 1053
465bc359 1054 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
1055 additional symbols referenced by newer crt0.o files from HP.
1056
f11b7027
NC
10572001-11-12 Anthony Green <green@redhat.com>
1058
1059 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1060
3bf2994f
AM
10612001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1062
1063 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1064 * Makefile.in: Regenerate.
1065
ff5dcc92
SC
10662001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1067
1068 * ld.texinfo: Use @command for commands, @option for options.
1069 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1070 the page man title.
1071 * Makefile.in: Rebuild.
1072
9fb9af6e
CD
10732001-11-04 Chris Demetriou <cgd@broadcom.com>
1074
1075 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1076 Add support for targets.
2181f54f 1077
3c62831e
NC
10782001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1079
1080 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1081 * configure: Regernate.
1082 * po/fr.po: New file.
1083 * po/sv.po: New file.
1084
3a9091c4
NC
10852001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1086
1087 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1088 as little endian default and to support big endian.
2181f54f 1089
361b220e
CD
10902001-11-01 Chris Demetriou <cgd@broadcom.com>
1091
1092 * ld.texinfo (Options): Document new option, -nostdlib.
1093 * lexsup.c (OPTION_NOSTDLIB): New definition.
1094 (ld_options): Add entry for "nostdlib".
1095 (parse_args): Handle OPTIONS_NOSTDLIB.
1096 * ldfile.c (ldfile_add_library_path): Don't add directories
1097 to the search path if they weren't specified on the command line
1098 and -nostdlib was specified.
1099 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1100
210a7bd1
NC
11012001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1102
1103 * lexsup.c (parse_args): Prevent infinite parsing loop when
1104 "-rpath.a" is specified on the command line.
1105 Replace calls to fprintf with calls to einfo.
1106
114283d8
NC
11072001-10-31 John Marshall <jmarshall@acm.org>
1108
1109 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1110 appear only once across all the linker scripts involved in a link
1111 invocation no longer applies. Make the documentation reflect
1112 that.
1113
7649aa50
NC
11142001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1115
1116 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1117 targets.
1118 (sh-*-linux*): Added targ_extra_libpath.
1119
6e814ff8
AM
11202001-10-31 David Heine <dlheine@tensilica.com>
1121
1122 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1123 for padding statements.
1124
3c3bdf30
NC
11252001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1126
1127 * configure.tgt (mmix-*-*): New target.
1128 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1129 Add dependencies to match.
1130 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1131 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1132 scripttempl/mmo.sc: New files.
1133 * gen-doc.texi: @set MMIX.
1134 * ld.texinfo: Ditto.
6e814ff8 1135 [MMIX] Add MMIX node.
3c3bdf30
NC
1136 * Makefile.in: Regenerate.
1137
ca0c1d3e
KH
11382001-10-29 Kazu Hirata <kazu@hxi.com>
1139
1140 * ldlang.c: Fix a comment typo.
1141
1a3d33ce
AM
11422001-10-23 Alan Modra <amodra@bigpond.net.au>
1143
1144 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1145 entries, and match *-*-linux*.
1146
b47c4208
AM
11472001-10-20 Alan Modra <amodra@bigpond.net.au>
1148
1149 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1150 with ldlex_script, ldlex_popstate.
1151 (ifile_p1): Likewise.
1152 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1153 correct slot.
1154 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1155 to 1. Don't BEGIN(SCRIPT).
1156 (lex_redirect): Similarly.
1157 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1158
fd521b47
NC
11592001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1160
1161 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1162 __EH_FRAME_END__ and accept eh frames into data section.
1163 Add ctor and dtor sections.
1164
59d28a94
DD
11652001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1166
1167 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1168 (auto-export): Fix indentation.
1169
663dd378
DD
11702001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1171
1172 * pe-dll.c (autofilter_objectlist): Add startup objects
1173 for profiling.
1174 (auto-export): Constify char * p.
6e814ff8 1175 Extract file basename and use strcmp rather than ststr
663dd378
DD
1176 for object lookup.
1177
31d677f9
CD
11782001-10-18 Chris Demetriou <cgd@broadcom.com>
1179
1180 * ldmain.c (get_emulation): Improve comment about the handling
1181 of -mipsN options.
1182
aa200fe8
AM
11832001-10-17 Alan Modra <amodra@bigpond.net.au>
1184
1185 * po/POTFILES.in: Regenerate.
1186
146e7110
AM
11872001-10-16 Vassili Karpov <malc@pulsesoft.com>
1188
1189 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1190 -z nocopyreloc and -z nocombreloc usage strings.
1191
b4330e85
NC
11922001-10-12 Vassili Karpov <malc@pulsesoft.com>
1193
146e7110 1194 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
1195 in usage.
1196
5af8a2fb
NC
11972001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1198
1199 * scripttempl/armaout.sc: Place .bss section after end of aligned
1200 data section to match behaviour of aout code in constructrion of
1201 header.
1202
5b784096
DD
12032001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1204
1205 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1206 startup files for mingw32 dlls to list.
1207
61585df2
CD
12082001-10-10 Chris Demetriou <cgd@broadcom.com>
1209
1210 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1211
45cf6f3e
AH
12122001-10-08 Aldy Hernandez <aldyh@redhat.com>
1213
1214 * configure.tgt (targ): Add arm9e-*-elf.
1215
e24d7c12
L
12162001-10-05 H.J. Lu <hjl@gnu.org>
1217
1218 * genscripts.sh: Fix a typo in the last change.
1219
ec38dd05
JJ
12202001-10-05 Jakub Jelinek <jakub@redhat.com>
1221
1222 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1223 -z nocombreloc in usage.
1224
cedd6b0d
JB
12252001-10-03 Jim Blandy <jimb@redhat.com>
1226
1227 * genscripts.sh: Include a comment at the top of each generated
1228 script, explaining its purpose.
1229
8bd621d8
AM
12302001-10-03 Vassili Karpov <malc@pulsesoft.com>
1231
1232 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1233 * NEWS: Mention -z nocopyreloc.
1234 * ld.texinfo (Options): Describe nocopyreloc.
1235
fcd8210c
AM
12362001-10-03 Alan Modra <amodra@bigpond.net.au>
1237
1238 * configure: Regenerate.
1239
d32820f2
AM
12402001-10-02 Alan Modra <amodra@bigpond.net.au>
1241
1242 * ldver.h (ld_program_version): Remove declaration.
1243 * lexsup.c (parse_args): Move printing of copyright message..
1244 * ldver.c (ldversion): .. to here.
1245 Use BFD_VERSION_STRING in place of BFD_VERSION.
1246 (ld_program_version): Remove.
1247 * Makefile.am (Makefile): Depend on bfd/configure.in.
1248 Run "make dep-am".
1249 * Makefile.in: Regenerate.
1250
af46bcdc
HPN
12512001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1252
1253 * Makefile.am: Update dependencies with "make dep-am".
1254 * Makefile.in: Regenerate.
1255
4818e05f 12562001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 1257
4818e05f
AM
1258 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1259 * lexsup.c: Add --no-define-common commandline option.
1260 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1261 * ldlex.l: Likewise.
1262 * ld.h: Add command_line.inhibit_common_definition.
1263 * ldmain.c (main): Initialize.
1264 * ld.texinfo: Document.
862517b6 1265
d5e0ebeb
AM
12662001-09-26 Alan Modra <amodra@bigpond.net.au>
1267
1268 * ldmisc.c (USE_STDARG): Remove.
1269 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1270 (einfo): Likewise.
1271 (minfo): Likewise.
1272 (lfinfo): Likewise.
1273
1274 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1275 declarations. Update copyright.
1276
2f8d8971
NC
12772001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1278
85c77458
NC
1279 * pe-dll.c: Remove obsoleted declaration of
1280 pe_get_data_import_dll_name.
1281 (pe_create_import_fixup): Fix thinko.
1282
2f8d8971
NC
1283 * ld.texinfo(enable-auto-import): Clarify the explanation.
1284
12852001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1286
1287 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1288 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1289 DLL_SUPPORT controlled code.
1290
72358f65 12912001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 1292
72358f65
NC
1293 * emultempl/pe.em(pe_data_import_dll): Make static.
1294 (pe_get_data_import_dll_name): New accessor function.
146e7110 1295 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
1296 pe_get_data_import_dll_name() from pe.em, instead of
1297 directly accessing pe_data_import_dll variable from pe.em.
1298
3882b010
L
12992001-09-18 Bruno Haible <haible@clisp.cons.org>
1300
1301 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1302 (def_file_add_directive): Use ISSPACE instead of isspace.
1303 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1304 isdigit/isxdigit/isalpha/isalnum.
1305 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1306 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1307 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1308 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1309 isalnum.
1310 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1311 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1312 isupper/tolower.
1313 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1314 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1315 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1316 (ctor_prio): Use ISDIGIT instead of isdigit.
1317 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1318 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1319 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1320 isupper/tolower.
1321 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1322 (stricpy): Use TOLOWER instead of isupper/tolower.
1323 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1324 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1325 (lex_warn_invalid): Use ISPRINT instead of isprint.
1326 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1327 (main): For gettext, also set the LC_CTYPE locate facet.
1328 (add_keepsyms_file): Use ISSPACE instead of isspace.
1329 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1330 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1331 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1332 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1333 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1334 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1335 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1336 (quoteput): Use ISSPACE instead of isspace.
1337 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1338 instead of isalnum.
1339
db09f25b
AM
13402001-09-18 Alan Modra <amodra@bigpond.net.au>
1341
1342 * deffilep.y (def_stash_module): Constify "name" param.
1343
1344 * pe-dll.c: Replace CONST with const throughout.
1345 (quick_symbol): Constify "n1", "n2", "n3" params.
1346 (make_singleton_name_thunk): Constify "import" param. Make
1347 "buffer_len" a size_t.
1348 (make_import_fixup_entry): Constify "name", "fixup_name",
1349 "dll_symname" params.
1350 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1351 (pe_get32): Likewise.
1352 (pe_implied_import_dll): Likewise.
1353
1354 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1355 (sort_by_section_name): Likewise.
1356
1357 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1358 (make_import_fixup): Cast printf arg, rel->address to long rather
1359 than int.
1360 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1361
74699268
AM
13622001-09-15 Alan Modra <amodra@bigpond.net.au>
1363
1364 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1365 defines BufferSize. Increase buffer size by one.
1366
775cabad
NC
13672001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1368
1369 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1370
056a1d49
NC
13712001-09-14 Kevin Lo <kevlo@openbsd.org>
1372
1373 * configure.tgt: Add arm-openbsd target.
1374
a7d792bb
L
13752001-09-12 H.J. Lu <hjl@gnu.org>
1376
1377 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1378 eelf64lppc.o to ...
1379 (ALL_64_EMULATIONS): Here.
1380 * Makefile.in: Regenerated.
1381
0d888aac
CW
13822001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1383
1384 * emultempl/pe.em(make_import_fixup): change signature to
1385 take asection as well as arelec; we need this for proper
146e7110 1386 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
1387 there is no attempt to add a constant addend to the reloc;
1388 otherwise, report error condition.
1389 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1390 since final argument is a pointer to make_import_fixup().
1391 Change call to cb() to match make_import_fixup() signature.
1392 (make_import_fixup_mark): make buffer_len unsigned.
1393 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1394
13952001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1396
1397 * ld.texinfo: add verbose documentation for auto-import
146e7110 1398 direct-addressing workaround, to compliment the terse
0d888aac
CW
1399 error message.
1400
cedacdc0
CM
14012001-09-12 Andrew MacLeod <amacleod@redhat.com>
1402
146e7110 1403 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 1404
3b16e843 14052001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
1406
1407 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1408 * emulparams/h8300self.sh: Similarly.
1409
559e4713
NC
14102001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1411
1412 * ld.texinfo (Options, --stack): Correct default value for stack
1413 reserve.
1414
1fdf0249
TR
14152001-09-05 Tom Rix <trix@redhat.com>
1416
1417 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 1418
9b5799b8
AJ
14192001-09-03 Andreas Jaeger <aj@suse.de>
1420
1421 * emultempl/beos.em: Declare prototypes for comparions functions,
1422 adjust definitions.
1423
48f6162b
AJ
14242001-09-02 Andreas Jaeger <aj@suse.de>
1425
1426 * emultempl/aix.em: Add missing prototype.
1427 * emultempl/lnk960.em: Likewise.
1428 * emultempl/vanilla.em: Likewise.
1429 * emultempl/armcoff.em: Likewise.
1430 * emultempl/armelf_oabi.em: Likewise.
1431 * emultempl/beos.em: Likewise.
1432 * emultempl/gld960c.em: Likewise.
1433 * emultempl/gld960.em: Likewise.
1434
1435 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1436 for prototype declaration.
1437
39e5585e
EC
14382001-08-31 Eric Christopher <echristo@redhat.com>
1439 Jason Eckhardt <jle@redhat.com>
1440
1441 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1442
3fc90ddb
AJ
14432001-08-31 Andreas Jaeger <aj@suse.de>
1444
1445 * emultempl/pe.em: Add missing prototypes.
1446 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1447 pe_find_data_imports.
1448 (pr_sym): Add unused attribute.
1449
d43ded80
PB
14502001-08-29 Joel Sherrill <joel@OARcorp.com>
1451
39e5585e 1452 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
1453 default from coff to elf.
1454
3946dd2f
JL
14552001-08-29 Jeff Law <law@redhat.com>
1456
1457 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1458 ARCH specification.
1459 * emulparams/h8300self.sh: Similarly.
1460
3b16e843 14612001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
1462
1463 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1464 eh8300self.o .
1465 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1466 * configure.tgt (h8300-*-elf*): New case.
1467 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1468 * emulparams/h8300self.sh: New file.
1469 * Makefile.in: Regenerated.
1470
70d0c6e9
NC
14712001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1472
1473 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1474 with macro name.
1475
5c67d4bb
AM
14762001-08-27 Linus Nordberg <linus@swox.com>
1477 Alan Modra <amodra@bigpond.net.au>
1478
1479 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1480 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1481 Run "make dep-am"
1482 * Makefile.in: Regenerate.
1483 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1484 entries to correct alphabetical position.
1485 * emulparams/elf64ppc.sh: New.
1486 * emulparams/elf64lppc.sh: New.
1487
08131015
NC
14882001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1489
1490 * ldmain.c (main): Declare BSIZE as static.
1491
db6751f2
JJ
14922001-08-23 Jakub Jelinek <jakub@redhat.com>
1493
1494 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1495 into .rel.dyn resp. .rela.dyn if combreloc.
1496 (get_script): If .x linker script is equal to .xn, only put it
1497 once into the binary.
1498 Add .xc and .xsc scripts.
1499 (parse_args): Handle -z combreloc and -z nocombreloc.
1500 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1501 For .xc and .xsc scripts put all .rel* or .rela* input sections
1502 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1503 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1504 is elf.
1505 Strip trailing whitespace from script.
1506 Generate .xc and .xsc scripts if requested.
1507 * ldmain.c (main): Initialize link_info.combreloc and
1508 link_info.spare_dynamic_tags.
1509 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1510 (ld_options): Add --spare-dynamic-tags option.
1511 (parse_args): Likewise.
1512 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1513 * ldint.texinfo: Document .xc and .xsc linker scripts.
1514 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1515
63d069c0
L
15162001-08-22 H.J. Lu <hjl@gnu.org>
1517
1518 * emulparams/elf32fr30.sh: Add a newline.
1519
948f9114
AJ
15202001-08-21 Andreas Jaeger <aj@suse.de>
1521
1522 * deffilep.y: Add missing prototypes.
1523 * pe-dll.c: Likewise.
1524
ae7fb08f
AM
15252001-08-20 Alan Modra <amodra@bigpond.net.au>
1526
2af02257
AM
1527 * ldlang.c (insert_pad): Fix typos in last patch.
1528
1529 * ldlang.c: When traversing lang_statement_union_type lists,
1530 consistently use "header.next" rather than "next".
1531 * mpw-eppcmac.c: Likewise.
1532 * emultempl/beos.em: Likewise.
1533 * emultempl/hppaelf.em: Likewise.
1534 * emultempl/pe.em: Likewise.
1535 * ldlang.h (union lang_statement_union): Remove "next" field.
1536
c0c330a7
AM
1537 * ldlang.c (insert_pad): Use offsetof macro.
1538 (lang_size_sections): Always neuter padding statements.
1539 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1540
ae7fb08f
AM
1541 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1542 passed to lang_size_sections.
1543 (pe_exe_fill_sections): Likewise.
1544 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1545 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1546
fab80407
AM
15472001-08-18 Alan Modra <amodra@bigpond.net.au>
1548
1549 * emultempl/aix.em: Formatting fixes.
1550
b3327aad
AM
15512001-08-18 Alan Modra <amodra@bigpond.net.au>
1552
1553 * ldlang.c (insert_pad): Make use of an existing pad statement if
1554 available. Move code calculating alignment, adjusting section
1555 alignment power, and adjusting dot to ..
1556 (size_input_section): .. here. Remove unused relax param.
1557 (lang_size_sections): Change boolean `relax' param to boolean *.
1558 Adjust call to size_input_section. Make use of insert_pad to
1559 place pad after the assignment statement. If relaxing, zap
1560 padding statements.
1561 (reset_memory_regions): Reset output_bfd section sizes too.
1562 (relax_again): Move to..
1563 (lang_process): ..here. Adjust call to lang_size_sections, and
1564 remove duplicated code.
1565 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1566
563e308f
AM
15672001-08-17 Alan Modra <amodra@bigpond.net.au>
1568
1569 * ld.texinfo: Document that fill values now use the four least
1570 significant bytes.
1571 * emulparams/elf32fr30.sh (NOP): Update.
1572 * emulparams/elf32mcore.sh: Likewise.
1573 * emulparams/elf64_s390.sh: Likewise.
1574 * emulparams/elf_i386.sh: Likewise.
1575 * emulparams/elf_i386_be.sh: Likewise.
1576 * emulparams/elf_i386_chaos.sh: Likewise.
1577 * emulparams/elf_i386_ldso.sh: Likewise.
1578 * emulparams/elf_s390.sh: Likewise.
1579 * emulparams/elf_x86_64.sh: Likewise.
1580 * emulparams/i386moss.sh: Likewise.
1581 * emulparams/i386nw.sh: Likewise.
1582 * emulparams/m68kelf.sh: Likewise.
1583 * scripttempl/elf.sc: Update NOP comment.
1584 * scripttempl/elfi370.sc: Likewise.
1585 * scripttempl/elfm68hc11.sc: Likewise.
1586 * scripttempl/elfm68hc12.sc: Likewise.
1587 * scripttempl/nw.sc: Likewise.
1588
b90e1c6f
TR
15892001-08-15 Tom Rix <trix@redhat.com>
1590
1591 * ldgram.y (saved_script_handle): Initialize to NULL.
1592 * ldmain.c (main): Change check on saved_script_handle.
948f9114 1593
39dcfe18
AM
15942001-08-14 Alan Modra <amodra@bigpond.net.au>
1595
cde43e70
AM
1596 * emultempl/elf32.em: Formatting fixes.
1597 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1598 looking at sec->owner.
1599 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1600 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1601 unused code, and reorganize orphan section placement code.
1602
39dcfe18
AM
1603 * ldlang.c (wild_doit): Rename to lang_add_section.
1604 * ldlang.h: Here too.
1605 * mpw-elfmips.c: And here.
1606 * emultempl/beos.em: And here.
1607 * emultempl/elf32.em: And here.
1608 * emultempl/hppaelf.em: And here.
1609 * emultempl/pe.em: And here.
1610
908d20b3
RH
16112001-08-13 Richard Henderson <rth@redhat.com>
1612
1613 * emultempl/needrelax.em: New file.
1614 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1615 * Makefile.am (eelf64_ia64.c): Depend on it.
1616 * Makefile.in: Rebuild.
1617
0f33d40b
AM
16182001-08-13 Alan Modra <amodra@bigpond.net.au>
1619
22af9fd3
AM
1620 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1621 output_section is set non-NULL.
1622
0f33d40b
AM
1623 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1624 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1625 needlessly create an output_section_statement. Treat a correctly
1626 named output_section_statement with NULL bfd_section as compatible.
1627
55ab6103
HPN
16282001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1629
1630 * emultempl/generic.em: Support EXTRA_EM_FILE.
1631 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1632 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1633 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1634 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1635 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1636 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1637 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1638 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1639 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1640 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1641
24098abb
RH
16422001-08-12 Richard Henderson <rth@redhat.com>
1643
1644 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1645 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1646 scripttempl/v850.sc: Keep .jcr data.
1647
b9a8de1e 16482001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
1649 Andrew Haley <aph@cambridge.redhat.com>
1650 Nick Clifton <nickc@redhat.com>
b9a8de1e 1651
146e7110 1652 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
1653 Change type to file handle.
1654 * ld.h (had_script): Rename and retype.
1655 * ldfile.c (ldfile_open_command_file): Save the file handle
1656 used in saved_script_handle.
1657 * lexsup.c (parse_args): Do not allow -c option to alter
1658 saved_script_handle.
1659 * ldmain.c (main): Print out the linker script used if
1660 --verbose is given. Check saved_script_handle to obtain the
1661 external linker script used, or if NULL, dump the builtin
1662 script.
1663 * ld.texinfo: Document that --verbose now dumps the linker
1664 script used, regardless of whether it was an internal or an
1665 external script.
1666
0218d1e4
AJ
16672001-08-10 Andreas Jaeger <aj@suse.de>
1668
1669 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1670 to build warnings.
1671 * configure: Regenerate.
1672
5253f23b
AM
16732001-08-09 Alan Modra <amodra@bigpond.net.au>
1674
73810896
AM
1675 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1676
5253f23b
AM
1677 * scripttempl/elf.sc: Move non-text .dynamic section before
1678 .plt/.got/.sdata* group.
1679 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1680 (OTHER_SDATA_SECTIONS): Add.
1681 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1682 OTHER_GOT_SECTIONS.
1683 * emulparams/crislinux.sh: Likewise.
1684 * emulparams/elf32b4300.sh: Likewise.
1685 * emulparams/elf32bmip.sh: Likewise.
1686 * emulparams/elf32bmipn32.sh: Likewise.
1687 * emulparams/elf32bsmip.sh: Likewise.
1688 * emulparams/elf32btsmip.sh: Likewise.
1689 * emulparams/elf32ebmip.sh: Likewise.
1690 * emulparams/elf32elmip.sh: Likewise.
1691 * emulparams/elf32l4300.sh: Likewise.
1692 * emulparams/elf32lmip.sh: Likewise.
1693 * emulparams/elf32lsmip.sh: Likewise.
1694 * emulparams/elf32ltsmip.sh: Likewise.
1695 * emulparams/elf64bmip.sh: Likewise.
1696 * emulparams/elf64btsmip.sh: Likewise.
1697 * emulparams/elf64ltsmip.sh: Likewise.
1698
179c732c
AM
16992001-08-08 Alan Modra <amodra@bigpond.net.au>
1700
1701 * genscripts.sh: Source the emulparams script before each output
1702 script is generated so that variables like `RELOCATING' may affect
1703 variables defined in the emulparams script.
1704
3fd36710
AM
17052001-08-04 Alan Modra <amodra@bigpond.net.au>
1706
20713691
AM
1707 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1708 order.
1709
3fd36710
AM
1710 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1711 ie. iterate over wild_statement.section_list.
1712 (gld${EMULATION_NAME}_place_orphan): Likewise.
1713
de0b1853
SC
17142001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1715
1716 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1717 .fini[0-4] sections used by _exit
1718 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1719 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1720 * scripttempl/elfm68hc11.sc: Likewise.
1721
ff7e6f88
L
17222001-08-03 H.J. Lu <hjl@gnu.org>
1723
1724 * emultempl/beos.em (init): Add the missing initialization.
1725
b6bf44ba
AM
17262001-08-03 Alan Modra <amodra@bigpond.net.au>
1727
1728 * ld.texinfo (Input Section Basics): Clarify ordering of output
1729 sections.
1730 * ldlang.c (callback_t): Add wildcard_list param.
1731 (walk_wild_section): Remove "section" param. Rewrite for
1732 lang_wild_statement_type change. Remove unique_section_p test.
1733 (walk_wild_file): Remove "section" param.
1734 (walk_wild): Remove "section" and "file" params.
1735 (lang_gc_wild): Likewise.
1736 (wild): Likewise. Modify for lang_wild_statement_type change.
1737 (wild_sort): Likewise. Add "sec" param.
1738 (gc_section_callback): Likewise.
1739 (output_section_callback): Likewise. Do unique_section_p test.
1740 (map_input_to_output_sections): Modify call to wild.
1741 (lang_gc_sections_1): Likewise.
1742 (print_wild_statement): Modify for lang_wild_statement_type
1743 change.
1744 (lang_add_wild): Replace filename, filenames_sorted param with
1745 filespec. Replace section_name, sections_sorted,
1746 exclude_filename_list with section_list.
1747 * ldlang.h (lang_add_wild): Here too.
1748 (lang_wild_statement_type): Replace section_name, sections_sorted,
1749 and exclude_filename_list with section_list.
1750 * ldgram.y (current_file): Delete.
1751 (%union): Add wildcard_list.
1752 (file_NAME_list): Set type to wildcard_list. Build a linked list
1753 rather than calling lang_add_wild for each entry.
1754 (input_section_spec_no_keep): Call lang_add_wild here instead.
1755 * ld.h (struct wildcard_list): Declare.
1756 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1757
b044cda1
CW
17582001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1759
1760 * ldmain.c (main): initialize link_info.pei386_auto_import
1761 * pe-dll.c: new tables for auto-export filtering
1762 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 1763 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
1764 "by hand".
1765
17662001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1767
b6bf44ba
AM
1768 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1769 static variable current_sec (static struct sec *). Add
b044cda1 1770 forward declaration for add_bfd_to_link.
b6bf44ba
AM
1771 (process_def_file): Don't export undefined symbols. Do not
1772 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
1773 with new API.
1774 (pe_walk_relocs_of_symbol): New function.
1775 (generate_reloc): add optional extra debugging
b6bf44ba 1776 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 1777 line in output
b6bf44ba 1778 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
1779 (DATA auto-import support).
1780 (make_singleton_name_thunk): New function.
1781 (make_import_fixup_mark): New function.
1782 (make_import_fixup_entry): New function.
1783 (pe_create_import_fixup): New function.
b6bf44ba 1784 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 1785 char *.
b6bf44ba
AM
1786 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1787 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
1788 pe_create_import_fixup.
1789 * emultempl/pe.em: add new options --enable-auto-import,
1790 --disable-auto-import, and --enable-extra-pe-debug.
1791 (make_import_fixup): New function.
1792 (pe_find_data_imports): New function.
1793 (pr_sym): New function.
b6bf44ba 1794 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
1795 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1796 CODE.
1797
17982001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 1799
b044cda1
CW
1800 * ld.texinfo: add additional documentation for
1801 --export-all-symbols. Document --out-implib,
1802 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
1803 --dll-search-prefix, --enable-auto-import, and
1804 --disable-auto-import.
b044cda1
CW
1805 * ldint.texinfo: Add detailed documentation on auto-import
1806 implementation.
1807
156e34dd
NC
18082001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1809
1810 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1811 example.
1812
d6231427
AM
18132001-07-24 Alan Modra <amodra@bigpond.net.au>
1814
1815 * Makefile.am: Update dependencies with "make dep-am".
1816 * Makefile.in: Regenerate
1817
e14ec88b
AM
18182001-07-23 Alan Modra <amodra@bigpond.net.au>
1819
1820 * ldcref.c (check_section_sym_xref): New function.
1821 (check_nocrossrefs): Call it.
1822 (check_nocrossref): Interate over h->refs here instead of..
1823 (check_refs): ..here. Pass in the symbol name, section, and bfd
1824 rather than hash_entry pointers.
1825 (struct check_refs_info): Keep symbol name rather than hash entry.
1826 Remove "same".
1827 (check_reloc_refs): Tweak for above changes in check_refs_info.
1828 Only report references to section syms when symname is NULL to
1829 prevent duplicate messages for the same reloc.
1830
1b577b00
NC
18312001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1832
c7d701b0
NC
1833 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1834 available. Do not print NULL trees.
1835 (exp_print_token): Print unknown tokens with values > 126 as
1836 decimal values not ASCII characters.
1837
1545243b
NC
1838 * ldlang.c (lang_leave_overlay): If a region is specified assign
1839 it to all sections inside the overlay unless they have been
1840 assigned to the own, non-default, memory region.
1841
1b577b00
NC
1842 * README: Add header for consistency with other README files.
1843
5030876b
L
18442001-07-14 H.J. Lu <hjl@gnu.org>
1845
1846 * emultempl/elf32.em (output_prev_sec_find): Never return
1847 bfd_abs_section_ptr, bfd_com_section_ptr nor
1848 bfd_und_section_ptr.
1849
18c7a9a5
NC
18502001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1851
22af9fd3 1852 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
1853 elf32.em.
1854 * Makefile.in: Regenerate.
1855
9ffecff1
MG
18562001-07-14 matthew green <mrg@eterna.com.au>
1857
1858 * configure.tgt (i386-*-netbsdelf*): New target.
1859 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1860
95500e1c
JJ
18612001-07-13 Jakub Jelinek <jakub@redhat.com>
1862
1863 * emultempl/elf32.em (output_prev_sec_find): New.
1864 (place_orphan): Use it.
1865
e97cb84f
L
18662001-07-11 H.J. Lu <hjl@gnu.org>
1867
1868 * ldmain.c (main): Fix typos in the last change.
1869
7333607e
JJ
18702001-07-11 Jakub Jelinek <jakub@redhat.com>
1871
1872 * ldmain.c (main): Disallow -F and -f without -shared.
1873
d29d80f2
NC
18742001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1875
1876 * emultempl/pe.em (after_open): Check for the output_bfd not
1877 having any coff_data structure allocated to it.
1878
c2a1a436
DB
18792001-07-09 David O'Brien <obrien@FreeBSD.org>
1880
1881 * emultempl/elf32.em: Do not assuming that contents of the buffer
1882 returned from basename function will remain unchanged accross other
1883 function calls.
1884
63653551
L
18852001-07-03 H.J. Lu <hjl@gnu.org>
1886
1887 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1888 2001-07-03. It creates dynamic entries even for static binaries.
1889
d303a449
L
18902001-07-03 Jakub Jelinek <jakub@redhat.com>
1891
1892 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1893 (DYNAMIC): Use it to reserve few dynamic entries for
1894 post-linking tools.
1895
9f22353f
AM
18962001-06-27 Alan Modra <amodra@bigpond.net.au>
1897
1898 * emulparams/hppa64linux.sh: New file.
1899 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1900 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1901 (ehppa64linux.c): Add rule to make it.
1902 Run "make dep-am".
1903 * Makefile.in: Regenerate.
1904
62bf86b4
HPN
19052001-06-21 Hans-Peter Nilsson <hp@axis.com>
1906
1907 * ld.texinfo (Options, -r): Mention restrictions when using
1908 different object formats.
1909
429d935d
HPN
19102001-06-19 Hans-Peter Nilsson <hp@axis.com>
1911
1912 * ldlang.c (lang_check): Emit fatal error if relocatable link
1913 between different object flavours with relocations in input.
1914
cb840a31
L
19152001-06-19 H.J. Lu <hjl@gnu.org>
1916
1917 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1918 (--version-script): Mention the language support.
1919
9bf03acc
L
19202001-06-19 H.J. Lu <hjl@gnu.org>
1921
1922 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1923
c45021f2
NC
19242001-06-18 H.J. Lu <hjl@gnu.org>
1925
b6bf44ba
AM
1926 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1927 (diststuff): Add $(MANS).
1928 * Makefile.in: Regenerated.
c45021f2 1929
b6bf44ba 1930 * ld.1: Removed.
c45021f2 1931
6caa99ab
HPN
19322001-06-18 Hans-Peter Nilsson <hp@axis.com>
1933
605d9b3a
HPN
1934 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1935 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1936 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1937 * ld.h (args_type): Remove member export_dynamic. All users
1938 changed to use struct bfd_link_info member.
1939
6caa99ab
HPN
1940 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1941 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1942 * Makefile.in: Regenerate.
1943
6f9efd97
L
19442001-06-18 H.J. Lu <hjl@gnu.org>
1945
1946 * ldlang.c (init_os): Add the newline to the einfo call.
1947 (lang_check): Likewise.
1948 (lang_do_version_exports_section): Likewise.
1949
5af9fd8b
L
19502001-06-15 H.J. Lu <hjl@gnu.org>
1951
1952 * lexsup.c (parse_args); Save optind to report unrecognized
1953 option.
1954
2a096f04
HPN
19552001-06-15 Hans-Peter Nilsson <hp@axis.com>
1956
7e66c3f5
HPN
1957 * ldlang.c (lang_check): Emit fatal error if relocatable link
1958 between different object flavours.
1959
2a096f04
HPN
1960 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1961 Set new link_info member export_dynamic.
1962 * ldmain.c (main): Initialize new link_info member export_dynamic.
1963
6770ec8c
NC
19642001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1965
1966 * ldlang.c (walk_wild): Only call walk_wild_file if
1967 lookup_name returns something.
b6bf44ba 1968 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 1969 (load_symbols): Change to a boolean function.
b6bf44ba 1970 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
1971 executable.
1972
8529105a
AM
19732001-06-08 Alan Modra <amodra@bigpond.net.au>
1974
1975 * ldlang.c (record_bfd_errors): Remove.
1976
1977 * emultempl/aix.em: Fix copyright dates.
1978
8f3aa7a0
AJ
19792001-06-07 Andreas Jaeger <aj@suse.de>
1980
1981 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1982 (TEXT_START_ADDR): Likewise.
1983
3277f888
AM
19842001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1985
1986 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1987
3763134d
DD
19882001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1989
1990 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1991
5929ebc0
L
19922001-05-31 H.J. Lu <hjl@gnu.org>
1993
1994 * ldlang.c (open_input_bfds): Don't change the bfd error
1995 handler whilst loading symbols.
1996
c04a062d
NC
19972001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1998
1999 * configure.tgt: Remove i370-mvs architecture, it is not currently
2000 supported.
2001
96fcab3e
L
20022001-05-25 H.J. Lu <hjl@gnu.org>
2003
2004 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2005 like emulparams/aixppc.sh.
2006
db8d4f23
L
20072001-05-25 H.J. Lu <hjl@gnu.org>
2008
2009 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2010 setting of output_filename after bfd_scan_arch.
2011 * emultempl/pe.em: Likewise.
2012
5f642101
L
20132001-05-25 H.J. Lu <hjl@gnu.org>
2014
2015 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2016 like emulparams/aixppc.sh.
2017
2018 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2019 instead of ${srcdir}/emultempl/stringify.sed.
2020
64e9ece0
TW
20212001-05-25 Timothy Wall <twall@oculustech.com>
2022
2023 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 2024 output.
64e9ece0 2025
c709b096
AM
20262001-05-25 Alan Modra <amodra@one.net.au>
2027
2028 * configure.host: Replace linuxoldld with linux*oldld.
2029 * configure.tgt: Likewise.
2030
6cbdcc6f
L
20312001-05-24 H.J. Lu <hjl@gnu.org>
2032
2033 * emultempl/stringify.sed: Removed again.
2034
86af25fe
L
20352001-05-24 H.J. Lu <hjl@gnu.org>
2036
2037 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2038 (gld${EMULATION_NAME}_before_parse): Initialize
2039 ldfile_output_architecture, ldfile_output_machine and
2040 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2041 * emultempl/beos.em: Likewise.
2042 * emultempl/elf32.em: Likewise.
2043 * emultempl/linux.em: Likewise.
2044 * emultempl/mipsecoff.em: Likewise.
2045 * emultempl/pe.em: Likewise.
2046 * emultempl/sunos.em: Likewise.
2047
3b1b01cf
TR
20482001-05-24 Tom Rix <trix@redhat.com>
2049
8f3aa7a0 2050 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
2051 udate import file format.
2052 (change_symbol_mode) New, same
2053 (is_syscall) New, same
2054 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2055 * emulparams/aixppc64.sh : same
2056 * emulparams/aixrs6.sh : same
2057 * emulparams/ppcmacos.sh : same
2058 * emultempl/aix.em : use strtoull to parse options
2059 * Makefile.am : add eaixppc64 emulation for xcoff64
2060 * Makefile.in : same
2061 * configure.tgt : same
2062
2063 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 2064 default data section offset to 0x20000000
3b1b01cf 2065 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 2066 loader and debug sections use the currect section offset.
3b1b01cf
TR
2067
2068 * emultempl/aix.em : Add xcoff64 support
2069 Add -binitfini support
8f3aa7a0 2070 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 2071 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 2072 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
2073 sections
2074
2075 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 2076
57e6abd2
AO
20772001-05-23 Alexandre Oliva <aoliva@redhat.com>
2078
2079 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2080 variable to avoid non-portable shell construct.
2081
d1cf510e
NC
20822001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2083
2084 * ldmain.c (get_emulation): Add -mips5 command line argument.
2085
506eee22
NC
20862001-05-22 Alexandre Oliva <aoliva@redhat.com>
2087
2088 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2089 (ELF_INTERPRETER_NAME): Define it.
2090 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2091 it.
2092 * configure.tgt (targ_emul, targ_extra_emuls)
2093 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2094 as primary, elf_i386 as extra.
2095 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2096 (eelf_i386_ldso.c): New rule.
2097 * Makefile.in: Rebuilt.
2098
20992001-05-22 Nick Clifton <nickc@redhat.com>
2100
2101 * lexsup.c (ld_options): Allow -I to be an alias for
2102 --dynamic-linker. This is for Solaris compatability.
2103 * ld.texinfo: Document that -I can be used.
2104 * ld.1: Regenerate.
2105
d1778b88
AM
21062001-05-16 Alan Modra <amodra@one.net.au>
2107
2108 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2109 whether an input section is the first one assigned to an output
2110 section.
2111 Assorted formatting fixes.
2112
02649152
DD
21132001-05-14 DJ Delorie <dj@delorie.com>
2114
2115 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2116 * Makefile.in: Ditto.
2117
579f31ac
JJ
21182001-05-11 Jakub Jelinek <jakub@redhat.com>
2119
2120 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2121 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2122 output sections.
2123 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2124
8550eb6e
JJ
21252001-05-11 Jakub Jelinek <jakub@redhat.com>
2126
2127 * ldlang.c (lang_process): Call bfd_merge_sections.
2128
8e5a525c
AM
21292001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2130
2131 * ldgram.y: Fix typo.
2132
1c9acd94
L
21332001-05-03 H.J. Lu <hjl@gnu.org>
2134
2135 * emultempl/elf32.em: Include "libiberty.h".
2136 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2137 basename of the bfd filename.
2138 (gld${EMULATION_NAME}_stat_needed): Likewise.
2139 (gld${EMULATION_NAME}_try_needed): Likewise.
2140 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2141
14fe918e
L
21422001-05-02 H.J. Lu <hjl@gnu.org>
2143
2144 * emultempl/pe.em: Include <ctype.h>.
2145
c7e40348
NC
21462001-05-02 Johan Rydberg <jrydberg@opencores.org>
2147
b6bf44ba 2148 * emulparams/elf32openrisc.sh: New file.
c7e40348 2149
b6bf44ba
AM
2150 * Makefile.am: Add OpenRISC target.
2151 * Makefile.in: Regenerated.
c7e40348 2152
b6bf44ba 2153 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
2154
21552001-05-02 Nick Clifton <nickc@redhat.com>
2156
2157 * emultempl/aix.em: Replace buystring with xstrdup.
2158 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 2159
d1b2b2dc
L
21602001-05-02 H.J. Lu <hjl@gnu.org>
2161
2162 * ldfile.c: Include "libiberty.h".
2163 * ldlex.l: Likewise.
2164
2165 * ldmisc.c (buystring): Removed.
2166 * ldmisc.h: Likewise.
2167
2168 * ldfile.c: Replace buystring with xstrdup.
2169 * ldlang.c: Likewise.
2170 * ldlex.l: Likewise.
2171 * ldmain.c: Likewise.
2172 * ldmisc.c: Likewise.
2173 * lexsup.c: Likewise.
2174 * mpw-eppcmac.c: Likewise.
2175
35714f2a
AJ
21762001-04-30 Andreas Jaeger <aj@suse.de>
2177
2178 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2179
884fb58e
NC
21802001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2181
b6bf44ba
AM
2182 * ldlang.c (load_symbols): Give emulation a chance
2183 to process unrecognized file before fatal error is
2184 reported, not after.
884fb58e 2185
87748b32
NC
21862001-04-27 Sean McNeil <sean@mcneil.com>
2187
2188 * configure.tgt: Add arm-vxworks target.
2189 * scripttempl/armcoff.sc: Support .text or .data as a section name
2190 prefix.
2191 Define _etext.
35714f2a 2192
7ce691ae
C
21932001-04-13 J.T. Conklin <jtc@redback.com>
2194
2195 * ld.texinfo: Document --fatal-warnings.
2196 * ld.1: Regenerate.
2197
2198 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 2199 warnings have been turned into errors.
7ce691ae
C
2200 * lexsup.c (OPTION_WARN_FATAL): Define.
2201 (ld_options): Entry for --fatal-warnings.
2202 (parse_args): Handle OPTION_WARN_FATAL.
2203 * ld.h (ld_config_type): Add fatal_warnings field.
2204
f5fa8ca2
JJ
22052001-04-13 Jakub Jelinek <jakub@redhat.com>
2206
2207 * ldmain.c (main): Default to discard_sec_merge.
2208 * lexsup.c (OPTION_DISCARD_NONE): Define.
2209 (ld_options): Add --discard-none.
2210 (parse_args): Handle OPTION_DISCARD_NONE.
2211 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2212 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2213 all its input sections match.
2214
fdec3cfc
L
22152001-04-05 Steven J. Hill <sjhill@cotw.com>
2216
2217 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2218 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2219 (eelf32ltsmip.c): New target.
2220 (eelf64btsmip.c): Likewise.
2221 (eelf64ltsmip.c): Likewise.
2222 * Makefile.in: Regenerated.
2223
2224 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2225 target.
2226 (mips*-*-linux-gnu*): Likewise.
2227
2228 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2229 MIPS taget.
35714f2a 2230 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
2231 target.
2232 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2233 endian target.
2234
589bad82
HPN
22352001-04-05 Hans-Peter Nilsson <hp@axis.com>
2236
2237 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2238 correct value of __Stext here.
2239 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2240 .startup section.
2241
2242 * emulparams/crislinux.sh: Remove FIXME.
2243
94202e16
AM
22442001-04-02 Alan Modra <alan@linuxcare.com.au>
2245
2246 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2247 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2248
1268a053
HPN
22492001-03-27 Hans-Peter Nilsson <hp@axis.com>
2250
2251 * configure.tgt (cris-*-*): Change default emulation to criself.
2252 (cris-*-*aout*): New rule.
2253
d85e9ff7
AM
22542001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2255
2256 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2257 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2258
0879a67a
AJ
22592001-03-26 Andreas Jaeger <aj@suse.de>
2260
2261 * ld.texinfo (Overview): Fix syntax in texi code.
2262
0285c67d
NC
22632001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2264
2265 * ld.texinfo: Put @c man indications to generate the ld man page.
2266 When generating man, define all the variables. Define SEEALSO
2267 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2268 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2269 (ld.1): Generate from ld.texinfo.
2270 * Makefile.in: Regenerate.
2271
c20ec07b
NC
22722001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2273
2274 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 2275 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 2276
cc5ce052
UD
22772001-03-17 Ulrich Drepper <drepper@redhat.com>
2278
2279 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2280 is an absolute path look only for this file and not along the path.
2281
a1ab1d2a
UD
22822001-03-17 Ulrich Drepper <drepper@redhat.com>
2283
2284 * emultempl/elf32.em (OPTION_GROUP): New macro.
2285 Add new option Bgroup to longopts.
2286 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2287 (gld*_list_options): Add -Bgroup and -z defs.
2288 * ld.1: Document -Bgroup and -z defs.
2289 * ld.texinfo: Likewise.
2290
788fca5a
MM
22912001-03-07 Michael Meissner <meissner@redhat.com>
2292
2293 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2294 with sections created by -fdata-sections.
2295 (.dynbss,.bss): Ditto.
2296
1c7566d1
AM
22972001-03-05 Alan Modra <alan@linuxcare.com.au>
2298
2299 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2300 after_allocation_default, not gld..._before_allocation.
2301
27b7e12d
AM
23022001-02-27 Alan Modra <alan@linuxcare.com.au>
2303
2304 * configure.in (BFD_VERSION): New.
2305 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2306 * configure: Regenerate.
2307 * Makefile.am: Run "make dep-am"
2308 * Makefile.in: Regenerate.
2309
2bc551c7
TW
23102001-02-26 Timothy Wall <twall@cygnus.com>
2311
2312 * emulparams/elf64_aix.sh: Add additional read-only sections;
2313 uncomment lines which are now required.
2314
1276aefa
NC
23152001-02-26 H.J. Lu <hjl@gnu.org>
2316
2317 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
2318 that problems can be caught whilst loading symbols.
2319 (record_bfd_errors): New function: Report BFD errors and mark
2320 the executable output as being invalid.
1276aefa 2321
41c49998
TW
23222001-02-22 Timothy Wall <twall@cygnus.com>
2323
2324 * configure.host: Add configuration for ia64-*-aix*.
2325 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2326 Add dependencies for eelf64_aix.c.
2327 * Makefile.in: Regenerate.
2328 * configure.tgt: Add ia64-*-aix* mapping.
2329 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 2330 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
2331 AIX-specific test.
2332
78f85fd7
L
23332001-02-20 H.J. Lu <hjl@gnu.org>
2334
2335 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2336 false if we found the file.
2337
1ac7e077 23382001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
2339
2340 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2341 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2342
e135f41b
NC
23432001-02-18 lars brinkhoff <lars@nocrew.org>
2344
2345 * Makefile.am: Add PDP-11 target.
2346 * configure.tgt: Likewise.
2347 * emulparams/pdp11.sh: New file.
2348
a842aceb
DB
23492001-02-17 David O'Brien <obrien@FreeBSD.org>
2350
2351 * configure.host: Add a generic FreeBSD configuration entry such that
2352 all [modern] FreeBSD systems on all platforms will look the same.
2353
24174db0
L
23542001-02-14 H.J. Lu <hjl@gnu.org>
2355
2356 * configure.tgt: Remove mention of earmelf_linux26.
2357
30c3c13a
RH
23582001-02-13 Richard Henderson <rth@redhat.com>
2359
2360 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2361
b46a87b1
L
23622001-02-13 H.J. Lu <hjl@gnu.org>
2363
2364 * ldexp.h (node_type): Add etree_provided.
2365 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2366 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 2367 for etree_provided.
b46a87b1
L
2368 (exp_print_tree): Handle etree_provided.
2369 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2370 etree_provided.
2371
f3988fd9
RH
23722001-02-09 David Mosberger <davidm@hpl.hp.com>
2373
2374 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2375 .IA_64.unwind.* pattern to unwind table section and
2376 .IA_64.unwind_info* pattern to unwind info section.
2377
a85d7ed0
NC
23782001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2379
2380 * Makefile.am: Add linux target for S/390.
2381 * Makefile.in: Likewise.
2382 * configure.host: Likewise.
2383 * configure.tgt: Likewise.
2384 * emulparams/elf64_s390.sh: New file.
2385 * emulparams/elf_s390.sh: New file.
2386
780248c4
JJ
23872001-02-09 Jakub Jelinek <jakub@redhat.com>
2388
2389 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2390 targ_extra_libpath.
2391 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2392
0e2534bd
PB
23932001-02-06 Philip Blundell <philb@gnu.org>
2394
2395 * Makefile.am: Remove mention of earmelf_linux26.
2396 * Makefile.in: Regenerate.
2397
46c1ea57
PB
23982001-02-04 Philip Blundell <philb@gnu.org>
2399
2400 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2401 * emulparams/armelf_linux26.sh: Delete.
2402 * configure.tgt: Remove mention of armelf_linux26 emulation.
2403
0088edd2
NC
24042001-02-01 Nick Clifton <nickc@redhat.com>
2405
2406 * ld.1: Replace occurances of -oformat with --oformat.
2407
02aa14fb
AM
24082001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2409
2410 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2411 load_base is specified.
2412
f813923c
HPN
24132001-01-24 Hans-Peter Nilsson <hp@axis.com>
2414
2415 * emultempl/elf32.em: Correct spelling in comments and listed
2416 options.
2417
c1eb1488
AM
24182001-01-23 Alan Modra <alan@linuxcare.com.au>
2419
2420 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2421 default for the first section of a group of overlay sections.
2422
d9fc3714
AM
24232001-01-22 Alan Modra <alan@linuxcare.com.au>
2424
2425 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2426 * Makefile.in: Regenerate.
2427 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2428 Check for null tool_dir.
2429
6be0ca94
JW
24302001-01-16 Jim Wilson <wilson@redhat.com>
2431
2432 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2433 and IA_64.unwind.info.
2434
b9247304
L
24352001-01-16 H.J. Lu <hjl@gnu.org>
2436
2437 * ldlang.c (lang_check): Merge the private data only if the
2438 input file has contents.
2439
577a0623
AM
24402001-01-14 Alan Modra <alan@linuxcare.com.au>
2441
d952f17a
AM
2442 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2443
ffd6e9de
AM
2444 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2445 enabling search for libmilli. On a relocatable link, make .text
2446 sections unique.
2447 (LDEMUL_AFTER_PARSE): Define.
2448 (hppaelf_finish): Correct spelling of relocatable in comments.
2449
577a0623
AM
2450 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2451 rummage through the script for sections on the unique list.
2452 Correct length of strncmp for ".note".
2453 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2454
2455 * ldlang.c (unique_section_list): New var.
2456 (unique_section_p): New function.
2457 (walk_wild_section): Don't match sections on unique_section_list.
2458 (lang_add_unique): New function.
ffd6e9de 2459 Correct spelling of relocatable in comments.
577a0623
AM
2460
2461 * ldlang.h (struct unique_sections): Declare.
2462 (unique_section_list): Declare.
2463 (unique_section_p): Declare.
2464 (lang_add_unique): Declare.
2465
2466 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2467 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2468
2469 * ld.texinfo (--unique): Update.
2470
b7ed8fad
NC
24712001-01-13 Nick Clifton <nickc@redhat.com>
2472
2473 * lexsup.c (parse_args): Remove spurious white space.
2474
d0398d6a
NC
24752001-01-12 Nick Clifton <nickc@redhat.com>
2476
2477 * lexsup.c (parse_args): Update copyright date.
2478
350fdb00
PB
24792001-01-12 Philip Blundell <pb@futuretv.com>
2480
2481 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2482
60c6797e
KH
24832001-01-10 Kazu Hirata <kazu@hxi.com>
2484
2485 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2486 * scripttempl/h8300h.sc: Fix formatting.
2487 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
2488 * scripttempl/h8500.sc: Likewise.
2489 * scripttempl/h8500b.sc: Likewise.
2490 * scripttempl/h8500c.sc: Likewise.
2491 * scripttempl/h8500m.sc: Likewise.
2492 * scripttempl/h8500s.sc: Likewise.
60c6797e 2493
482e8b32
DB
24942000-01-07 David O'Brien <obrien@BSDi.com>
2495
2496 * emultempl/elf32.em: Only perform Linux ld hints processing when
2497 targeting Linux.
2498
d7ed7ca6
PB
24992001-01-07 Philip Blundell <philb@gnu.org>
2500
2501 * ld.texinfo (Bug Reporting): Update email address for reports.
2502
0fc3347a
NC
25032000-12-31 Nick Clifton <nickc@redhat.com>
2504
2505 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2506 options by checking for a return value of '?' not -1.
2507
e4897a32
NC
25082000-12-28 Nick Clifton <nickc@redhat.com>
2509
2510 * lexsup.c (struct ld_option): Add new enum value:
2511 EXACTLY_TWO_DASHES.
2512 (ld_options[]): Change -omagic, -output and -oformat options
2513 to be EXACTLY_TWO_DASHES.
2514 (OUTPUT_COUNT): Use ARRAY_SIZE.
2515 (parse_args): Change parameter 'argc' to unsigned.
2516 Place EXACTLY_TWO_DASHES options into new really_longopts
2517 array.
2518 If getopt_long_only fails, try calling getopt_long using the
2519 really_longopts array.
2520 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2521 TWO_DASHES options.
2522
2523 * ldlex.h: Fix prototype of parse_args.
2524
2525 * ld.texinfo: Document that long options starting with 'o'
2526 must be preceeded by two dashes. Change example of a single
2527 dashed long option from -oformat to -trace-symbol.
2528
1122a5fc
NC
25292000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2530
2531 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2532 (longopts[]): New --no-default-excludes option.
2533 (gld_${EMULATION_NAME}_list_options): Document.
2534 (gld_${EMULATION_NAME}_parse_args): Handle.
2535
037849a9
NC
25362000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2537
2538 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2539 whitespace, it breaks the K&R C preprocessor.
2540
7ec229ce
DD
25412000-12-11 DJ Delorie <dj@redhat.com>
2542
2543 * ld.texinfo: Add notes about --whole-archive and gcc.
2544
b79e8c78
NC
25452000-11-18 Fred Fish <fnf@be.com>
2546
2547 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2548 (ld_options): Entry for --allow-shlib-undefined.
2549 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2550 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2551 to false.
2552 * ld.texinfo: Document new command line switch.
d952f17a 2553
9a8e2505
GK
25542000-12-12 Geoffrey Keating <geoffk@redhat.com>
2555
2556 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2557 .fixup is actually read/write.
2558 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2559 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2560 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2561
3b16e843 25622000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
2563
2564 * NEWS: Add note about x86_64 architecture.
2565
93b63cd3
DD
25662000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2567
2568 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2569 Set DWARF2 sections to a VMA of zero.
2570
24f6971a
NC
25712000-12-01 Joel Sherrill <joel@OARcorp.com>
2572
d952f17a 2573 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
2574 New targets.
2575 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2576 (sparc*-*-rtems*): Switched from a.out to ELF.
2577
2be3aa03
NC
25782000-11-30 Jan Hubicka <jh@suse.cz>
2579
2580 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2581 (eelf_x86_64.c): New.
2582 * Makefile.in: Regenerate.
2583 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2584 * emulparams/elf_x86_64.sh: New.
2585
8c899858
HPN
25862000-11-30 Hans-Peter Nilsson <hp@axis.com>
2587
2588 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2589 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2590
2591 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2592 merging non-a.out sections into CONSTRUCTING.
2593
e47b9e39
NC
25942000-11-28 Nick Clifton <nickc@redhat.com>
2595
2596 * ld.1 (COPYING): Mention that the GNU Free Documentation
2597 License is present in the sources, but not the output, and
2598 also available from the GNU website.
2599 (GNU Free Documentation License): Comment out this section.
2600
ad95f82a
DB
26012000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2602
2603 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2604 does not use them.
2605
fd89e65f
DB
26062000-11-25 David O'Brien <obrien@FreeBSD.org>
2607
2608 * ld.1: Remove old date so it does not give the impression the manpage
2609 is way out of date.
2610
077b8428
NC
26112000-11-24 Nick Clifton <nickc@redhat.com>
2612
2613 * configure.tgt (xscale-coff): Add target.
2614 (xscale-elf): Add target.
2615
49425d28
NC
26162000-11-24 Fred Fish <fnf@be.com>
2617
d952f17a
AM
2618 * ldmain.c (main): Remove redundant init of config.make_executable
2619 to true.
49425d28 2620
d3480244
RH
26212000-11-15 Richard Henderson <rth@redhat.com>
2622
2623 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2624
1ce7de8b
KH
26252000-11-14 Kazu Hirata <kazu@hxi.com>
2626
2627 * scripttempl/h8300.sc: Fix formatting.
2628 * scripttempl/h8300h.sc: Likewise.
2629 * scripttempl/h8300s.sc: Likewise.
2630
3b16e843 26312000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
2632
2633 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2634
2e418547
PB
26352000-11-09 Philip Blundell <pb@futuretv.com>
2636
2637 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2638 around orphan sections whose names can be represented in C.
2639
c940e6fc
JW
26402000-11-07 Jim Wilson <wilson@redhat.com>
2641
2642 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2643 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2644
704c465c
NC
26452000-11-06 Nick Clifton <nickc@redhat.com>
2646
2647 * ld.texinfo: Add GNU Free Documentation License.
2648 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 2649 * ld.1: Add GNU Free Documentation License.
704c465c 2650
dca7760f
AM
26512000-11-05 Alan Modra <alan@linuxcare.com.au>
2652
2653 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2654 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2655
2656 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2657 Move 2000-11-02 Makefile.in changes to this file.
2658 * Makefile.in: Regenerate.
2659
40a633d5
NC
26602000-11-03 Nick Clifton <nickc@redhat.com>
2661
2662 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2663 constructors and destructors.
2664 * scripttempl/h8300h.sc: Ditto.
2665 * scripttempl/h8300s.sc: Ditto.
2666 * scripttempl/h8500.sc: Ditto.
2667 * scripttempl/h8500b.sc: Ditto.
2668 * scripttempl/h8500c.sc: Ditto.
2669 * scripttempl/h8500m.sc: Ditto.
2670 * scripttempl/h8500s.sc: Ditto.
2671 * scripttempl/v850.sc: Ditto.
2672 * scripttempl/w65.sc: Ditto.
2673 * scripttempl/z8000.sc: Ditto.
2674
59ff2774
NC
26752000-11-02 Per Lundberg <plundis@chaosdev.org>
2676
2677 * Makefile.in (e_i386_chaos.c): New rule.
2678 (ALL_EMULATIONS): Added e_i386_chaos.o.
2679 * emulparams/elf_i386_chaos.sh: New file.
2680 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2681
645571e1
JJ
26822000-10-20 Jakub Jelinek <jakub@redhat.com>
2683
2684 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2685 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2686 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2687 library path suffix.
2688 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2689
c5975a45
HPN
26902000-10-18 Hans-Peter Nilsson <hp@axis.com>
2691
2692 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2693 for consecutive sections.
2694
ea20a7da
CC
26952000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2696
d952f17a
AM
2697 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2698 options.
2699 * ld.texinfo: Added notes about this new option.
ea20a7da 2700
6e45556a
NC
27012000-10-16 Nick Clifton <nickc@redhat.com>
2702
2703 * emultempl/pe.em (_after_open): Add tests of return values from
2704 bfd functions. Emit appropriate error messages if necessary.
2705
b9a69188
NC
27062000-10-13 Nick Clifton <nickc@redhat.com>
2707
2708 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
2709 local variables - they are not used, but leave in the call to
2710 bfd_canonicalize_symtab.
b9a69188
NC
2711 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2712 pe_dll_search_prefix.
2713
627427de 27142000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 2715
627427de
DD
2716 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2717 (longopts): New --dll-search-prefix option.
2718 (gld_${EMULATION_NAME}_list_options): Document.
2719 (gld_${EMULATION_NAME}_parse_args): Handle.
2720 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2721 dynamically, search for a dll named '<prefix><basename>.dll'
2722 in preference to 'lib<basename>.dll' if --dll-search-prefix
2723 is specified.
2724
24376d1b
AM
27252000-10-12 Alan Modra <alan@linuxcare.com.au>
2726
2727 * ldlang.c (section_already_linked): Set kept_section instead of
2728 sec->comdat->sec.
2729
e47d05ad
KH
27302000-10-10 Kazu Hirata <kazu@hxi.com>
2731
2732 * deffile.h: Fix formatting.
2733 * lexsup.c: Likewise.
2734 * mri.c: Likewise.
2735
23a87948
DD
27362000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2737
2738 * pe-dll.c (make_one): Do not generate code thunk for DATA
2739 exports.
2740 (process_def_file): deduce DATA flag for auto-export sumbols.
2741
86b1cc60
KH
27422000-10-09 Kazu Hirata <kazu@hxi.com>
2743
89cdebba
KH
2744 * ld.h: Fix formatting.
2745 * ldcref.c: Likewise.
2746 * ldctor.h: Likewise.
2747 * ldemul.c: Likewise.
2748 * ldemul.h: Likewise.
2749 * ldexp.c: Likewise.
2750 * ldexp.h: Likewise.
2751 * ldfile.c: Likewise.
2752 * ldfile.h: Likewise.
2753 * ldlang.c: Likewise.
2754 * ldlang.h: Likewise.
2755 * ldmain.c: Likewise.
7bfd51a3
KH
2756 * pe-dll.c: Likewise.
2757
2758 * pe-dll.c: Revert some formatting fixes.
86b1cc60 2759
d643799d
KH
27602000-10-08 Kazu Hirata <kazu@hxi.com>
2761
2762 * pe-dll.c: Fix formatting.
2763
08da4cac
KH
27642000-10-05 Kazu Hirata <kazu@hxi.com>
2765
2766 * ldlang.c: Fix formatting.
2767
c2a94a7a
DD
27682000-10-03 DJ Delorie <dj@redhat.com>
2769
2770 * pe-dll.c (fill_edata): initialize entire block
2771 (make_one): fill in correct section.
2772
8c95a62e
KH
27732000-10-03 Kazu Hirata <kazu@hxi.com>
2774
2775 * ldexp.c: Fix formatting.
2776
486e80e2
DD
27772000-10-02 DJ Delorie <dj@redhat.com>
2778
2779 * emultempl/pe.em (gld_*_after_open): detect case where there two
2780 import libraries for same dll; rename one to ensure proper link
2781 order.
2782
2783 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2784 typo
2785 (generate_edata): fix typo
2786
24dd9f75
HPN
27872000-09-29 Hans-Peter Nilsson <hp@axis.com>
2788
2789 * scripttempl/crisaout.sc (ENTRY): Now __start.
2790 (.text): Add default setting for __start.
2791 Remove CONSTRUCTORS handling.
2792 (/DISCARD/): Add .gnu.warning.*.
2793 * emulparams/crislinux.sh (ENTRY): Now __start.
2794 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2795 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2796 (ENTRY): Now __start.
2797 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2798 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2799
4de2d33d
KH
28002000-09-29 Kazu Hirata <kazu@hxi.com>
2801
5cc18311
KH
2802 * deffile.h: Fix formatting.
2803 * ld.h: Likewise.
2804 * ldcref.c: Likewise.
4de2d33d 2805 * ldctor.c: Likewise.
5cc18311 2806 * ldctor.h: Likewise.
4de2d33d 2807 * ldemul.c: Likewise.
5cc18311 2808 * ldemul.h: Likewise.
4de2d33d 2809 * ldexp.c: Likewise.
5cc18311 2810 * ldexp.h: Likewise.
4de2d33d 2811 * ldfile.c: Likewise.
5cc18311 2812 * ldfile.h: Likewise.
4de2d33d 2813 * ldlang.c: Likewise.
5cc18311
KH
2814 * ldlang.h: Likewise.
2815 * lexsup.c: Likewise.
2816 * mri.c: Likewise.
2817 * pe-dll.c: Likewise.
4de2d33d 2818
45b1f63c
DD
28192000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2820
2821 * pe-dll.c (process_def_file): Uninitialized data wasn't
2822 exported with --export-all-symbols switch.
d952f17a 2823
45b1f63c
DD
28242000-09-28 DJ Delorie <dj@redhat.com>
2825
2826 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2827 noname work properly.
2828
47d89dba
AM
28292000-09-28 Alan Modra <alan@linuxcare.com.au>
2830
2831 * ld.texinfo (HPPA ELF32): New section.
2832
2833 * emultempl/hppaelf.em (group_size): New.
2834 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2835 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2836 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2837 options to prevent abbreviations matching.
2838 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2839 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2840
36bdbeec
NC
28412000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2842
2843 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2844 on the m68*-*-elf target. Make it support COFF input objects.
2845
6d5e62f8
KH
28462000-09-21 Kazu Hirata <kazu@hxi.com>
2847
2848 * ldmain.c: Fix formatting.
2849 * ldmisc.c: Likewise.
2850 * ldver.c: Likewise.
2851 * ldwrite.c: Likewise.
2852
e2eb67d9
AM
28532000-09-21 Alan Modra <alan@linuxcare.com.au>
2854
2855 * ldwrite.c (clone_section): Silence gcc warnings.
2856
b3ea3584
AM
28572000-09-20 Alan Modra <alan@linuxcare.com.au>
2858
2859 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2860 out of memory failure.
2861
2862 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2863 (clone_section): Handle out of memory failures. Rename var to
2864 avoid c++ reserved word.
2865
25f72752
AM
28662000-09-18 Alan Modra <alan@linuxcare.com.au>
2867
2868 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2869 stub_name param to stub_sec_name.
2870 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2871
0752970e
NC
28722000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2873
2874 * emultempl/m68kelf.em: New file.
2875 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2876 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2877 * Makefile.in: Regenerate.
2878
92b7e9d8
AM
28792000-09-15 Alan Modra <alan@linuxcare.com.au>
2880
2881 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2882 only as needed.
2883
9b14b192
NC
28842000-09-13 Nick Clifton <nickc@redhat.com>
2885
2886 * ldmain.c (multiple_definition): Disable relaxation if
2887 multiple symbol definitions are encountered - otherwise the
2888 linker could abort with an assertion failure.
2889
891fa266
NC
28902000-09-10 Nick Clifton <nickc@redhat.com>
2891
2892 * mri.c: Fix formatting.
2893
5d64ca4e
L
28942000-09-07 H.J. Lu <hjl@gnu.org>
2895
2896 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2897 * configure: Rebuild.
2898
dd94604f
L
28992000-09-07 H.J. Lu <hjl@gnu.org>
2900
2901 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2902 * Makefile.in: Rebuild.
2903
71bfc0ae
AM
29042000-09-07 Alan Modra <alan@linuxcare.com.au>
2905
2906 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2907 broken list handling. Create __start_SECNAME and __stop_SECNAME
2908 when no place-holder. Add some comments. Test both SEC_CODE and
2909 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 2910 Handle case where no output section statement created.
71bfc0ae 2911
4a428502
AO
29122000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2913
2914 * configure.tgt (sh-*-linux*): Added.
2915 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2916 * Makefile.in: Rebuilt.
2917 * emulparams/shelf_linux.sh: New file.
2918 * emulparams/shlelf_linux.sh: New file.
2919
f9989030
AM
29202000-09-06 Alan Modra <alan@linuxcare.com.au>
2921
2922 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2923 try shuffling sections when the orphan happens to be the place
2924 holder. Keep count of unique section names generated so we speed
2925 the search for a new name.
2926
58cccadb
AO
29272000-09-06 Alexandre Oliva <aoliva@redhat.com>
2928
2929 * configure: Rebuilt with new libtool.m4.
2930
5b343f5a
NC
29312000-09-05 Nick Clifton <nickc@redhat.com>
2932
2933 * Makefile.in: Regenerate.
2934 * aclocal.m4: Regenerate.
2935 * configure: Regenerate.
2936 * config.in: Regenerate.
2937 * po/ld.pot: Regenerate.
2938
2939 * ldint.texinfo: Remove CVS revision marker - it foils local
2940 comparisons.
2941
2942 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 2943
a854a4a7
AM
29442000-09-05 Alan Modra <alan@linuxcare.com.au>
2945
3231d22e
AM
2946 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2947 to stub section flags.
2948 (hppa_for_each_input_file_wrapper): New.
2949 (hppa_lang_for_each_input_file): New.
2950 (lang_for_each_input_file): Define to call above.
2951 (multi_subspace): New.
2952 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2953 (PARSE_AND_LIST_PROLOGUE): Define.
2954 (PARSE_AND_LIST_LONGOPTS): Define.
2955 (PARSE_AND_LIST_OPTIONS): Define.
2956 (PARSE_AND_LIST_ARGS_CASES): Define.
2957 (hppaelf_finish): Call elf32_hppa_set_gp.
2958 (hppaelf_set_output_arch): Remove.
2959 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2960
2961 * emulparams/hppalinux.sh (ELFSIZE): Define.
2962 (MACHINE): Define.
2963 (OTHER_READONLY_SECTIONS): Define.
2964 (DATA_PLT): Define.
2965 (GENERATE_SHLIB_SCRIPT): Define.
2966
5f992e62
AM
2967 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2968 to const throughout. Change `void *' to `PTR' throughout.
2969 (lang_memory_default): Function is local to file, add `static'.
2970
2971 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2972 (ehppalinux.c): Likewise.
2973 (earmelf.c): Likewise.
2974 (earmelf_linux.c): Likewise.
2975 (earmelf_linux26.c): Likewise.
2976 * Makefile.in: Regenerate.
2977
a854a4a7
AM
2978 * ld.h (ld_config_type): Add unique_orphan_sections.
2979 * lexsup.c (OPTION_UNIQUE): Define.
2980 (ld_options): Add "--unique".
2981 (parse_args): Handle it.
2982 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2983 search for an existing output section if unique_orphan_sections is
2984 set. Make use of bfd_get_unique_section_name rather than
2985 duplicating code here.
2986 * ld.texinfo: Describe --unique.
2987
2988 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2989 optional arg to split-by-file.
2990 (parse_args): Handle them.
2991 * ld.texinfo: Update description of these options.
2992 * ldwrite.c (clone_section): Pass in the section name. Replace
2993 local code with bfd_get_unique_section_name.
2994 (split_sections): Tidy code and comments. Use a list traversal
2995 more appropriate to the list construction. Handle cooked section
2996 sizes. Split when split_by_reloc reached rather than exceeded.
2997 Track section size and split when split_by_file reached. Fix
2998 link_order_tail (even though it's not used).
2999 (ldwrite): Modify condition for calling split_sections to suit
3000 changed split_by_reloc and split_by_file.
3001 * ldmain.c (main): Init config.split_by_reloc and
3002 config.split_by_file to -1.
3003 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3004 Change split_by_file to bfd_size_type.
3005
18e03609
NC
30062000-09-02 Nick Clifton <nickc@redhat.com>
3007
3008 * configure.in: Increase version number to 2.10.91.
3009 * NEWS: Mention new ability to support removal of duplicate DWARF2
3010 debug information.
3011 * configure: Regenerate.
3012 * aclocal.m4: Regenerate.
3013 * config.in: Regenerate.
3014
3a9d486c
NC
30152000-09-02 Daniel Berlin <dberlin@redhat.com>
3016
3017 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3018 sections.
a2b64bed 3019 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
3020 * scripttempl/elfd10v.sc: Ditto.
3021 * scripttempl/elfd30v.sc: Ditto.
3022 * scripttempl/elfi370.sc: Ditto.
3023 * scripttempl/elfm68hc11.sc: Ditto.
3024 * scripttempl/elfm68hc12.sc: Ditto.
3025 * scripttempl/elfi386beos.sc: Ditto.
3026 * scripttempl/v850.sc: Ditto.
50bbae35 3027
ac48eca1
AO
30282000-08-31 Alexandre Oliva <aoliva@redhat.com>
3029
3030 * acinclude.m4: Include libtool and gettext macros from the
3031 top level.
3032 * aclocal.m4, configure: Rebuilt.
3033
c13b1b77
NC
30342000-08-25 Nick Clifton <nickc@redhat.com>
3035
3036 * ldlang.c (open_output): When choosing the target for a
3037 particular endianness, do nothing if the target is not
3038 supported.
3039
dcb0bd0e
L
30402000-08-25 H.J. Lu <hjl@gnu.org>
3041
3042 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3043 check -rpath nor LD_RUN_PATH for cross link.
3044 * ld.texinfo: Document the change.
3045
5bcac8a4
HPN
30462000-08-24 Hans-Peter Nilsson <hp@axis.com>
3047
3048 * NEWS: Mention support for CRIS.
3049
6dd8c765
L
30502000-08-23 H.J. Lu <hjl@gnu.org>
3051
3052 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3053 the current runpath list from bfd_elf_get_runpath_list ()
3054 before search.
3055
ec4eb78a
L
30562000-08-22 H.J. Lu <hjl@gnu.org>
3057
3058 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3059 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3060 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3061 trace_file_tries is non-zero.
3062 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3063 if trace_file_tries is non-zero.
3064
3065 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 3066 * NEWS: Mention it.
ec4eb78a 3067
22b36938
JE
30682000-08-14 Jason Eckhardt <jle@cygnus.com>
3069
3070 * NEWS: Mention i860 support.
3071
d73e9da0
AS
30722000-08-14 Andreas Schwab <schwab@suse.de>
3073
3074 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 3075 syntax.
d73e9da0 3076
9ac4db9c
GK
30772000-08-10 Geoff Keating <geoffk@cygnus.com>
3078
3079 * scripttempl/elf.sc: Add a comment giving the correspondence
3080 between sections, per-datum sections, and linkonce sections. Make
3081 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3082 .sbss2.
3083
165589e4
JE
30842000-08-10 Jason Eckhardt <jle@cygnus.com>
3085
3086 * emulparams/elf32_i860.sh: New file.
3087 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3088 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3089 (eelf32_i860.c): New rule.
3090 * Makefile.in: Regenerate.
3091
345a835d
NC
30922000-08-10 Nick Clifton <nickc@cygnus.com>
3093
3094 * emulparams/mipspe.sh (ENTRY): Add definition.
3095
e374f1d9
NC
30962000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3097
3098 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3099 in error message.
3100
236d5abf
NC
31012000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3102
3103 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3104 the final size of .bss section.
3105 * scripttempl/elfm68hc12.sc: Likewise.
3106
4b209b22
AM
31072000-08-04 Alan Modra <alan@linuxcare.com.au>
3108
3109 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3110 gld${EMULATION_NAME}_parse_args for consistency. Combine
3111 lastoptind and prevoptind vars, and keep track of last optind.
3112 (gld_${EMULATION_NAME}_list_options): Rename to
3113 gld${EMULATION_NAME}_list_options.
3114
28423a68
AM
31152000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3116
3117 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3118 (i586-sco-sysv5uw7.1.0).
3119
b2009ff7
L
31202000-07-27 H.J. Lu <hjl@gnu.org>
3121
3122 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3123 (PARSE_AND_LIST_PROLOGUE): New.
3124 (PARSE_AND_LIST_LONGOPTS): Likewise.
3125 (PARSE_AND_LIST_OPTIONS): Likewise.
3126 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3127 (PARSE_AND_LIST_EPILOGUE): Likewise.
3128
04925e1e
AM
31292000-07-28 Alan Modra <alan@linuxcare.com.au>
3130
41392f03
AM
3131 * emultempl/armelf.em: Elide functions common to elf32.em,
3132 ie. most of the file.
3133 (arm_elf_after_open): New. Do arm specific things then call
3134 gld${EMULATION_NAME}_after_open.
3135 (arm_elf_before_allocation): New. Call
3136 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3137 (PARSE_AND_LIST_PROLOGUE): Define.
3138 (PARSE_AND_LIST_SHORTOPTS): Define.
3139 (PARSE_AND_LIST_LONGOPTS): Define.
3140 (PARSE_AND_LIST_OPTIONS): Define.
3141 (PARSE_AND_LIST_ARGS_CASES): Define.
3142 (LDEMUL_AFTER_OPEN): Define.
3143 (LDEMUL_BEFORE_ALLOCATION): Define.
3144 (LDEMUL_BEFORE_PARSE): Define.
3145 (LDEMUL_FINISH): Define.
3146
3147 * emultempl/hppaelf.em: Similarly zap most of this file.
3148 (hppaelf_add_stub_section): Prototype.
3149 (hppaelf_layaout_sections_again): Prototype.
3150 (hook_in_stub): Prototype.
3151 (LDEMUL_SET_OUTPUT_ARCH): Define.
3152 (LDEMUL_FINISH): Define.
3153 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3154
3155 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3156 (EXTRA_EM_FILE): New.
3157 * emulparams/armelf_linux.sh: Likewise.
3158 * emulparams/armelf_linux26.sh: Likewise.
3159 * emulparams/hppalinux.sh: Likewise.
3160 * emulparams/hppaelf.sh: Likewise.
3161 (NOP): Define.
3162
3163 * emultempl/elf32.em: Fix formatting.
3164 (EXTRA_EM_FILE): Source it.
3165 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3166 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3167 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3168 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3169 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3170 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3171 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3172 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3173 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3174 allow functions in this file to be overridden.
3175 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3176
3177 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3178
04925e1e
AM
3179 * emultempl/elf32.em: Reorganize file.
3180
88cdf297
NC
31812000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3182
3183 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3184 specific option to fit 64-bit executable in the lower
3185 31-bit address range. This is done by changing start
3186 address of .interp (the very first section of executable)
3187 and then setting EF_ALPHA_32BIT elf header flag.
3188
20bccb34
NC
31892000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3190
3191 * emultempl/m68kcoff.em: New file.
3192 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3193 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3194 generic.em.
3195 * Makefile.in: Regenerate.
3196
699845ef
L
31972000-07-20 H.J. Lu <hjl@gnu.org>
3198
3199 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3200 and "disable-new-dtags" to stop getopt from treating -d/-e as
3201 abbreviations for these options.
3202
6c1439be
L
32032000-07-20 H.J. Lu <hjl@gnu.org>
3204
3205 * ld.texinfo: Add documentation for --disable-new-dtags and
3206 --enable-new-dtags.
3207
3208 * ldmain.c (main): Initialize link_info.new_dtags to false.
3209
3210 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3211 --disable-new-dtags and --enable-new-dtags.
3212 (gld_${EMULATION_NAME}_list_options): Likewise.
3213
28c309a2
NC
32142000-07-05 Kenneth Block <krblock@computer.org>
3215
a2b64bed
NC
3216 * lexsup.c: Add optional style to demangle switch
3217 * ld.texinfo: Document optional style to demangle switch.
50bbae35 3218
9d06555c
HPN
32192000-07-20 Hans-Peter Nilsson <hp@axis.com>
3220
3221 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3222 ecrislinux.o.
3223 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3224 Regenerate dependencies.
3225 * Makefile.in: Rebuild.
3226 * configure.tgt (cris-*-*): New target.
3227 * emulparams/crisaout.sh, emulparams/criself.sh,
3228 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3229 * po/POTFILES.in, po/ld.pot: Regenerate.
3230
19e3be22
L
32312000-07-20 H.J. Lu <hjl@gnu.org>
3232
3233 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3234 Print out ignored -z options.
3235
e0ee487b
L
32362000-07-19 H.J. Lu <hjl@gnu.org>
3237
19e3be22
L
3238 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3239 (PARSE_AND_LIST_PROLOGUE): New.
3240 (PARSE_AND_LIST_LONGOPTS): Likewise.
3241 (PARSE_AND_LIST_OPTIONS): Likewise.
3242 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3243
3244 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3245
3246 * lexsup.c (ld_options): Comment out 'z'.
3247 (parse_args): Likewise.
3248
3249 * emultempl/elf32.em: Include "elf/common.h".
3250 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3251 options.
3252 (gld_${EMULATION_NAME}_list_options): Likewise.
3253
3254 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 3255
49e56c49
L
32562000-07-19 H.J. Lu <hjl@gnu.org>
3257
3258 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3259 bfd_elf_set_dt_needed_soname ().
3260
9d68bc82
DD
32612000-07-18 DJ Delorie <dj@cygnus.com>
3262
3263 * pe-dll.c (pe_dll_id_target): check object target name also
3264
53db15ed
HPN
32652000-07-18 Hans-Peter Nilsson <hp@axis.com>
3266
3267 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3268 ${INIT_END} if relocating.
3269 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3270
0ad8cf4c
DD
32712000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3272
a2b64bed 3273 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
3274 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3275 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3276 errors introduced by the old dynamic lib search order.
3277
874c8c99
DD
32782000-07-17 DJ Delorie <dj@cygnus.com>
3279
3280 * pe-dll.c (process_def_file): auto-export data items also
3281 (pe_process_import_defs): also see if _imp_ form needed
3282
5b4cf3f4
DD
32832000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3284
3285 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3286 for dll import libraries
3287
062739d1
NC
32882000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3289
3290 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 3291 gcc 2.95.2 and later.
062739d1 3292
1c64c4ed
NC
32932000-07-11 Kazu Hirata <kazu@hxi.com>
3294
50bbae35
AM
3295 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3296 message.
1c64c4ed 3297
b71e2778
AM
32982000-07-10 Alan Modra <alan@linuxcare.com.au>
3299
3300 * ldemul.h (struct lang_input_statement_struct): Remove forward
3301 declaration.
3302 (struct search_dirs): Likewise.
3303 * ldfile.h (struct lang_input_statement_struct): Likewise.
3304 Protect file from multiple inclusion.
3305 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3306 declaration from macro to file scope.
3307
3308 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3309 * ldgram.y: Likewise here.
3310 * ldlang.c: And here.
3311 * ldmain.c: And here.
3312 * mpw-elfmips.c: And here.
3313 * mpw-eppcmac.c: And here.
3314 * emultempl/aix.em: And here.
3315 * emultempl/armcoff.em: And here.
3316 * emultempl/armelf.em: And here.
3317 * emultempl/armelf_oabi.em: And here.
3318 * emultempl/beos.em: And here.
3319 * emultempl/elf32.em: And here.
3320 * emultempl/hppaelf.em: And here.
3321 * emultempl/linux.em: And here.
3322 * emultempl/lnk960.em: And here.
3323 * emultempl/pe.em: And here.
3324 * emultempl/sunos.em: And here.
3325 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3326 * mpw-idtmips.c: Ditto.
3327 * emultempl/generic.em: Ditto.
3328 * emultempl/gld960.em: Ditto.
3329 * emultempl/gld960c.em: Ditto.
3330 * emultempl/mipsecoff.em: Ditto.
3331 * emultempl/ticoff.em: Ditto.
3332 * emultempl/vanilla.em: Ditto.
3333
3334 * pe-dll.c: Include ldfile.h
3335 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3336
3337 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3338 arguments to bfd_elf32_size_dynamic_sections call.
3339 (gldelf32ebmip_place_orphan): Add missing arguments to
3340 lang_leave_output_section_statement call.
3341
2ef53d66
L
33422000-07-10 H.J. Lu <hjl@gnu.org>
3343
3344 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3345 DLL_SUPPORT.
3346 (strhash): Likewise.
3347 (compute_dll_image_base): Likewise.
3348 (pe_undef_found_sym): Likewise.
3349 (pe_undef_cdecl_match): Likewise.
3350 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3351 argument "arch" with ATTRIBUTE_UNUSED.
3352
9a8cbb09
AM
33532000-07-10 Alan Modra <alan@linuxcare.com.au>
3354
3355 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3356
3357 From Ryan Bradetich <rbradetich@uswest.net>
3358 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 3359
4900fc06
AM
33602000-07-09 Alan Modra <alan@linuxcare.com.au>
3361
3362 Changes to create multiple linker stubs, positioned immediately
3363 before the section where they are required.
3364 * emultempl/hppaelf.em: Include elf32-hppa.h.
3365 (stub_sec, file_chain): Delete.
3366 (hppaelf_create_output_section_statements): Don't make a stub
3367 section here.
3368 (hook_stub_info): New struct.
3369 (hook_in_stub): New function.
3370 (hppaelf_add_stub_section): New function.
3371 (hppaelf_finish): Do nothing for relocateable links. Modify the
3372 call to elf32_hppa_size_stubs. Move code for updating section
3373 layout from here...
3374 (hppaelf_layaout_sections_again): ..to here, a new function.
3375
3376 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3377 broken list handling. Pass in a pointer to the list.
3378 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3379 for above changes.
3380 (hppaelf_before_parse): Prototype.
3381 (hppaelf_set_output_arch): Prototype.
3382 (hppaelf_create_output_section_statements): Prototype.
3383 (hppaelf_delete_padding_statements): Prototype.
3384 (hppaelf_finish): Prototype.
3385
3386 Merge from elf32.em
3387 * emultempl/hppaelf.em: Include ctype.h.
3388 (struct orphan_save): New.
3389 (gld${EMULATION_NAME}_place_orphan): New.
3390 (output_rel_find): New.
3391 (hppaelf_get_script): Update from elf32.em.
3392 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3393 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 3394 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
3395
3396 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3397 ehppalinux.o, sort it. Regenerate dependencies.
3398 (ehppalinux.c): Depend on hppaelf.em
3399 * Makefile.in: Regenerate.
3400
3401 * configure.tgt: targ_emul=hppalinux for hppa*linux
3402
3403 * emulparams/hppalinux.sh: New.
3404 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3405
227aeb07
AM
34062000-07-08 Alan Modra <alan@linuxcare.com.au>
3407
3408 * lexsup.c (parse_args): Copy section name.
3409
28609fd4 34102000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 3411
2ef53d66 3412 * emultempl/pe.em: institute the following search order for
602e90d3
DD
3413 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3414 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3415 static lib (libfoo.a) if none of the above are found.
3416
5f577f7d
DD
34172000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3418
50bbae35 3419 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 3420 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 3421 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
3422 (gld_${EMULATION_NAME}_parse): Handle.
3423 (strhash): New static function.
50bbae35 3424 (compute_dll_image_base): New static function.
5f577f7d
DD
3425 (gld_${EMULATION_NAME}_set_symbols): Use.
3426
9a8cbb09 34272000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
3428
3429 * MAINTAINERS: new
3430
3548145d 34312000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
3432
3433 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3434 * emulparams/elf32btsmip.sh: New file.
3435 * Makefile.am: Add traditional mips target.
3436 * Makefile.in: Rebuild.
3437
67798033
L
34382000-07-01 H.J. Lu <hjl@gnu.org>
3439
3440 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3441 automake to use YLWRAP.
3442 * Makefile.in: Rebuild.
3443
0bdaf48b
AM
34442000-07-01 Alan Modra <alan@linuxcare.com.au>
3445
3446 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3447 (CLEANFILES): Add DEPA.
3448 * Makefile.in: Regenerate.
3449
c9e769c2
TW
34502000-06-30 Timothy Wall <twall@ppc>
3451
3452 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3453 the page in the upper octet of the address.
3454
65aa24b6
NC
34552000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3456
3457 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3458
4667035e
AM
34592000-06-24 Alan Modra <alan@linuxcare.com.au>
3460
3461 * NEWS: arm-elf does --gc-sections too.
3462
1581f8c9
AM
34632000-06-22 Alan Modra <alan@linuxcare.com.au>
3464
3465 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3466 find one.
3467 * Makefile.in: Regenerate.
3468
01580992
L
34692000-06-21 H.J. Lu <hjl@gnu.org>
3470
3471 * Makefile.am: Rebuild dependency.
3472 * Makefile.in: Rebuild.
3473
bbeb2e03
L
34742000-06-20 H.J. Lu <hjl@gnu.org>
3475
3476 * Makefile.am: Rebuild dependency.
3477 * Makefile.in: Rebuild.
3478
74459f0e
TW
34792000-06-20 Timothy Wall <twall@cygnus.com>
3480
3481 * scripttempl/tic54xcoff.sc: New.
3482 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3483 * gen-doc.texi: Add flag for TI COFF.
3484 * ld.texinfo: Add documentation for TI COFF handling switches.
3485 * emultempl/ticoff.em: New. TI COFF handling.
3486 * configure.tgt: Add tic54x target.
3487 * Makefile.am: Add tic54x target.
3488 * Makefile.in: Ditto.
3489
2ab47eed
AM
34902000-06-20 Alan Modra <alan@linuxcare.com.au>
3491
3492 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3493 checking for backslashes.
3494
919e4093
AM
34952000-06-19 Alan Modra <alan@linuxcare.com.au>
3496
3497 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3498
987fd5b4
AM
34992000-06-18 Alan Modra <alan@linuxcare.com.au>
3500
3501 * NEWS: Update list of targets supporting --gc-sections.
3502
3503 * scripttempl/elf.sc: KEEP .eh_frame contents.
3504 * scripttempl/elfd30v.sc: Same here.
3505
60bcf0fa
NC
35062000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3507
3508 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3509 and m68hc11 (elf).
3510 * Makefile.in: Rebuild.
3511 * configure.tgt: Recognize m68hc12 and m68hc11.
3512 * scripttempl/elfm68hc12.sc: New file.
3513 * emulparams/m68hc12elfb: New emulation.
3514 * emulparams/m68hc12elf: New emulation.
3515 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3516 (includes a memory.x script to define the ROM and RAM banks).
3517 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3518 New configuration files for support of Motorola 68hc11
3519
c7c54483
AM
35202000-06-15 Alan Modra <alan@linuxcare.com.au>
3521
3522 * ldmain.c (main): Only change SEC_READONLY for final link.
3523
bcef29e6
L
35242000-06-13 H.J. Lu <hjl@gnu.org>
3525
3526 * configure: Regenerate.
3527
946efd95
DB
35282000-06-08 David O'Brien <obrien@FreeBSD.org>
3529
3530 * configure.in (VERSION): Update to show this is the CVS mainline.
3531
57a6fd07
DB
35322000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3533
3534 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3535 input objects to be ECOFF.
3536 (check_sections): einfo takes %B, not %P, to print a BFD name.
3537
e06cae36
L
35382000-06-05 Michael Matz <matz@ifh.de>
3539
3540 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 3541 version scripts.
e06cae36 3542
d952f17a 3543 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 3544
2f0b56c0
DC
35452000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3546
3547 * emulparams/avr1200.sh (STACK): Define as 0.
3548 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3549 * emulparams/avr4433.sh (STACK): Likewise.
3550 * emulparams/avr44x4.sh (STACK): Likewise.
3551 * emulparams/avr85xx.sh (STACK): Likewise.
3552 * emulparams/avrmega103.sh (STACK): Likewise.
3553 * emulparams/avrmega161.sh (STACK): Likewise.
3554 * emulparams/avrmega603.sh (STACK): Likewise.
3555 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3556 (__stack): Define from ${STACK} for main().
3557
2114f57b
AM
35582000-05-26 Alan Modra <alan@linuxcare.com.au>
3559
3560 * Makefile.am: Update dependencies with "make dep-am"
3561 * Makefile.in: Regenerate.
3562
5af11cab
AM
35632000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3564
3565 * ldmain.c: Include filenames.h.
3566 (set_scripts_dir): Support backslashes in program name.
3567
1f0df59a
NC
35682000-05-22 Igor Shevlyakov <igor@windriver.com>
3569
3570 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
3571 read-only, don't forget to reset SEC_READONLY because it
3572 could be already set.
1f0df59a 3573
176355da
NC
35742000-05-22 Thomas de Lellis <tdel@windriver.com>
3575
50bbae35
AM
3576 * ld.1: Add documentation for new command line option:
3577 --section-start <sectionname>=<sectionorg>
3578 This is a generic version of -Ttext etc. which accepts
3579 any section name as a parameter instead of just text/data/
3580 bss.
3581 * ld.texinfo: More docs.
3582 * NEWS: More docs.
3583 * lexsup.c: (parse_args): Recognize new command line option.
176355da 3584 (ld_options): Add new option.
50bbae35 3585
8c5ff972
L
35862000-05-18 H.J. Lu <hjl@gnu.org>
3587
3588 * lexsup.c (parse_args): `i' == `r', not `q'.
3589
3b16e843 35902000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
3591
3592 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3593
a712da20
NC
35942000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3595 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 3596
a712da20
NC
3597 Add support for '-q' == '--emit-relocs' switch.
3598 * ldmain.c (main): Default to false.
3599 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3600 * NEWS: Describe the emitrelocations switch.
3601 * ld.texinfo: Describe the emitrelocations switch.
3602
690a460e
NC
36032000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3604
a2b64bed 3605 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
3606 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3607 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3608 link options.
50bbae35 3609
c2f1343c
AM
36102000-05-15 David O'Brien <obrien@FreeBSD.org>
3611
3612 * lexsup.c (parse_args): Update the year in the copyright notice.
3613
897083bd
AM
36142000-05-13 Alan Modra <alan@linuxcare.com.au>
3615
3616 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3617 Replace defines with those from intl/libgettext.h to quieten gcc
3618 warnings.
3619
cd4c806a
L
36202000-05-10 H.J. Lu <hjl@gnu.org>
3621
3622 * ldlang.c (open_input_bfds): Don't load the same file within
3623 a group again if the whole archive has been loaded already.
3624
93697284
AM
36252000-05-03 Alan Modra <alan@linuxcare.com.au>
3626
3627 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3628 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3629 strtoul.
3630
3b16e843 36312000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 3632
99a4150f 3633 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 3634
ebd6fc29
JW
3635 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3636 host "ia64-*-linux-gnu*".
3637
a1934524
AM
36382000-04-29 Andreas Jaeger <aj@suse.de>
3639
3640 * ld.h: Correctly check GCC version.
3641
3b16e843 36422000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
3643
3644 * Makefile.am: Add PA64 support. Add missing dependencies for
3645 PA32 elf support.
3646 * Makefile.in: Rebuilt.
3647 * configure.tgt: Add PA64 support (currently disabled).
3648
aea4bd9d
AM
36492000-04-25 Alan Modra <alan@linuxcare.com.au>
3650
3651 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3652 (output_rel_find): New function.
3653 (hold_section, hold_use): Delete.
3654 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3655 hold_interp): Make local to place_orphan.
3656 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3657 rather than place_section to find possible previous use of orphan.
3658 Similarly find the place-holder output sections. Use returned
3659 value from lang_enter_output_section_statement rather than calling
3660 lang_output_section_statement_lookup.
3661 * emultempl/armelf.em: Same here.
3662 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3663
3664 * ldlang.c (lang_enter_output_section_statement): Return output
3665 section statement.
3666 * ldlang.h (lang_enter_output_section_statement): Change
3667 declaration too.
3668
3669 * ldlang.h (lang_output_section_statement): Export it.
3670 * ldlang.c (lang_output_section_statement): Ditto.
3671
2b5fc1f5
NC
36722000-04-24 Nick Clifton <nickc@cygnus.com>
3673
3674 * ld.texinfo (Output Section Data): Add note that section data
3675 commands cannot appear outside of section directives.
3676
d8475ff6
JL
36772000-04-2 Matthew Green <mrg@cygnus.com>
3678
3679 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3680
3b16e843
NC
36812000-04-21 Richard Henderson <rth@cygnus.com>
3682 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
3683
3684 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3685 (eelf64_ia64.c): New rule.
3686 * Makefile.in: Rebuild.
3687 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3688 * emulparams/elf64_ia64.sh: New file.
50bbae35 3689
c9637625
RH
36902000-04-21 Richard Henderson <rth@cygnus.com>
3691
3692 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3693
28ea9521
AM
36942000-04-19 Alan Modra <alan@linuxcare.com.au>
3695
3696 * dep-in.sed: Match space at start of file name, not at end.
3697
20d04697
L
36982000-04-18 H.J. Lu <hjl@gnu.org>
3699
3700 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3701 lang_leave_output_section_statement () after calling
3702 lang_enter_output_section_statement ().
3703 * emultempl/armelf.em: Likewise.
3704
5ba47421
AM
37052000-04-18 Alan Modra <alan@linuxcare.com.au>
3706
3707 * emultempl/elf32.em (struct orphan_save): Add section field.
3708 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3709 better order, and place first orphan section as we did before the
3710 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3711 Don't call make_bfd_section here, let wild_doit do the job for us.
3712 Don't build a statement list when we'll only throw it away.
3713 * emultempl/armelf.em: Ditto.
3714 * emultempl/pe.em: Similarly.
3715
bdbe5705
GK
37162000-04-14 Geoff Keating <geoffk@cygnus.com>
3717
3718 * scripttempl/elfppc.sc: Remove.
3719 * emulparams/elf32ppc.sh: Use elf.sc.
3720 * emulparams/elf32lppc.sh: Use elf.sc.
3721 * emulparams/elf32ppclinux.sh: Use elf.sc.
3722 * emulparams/elf32ppcsim.sh: New file.
3723 * emulparams/elf32lppcsim.sh: New file.
3724 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3725 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3726 * Makefile.in: Regenerate.
3727 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3728
01cc8ff8
AM
37292000-04-14 Alan Modra <alan@linuxcare.com.au>
3730
5ba47421 3731 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 3732 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
3733 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3734 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
3735 Also set all relocateable section start addresses.
3736
6c86c541
GK
37372000-04-13 Geoff Keating <geoffk@cygnus.com>
3738
3739 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3740 Add new BSS_PLT variable for when .plt need not be contained in
3741 the file. Move _etext so that it is also after .fini, and provide
3742 both etext and _etext with a leading underscore. Mark the start
3743 and end of .sbss.
3744
6a345e87
AM
37452000-04-12 Alan Modra <alan@linuxcare.com.au>
3746
3747 * emultempl/elf32.em (struct orphan_save): New.
3748 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3749 hold_interp): Make them struct orphan_save.
3750 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3751 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3752 the end of the relevant section list. Also add associated section
3753 statements to the end of any previous orphan statements.
3754 * emultempl/armelf.em: Similarly.
3755 * emultempl/pe.em: Similarly.
3756
8be86746
AM
37572000-04-11 Alan Modra <alan@linuxcare.com.au>
3758
3759 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3760
3b16e843 37612000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 3762
a2d91340 3763 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 3764 --enable-build-warnings option.
a2d91340
AC
3765 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3766 * Makefile.in, configure: Re-generate.
3767
41b49281
AM
37682000-04-04 Alan Modra <alan@linuxcare.com.au>
3769
8ad3436c
AM
3770 * po/ld.pot: Regenerate.
3771
3772 * lexsup.c (help): Restore translated part of bug string.
3773
41b49281
AM
3774 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3775 (DEP): Quote when passing vars to sub-make. Add warning message
3776 to end.
3777 (DEP1): Rewrite for "gcc -MM".
3778 (CLEANFILES): Add DEP2.
3779 Update dependencies.
3780 * Makefile.in: Regenerate.
3781
c20f4f8c
AM
37822000-04-03 Alan Modra <alan@linuxcare.com.au>
3783
3784 * ld.h: #include "bin-bugs.h"
3785 * lexsup.c (help): Use REPORT_BUGS_TO.
3786
adde6300
AM
37872000-03-27 Denis Chertykov <denisc@overta.ru>
3788
3789 * configure.tgt (avr-*-*): New target support.
3790 * Makefile.am: Likewise.
3791 * scripttempl/elf32avr.sc: New script file.
3792 * emulparams/avr1200.sh: New file.
3793 * emulparams/avr23xx.sh: New file.
3794 * emulparams/avr4433.sh New file.
3795 * emulparams/avr44x4.sh New file.
3796 * emulparams/avr85xx.sh New file.
3797 * emulparams/avrmega103.sh New file.
3798 * emulparams/avrmega161.sh New file.
3799 * emulparams/avrmega603.sh New file.
3800 * Makefile.in: Regenerate.
3801
9282ff41
L
38022000-03-09 Andreas Jaeger <aj@suse.de>
3803
3804 * Makefile.am (check-DEJAGNU): Also unset LANG.
3805 * Makefile.in: Rebuild.
3806
a9998805
ILT
38072000-03-06 Ian Lance Taylor <ian@zembu.com>
3808
3809 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3810 archive.
3811
f9bc20e7
NC
38122000-03-02 H.J. Lu <hjl@gnu.org>
3813
3814 * emulparams/elf32mcore.sh: Include "getopt.h".
3815
4e277b38
ILT
38162000-03-01 Ian Lance Taylor <ian@zembu.com>
3817
3818 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3819
f0c87f88
NC
38202000-03-01 H.J. Lu <hjl@gnu.org>
3821
3822 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3823 * emulparams/shpe.sh: Likewise.
3824
38252000-03-01 Nick Clifton <nickc@cygnus.com>
3826
3827 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3828 to unused parameters.
3829
3830 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3831 functions only used by DLL code.
3832 (_place_orphan): Initialise 'dollar'.
3833
b6f29aaa
L
38342000-03-01 H.J. Lu <hjl@gnu.org>
3835
3836 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3837 indicate if the undefined symbol is a fatal error or not.
3838 Don't delete the output file if "fatal" is false.
3839
af28fce3
L
38402000-02-29 H.J. Lu <hjl@gnu.org>
3841
50bbae35 3842 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
3843 Set LC_COLLATE and LC_ALL to null and export them. It is for
3844 sort which expects the C locale.
3845 Add $(LIBS) to all $(HOSTING_LIBS).
3846 * Makefile.in: Rebuild.
3847
40d109bf
AM
38482000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3849
3850 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3851 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3852 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3853 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3854 find_potential_libraries.
3855
db5be682
JB
38562000-02-28 Jim Blandy <jimb@redhat.com>
3857
3858 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 3859 list entries; the lexer considers commas to be valid part of a
db5be682
JB
3860 filename, so in something like `foo, bar' the comma is considered
3861 part of the first filename, `foo,'.
3862 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3863
3558ff4c
ILT
38642000-02-27 Loren J. Rittle <ljrittle@acm.org>
3865
3866 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3867 host "i[3456]86-*-freebsdelf*".
3868
4eee2681
ILT
38692000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3870
3871 * scripttempl/i386go32.sc: Move misplaced semicolons.
3872
8d75d12d
ILT
38732000-02-25 Ian Lance Taylor <ian@zembu.com>
3874
3875 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3876 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3877 (eelf64hppa.c, ehppaelf.c): Remove targets.
3878 * Makefile.in: Rebuild.
3879
a1836d49
AO
38802000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3881
ad51fb57
AO
3882 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3883 GNU/Linux/sparc, but keep the default as 32.
3884
a1836d49
AO
3885 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3886 it default if sparcv9 or sparc64.
3887
344a211f
NC
38882000-02-24 Nick Clifton <nickc@cygnus.com>
3889
3890 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3891 * Makefile.in: Regenerate.
3892 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3893
3894 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3895 find_potential_libraries.
3896 * ldemul.c (ldemul_find_potential_libraries): New function.
3897
3898 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 3899 exported.
344a211f
NC
3900 (ldfile_open_file): Call ldemul_find_potential_libraries.
3901 * ldfile.h: Add prototype for ldfile_open_file_search.
3902
3903 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3904
3905 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3906 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3907
3908 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3909 (gld_X_find_potential_libraries): New function. Search for
3910 libraries called "*.lib".
3911
a2b64bed 3912 * scripttempl/pe.sc: Add .pdata section.
344a211f 3913
eaba1dd3
RH
39142000-02-23 Richard Henderson <rth@cygnus.com>
3915
3916 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3917 Add and use memory regions.
3918
5b93d8bb
AM
39192000-02-23 Linas Vepstas (linas@linas.org)
3920
3921 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3922
3923 * Makefile.am: Add support for Linux/IBM 370.
3924 * configure.tgt: Likewise.
3925
3926 * Makefile.in: Regenerate.
3927
f6af82bd
AM
39282000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3929
3930 * ldlang.c (print_input_section, print_data_statement,
3931 print_reloc_statement, print_padding_statement, insert_pad,
3932 size_input_section, lang_check_section_addresses,
3933 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 3934 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
3935 (lang_do_assignments): Also change `size' to unsigned.
3936
9e673ad1
RH
39372000-02-16 Richard Henderson <rth@cygnus.com>
3938
3939 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3940
562d3460
TW
39412000-02-16 Timothy Wall <twall@cygnus.com>
3942
3943 * mri.c (mri_draw_tree): Add default LMA region argument to call
3944 to lang_leave_output_section_statement.
3945 * ldlang.h: Update prototypes with LMA region arguments.
3946 * ldlang.c (lang_size_sections): Encapsulate region bounds
3947 checking in os_check_region call.
3948 (os_check_region): New function.
3949 (lang_output_section_statement_lookup): Initialize lma_region.
3950 (lang_leave_output_section_statement): Add LMA region argument.
3951 (lang_leave_overlay): Ditto.
3952 * ldgram.y: Handle LMA region syntax.
3953 * ld.texinfo (Output Section Description): Describe LMA region usage.
3954 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 3955 lma region in call to lang_leave_output_section_statement.
562d3460 3956 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 3957 lma region in call to lang_leave_output_section_statement.
562d3460 3958 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 3959 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
3960
3961
9e4ed18c
TW
39622000-02-04 Timothy Wall <twall@redhat.com>
3963
3964 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3965 octets when calculating section end addresses.
3966
32edc927
TW
39672000-02-04 Timothy Wall <twall@redhat.com>
3968
3969 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3970
4cbfc3ac
TW
39712000-02-03 Timothy Wall <twall@redhat.com>
3972
a2b64bed 3973 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 3974 octet count.
a2b64bed 3975 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
3976 print_reloc_statement, print_padding_statement): Print target
3977 address values and section sizes as bytes, not octets.
3978 (insert_pad) Calculate padding size in octets, and adjust "dot"
3979 by bytes.
3980 (size_input_section) Always adjust "dot" by bytes, not octets.
3981 (lang_check_section_addresses, lang_do_assignments) Adjust
3982 "dot" by bytes, not octets. Use the larger of the directive size
3983 or octets_per_byte for the number of octets actually allocated in
3984 the output section.
3985 (lang_set_startof) Make sure STARTOF returns a target address.
3986 (lang_one_common) Record size changes in octets.
3987 (lang_abs_symbol_at_end_of) Section end symbol's value is
3988 recorded in target bytes.
3989 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
3990 to be clear about behavior when an octet is smaller than one byte.
50bbae35 3991
305c7206
AM
39922000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3993
3994 * ldcref.c (output_cref): Don't pass message strings to printf
3995 as format arg.
3996 Update copyright.
3997
3998 * ldmisc.c (vfinfo): Same here.
3999 Update copyright.
4000
e1c47aa4
AM
40012000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4002
4003 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4004 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4005 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4006 Add missing NULL initialisers, and comments.
4007
4008 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4009
13392b77
NC
40102000-01-21 Nick Clifton <nickc@cygnus.com>
4011
4012 * ldlang.c (lang_size_sections): Fix typo in comment.
4013
cce4c4c5
NC
40142000-01-18 H.J. Lu <hjl@gnu.org>
4015
4016 * ldlang.c (lang_size_sections): Also update the current
4017 address of a region if the SEC_NEVER_LOAD bit is not set.
4018
0decc840
NC
40192000-01-10 Philip Blundell <pb@futuretv.com>
4020
4021 * configure.tgt (arm*-*-conix*): New target.
4022
4e53152f
NC
40232000-01-07 Nick Clifton <nickc@cygnus.com>
4024
4025 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
4026 line switches with -Wl, (or whatever is appropriate) if it is
4027 being invoked by a comnpiler driver program.
50bbae35 4028 Fix description of the behaviour of the -n command line switch.
4e53152f 4029
3b16e843 40302000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
4031
4032 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4033 (name_list): New.
4034 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4035 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4036 (exclude_name_list): New.
4037 ldlang.c (walk_wild_section): Support list of excluded files.
4038 (print_wild_statement): Likewise.
4039 (lang_add_wild): Likewise.
4040 * ldlang.h (lang_wild_statement_type): Likewise.
4041 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 4042
5aaace27
NC
40432000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4044
870df5dc
NC
4045 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4046 (process_def_file): Use.
4047 (pe_dll_compat_implib): New variable.
4048 (make_one): Use.
50bbae35 4049
870df5dc
NC
4050 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4051 pe_dll_compat_implib.
50bbae35
AM
4052
4053 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
4054 compat-implib options.
4055 (gld_${EMULATION_NAME}_list_options): List new options.
4056 (gld_${EMULATION_NAME}_parse_args): Handle.
4057
50bbae35 4058 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 4059 dll.
50bbae35
AM
4060
4061 * deffilep.y (opt_name): Allow "." in name.
5aaace27 4062
2f6d2f85 4063For older changes see ChangeLog-9899
252b5132
RH
4064\f
4065Local Variables:
4066mode: change-log
4067left-margin: 8
4068fill-column: 74
4069version-control: never
4070End:
This page took 0.359179 seconds and 4 git commands to generate.