* emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
54f24647
AM
12002-05-22 Alan Modra <amodra@bigpond.net.au>
2
3 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
4 calling lang_add_entry.
5
aa713662
L
62002-05-21 H.J. Lu (hjl@gnu.org)
7
8 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
9 "-z muldefs".
10 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
11
12 * ld.texinfo: Updated for --allow-multiple-definition and
13 "-z muldefs".
14
15 * ldmain.c (main): Initialize the allow_multiple_definition
16 field to false.
17
18 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
19 (ld_options): Add --allow-multiple-definition.
20 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
21
658f2588
JT
222002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
23
24 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
25 (earmelfb_nbsd.c): New rule.
26 * Makefile.in: Regenerate.
27 * configure.tgt (armeb-*-netbsdelf*): New target.
28 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
29 (arm-*-netbsd*): Likewise.
30 * emulparams/armelfb_nbsd.sh: New file.
31
ca10c62d
TR
322002-05-18 Tom Rix <trix@redhat.com>
33
34 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
35 support.
36
fae1e84f
MM
372002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
38
39 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
40 * Makefile.in: Regenerate.
41 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
42
7c8bf1e8
MM
432002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
44
45 * emulparams/avr1.sh: New file.
46 * emulparams/avr2.sh: New file.
47 * emulparams/avr3.sh: New file.
48 * emulparams/avr4.sh: New file.
49 * emulparams/avr5.sh: New file.
50 * scripttempl/avr.sc: New file.
51
c2c01aa7
AM
522002-05-15 Alan Modra <amodra@bigpond.net.au>
53
54 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
55 (lang_place_orphans): Abort if just_syms_flag.
56
f1f0d9ab
TR
572002-05-10 Tom Rix <trix@redhat.com>
58
59 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
60 architecture and machine information in the output bfd.
61 (gld*_before_parse): Remove old arch and machine code.
62 (choose_target): Rename to gld*_choose_target.
63 (rtld): Change type to int.
64 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
65 objects in XCOFF archives.
66 * ldfile.h: Update copyright date.
67
f4d73366
JJ
682002-05-10 Jakub Jelinek <jakub@redhat.com>
69
70 * ldmain.c (main): Enable -z combreloc by default.
71
d3d8a9ee
NC
722002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
73
74 * Makefile.am: Honour DESTDIR.
75 * Makefile.in: Regenerate.
76
9f88b410
RS
772002-05-07 Richard Sandiford <rsandifo@redhat.com>
78
79 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
80 (lang_enter_overlay): Remove the last two parameters.
81 (lang_leave_overlay): Take them here instead.
82 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
83 (section): Pass LMA and crossref flag to lang_leave_overlay rather
84 than lang_enter_overlay.
85 * ldlang.c (lang_memory_region_lookup): Return null for null names.
86 (lang_output_section_statement_lookup): Initialize update_dot_tree.
87 (lang_size_sections_1): Evaluate it.
88 (lang_leave_output_section_statement): Rework LMA lookup.
89 (overlay_lma, overlay_nocrossrefs): Remove.
90 (lang_enter_overlay): Remove LMA and corssref arguments.
91 (lang_enter_overlay_section): Don't set the LMA here.
92 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
93 assignment to the last section's update_dot_tree. Unconditionally
94 use the load and run-time regions specified in the OVERLAY statement.
95 Likewise the first section's LMA. Only set the other sections' LMAs
96 when no load region is given.
97
b9a743c8
NC
982002-05-06 Nick Clifton <nickc@redhat.com>
99
100 * po/sv.po: New translation.
101
a3d60be3
AM
1022002-05-04 Alan Modra <amodra@bigpond.net.au>
103
104 * emultempl/hppaelf.em (build_section_lists): New function.
105 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
106 and build_section_lists.
107
b7a26f91
KH
1082002-05-03 Kazu Hirata <kazu@cs.umass.edu>
109
110 * ld.h: Fix formatting.
111 * ldexp.c: Likewise.
112 * ldfile.c: Likewise.
113 * ldlang.c: Likewise.
114 * ldmain.c: Likewise.
115 * lexsup.c: Likewise.
116 * pe-dll.c: Likewise.
117
805fc799
AM
1182002-05-02 Alan Modra <amodra@bigpond.net.au>
119
120 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
121 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
122 (build_section_lists): Do output_section tests here.
123
cc7e59b2
TR
1242002-04-30 Tom Rix <trix@redhat.com>
125
126 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
127
9c1d81c1
AM
1282002-05-01 Alan Modra <amodra@bigpond.net.au>
129
130 Long branch stubs, multiple stub sections.
131 * emultempl/ppc64elf.em: Include ldctor.h.
132 (stub_file): New var.
133 (group_size): New var.
134 (ppc_create_output_section_statements): New function.
135 (struct hook_stub_info): New.
136 (hook_in_stub): New function.
137 (ppc_add_stub_section): New function.
138 (ppc_layout_sections_again): New function.
139 (build_section_lists): New function.
140 (gld${EMULATION_NAME}_finish): Rewrite.
141 (real_func): New var.
142 (ppc_for_each_input_file_wrapper): New function.
143 (ppc_lang_for_each_input_file): New function.
144 (lang_for_each_input_file): Define.
145 (PARSE_AND_LIST_PROLOGUE): Define.
146 (PARSE_AND_LIST_LONGOPTS): Define.
147 (PARSE_AND_LIST_OPTIONS): Define.
148 (PARSE_AND_LIST_ARGS_CASES): Define.
149 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
150
aa67bccf
TR
1512002-04-30 Tom Rix <trix@redhat.com>
152
153 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
154 -blibpath, -bnolibpath support.
155
94349e12
MM
1562002-04-30 Mark Mitchell <mark@codesourcery.com>
157
158 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
159 (eelf32ppcwindiss.c): New target.
160 * Makefile.in: Regenerated.
161 * configure.tgt: Add support for powerpc-*-windiss.
162 * emulparams/elf32ppcwindiss.sh: New file.
163
7b17f854
RS
1642002-04-30 Richard Sandiford <rsandifo@redhat.com>
165
166 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
167 * ldexp.c (exp_print_token): Add "infix_p" argument.
168 (exp_print_tree): Update accordingly.
169
596dafeb
AM
1702002-04-28 Alan Modra <amodra@bigpond.net.au>
171
172 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
173 * Makefile.in: Regenerate.
174 * mpw-elfmips.c: Delete.
175 * mpw-eppcmac.c: Delete.
176 * mpw-esh.c: Delete.
177 * mpw-idtmips.c: Delete.
178
a44d7f9c
JR
179Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
180
181 * emulparams/shelf32.sh (MACHINE): Now sh5.
182
944cd72c
TS
1832002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
184
185 * ldgram.y: Fix syntax warning.
186
5835c212
NC
1872002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
188
189 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
190 to prevent "-n" from being taken as an abbreviation for
191 "--no-pipeline-knowledge".
192
024531e2
AM
1932002-04-08 Alan Modra <amodra@bigpond.net.au>
194
d08a14c3
AM
195 * ldlang.c (lang_size_sections_1): Don't complain about
196 SEC_NEVER_LOAD sections having no memory region specified.
197
024531e2
AM
198 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
199
c657a1f0
MG
2002002-04-07 matthew green <mrg@redhat.com>
201
202 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
203
61bef6f1
AM
2042002-04-04 Alan Modra <amodra@bigpond.net.au>
205
206 * dep-in.sed: Cope with absolute paths.
207 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
208 Run "make dep-am".
209 * Makefile.in: Regenerate.
210
49ba2791
TS
2112002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
212
213 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
214
50e60fb5
JJ
2152002-04-03 Jakub Jelinek <jakub@redhat.com>
216
217 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
218 is smaller than maximum, round dot up to common page boundary.
219
6f12f4ca
AM
2202002-03-28 Alan Modra <amodra@bigpond.net.au>
221
222 * configure.host: Set up for generic hosts first, then tweak as
223 necessary in more specific targets.
224 (HOSTING_LIBS): Include libgcc_eh.a if found.
225
a8f1f017
AJ
2262002-03-23 Andreas Jaeger <aj@suse.de>
227
228 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
229
1d3fdf38
AM
2302002-03-21 Alan Modra <amodra@bigpond.net.au>
231
232 * Makefile.am: Run "make dep-am".
233 * Makefile.in: Regenerate.
234
79b1faa8
AM
2352002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
236
237 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
238
fcf0e35b
AM
2392002-03-20 Alan Modra <amodra@bigpond.net.au>
240
241 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
242 add the symbol to the linker hash table immediately.
243 (lang_place_undefineds): Split symbol creation out..
244 (insert_undefined): ..to here.
245
fed2999d
DB
2462002-03-18 David O'Brien <obrien@FreeBSD.org>
247
248 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
249 the contents of the buffer returned from basename function will are
250 getting overwritten while still being used.
251
beb43bb9
JH
252Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
253 Andreas Jaeger <aj@suse.de>
254 Andreas Schwab <schwab@suse.de>
255
256 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
257 * elf_x86_64.sh (ARCH): Set to i386:x86-64
258 set libraries to default to lib64 paths.
259
eb1e0e80
NC
2602002-03-18 Tom Rix <trix@redhat.com>
261
262 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
263 * configure.tgt : Same.
264 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
265 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
266 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
267 emulation parameters for better -b32, -b64 support.
268 * emulparms/aixrs6.sh : Same.
269 * emulparms/ppcmacos.sh : Same.
270 * emultempl/aix.em (choose_target) : Use new emulation parameters
271 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
272 * Makefile.in : Regenerate.
273
a1c259a1
NC
2742002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
275
276 * po/fr.po: Updated version.
277
862120bd
AM
2782002-03-18 Alan Modra <amodra@bigpond.net.au>
279
280 * ldmain.c (main): Move .text readonly flag fudges from here..
281 * ldlang.c (lang_process): ..to here.
282
d35a52e2
AM
2832002-03-14 Alan Modra <amodra@bigpond.net.au>
284
285 * ldlang.c (lang_check): Remove the word size check added in last
286 change. Treat emitrelocations case as for relocatable links.
287
9ce88e60
NC
2882002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
289
290 * po/fr.po: Updated version.
291
30cba025
AM
2922002-03-13 Alan Modra <amodra@bigpond.net.au>
293
294 * ldlang.c (lang_check): Do relocatable link checks first, so that
295 warn_mismatch can't override. Check compatible and word size too.
296
84ec0e6d
DJ
2972002-03-07 Daniel Jacobowitz <drow@mvista.com>
298
299 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
300
2d13d8c5
JJ
3012002-03-05 Jakub Jelinek <jakub@redhat.com>
302
303 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
304 DATA_SEGMENT_ALIGN.
305
b5090659
L
3062002-03-04 H.J. Lu <hjl@gnu.org>
307
308 * scripttempl/elf.sc: Put .preinit_array, .init_array and
309 .fini_array in the data segment.
310
f42ce16e
AM
3112002-03-04 Alan Modra <amodra@bigpond.net.au>
312
313 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
314
de77b6ac
RH
3152002-03-01 David Mosberger <davidm@hpl.hp.com>
316
317 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
318 .init_array, and .fini_array.
319
997e08c0
AS
3202002-02-20 Andreas Schwab <schwab@suse.de>
321
322 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
323 .IA64_unwind* in a relocatable link.
324
9a66911f
NC
3252002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
326
327 * NEWS: Mark 2.12 branch.
328
d86bcc10
MS
3292002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
330
331 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
332 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
333
69f284c7
TR
3342002-02-18 Tom Rix <trix@redhat.com>
335
336 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
337 (gld*_before_allocation): Same.
a8f1f017 338 (gld*_create_output_section_statements): Generate
69f284c7
TR
339 __rtinit if run time linking. Add librtl.a to the link.
340 (gld*_read_file): Clean.
341
82bd7b59
AM
3422002-02-18 Alan Modra <amodra@bigpond.net.au>
343
344 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
345
ac3e50bf
DB
3462002-02-18 David O'Brien <obrien@FreeBSD.org>
347
6a7f963b 348 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
ac3e50bf
DB
349 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
350 and eelf64alpha_fbsd.
6a7f963b 351 * Makefile.in: Regenerate.
ac3e50bf
DB
352 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
353 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
354 use a FreeBSD-specific emulation rather than the psABI one.
355 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
356 for all FreeBSD ELF systems.
357 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
358 emulation.
359 * emulparams/elf32ppc_fbsd.sh: Likewise.
360 * emulparams/elf64_ia64_fbsd.sh: Likewise.
361 * emulparams/elf64_sparc_fbsd.sh: Likewise.
362 * emulparams/elf64alpha_fbsd.sh: Likewise.
363 * emulparams/elf_i386_fbsd.sh: Likewise.
364 * emulparams/elf_x86_64_fbsd.sh: Likewise.
365
6ad738c5
NC
3662002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
367
368 * po/tr.po: Updated version.
369
9673c93c
AM
3702002-02-18 Alan Modra <amodra@bigpond.net.au>
371
372 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
373 (FILL): Likewise.
374
1c5e6447
HPN
3752002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
376
377 * emultempl/mmo.em (mmo_after_open): Don't call
378 _bfd_mmix_check_all_relocs when producing ELF output.
379
8bb57516
RH
3802002-02-15 Richard Henderson <rth@redhat.com>
381
de77b6ac 382 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
8bb57516
RH
383 definition. Emit a unop+nop pair.
384
49fda6c8
HPN
3852002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
386
83c2d653
HPN
387 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
388 for presence of .MMIX.reg_contents.linker_allocated before early
389 exit.
390
49fda6c8
HPN
391 * NEWS: Mention support for MMIX.
392
2c382fb6
AM
3932002-02-15 Alan Modra <amodra@bigpond.net.au>
394
395 Support arbitrary length fill patterns.
a139d329
AM
396 * ld.texinfo (Output Section Fill): Describe fill expressions.
397 (FILL): Refer to the above.
2c382fb6
AM
398 * ldexp.h (etree_value_type): Add "str" field.
399 (union etree_union): Add "str" to "value" struct.
400 (exp_bigintop): Declare.
401 (exp_get_fill): Declare.
402 * ldexp.c: Include "safe-ctype.h".
403 (exp_intop): Set value.str to NULL.
404 (exp_bigintop): New function.
405 (new_rel): Pass in "str", and set new.str from it.
406 (new_rel_from_section): Set new.str to NULL.
407 (fold_name): Adjust calls to new_rel.
408 (exp_fold_tree): Likewise.
409 (exp_get_fill): New function.
410 * ldgram.y (struct big_int bigint, fill_type *fill): New.
411 (INT): Returns a "bigint". Adjust all code handling INTs.
412 (fill_opt): Returns a "fill".
413 (fill_exp): Split out of fill_opt, use for FILL.
414 * ldlang.h (struct _fill_type): New.
415 (fill_type): Move typedef to ldexp.h.
416 (lang_output_section_statement_type): "fill" is now a pointer.
417 (lang_fill_statement_type): Likewise.
418 (lang_padding_statement_type): Likewise.
419 (lang_add_fill): Now takes a "fill_type *" param.
420 (lang_leave_output_section_statement): Likewise.
421 (lang_do_assignments): Likewise.
422 (lang_size_sections): Likewise.
423 (lang_leave_overlay_section): Likewise.
424 (lang_leave_overlay): Likewise.
425 * ldlang.c: Include ldgram.h after ldexp.h.
426 (lang_output_section_statement_lookup): Adjust for fill_type change.
427 (print_fill_statement): Likewise.
428 (print_padding_statement): Likewise.
429 (insert_pad): Now takes a "fill_type *" arg.
430 (size_input_section): Likewise.
431 (lang_size_sections_1): Likewise.
432 (lang_size_sections): Likewise.
433 (lang_do_assignments): Likewise.
434 (lang_add_fill): Likewise.
435 (lang_leave_output_section_statement): Likewise.
436 (lang_leave_overlay_section): Likewise.
437 (lang_leave_overlay): Likewise.
438 Adjust all callers of the above function.
439 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
440 starting with "0X" as well as "0x". Return bigint.str for hex
441 numbers starting with "0x" or "0X", zero bigint.str otherwise.
442 Always use base 16 for numbers starting with "$".
443 * ldmain.c: Include ldgram.h after ldexp.h.
444 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
445 of bfd_fill_link_order.
446 * pe-dll.c: Adjust lang_do_assignments calls.
447 * emultempl/elf32.em: Likewise.
448 * emultempl/hppaelf.em: Likewise.
449 * emultempl/ppc64elf.em: Likewise.
450 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
451 lang_add_assignment call.
452 * emultempl/pe.em: Likewise.
453
313e35ee
AM
4542002-02-14 Phil Edwards <pme@gcc.gnu.org>
455
a139d329 456 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
313e35ee
AM
457 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
458 the pattern in question is not a regexp.
459 * ldlang.c: Likewise.
460 * ldlang.h: Likewise.
461 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
462
2d20f7bf
JJ
4632002-02-12 Jakub Jelinek <jakub@redhat.com>
464
465 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
466 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
467 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
468 * ldexp.c (exp_data_seg): New variable.
469 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
470 (fold_binary): Handle DATA_SEGMENT_ALIGN.
471 (exp_fold_tree): Handle DATA_SEGMENT_END.
472 Pass allocation_done when recursing instead of hardcoding
473 lang_allocating_phase_enum.
474 * ldexp.h (exp_data_seg): New.
475 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
476 (lang_size_sections): New.
477 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
478 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
479 if COMMONPAGESIZE is defined.
480 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
481 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
482 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
483 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
484 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
485 libraries only.
486
06880219
AM
4872002-02-11 Alan Modra <amodra@bigpond.net.au>
488
489 * Makefile.in: Regenerate.
490
37b0ac0f
DJ
4912002-02-10 Daniel Jacobowitz <drow@mvista.com>
492
493 * lexsup.c: Remove strtoul declaration.
494
4e5bae56
DJ
4952002-02-10 Daniel Jacobowitz <drow@mvista.com>
496
497 * ldmain.c: Add prototype for main ().
498 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
499 * emultempl/lnk960.em (lnk960_choose_target): Function should
500 take two arguments.
501
1e281515
AM
5022002-02-10 Alan Modra <amodra@bigpond.net.au>
503
504 * ldlang.c (entry_section): New initialised variable.
505 (lang_finish): Use it.
506 * ldlang.h (entry_section): Declare.
507 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
508 entry_section to ".opd".
509
f92d92ff 5102002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
511
512 * ld.texinfo (Options): Add back in -nostdlib documentation,
513 which had been inadvertently removed.
514
74c44237
HPN
5152002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
516
517 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
518 register section vma to a sane value after emitting error. Make
519 fatal conditions cause program exit when emitting message.
520
5e37cc46
NC
5212002-02-08 Ivan Guzvinec <ivang@opencores.org>
522
523 * configure.tgt: Add or32-*-rtems target.
524
2d92cb7d
AO
5252002-02-08 Alexandre Oliva <aoliva@redhat.com>
526
527 Contribute sh64-elf.
528 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
529 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
530 in OTHER_RELOCATABLE_SECTIONS.
531 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
532 * emulparams/shelf32.sh (STACK_ADDR): Define.
533 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
534 (OTHER_SECTIONS): this. Removed stack settings.
535 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
536 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
537 2001-03-12 DJ Delorie <dj@redhat.com>
538 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
539 relaxing if any shmedia or mixed sections are found.
540 2001-03-07 DJ Delorie <dj@redhat.com>
541 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
542 einfo. Gracefully decline to output to non-elf formats.
543 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
544 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
545 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
546 * emulparams/shelf32.sh: Ditto.
547 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
548 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
549 comment.
550 2001-01-10 Ben Elliston <bje@redhat.com>
551 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
552 non-portable shell constructs. From Hans-Peter Nilsson.
553 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
554 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
555 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
556 dependencies to the shell script include chain.
557 * Makefile.in: Regenerate.
558 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
559 * emultempl/sh64elf.em: Update and tweak comments.
560 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
561 make a .cranges section SEC_IN_MEMORY.
562 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
563 * emultempl/sh64elf.em
564 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
565 .cranges section found to be necessary; continue and set stored
566 section contents flags for sections with non-mixed contents.
567 Use a struct sh64_section_data container and sh64_elf_section_data
568 to store contents-type flags.
569 Remove unused update of "isec".
570 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
571 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
572 access contents-type flags. Assert that the associated container
573 is initialized. Use that container, not elf_gp_size, to hold size
574 of linker-generated cranges contents.
575 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
576 * emultempl/sh64elf.em
577 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
578 there's already a .cranges section. When section flag difference
579 is found, don't NULL-check cranges a second time. Tweak comments.
580 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
581 merging, not max size, as size of ld-generated .cranges contents.
582 Don't set ELF section flags in output section. When checking for
583 needed .cranges descriptors, don't use a variable; compare
584 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
585 comments.
586 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
587 * emultempl/sh64elf.em: New file.
588 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
589 * Makefile.in: Regenerate.
590 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
591 (OTHER_RELOCATING_SECTIONS): Ditto.
592 (EXTRA_EM_FILE): New, set to sh64elf if not set.
593 * emulparams/shlelf32.sh: Stub out all settings except
594 OUTPUT_FORMAT. Source shelf32.sh.
595 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
596 OTHER_RELOCATING_SECTIONS.
597 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
598 * emulparams/shlelf64.sh: Stub out all settings except
599 OUTPUT_FORMAT. Source shelf64.sh.
600 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
601 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
602 .cranges section.
603 (DATA_START_SYMBOLS): Define, provide ___data.
604 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
605 for consecutive .data section.
606 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
607 section after .data section.
608 * emulparams/shlelf64.sh: Ditto.
609 * emulparams/shelf32.sh: Ditto.
610 (ALIGNMENT): Define to 8.
611 * emulparams/shelf32.sh: Ditto.
612 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
613 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
614 built-in linker scripts.
615 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
616 * emulparams/shlelf64.sh: New.
617 * emulparams/shelf64.sh: New.
618 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
619 targ_extra_emuls.
620 * Makefile.am: Add support for shlelf64 and shelf64.
621 * Makefile.in: Regenerate.
622 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
623 * configure.tgt (sh64-*-elf*): Add shelf as default.
624 Add shlelf to targ_extra_emuls.
625 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
626 * emulparams/shelf32.sh: New file.
627 * emulparams/shlelf32.sh: New file.
628 * Makefile.am: Add support for shlelf32 and shelf32.
629 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
630 * Makefile.in: Regenerate.
631
e3dc8847
HPN
6322002-02-05 Hans-Peter Nilsson <hp@axis.com>
633
634 * ldlang.c (lang_reset_memory_regions): Rename from
635 reset_memory_regions. Change all callers. Make public.
636 * ldlang.h (lang_reset_memory_regions): Prototype.
637 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
638 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
639 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
640 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 641
8017dbcb
HPN
6422002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
643
644 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
645 arithmetic when checking for too many global registers.
646
006336b8
JT
6472002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
648
649 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
650 (ehppanbsd.c): New rule.
651 * Makefile.in: Regenerate.
652 * configure.tgt (hppa*-*-netbsd*): New target.
653 * emulparams/hppalinux.sh: Add comment to check other files
654 that source this file it is modified, and list which
655 files that do.
656 * emulparams/hppanbsd.sh: New file.
657
da1f2fec
GK
6582002-02-01 Geoffrey Keating <geoffk@redhat.com>
659
660 * scripttempl/xstormy16.sc: Don't allocate extra space for the
661 stack.
662
48fa4a5d
HPN
6632002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
664
665 Support on-demand global register allocation from
666 R_MMIX_BASE_PLUS_OFFSET relocs.
667 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
668 mmix_set_reg_section_vma. Call
669 _bfd_mmix_finalize_linker_allocated_gregs.
670 (mmix_before_allocation): New function.
671 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
672 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
673 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
674 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
675 before .MMIX.reg_contents.
676 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
677 (mmo_after_open): New function.
678 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
679 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
680 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
681
3b16e843
NC
6822002-01-31 Ivan Guzvinec <ivang@opencores.org>
683
684 * emulparams/or32.sh: New file.
685 * emulparams/or32elf.sh: New file.
686 * scripttempl/or32.sc: New file.
687 * configure.tgt : Add support for or32.
688 * configure: Regenerate
689 * Makefile.am: Add support for or32.
690 * Makefile.in: Regenerate.
691 * NEWS: Mention support for or32.
692 * po/ld.pot: Regenerate.
693
f744d540 6942002-01-29 Chris Demetriou <cgd@broadcom.com>
313e35ee 695 Mitch Lichtenberg <mpl@broadcom.com>
f744d540
CD
696
697 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
698 * emultempl/mipself.em: New file to handle MIPS ELF embedded
699 reloc creation (ld --embedded-relocs).
700
4867be41
DJ
7012002-01-27 Daniel Jacobowitz <drow@mvista.com>
702
703 * configure: Regenerated.
704
cd8e197b
HPN
7052002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
706
707 * Makefile.am (install): Depend on install-info.
708 * Makefile.in: Regenerate.
709
9cb61eab
AM
7102002-01-26 Christian Rose <menthos@menthos.com>
711
712 * ldmain.c (main): Use full sentences to ease translation.
713
1caa7b23
NC
7142002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
715
716 * po/fr.po: Updated version.
717
1ddbd152
NC
7182002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
719
720 * po/es.po: Updated version.
721
1e84433f
AJ
7222002-01-25 Andreas Jaeger <aj@suse.de>
723
724 * ldlex.l (yy_input): Correct error check.
725
6d39955e
AM
7262002-01-25 Alan Modra <amodra@bigpond.net.au>
727
728 * ldmisc.c (demangle): Put back dots when string not demangled.
729
a9ed1e1b
RH
7302002-01-22 Richard Henderson <rth@redhat.com>
731
732 * emulparams/elf64alpha.sh (NOP): Use unop.
733
968ec2b9
AJ
7342002-01-21 Andreas Jaeger <aj@suse.de>
735
736 * ldlex.l: Use fread instead of read.
737
9596feea
JT
7382002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
739
740 * configure.tgt (ia64-*-netbsd*): New target.
741
493a6d47
L
7422002-01-21 H.J. Lu <hjl@gnu.org>
743
744 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
745 0.
746 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
747
2a538ba5
AJ
7482002-01-18 Andreas Jaeger <aj@suse.de>
749
750 * ldver.c (ldversion): Update year.
751
328577ad
NC
7522002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
753
754 * po/ld.pot: Regenerate.
755
1f808cd5
AM
7562002-01-16 Alan Modra <amodra@bigpond.net.au>
757
758 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
759 * Makefile.in: Regenerate.
760 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
761 * emultempl/ppc64elf.em: New file.
762
335c5610
DD
7632002-01-15 DJ Delorie <dj@redhat.com>
764
765 * scripttempl/pe.sc: Add support for constructor priorities.
766
c40bbade
DC
7672002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
768
769 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
770 * emulparams/avr23xx.sh: Likewise.
771 * emulparams/avr4433.sh: Likewise.
772 * emulparams/avr44x4.sh: Likewise.
773 * emulparams/avr85xx.sh: Likewise.
774 * emulparams/avrmega103.sh: Likewise.
775 * emulparams/avrmega161.sh: Likewise.
776 * emulparams/avrmega603.sh: Likewise.
777 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
778
34efb449
AO
7792002-01-08 Alexandre Oliva <aoliva@redhat.com>
780
781 * ldlang.c (walk_wild_section): Exclude object file if enclosing
782 archive is excluded.
783
8d05742f
JT
7842002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
785
786 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 787 (eshelf_nbsd.c): New rule.
8d05742f
JT
788 (eshlelf_nbsd.c): New rule.
789 * Makefile.in: Regenerate.
790 * configure.tgt (sh*le-*-netbsdelf*): New target.
791 (sh*-*-netbsdelf*): New target.
792 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
793 * ld/emulparams/shelf_nbsd.sh: New emulation.
794 * ld/emulparams/shlelf_nbsd.sh: New emulation.
795
be2d1673
NC
7962002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
797
798 * po/es.po: New file: Spanish translation.
799 * configure.in (ALL_LINGUAS): Add es.
800 * configure: Regenerate.
801
dbab7a7b
NC
8022002-01-06 John Marshall <jmarshall@acm.org>
803
804 * ld.texinfo: Note that --emit-relocs is currently only
805 implemented for ELF.
806
3dfe7a8c
AM
8072002-01-05 Alan Modra <amodra@bigpond.net.au>
808
809 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
810 of bfd_section_list_remove and bfd_section_list_insert macros.
811 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
812 * emultempl/mmo.em (mmo_place_orphan): Likewise.
813
8a8b2d4b
AJ
8142002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
815
816 * configure.tgt (x86_64-*-netbsd*): New target.
817
9a4c7f16
TR
8182001-12-21 Tom Rix <trix@redhat.com>
819
8a8b2d4b 820 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
821 For -binitfini support.
822 * emultempl/aix.em (gld*_before_parse): Fix comment.
823 * emultempl/aix.em (gld*_parse_args): Fix comment.
824
3695c299
AM
8252001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
826
cf86e6df
AM
827 * configure.tgt (mips*-dec-netbsd*): Delete alias for
828 mips*el-*-netbsd*.
829 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
830
3695c299
AM
831 * configure.tgt (arm-*-netbsdelf*): Add target.
832 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
833 * emulparams/armelf_nbsd.sh: Added.
834 * Makefile.am: Add rules for earmelf_nbsd.
835 * Makefile.in: Regenerate.
836
97cb79ae
AJ
8372001-12-19 Andreas Jaeger <aj@suse.de>,
838 Susanne Oberhauser <froh@suse.de>
839
840 * configure.host: Add rules for x86_64-*linux-gnu. Change
841 s390x-linux entry to use gcc to report configuration, replace gcc
842 with $CC in s390-linux
843
9d201f2f
AJ
8442001-12-19 Andreas Jaeger <aj@suse.de>
845
846 * ld.texinfo (VERSION): Fix markup.
847
0b69cd08
MG
8482001-12-18 matthew green <mrg@eterna.com.au>
849
850 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
851 (m68kelfnbsd.c): New rule.
852 * Makefile.in: Regenerate.
853 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
854 (m68*-*-netbsd*4k*): .. this.
855 (m68*-*-netbsdelf*): New target.
856 (m68*-*-netbsd*): Also include ELF support.
857 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
858 * emulparams/m68kelfnbsd.sh: New emulation.
859
6b9b879a
JJ
8602001-12-18 Jakub Jelinek <jakub@redhat.com>
861
862 * ldgram.y (vers_node): Support anonymous version tags.
863 * ldlang.c (lang_register_vers_node): Ensure anonymous version
864 tag is not defined together with non-anonymous versions.
865 * ld.texinfo: Document it.
866
9fc877ed
NC
8672001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
868
869 * po/tr.po: New file: Turkish translation.
870 * configure.in (ALL_LINGUAS): Add tr.
871 * configure: Regenerate.
872
fc18a3f3
RH
8732001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
874
875 * Makefile.am: Add rules for eelf64alpha_nbsd.
876 * Makefile.in: Regenerate.
877 * configure.tgt (alpha*-*-netbsd*): Set
878 targ_emul to elf64alpha_nbsd.
879 * emulparams/elf64alpha_nbsd.sh: Added.
880
76f63e91
AM
8812001-12-17 Alan Modra <amodra@bigpond.net.au>
882
883 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
884 section_tail when fiddling with section list.
885 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
886 broken into separate strings to make translation easier.
887 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
888 fiddling with section list.
889 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
890
d03b89bd
HPN
8912001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
892
893 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
894
320fec9a
AM
8952001-12-15 Alan Modra <amodra@bigpond.net.au>
896
897 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
898
65765700
JJ
8992001-12-13 Jakub Jelinek <jakub@redhat.com>
900
901 * emultempl/elf32.em (finish): Supply output_bfd
902 to bfd_elf*_discard_info.
903 (OPTION_EH_FRAME_HDR): Define.
904 (longopts): Add --eh-frame-hdr.
905 (parse_args): Handle it.
906 (list_options): Add --eh-frame-hdr to help.
907 * emultempl/hppaelf.em (finish): Supply output_bfd
908 to bfd_elf*_discard_info.
909 * scripttempl/elf.sc (.eh_frame_hdr): Add.
910
89894c62
AM
9112001-12-13 Alan Modra <amodra@bigpond.net.au>
912
913 * lexsup.c (parse_args): Don't pass shortopts to second call to
914 getopt functions. Restore optind rather than decrementing before
915 second call. Remove errind as it now duplicates last_optind.
916
583f1926
CF
9172001-12-11 Christopher Faylor <cgf@redhat.com>
918
919 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
920
93fbbb04
GK
9212001-12-07 Geoffrey Keating <geoffk@redhat.com>
922 Richard Henderson <rth@redhat.com>
923
924 * Makefile.am: Add support for xstormy16.
925 * configure.tgt: Add support for xstormy16.
926 * Makefile.in: Regenerate.
927 * emulparams/elf32xstormy16.sh: New file.
928 * scripttempl/xstormy16.sc: New file.
929
583f1926
CF
9302001-10-01 Christopher Faylor <cgf@cygnus.com>
931
fc18a3f3
RH
932 * Makefile.in (LIB_PATH): Make configurable.
933 (GENSCRIPTS): Set LIB_PATH in environment.
934 * configure.in: Substitute LIB_PATH.
935 * configure: Regenerate.
936 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
937 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 938
ff291a48
NC
9392001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
940
941 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
942 describing the -N option so that it is easier to translate into
943 foreign languages.
944
e3c8793a
NC
9452001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
946
947 * emultempl/pe.em (..._list_options): Replace multiple fprintf
948 statements describing a single option with a single, newline
949 escaped fprintf. This allows better translation into other
950 languages.
9d201f2f 951
fc18a3f3
RH
952 * ldmain.c (add_archive_element): Combine multiple strings
953 into a single string to permit better translation into other
954 languages.
e3c8793a 955
f2eab0af
TR
9562001-12-05 Tom Rix <trix@redhat.com>
957
958 * Makefile.am: Remove eaixppc64.
9d201f2f 959 * Makefile.in: Regenerate.
f2eab0af 960
249172c3
TR
9612001-12-04 Tom Rix <trix@redhat.com>
962
9d201f2f 963 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
964 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
965 warning.
966 (gld*_read_file): Fix typo.
967 (change_symbol_mode): Add prototype.
968 (is_syscall): Same.
9d201f2f 969
249172c3
TR
970 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
971 * emulparams/aixrs6.sh : Same.
972 * emulparams/ppcmacos.sh : Same.
973 * emulparams/aixppc64.sh : Delete file.
974 * emultempl/aix.em : Formatting changes.
975
5b5cd1b0
HPN
9762001-12-04 Hans-Peter Nilsson <hp@axis.com>
977
978 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
979 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
980 __Sbss.
981 (OTHER_END_SYMBOLS): Fix formatting.
982 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
983 (OTHER_END_SYMBOLS): Fix formatting.
984
7cecdbff
AM
9852001-12-04 Alan Modra <amodra@bigpond.net.au>
986
987 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
988
742aeb63 9892001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 990
742aeb63 991 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 992 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
993 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
994 (ldemul_default_target): Same.
995 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
996 * emultempl/gld960c.em (gld960_choose_target): Same.
997 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
998 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
999 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1000 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 1001 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
1002 -b32 and -b64.
1003
48459341
L
10042001-11-27 H.J. Lu <hjl@gnu.org>
1005
1006 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1007 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1008 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1009 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1010 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1011 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1012 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1013 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1014
7cecdbff 1015 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
1016 is not empty.
1017 (SDATA): Likewise.
1018 (REL_SDATA): Likewise.
1019 (REL_SBSS): Likewise.
1020 (REL_SDATA2): Likewise.
1021 (REL_SBSS2): Likewise.
1022 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1023 (SDATA2): Likewise.
1024
ecfdd20c
SC
10252001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1026
1027 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1028 destructor in rom.
7cecdbff 1029 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 1030
da54c6eb
L
10312001-11-22 H.J. Lu <hjl@gnu.org>
1032
1033 * Makefile.in: Regenerated with automake based on automake
1034 1.4-8 in RedHat 7.1.
1035
465bc359
AM
10362001-11-22 Alan Modra <amodra@bigpond.net.au>
1037
1038 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1039 (config.status): Delete rule.
1040 Add extra dependencies to cover sourced emulparams files.
1041 * Makefile.in: Regenerate.
1042
1043 * scripttempl/elf.sc: Order <section>, <section>.* and
1044 corresponding linkonce sections as seen in input files.
1045 Formatting fixes. Zero vma of all sections if not relocating.
1046 (STACK): Define and insert if STACK_ADDR defined.
1047 (OTHER_RELOCATING_SECTIONS): Delete.
1048 (OTHER_END_SYMBOLS): Define.
1049 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1050 (OTHER_READWRITE_SECTIONS): Likewise.
1051 (OTHER_GOT_SECTIONS): Likewise.
1052 (OTHER_SDATA_SECTIONS): Likewise.
1053 (OTHER_BSS_SECTIONS): Likewise.
1054 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1055 (OTHER_READWRITE_SECTIONS): Likewise.
1056 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1057 (OTHER_READWRITE_SECTIONS): Likewise
1058
1059 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1060 (STACK_ADDR): Define.
1061 * emulparams/armelf_oabi.sh: As for armelf.sh.
1062 * emulparams/elf32mcore.sh: As for armelf.sh.
1063 * emulparams/h8300elf.sh: As for armelf.sh.
1064 * emulparams/mn10200.sh: As for armelf.sh.
1065 * emulparams/shelf.sh: As for armelf.sh.
1066
1067 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1068 (OTHER_END_SYMBOLS): Define.
1069 * emulparams/m32relf.sh: As for elf32fr30.sh.
1070 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1071 * emulparams/h8300self.sh: As for elf32fr30.sh.
1072
1073 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1074 defines with RELOCATING test.
1075 (OTHER_SDATA_SECTIONS): Likewise.
1076 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1077 (OTHER_END_SYMBOLS): ..this.
1078 * emulparams/crislinux.sh: As for criself.sh.
1079
1080 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1081 if not relocating.
1082 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1083 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1084 normal and linkonce sections as seen in input files.
1085 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1086 (TEXT_DYNAMIC): Likewise.
1087 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1088 (OTHER_SDATA_SECTIONS): Likewise.
1089 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1090 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1091 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1092 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1093 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1094 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1095 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1096 sections as seen in input files.
1097 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1098 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1099 if not relocating.
1100 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1101 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1102 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1103 (OTHER_SECTIONS): Instead, use this..
1104 (OTHER_END_SYMBOLS): ..and this.
1105
1106 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1107 * emulparams/elf32bsmip.sh: Likewise.
1108 * emulparams/elf32btsmip.sh: Likewise.
1109 * emulparams/elf32ebmip.sh: Likewise.
1110 * emulparams/elf32lmip.sh: Likewise.
1111 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1112 * emulparams/elf32lsmip.sh: Likewise.
1113 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1114 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1115 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1116 * emulparams/elf64btsmip.sh: Likewise.
1117 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1118 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1119 * emulparams/elf32ppclinux.sh: Likewise.
1120 * emulparams/elf32ppcsim.sh: Likewise.
1121 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1122 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1123 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1124 * emulparams/h8300self.sh: Likewise.
1125 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1126 * emulparams/sh.sh: Comment.
1127 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1128 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1129 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1130
abc6ab0a
AM
11312001-11-21 David Heine <dlheine@tensilica.com>
1132 Alan Modra <amodra@bigpond.net.au>
1133
1134 * ldlang.c (map_input_to_output_sections): Replace "break"
1135 accidentally removed with 2001-08-03 change.
1136 (lang_gc_sections_1): Likewise.
1137
2181f54f
AM
11382001-11-21 Alan Modra <amodra@bigpond.net.au>
1139
1140 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1141
ca0b5847
AM
11422001-11-20 Angela Marie Thomas <angela@redhat.com>
1143
1144 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
1145 of false when calling lang_size_sections.
1146 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 1147
c56feb2b
AM
11482001-11-15 Alan Modra <amodra@bigpond.net.au>
1149
1150 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1151 function when LDEMUL_FINISH isn't set to the same name. Don't
1152 call ${LDEMUL_FINISH}.
1153 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1154 * emultempl/armelf.em (arm_elf_finish): Call
1155 gld${EMULATION_NAME}_finish.
1156 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1157 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1158 hppaelf_layout_sections_again if necessary.
1159 (need_laying_out): New var.
1160 (hppaelf_layaout_sections_again): Rename to
1161 hppaelf_layout_sections_again. Clear need_laying_out.
1162 (PARSE_AND_LIST_OPTIONS): Format text.
1163
a48ca7f2
L
11642001-11-14 H.J. Lu <hjl@gnu.org>
1165
1166 * emultempl/armelf.em (arm_elf_finish): Renamed from
1167 gld${EMULATION_NAME}_finish.
1168 (LDEMUL_FINISH): Set to arm_elf_finish.
1169
73d074b4
DJ
11702001-11-14 Daniel Jacobowitz <drow@mvista.com>
1171
1172 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1173 (struct ld_emulation_xfer_struct): Use it.
1174
3b16e843 11752001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 1176
465bc359 1177 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
1178 additional symbols referenced by newer crt0.o files from HP.
1179
f11b7027
NC
11802001-11-12 Anthony Green <green@redhat.com>
1181
1182 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1183
3bf2994f
AM
11842001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1185
1186 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1187 * Makefile.in: Regenerate.
1188
ff5dcc92
SC
11892001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1190
1191 * ld.texinfo: Use @command for commands, @option for options.
1192 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1193 the page man title.
1194 * Makefile.in: Rebuild.
1195
9fb9af6e
CD
11962001-11-04 Chris Demetriou <cgd@broadcom.com>
1197
1198 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1199 Add support for targets.
2181f54f 1200
3c62831e
NC
12012001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1202
1203 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1204 * configure: Regernate.
1205 * po/fr.po: New file.
1206 * po/sv.po: New file.
1207
3a9091c4
NC
12082001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1209
1210 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1211 as little endian default and to support big endian.
2181f54f 1212
361b220e
CD
12132001-11-01 Chris Demetriou <cgd@broadcom.com>
1214
1215 * ld.texinfo (Options): Document new option, -nostdlib.
1216 * lexsup.c (OPTION_NOSTDLIB): New definition.
1217 (ld_options): Add entry for "nostdlib".
1218 (parse_args): Handle OPTIONS_NOSTDLIB.
1219 * ldfile.c (ldfile_add_library_path): Don't add directories
1220 to the search path if they weren't specified on the command line
1221 and -nostdlib was specified.
1222 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1223
210a7bd1
NC
12242001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1225
1226 * lexsup.c (parse_args): Prevent infinite parsing loop when
1227 "-rpath.a" is specified on the command line.
1228 Replace calls to fprintf with calls to einfo.
1229
114283d8
NC
12302001-10-31 John Marshall <jmarshall@acm.org>
1231
1232 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1233 appear only once across all the linker scripts involved in a link
1234 invocation no longer applies. Make the documentation reflect
1235 that.
1236
7649aa50
NC
12372001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1238
1239 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1240 targets.
1241 (sh-*-linux*): Added targ_extra_libpath.
1242
6e814ff8
AM
12432001-10-31 David Heine <dlheine@tensilica.com>
1244
1245 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1246 for padding statements.
1247
3c3bdf30
NC
12482001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1249
1250 * configure.tgt (mmix-*-*): New target.
1251 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1252 Add dependencies to match.
1253 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1254 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1255 scripttempl/mmo.sc: New files.
1256 * gen-doc.texi: @set MMIX.
1257 * ld.texinfo: Ditto.
6e814ff8 1258 [MMIX] Add MMIX node.
3c3bdf30
NC
1259 * Makefile.in: Regenerate.
1260
ca0c1d3e
KH
12612001-10-29 Kazu Hirata <kazu@hxi.com>
1262
1263 * ldlang.c: Fix a comment typo.
1264
1a3d33ce
AM
12652001-10-23 Alan Modra <amodra@bigpond.net.au>
1266
1267 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1268 entries, and match *-*-linux*.
1269
b47c4208
AM
12702001-10-20 Alan Modra <amodra@bigpond.net.au>
1271
1272 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1273 with ldlex_script, ldlex_popstate.
1274 (ifile_p1): Likewise.
1275 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1276 correct slot.
1277 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1278 to 1. Don't BEGIN(SCRIPT).
1279 (lex_redirect): Similarly.
1280 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1281
fd521b47
NC
12822001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1283
1284 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1285 __EH_FRAME_END__ and accept eh frames into data section.
1286 Add ctor and dtor sections.
1287
59d28a94
DD
12882001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1289
1290 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1291 (auto-export): Fix indentation.
1292
663dd378
DD
12932001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1294
1295 * pe-dll.c (autofilter_objectlist): Add startup objects
1296 for profiling.
1297 (auto-export): Constify char * p.
6e814ff8 1298 Extract file basename and use strcmp rather than ststr
663dd378
DD
1299 for object lookup.
1300
31d677f9
CD
13012001-10-18 Chris Demetriou <cgd@broadcom.com>
1302
1303 * ldmain.c (get_emulation): Improve comment about the handling
1304 of -mipsN options.
1305
aa200fe8
AM
13062001-10-17 Alan Modra <amodra@bigpond.net.au>
1307
1308 * po/POTFILES.in: Regenerate.
1309
146e7110
AM
13102001-10-16 Vassili Karpov <malc@pulsesoft.com>
1311
1312 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1313 -z nocopyreloc and -z nocombreloc usage strings.
1314
b4330e85
NC
13152001-10-12 Vassili Karpov <malc@pulsesoft.com>
1316
146e7110 1317 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
1318 in usage.
1319
5af8a2fb
NC
13202001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1321
1322 * scripttempl/armaout.sc: Place .bss section after end of aligned
1323 data section to match behaviour of aout code in constructrion of
1324 header.
1325
5b784096
DD
13262001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1327
1328 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1329 startup files for mingw32 dlls to list.
1330
61585df2
CD
13312001-10-10 Chris Demetriou <cgd@broadcom.com>
1332
1333 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1334
45cf6f3e
AH
13352001-10-08 Aldy Hernandez <aldyh@redhat.com>
1336
1337 * configure.tgt (targ): Add arm9e-*-elf.
1338
e24d7c12
L
13392001-10-05 H.J. Lu <hjl@gnu.org>
1340
1341 * genscripts.sh: Fix a typo in the last change.
1342
ec38dd05
JJ
13432001-10-05 Jakub Jelinek <jakub@redhat.com>
1344
1345 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1346 -z nocombreloc in usage.
1347
cedd6b0d
JB
13482001-10-03 Jim Blandy <jimb@redhat.com>
1349
1350 * genscripts.sh: Include a comment at the top of each generated
1351 script, explaining its purpose.
1352
8bd621d8
AM
13532001-10-03 Vassili Karpov <malc@pulsesoft.com>
1354
1355 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1356 * NEWS: Mention -z nocopyreloc.
1357 * ld.texinfo (Options): Describe nocopyreloc.
1358
fcd8210c
AM
13592001-10-03 Alan Modra <amodra@bigpond.net.au>
1360
1361 * configure: Regenerate.
1362
d32820f2
AM
13632001-10-02 Alan Modra <amodra@bigpond.net.au>
1364
1365 * ldver.h (ld_program_version): Remove declaration.
1366 * lexsup.c (parse_args): Move printing of copyright message..
1367 * ldver.c (ldversion): .. to here.
1368 Use BFD_VERSION_STRING in place of BFD_VERSION.
1369 (ld_program_version): Remove.
1370 * Makefile.am (Makefile): Depend on bfd/configure.in.
1371 Run "make dep-am".
1372 * Makefile.in: Regenerate.
1373
af46bcdc
HPN
13742001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1375
1376 * Makefile.am: Update dependencies with "make dep-am".
1377 * Makefile.in: Regenerate.
1378
4818e05f 13792001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 1380
4818e05f
AM
1381 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1382 * lexsup.c: Add --no-define-common commandline option.
1383 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1384 * ldlex.l: Likewise.
1385 * ld.h: Add command_line.inhibit_common_definition.
1386 * ldmain.c (main): Initialize.
1387 * ld.texinfo: Document.
862517b6 1388
d5e0ebeb
AM
13892001-09-26 Alan Modra <amodra@bigpond.net.au>
1390
1391 * ldmisc.c (USE_STDARG): Remove.
1392 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1393 (einfo): Likewise.
1394 (minfo): Likewise.
1395 (lfinfo): Likewise.
1396
1397 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1398 declarations. Update copyright.
1399
2f8d8971
NC
14002001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1401
85c77458
NC
1402 * pe-dll.c: Remove obsoleted declaration of
1403 pe_get_data_import_dll_name.
1404 (pe_create_import_fixup): Fix thinko.
1405
2f8d8971
NC
1406 * ld.texinfo(enable-auto-import): Clarify the explanation.
1407
14082001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1409
1410 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1411 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1412 DLL_SUPPORT controlled code.
1413
72358f65 14142001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 1415
72358f65
NC
1416 * emultempl/pe.em(pe_data_import_dll): Make static.
1417 (pe_get_data_import_dll_name): New accessor function.
146e7110 1418 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
1419 pe_get_data_import_dll_name() from pe.em, instead of
1420 directly accessing pe_data_import_dll variable from pe.em.
1421
3882b010
L
14222001-09-18 Bruno Haible <haible@clisp.cons.org>
1423
1424 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1425 (def_file_add_directive): Use ISSPACE instead of isspace.
1426 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1427 isdigit/isxdigit/isalpha/isalnum.
1428 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1429 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1430 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1431 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1432 isalnum.
1433 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1434 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1435 isupper/tolower.
1436 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1437 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1438 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1439 (ctor_prio): Use ISDIGIT instead of isdigit.
1440 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1441 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1442 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1443 isupper/tolower.
1444 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1445 (stricpy): Use TOLOWER instead of isupper/tolower.
1446 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1447 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1448 (lex_warn_invalid): Use ISPRINT instead of isprint.
1449 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1450 (main): For gettext, also set the LC_CTYPE locate facet.
1451 (add_keepsyms_file): Use ISSPACE instead of isspace.
1452 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1453 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1454 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1455 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1456 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1457 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1458 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1459 (quoteput): Use ISSPACE instead of isspace.
1460 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1461 instead of isalnum.
1462
db09f25b
AM
14632001-09-18 Alan Modra <amodra@bigpond.net.au>
1464
1465 * deffilep.y (def_stash_module): Constify "name" param.
1466
1467 * pe-dll.c: Replace CONST with const throughout.
1468 (quick_symbol): Constify "n1", "n2", "n3" params.
1469 (make_singleton_name_thunk): Constify "import" param. Make
1470 "buffer_len" a size_t.
1471 (make_import_fixup_entry): Constify "name", "fixup_name",
1472 "dll_symname" params.
1473 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1474 (pe_get32): Likewise.
1475 (pe_implied_import_dll): Likewise.
1476
1477 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1478 (sort_by_section_name): Likewise.
1479
1480 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1481 (make_import_fixup): Cast printf arg, rel->address to long rather
1482 than int.
1483 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1484
74699268
AM
14852001-09-15 Alan Modra <amodra@bigpond.net.au>
1486
1487 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1488 defines BufferSize. Increase buffer size by one.
1489
775cabad
NC
14902001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1491
1492 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1493
056a1d49
NC
14942001-09-14 Kevin Lo <kevlo@openbsd.org>
1495
1496 * configure.tgt: Add arm-openbsd target.
1497
a7d792bb
L
14982001-09-12 H.J. Lu <hjl@gnu.org>
1499
1500 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1501 eelf64lppc.o to ...
1502 (ALL_64_EMULATIONS): Here.
1503 * Makefile.in: Regenerated.
1504
0d888aac
CW
15052001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1506
1507 * emultempl/pe.em(make_import_fixup): change signature to
1508 take asection as well as arelec; we need this for proper
146e7110 1509 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
1510 there is no attempt to add a constant addend to the reloc;
1511 otherwise, report error condition.
1512 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1513 since final argument is a pointer to make_import_fixup().
1514 Change call to cb() to match make_import_fixup() signature.
1515 (make_import_fixup_mark): make buffer_len unsigned.
1516 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1517
15182001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1519
1520 * ld.texinfo: add verbose documentation for auto-import
146e7110 1521 direct-addressing workaround, to compliment the terse
0d888aac
CW
1522 error message.
1523
cedacdc0
CM
15242001-09-12 Andrew MacLeod <amacleod@redhat.com>
1525
146e7110 1526 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 1527
3b16e843 15282001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
1529
1530 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1531 * emulparams/h8300self.sh: Similarly.
1532
559e4713
NC
15332001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1534
1535 * ld.texinfo (Options, --stack): Correct default value for stack
1536 reserve.
1537
1fdf0249
TR
15382001-09-05 Tom Rix <trix@redhat.com>
1539
1540 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 1541
9b5799b8
AJ
15422001-09-03 Andreas Jaeger <aj@suse.de>
1543
1544 * emultempl/beos.em: Declare prototypes for comparions functions,
1545 adjust definitions.
1546
48f6162b
AJ
15472001-09-02 Andreas Jaeger <aj@suse.de>
1548
1549 * emultempl/aix.em: Add missing prototype.
1550 * emultempl/lnk960.em: Likewise.
1551 * emultempl/vanilla.em: Likewise.
1552 * emultempl/armcoff.em: Likewise.
1553 * emultempl/armelf_oabi.em: Likewise.
1554 * emultempl/beos.em: Likewise.
1555 * emultempl/gld960c.em: Likewise.
1556 * emultempl/gld960.em: Likewise.
1557
1558 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1559 for prototype declaration.
1560
39e5585e
EC
15612001-08-31 Eric Christopher <echristo@redhat.com>
1562 Jason Eckhardt <jle@redhat.com>
1563
1564 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1565
3fc90ddb
AJ
15662001-08-31 Andreas Jaeger <aj@suse.de>
1567
1568 * emultempl/pe.em: Add missing prototypes.
1569 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1570 pe_find_data_imports.
1571 (pr_sym): Add unused attribute.
1572
d43ded80
PB
15732001-08-29 Joel Sherrill <joel@OARcorp.com>
1574
39e5585e 1575 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
1576 default from coff to elf.
1577
3946dd2f
JL
15782001-08-29 Jeff Law <law@redhat.com>
1579
1580 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1581 ARCH specification.
1582 * emulparams/h8300self.sh: Similarly.
1583
3b16e843 15842001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
1585
1586 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1587 eh8300self.o .
1588 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1589 * configure.tgt (h8300-*-elf*): New case.
1590 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1591 * emulparams/h8300self.sh: New file.
1592 * Makefile.in: Regenerated.
1593
70d0c6e9
NC
15942001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1595
1596 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1597 with macro name.
1598
5c67d4bb
AM
15992001-08-27 Linus Nordberg <linus@swox.com>
1600 Alan Modra <amodra@bigpond.net.au>
1601
1602 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1603 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1604 Run "make dep-am"
1605 * Makefile.in: Regenerate.
1606 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1607 entries to correct alphabetical position.
1608 * emulparams/elf64ppc.sh: New.
1609 * emulparams/elf64lppc.sh: New.
1610
08131015
NC
16112001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1612
1613 * ldmain.c (main): Declare BSIZE as static.
1614
db6751f2
JJ
16152001-08-23 Jakub Jelinek <jakub@redhat.com>
1616
1617 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1618 into .rel.dyn resp. .rela.dyn if combreloc.
1619 (get_script): If .x linker script is equal to .xn, only put it
1620 once into the binary.
1621 Add .xc and .xsc scripts.
1622 (parse_args): Handle -z combreloc and -z nocombreloc.
1623 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1624 For .xc and .xsc scripts put all .rel* or .rela* input sections
1625 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1626 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1627 is elf.
1628 Strip trailing whitespace from script.
1629 Generate .xc and .xsc scripts if requested.
1630 * ldmain.c (main): Initialize link_info.combreloc and
1631 link_info.spare_dynamic_tags.
1632 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1633 (ld_options): Add --spare-dynamic-tags option.
1634 (parse_args): Likewise.
1635 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1636 * ldint.texinfo: Document .xc and .xsc linker scripts.
1637 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1638
63d069c0
L
16392001-08-22 H.J. Lu <hjl@gnu.org>
1640
1641 * emulparams/elf32fr30.sh: Add a newline.
1642
948f9114
AJ
16432001-08-21 Andreas Jaeger <aj@suse.de>
1644
1645 * deffilep.y: Add missing prototypes.
1646 * pe-dll.c: Likewise.
1647
ae7fb08f
AM
16482001-08-20 Alan Modra <amodra@bigpond.net.au>
1649
2af02257
AM
1650 * ldlang.c (insert_pad): Fix typos in last patch.
1651
1652 * ldlang.c: When traversing lang_statement_union_type lists,
1653 consistently use "header.next" rather than "next".
1654 * mpw-eppcmac.c: Likewise.
1655 * emultempl/beos.em: Likewise.
1656 * emultempl/hppaelf.em: Likewise.
1657 * emultempl/pe.em: Likewise.
1658 * ldlang.h (union lang_statement_union): Remove "next" field.
1659
c0c330a7
AM
1660 * ldlang.c (insert_pad): Use offsetof macro.
1661 (lang_size_sections): Always neuter padding statements.
1662 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1663
ae7fb08f
AM
1664 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1665 passed to lang_size_sections.
1666 (pe_exe_fill_sections): Likewise.
1667 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1668 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1669
fab80407
AM
16702001-08-18 Alan Modra <amodra@bigpond.net.au>
1671
1672 * emultempl/aix.em: Formatting fixes.
1673
b3327aad
AM
16742001-08-18 Alan Modra <amodra@bigpond.net.au>
1675
1676 * ldlang.c (insert_pad): Make use of an existing pad statement if
1677 available. Move code calculating alignment, adjusting section
1678 alignment power, and adjusting dot to ..
1679 (size_input_section): .. here. Remove unused relax param.
1680 (lang_size_sections): Change boolean `relax' param to boolean *.
1681 Adjust call to size_input_section. Make use of insert_pad to
1682 place pad after the assignment statement. If relaxing, zap
1683 padding statements.
1684 (reset_memory_regions): Reset output_bfd section sizes too.
1685 (relax_again): Move to..
1686 (lang_process): ..here. Adjust call to lang_size_sections, and
1687 remove duplicated code.
1688 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1689
563e308f
AM
16902001-08-17 Alan Modra <amodra@bigpond.net.au>
1691
1692 * ld.texinfo: Document that fill values now use the four least
1693 significant bytes.
1694 * emulparams/elf32fr30.sh (NOP): Update.
1695 * emulparams/elf32mcore.sh: Likewise.
1696 * emulparams/elf64_s390.sh: Likewise.
1697 * emulparams/elf_i386.sh: Likewise.
1698 * emulparams/elf_i386_be.sh: Likewise.
1699 * emulparams/elf_i386_chaos.sh: Likewise.
1700 * emulparams/elf_i386_ldso.sh: Likewise.
1701 * emulparams/elf_s390.sh: Likewise.
1702 * emulparams/elf_x86_64.sh: Likewise.
1703 * emulparams/i386moss.sh: Likewise.
1704 * emulparams/i386nw.sh: Likewise.
1705 * emulparams/m68kelf.sh: Likewise.
1706 * scripttempl/elf.sc: Update NOP comment.
1707 * scripttempl/elfi370.sc: Likewise.
1708 * scripttempl/elfm68hc11.sc: Likewise.
1709 * scripttempl/elfm68hc12.sc: Likewise.
1710 * scripttempl/nw.sc: Likewise.
1711
b90e1c6f
TR
17122001-08-15 Tom Rix <trix@redhat.com>
1713
1714 * ldgram.y (saved_script_handle): Initialize to NULL.
1715 * ldmain.c (main): Change check on saved_script_handle.
948f9114 1716
39dcfe18
AM
17172001-08-14 Alan Modra <amodra@bigpond.net.au>
1718
cde43e70
AM
1719 * emultempl/elf32.em: Formatting fixes.
1720 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1721 looking at sec->owner.
1722 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1723 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1724 unused code, and reorganize orphan section placement code.
1725
39dcfe18
AM
1726 * ldlang.c (wild_doit): Rename to lang_add_section.
1727 * ldlang.h: Here too.
1728 * mpw-elfmips.c: And here.
1729 * emultempl/beos.em: And here.
1730 * emultempl/elf32.em: And here.
1731 * emultempl/hppaelf.em: And here.
1732 * emultempl/pe.em: And here.
1733
908d20b3
RH
17342001-08-13 Richard Henderson <rth@redhat.com>
1735
1736 * emultempl/needrelax.em: New file.
1737 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1738 * Makefile.am (eelf64_ia64.c): Depend on it.
1739 * Makefile.in: Rebuild.
1740
0f33d40b
AM
17412001-08-13 Alan Modra <amodra@bigpond.net.au>
1742
22af9fd3
AM
1743 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1744 output_section is set non-NULL.
1745
0f33d40b
AM
1746 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1747 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1748 needlessly create an output_section_statement. Treat a correctly
1749 named output_section_statement with NULL bfd_section as compatible.
1750
55ab6103
HPN
17512001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1752
1753 * emultempl/generic.em: Support EXTRA_EM_FILE.
1754 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1755 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1756 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1757 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1758 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1759 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1760 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1761 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1762 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1763 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1764
24098abb
RH
17652001-08-12 Richard Henderson <rth@redhat.com>
1766
1767 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1768 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1769 scripttempl/v850.sc: Keep .jcr data.
1770
b9a8de1e 17712001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
1772 Andrew Haley <aph@cambridge.redhat.com>
1773 Nick Clifton <nickc@redhat.com>
b9a8de1e 1774
146e7110 1775 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
1776 Change type to file handle.
1777 * ld.h (had_script): Rename and retype.
1778 * ldfile.c (ldfile_open_command_file): Save the file handle
1779 used in saved_script_handle.
1780 * lexsup.c (parse_args): Do not allow -c option to alter
1781 saved_script_handle.
1782 * ldmain.c (main): Print out the linker script used if
1783 --verbose is given. Check saved_script_handle to obtain the
1784 external linker script used, or if NULL, dump the builtin
1785 script.
1786 * ld.texinfo: Document that --verbose now dumps the linker
1787 script used, regardless of whether it was an internal or an
1788 external script.
1789
0218d1e4
AJ
17902001-08-10 Andreas Jaeger <aj@suse.de>
1791
1792 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1793 to build warnings.
1794 * configure: Regenerate.
1795
5253f23b
AM
17962001-08-09 Alan Modra <amodra@bigpond.net.au>
1797
73810896
AM
1798 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1799
5253f23b
AM
1800 * scripttempl/elf.sc: Move non-text .dynamic section before
1801 .plt/.got/.sdata* group.
1802 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1803 (OTHER_SDATA_SECTIONS): Add.
1804 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1805 OTHER_GOT_SECTIONS.
1806 * emulparams/crislinux.sh: Likewise.
1807 * emulparams/elf32b4300.sh: Likewise.
1808 * emulparams/elf32bmip.sh: Likewise.
1809 * emulparams/elf32bmipn32.sh: Likewise.
1810 * emulparams/elf32bsmip.sh: Likewise.
1811 * emulparams/elf32btsmip.sh: Likewise.
1812 * emulparams/elf32ebmip.sh: Likewise.
1813 * emulparams/elf32elmip.sh: Likewise.
1814 * emulparams/elf32l4300.sh: Likewise.
1815 * emulparams/elf32lmip.sh: Likewise.
1816 * emulparams/elf32lsmip.sh: Likewise.
1817 * emulparams/elf32ltsmip.sh: Likewise.
1818 * emulparams/elf64bmip.sh: Likewise.
1819 * emulparams/elf64btsmip.sh: Likewise.
1820 * emulparams/elf64ltsmip.sh: Likewise.
1821
179c732c
AM
18222001-08-08 Alan Modra <amodra@bigpond.net.au>
1823
1824 * genscripts.sh: Source the emulparams script before each output
1825 script is generated so that variables like `RELOCATING' may affect
1826 variables defined in the emulparams script.
1827
3fd36710
AM
18282001-08-04 Alan Modra <amodra@bigpond.net.au>
1829
20713691
AM
1830 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1831 order.
1832
3fd36710
AM
1833 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1834 ie. iterate over wild_statement.section_list.
1835 (gld${EMULATION_NAME}_place_orphan): Likewise.
1836
de0b1853
SC
18372001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1838
1839 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1840 .fini[0-4] sections used by _exit
1841 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1842 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1843 * scripttempl/elfm68hc11.sc: Likewise.
1844
ff7e6f88
L
18452001-08-03 H.J. Lu <hjl@gnu.org>
1846
1847 * emultempl/beos.em (init): Add the missing initialization.
1848
b6bf44ba
AM
18492001-08-03 Alan Modra <amodra@bigpond.net.au>
1850
1851 * ld.texinfo (Input Section Basics): Clarify ordering of output
1852 sections.
1853 * ldlang.c (callback_t): Add wildcard_list param.
1854 (walk_wild_section): Remove "section" param. Rewrite for
1855 lang_wild_statement_type change. Remove unique_section_p test.
1856 (walk_wild_file): Remove "section" param.
1857 (walk_wild): Remove "section" and "file" params.
1858 (lang_gc_wild): Likewise.
1859 (wild): Likewise. Modify for lang_wild_statement_type change.
1860 (wild_sort): Likewise. Add "sec" param.
1861 (gc_section_callback): Likewise.
1862 (output_section_callback): Likewise. Do unique_section_p test.
1863 (map_input_to_output_sections): Modify call to wild.
1864 (lang_gc_sections_1): Likewise.
1865 (print_wild_statement): Modify for lang_wild_statement_type
1866 change.
1867 (lang_add_wild): Replace filename, filenames_sorted param with
1868 filespec. Replace section_name, sections_sorted,
1869 exclude_filename_list with section_list.
1870 * ldlang.h (lang_add_wild): Here too.
1871 (lang_wild_statement_type): Replace section_name, sections_sorted,
1872 and exclude_filename_list with section_list.
1873 * ldgram.y (current_file): Delete.
1874 (%union): Add wildcard_list.
1875 (file_NAME_list): Set type to wildcard_list. Build a linked list
1876 rather than calling lang_add_wild for each entry.
1877 (input_section_spec_no_keep): Call lang_add_wild here instead.
1878 * ld.h (struct wildcard_list): Declare.
1879 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1880
b044cda1
CW
18812001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1882
1883 * ldmain.c (main): initialize link_info.pei386_auto_import
1884 * pe-dll.c: new tables for auto-export filtering
1885 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 1886 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
1887 "by hand".
1888
18892001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1890
b6bf44ba
AM
1891 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1892 static variable current_sec (static struct sec *). Add
b044cda1 1893 forward declaration for add_bfd_to_link.
b6bf44ba
AM
1894 (process_def_file): Don't export undefined symbols. Do not
1895 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
1896 with new API.
1897 (pe_walk_relocs_of_symbol): New function.
1898 (generate_reloc): add optional extra debugging
b6bf44ba 1899 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 1900 line in output
b6bf44ba 1901 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
1902 (DATA auto-import support).
1903 (make_singleton_name_thunk): New function.
1904 (make_import_fixup_mark): New function.
1905 (make_import_fixup_entry): New function.
1906 (pe_create_import_fixup): New function.
b6bf44ba 1907 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 1908 char *.
b6bf44ba
AM
1909 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1910 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
1911 pe_create_import_fixup.
1912 * emultempl/pe.em: add new options --enable-auto-import,
1913 --disable-auto-import, and --enable-extra-pe-debug.
1914 (make_import_fixup): New function.
1915 (pe_find_data_imports): New function.
1916 (pr_sym): New function.
b6bf44ba 1917 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
1918 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1919 CODE.
1920
19212001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 1922
b044cda1
CW
1923 * ld.texinfo: add additional documentation for
1924 --export-all-symbols. Document --out-implib,
1925 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
1926 --dll-search-prefix, --enable-auto-import, and
1927 --disable-auto-import.
b044cda1
CW
1928 * ldint.texinfo: Add detailed documentation on auto-import
1929 implementation.
1930
156e34dd
NC
19312001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1932
1933 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1934 example.
1935
d6231427
AM
19362001-07-24 Alan Modra <amodra@bigpond.net.au>
1937
1938 * Makefile.am: Update dependencies with "make dep-am".
1939 * Makefile.in: Regenerate
1940
e14ec88b
AM
19412001-07-23 Alan Modra <amodra@bigpond.net.au>
1942
1943 * ldcref.c (check_section_sym_xref): New function.
1944 (check_nocrossrefs): Call it.
1945 (check_nocrossref): Interate over h->refs here instead of..
1946 (check_refs): ..here. Pass in the symbol name, section, and bfd
1947 rather than hash_entry pointers.
1948 (struct check_refs_info): Keep symbol name rather than hash entry.
1949 Remove "same".
1950 (check_reloc_refs): Tweak for above changes in check_refs_info.
1951 Only report references to section syms when symname is NULL to
1952 prevent duplicate messages for the same reloc.
1953
1b577b00
NC
19542001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1955
c7d701b0
NC
1956 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1957 available. Do not print NULL trees.
1958 (exp_print_token): Print unknown tokens with values > 126 as
1959 decimal values not ASCII characters.
1960
1545243b
NC
1961 * ldlang.c (lang_leave_overlay): If a region is specified assign
1962 it to all sections inside the overlay unless they have been
1963 assigned to the own, non-default, memory region.
1964
1b577b00
NC
1965 * README: Add header for consistency with other README files.
1966
5030876b
L
19672001-07-14 H.J. Lu <hjl@gnu.org>
1968
1969 * emultempl/elf32.em (output_prev_sec_find): Never return
1970 bfd_abs_section_ptr, bfd_com_section_ptr nor
1971 bfd_und_section_ptr.
1972
18c7a9a5
NC
19732001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1974
22af9fd3 1975 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
1976 elf32.em.
1977 * Makefile.in: Regenerate.
1978
9ffecff1
MG
19792001-07-14 matthew green <mrg@eterna.com.au>
1980
1981 * configure.tgt (i386-*-netbsdelf*): New target.
1982 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1983
95500e1c
JJ
19842001-07-13 Jakub Jelinek <jakub@redhat.com>
1985
1986 * emultempl/elf32.em (output_prev_sec_find): New.
1987 (place_orphan): Use it.
1988
e97cb84f
L
19892001-07-11 H.J. Lu <hjl@gnu.org>
1990
1991 * ldmain.c (main): Fix typos in the last change.
1992
7333607e
JJ
19932001-07-11 Jakub Jelinek <jakub@redhat.com>
1994
1995 * ldmain.c (main): Disallow -F and -f without -shared.
1996
d29d80f2
NC
19972001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1998
1999 * emultempl/pe.em (after_open): Check for the output_bfd not
2000 having any coff_data structure allocated to it.
2001
c2a1a436
DB
20022001-07-09 David O'Brien <obrien@FreeBSD.org>
2003
2004 * emultempl/elf32.em: Do not assuming that contents of the buffer
2005 returned from basename function will remain unchanged accross other
2006 function calls.
2007
63653551
L
20082001-07-03 H.J. Lu <hjl@gnu.org>
2009
2010 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2011 2001-07-03. It creates dynamic entries even for static binaries.
2012
d303a449
L
20132001-07-03 Jakub Jelinek <jakub@redhat.com>
2014
2015 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2016 (DYNAMIC): Use it to reserve few dynamic entries for
2017 post-linking tools.
2018
9f22353f
AM
20192001-06-27 Alan Modra <amodra@bigpond.net.au>
2020
2021 * emulparams/hppa64linux.sh: New file.
2022 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2023 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2024 (ehppa64linux.c): Add rule to make it.
2025 Run "make dep-am".
2026 * Makefile.in: Regenerate.
2027
62bf86b4
HPN
20282001-06-21 Hans-Peter Nilsson <hp@axis.com>
2029
2030 * ld.texinfo (Options, -r): Mention restrictions when using
2031 different object formats.
2032
429d935d
HPN
20332001-06-19 Hans-Peter Nilsson <hp@axis.com>
2034
2035 * ldlang.c (lang_check): Emit fatal error if relocatable link
2036 between different object flavours with relocations in input.
2037
cb840a31
L
20382001-06-19 H.J. Lu <hjl@gnu.org>
2039
2040 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2041 (--version-script): Mention the language support.
2042
9bf03acc
L
20432001-06-19 H.J. Lu <hjl@gnu.org>
2044
2045 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2046
c45021f2
NC
20472001-06-18 H.J. Lu <hjl@gnu.org>
2048
b6bf44ba
AM
2049 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2050 (diststuff): Add $(MANS).
2051 * Makefile.in: Regenerated.
c45021f2 2052
b6bf44ba 2053 * ld.1: Removed.
c45021f2 2054
6caa99ab
HPN
20552001-06-18 Hans-Peter Nilsson <hp@axis.com>
2056
605d9b3a
HPN
2057 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2058 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2059 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2060 * ld.h (args_type): Remove member export_dynamic. All users
2061 changed to use struct bfd_link_info member.
2062
6caa99ab
HPN
2063 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2064 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2065 * Makefile.in: Regenerate.
2066
6f9efd97
L
20672001-06-18 H.J. Lu <hjl@gnu.org>
2068
2069 * ldlang.c (init_os): Add the newline to the einfo call.
2070 (lang_check): Likewise.
2071 (lang_do_version_exports_section): Likewise.
2072
5af9fd8b
L
20732001-06-15 H.J. Lu <hjl@gnu.org>
2074
2075 * lexsup.c (parse_args); Save optind to report unrecognized
2076 option.
2077
2a096f04
HPN
20782001-06-15 Hans-Peter Nilsson <hp@axis.com>
2079
7e66c3f5
HPN
2080 * ldlang.c (lang_check): Emit fatal error if relocatable link
2081 between different object flavours.
2082
2a096f04
HPN
2083 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2084 Set new link_info member export_dynamic.
2085 * ldmain.c (main): Initialize new link_info member export_dynamic.
2086
6770ec8c
NC
20872001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2088
2089 * ldlang.c (walk_wild): Only call walk_wild_file if
2090 lookup_name returns something.
b6bf44ba 2091 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 2092 (load_symbols): Change to a boolean function.
b6bf44ba 2093 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
2094 executable.
2095
8529105a
AM
20962001-06-08 Alan Modra <amodra@bigpond.net.au>
2097
2098 * ldlang.c (record_bfd_errors): Remove.
2099
2100 * emultempl/aix.em: Fix copyright dates.
2101
8f3aa7a0
AJ
21022001-06-07 Andreas Jaeger <aj@suse.de>
2103
2104 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2105 (TEXT_START_ADDR): Likewise.
2106
3277f888
AM
21072001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2108
2109 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2110
3763134d
DD
21112001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2112
2113 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2114
5929ebc0
L
21152001-05-31 H.J. Lu <hjl@gnu.org>
2116
2117 * ldlang.c (open_input_bfds): Don't change the bfd error
2118 handler whilst loading symbols.
2119
c04a062d
NC
21202001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2121
2122 * configure.tgt: Remove i370-mvs architecture, it is not currently
2123 supported.
2124
96fcab3e
L
21252001-05-25 H.J. Lu <hjl@gnu.org>
2126
2127 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2128 like emulparams/aixppc.sh.
2129
db8d4f23
L
21302001-05-25 H.J. Lu <hjl@gnu.org>
2131
2132 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2133 setting of output_filename after bfd_scan_arch.
2134 * emultempl/pe.em: Likewise.
2135
5f642101
L
21362001-05-25 H.J. Lu <hjl@gnu.org>
2137
2138 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2139 like emulparams/aixppc.sh.
2140
2141 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2142 instead of ${srcdir}/emultempl/stringify.sed.
2143
64e9ece0
TW
21442001-05-25 Timothy Wall <twall@oculustech.com>
2145
2146 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 2147 output.
64e9ece0 2148
c709b096
AM
21492001-05-25 Alan Modra <amodra@one.net.au>
2150
2151 * configure.host: Replace linuxoldld with linux*oldld.
2152 * configure.tgt: Likewise.
2153
6cbdcc6f
L
21542001-05-24 H.J. Lu <hjl@gnu.org>
2155
2156 * emultempl/stringify.sed: Removed again.
2157
86af25fe
L
21582001-05-24 H.J. Lu <hjl@gnu.org>
2159
2160 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2161 (gld${EMULATION_NAME}_before_parse): Initialize
2162 ldfile_output_architecture, ldfile_output_machine and
2163 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2164 * emultempl/beos.em: Likewise.
2165 * emultempl/elf32.em: Likewise.
2166 * emultempl/linux.em: Likewise.
2167 * emultempl/mipsecoff.em: Likewise.
2168 * emultempl/pe.em: Likewise.
2169 * emultempl/sunos.em: Likewise.
2170
3b1b01cf
TR
21712001-05-24 Tom Rix <trix@redhat.com>
2172
8f3aa7a0 2173 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
2174 udate import file format.
2175 (change_symbol_mode) New, same
2176 (is_syscall) New, same
2177 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2178 * emulparams/aixppc64.sh : same
2179 * emulparams/aixrs6.sh : same
2180 * emulparams/ppcmacos.sh : same
2181 * emultempl/aix.em : use strtoull to parse options
2182 * Makefile.am : add eaixppc64 emulation for xcoff64
2183 * Makefile.in : same
2184 * configure.tgt : same
2185
2186 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 2187 default data section offset to 0x20000000
3b1b01cf 2188 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 2189 loader and debug sections use the currect section offset.
3b1b01cf
TR
2190
2191 * emultempl/aix.em : Add xcoff64 support
2192 Add -binitfini support
8f3aa7a0 2193 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 2194 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 2195 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
2196 sections
2197
2198 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 2199
57e6abd2
AO
22002001-05-23 Alexandre Oliva <aoliva@redhat.com>
2201
2202 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2203 variable to avoid non-portable shell construct.
2204
d1cf510e
NC
22052001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2206
2207 * ldmain.c (get_emulation): Add -mips5 command line argument.
2208
506eee22
NC
22092001-05-22 Alexandre Oliva <aoliva@redhat.com>
2210
2211 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2212 (ELF_INTERPRETER_NAME): Define it.
2213 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2214 it.
2215 * configure.tgt (targ_emul, targ_extra_emuls)
2216 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2217 as primary, elf_i386 as extra.
2218 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2219 (eelf_i386_ldso.c): New rule.
2220 * Makefile.in: Rebuilt.
2221
22222001-05-22 Nick Clifton <nickc@redhat.com>
2223
2224 * lexsup.c (ld_options): Allow -I to be an alias for
2225 --dynamic-linker. This is for Solaris compatability.
2226 * ld.texinfo: Document that -I can be used.
2227 * ld.1: Regenerate.
2228
d1778b88
AM
22292001-05-16 Alan Modra <amodra@one.net.au>
2230
2231 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2232 whether an input section is the first one assigned to an output
2233 section.
2234 Assorted formatting fixes.
2235
02649152
DD
22362001-05-14 DJ Delorie <dj@delorie.com>
2237
2238 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2239 * Makefile.in: Ditto.
2240
579f31ac
JJ
22412001-05-11 Jakub Jelinek <jakub@redhat.com>
2242
2243 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2244 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2245 output sections.
2246 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2247
8550eb6e
JJ
22482001-05-11 Jakub Jelinek <jakub@redhat.com>
2249
2250 * ldlang.c (lang_process): Call bfd_merge_sections.
2251
8e5a525c
AM
22522001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2253
2254 * ldgram.y: Fix typo.
2255
1c9acd94
L
22562001-05-03 H.J. Lu <hjl@gnu.org>
2257
2258 * emultempl/elf32.em: Include "libiberty.h".
2259 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2260 basename of the bfd filename.
2261 (gld${EMULATION_NAME}_stat_needed): Likewise.
2262 (gld${EMULATION_NAME}_try_needed): Likewise.
2263 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2264
14fe918e
L
22652001-05-02 H.J. Lu <hjl@gnu.org>
2266
2267 * emultempl/pe.em: Include <ctype.h>.
2268
c7e40348
NC
22692001-05-02 Johan Rydberg <jrydberg@opencores.org>
2270
b6bf44ba 2271 * emulparams/elf32openrisc.sh: New file.
c7e40348 2272
b6bf44ba
AM
2273 * Makefile.am: Add OpenRISC target.
2274 * Makefile.in: Regenerated.
c7e40348 2275
b6bf44ba 2276 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
2277
22782001-05-02 Nick Clifton <nickc@redhat.com>
2279
2280 * emultempl/aix.em: Replace buystring with xstrdup.
2281 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 2282
d1b2b2dc
L
22832001-05-02 H.J. Lu <hjl@gnu.org>
2284
2285 * ldfile.c: Include "libiberty.h".
2286 * ldlex.l: Likewise.
2287
2288 * ldmisc.c (buystring): Removed.
2289 * ldmisc.h: Likewise.
2290
2291 * ldfile.c: Replace buystring with xstrdup.
2292 * ldlang.c: Likewise.
2293 * ldlex.l: Likewise.
2294 * ldmain.c: Likewise.
2295 * ldmisc.c: Likewise.
2296 * lexsup.c: Likewise.
2297 * mpw-eppcmac.c: Likewise.
2298
35714f2a
AJ
22992001-04-30 Andreas Jaeger <aj@suse.de>
2300
2301 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2302
884fb58e
NC
23032001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2304
b6bf44ba
AM
2305 * ldlang.c (load_symbols): Give emulation a chance
2306 to process unrecognized file before fatal error is
2307 reported, not after.
884fb58e 2308
87748b32
NC
23092001-04-27 Sean McNeil <sean@mcneil.com>
2310
2311 * configure.tgt: Add arm-vxworks target.
2312 * scripttempl/armcoff.sc: Support .text or .data as a section name
2313 prefix.
2314 Define _etext.
35714f2a 2315
7ce691ae
C
23162001-04-13 J.T. Conklin <jtc@redback.com>
2317
2318 * ld.texinfo: Document --fatal-warnings.
2319 * ld.1: Regenerate.
2320
2321 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 2322 warnings have been turned into errors.
7ce691ae
C
2323 * lexsup.c (OPTION_WARN_FATAL): Define.
2324 (ld_options): Entry for --fatal-warnings.
2325 (parse_args): Handle OPTION_WARN_FATAL.
2326 * ld.h (ld_config_type): Add fatal_warnings field.
2327
f5fa8ca2
JJ
23282001-04-13 Jakub Jelinek <jakub@redhat.com>
2329
2330 * ldmain.c (main): Default to discard_sec_merge.
2331 * lexsup.c (OPTION_DISCARD_NONE): Define.
2332 (ld_options): Add --discard-none.
2333 (parse_args): Handle OPTION_DISCARD_NONE.
2334 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2335 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2336 all its input sections match.
2337
fdec3cfc
L
23382001-04-05 Steven J. Hill <sjhill@cotw.com>
2339
2340 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2341 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2342 (eelf32ltsmip.c): New target.
2343 (eelf64btsmip.c): Likewise.
2344 (eelf64ltsmip.c): Likewise.
2345 * Makefile.in: Regenerated.
2346
2347 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2348 target.
2349 (mips*-*-linux-gnu*): Likewise.
2350
2351 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2352 MIPS taget.
35714f2a 2353 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
2354 target.
2355 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2356 endian target.
2357
589bad82
HPN
23582001-04-05 Hans-Peter Nilsson <hp@axis.com>
2359
2360 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2361 correct value of __Stext here.
2362 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2363 .startup section.
2364
2365 * emulparams/crislinux.sh: Remove FIXME.
2366
94202e16
AM
23672001-04-02 Alan Modra <alan@linuxcare.com.au>
2368
2369 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2370 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2371
1268a053
HPN
23722001-03-27 Hans-Peter Nilsson <hp@axis.com>
2373
2374 * configure.tgt (cris-*-*): Change default emulation to criself.
2375 (cris-*-*aout*): New rule.
2376
d85e9ff7
AM
23772001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2378
2379 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2380 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2381
0879a67a
AJ
23822001-03-26 Andreas Jaeger <aj@suse.de>
2383
2384 * ld.texinfo (Overview): Fix syntax in texi code.
2385
0285c67d
NC
23862001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2387
2388 * ld.texinfo: Put @c man indications to generate the ld man page.
2389 When generating man, define all the variables. Define SEEALSO
2390 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2391 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2392 (ld.1): Generate from ld.texinfo.
2393 * Makefile.in: Regenerate.
2394
c20ec07b
NC
23952001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2396
2397 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 2398 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 2399
cc5ce052
UD
24002001-03-17 Ulrich Drepper <drepper@redhat.com>
2401
2402 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2403 is an absolute path look only for this file and not along the path.
2404
a1ab1d2a
UD
24052001-03-17 Ulrich Drepper <drepper@redhat.com>
2406
2407 * emultempl/elf32.em (OPTION_GROUP): New macro.
2408 Add new option Bgroup to longopts.
2409 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2410 (gld*_list_options): Add -Bgroup and -z defs.
2411 * ld.1: Document -Bgroup and -z defs.
2412 * ld.texinfo: Likewise.
2413
788fca5a
MM
24142001-03-07 Michael Meissner <meissner@redhat.com>
2415
2416 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2417 with sections created by -fdata-sections.
2418 (.dynbss,.bss): Ditto.
2419
1c7566d1
AM
24202001-03-05 Alan Modra <alan@linuxcare.com.au>
2421
2422 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2423 after_allocation_default, not gld..._before_allocation.
2424
27b7e12d
AM
24252001-02-27 Alan Modra <alan@linuxcare.com.au>
2426
2427 * configure.in (BFD_VERSION): New.
2428 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2429 * configure: Regenerate.
2430 * Makefile.am: Run "make dep-am"
2431 * Makefile.in: Regenerate.
2432
2bc551c7
TW
24332001-02-26 Timothy Wall <twall@cygnus.com>
2434
2435 * emulparams/elf64_aix.sh: Add additional read-only sections;
2436 uncomment lines which are now required.
2437
1276aefa
NC
24382001-02-26 H.J. Lu <hjl@gnu.org>
2439
2440 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
2441 that problems can be caught whilst loading symbols.
2442 (record_bfd_errors): New function: Report BFD errors and mark
2443 the executable output as being invalid.
1276aefa 2444
41c49998
TW
24452001-02-22 Timothy Wall <twall@cygnus.com>
2446
2447 * configure.host: Add configuration for ia64-*-aix*.
2448 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2449 Add dependencies for eelf64_aix.c.
2450 * Makefile.in: Regenerate.
2451 * configure.tgt: Add ia64-*-aix* mapping.
2452 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 2453 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
2454 AIX-specific test.
2455
78f85fd7
L
24562001-02-20 H.J. Lu <hjl@gnu.org>
2457
2458 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2459 false if we found the file.
2460
1ac7e077 24612001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
2462
2463 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2464 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2465
e135f41b
NC
24662001-02-18 lars brinkhoff <lars@nocrew.org>
2467
2468 * Makefile.am: Add PDP-11 target.
2469 * configure.tgt: Likewise.
2470 * emulparams/pdp11.sh: New file.
2471
a842aceb
DB
24722001-02-17 David O'Brien <obrien@FreeBSD.org>
2473
2474 * configure.host: Add a generic FreeBSD configuration entry such that
2475 all [modern] FreeBSD systems on all platforms will look the same.
2476
24174db0
L
24772001-02-14 H.J. Lu <hjl@gnu.org>
2478
2479 * configure.tgt: Remove mention of earmelf_linux26.
2480
30c3c13a
RH
24812001-02-13 Richard Henderson <rth@redhat.com>
2482
2483 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2484
b46a87b1
L
24852001-02-13 H.J. Lu <hjl@gnu.org>
2486
2487 * ldexp.h (node_type): Add etree_provided.
2488 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2489 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 2490 for etree_provided.
b46a87b1
L
2491 (exp_print_tree): Handle etree_provided.
2492 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2493 etree_provided.
2494
f3988fd9
RH
24952001-02-09 David Mosberger <davidm@hpl.hp.com>
2496
2497 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2498 .IA_64.unwind.* pattern to unwind table section and
2499 .IA_64.unwind_info* pattern to unwind info section.
2500
a85d7ed0
NC
25012001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2502
2503 * Makefile.am: Add linux target for S/390.
2504 * Makefile.in: Likewise.
2505 * configure.host: Likewise.
2506 * configure.tgt: Likewise.
2507 * emulparams/elf64_s390.sh: New file.
2508 * emulparams/elf_s390.sh: New file.
2509
780248c4
JJ
25102001-02-09 Jakub Jelinek <jakub@redhat.com>
2511
2512 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2513 targ_extra_libpath.
2514 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2515
0e2534bd
PB
25162001-02-06 Philip Blundell <philb@gnu.org>
2517
2518 * Makefile.am: Remove mention of earmelf_linux26.
2519 * Makefile.in: Regenerate.
2520
46c1ea57
PB
25212001-02-04 Philip Blundell <philb@gnu.org>
2522
2523 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2524 * emulparams/armelf_linux26.sh: Delete.
2525 * configure.tgt: Remove mention of armelf_linux26 emulation.
2526
0088edd2
NC
25272001-02-01 Nick Clifton <nickc@redhat.com>
2528
2529 * ld.1: Replace occurances of -oformat with --oformat.
2530
02aa14fb
AM
25312001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2532
2533 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2534 load_base is specified.
2535
f813923c
HPN
25362001-01-24 Hans-Peter Nilsson <hp@axis.com>
2537
2538 * emultempl/elf32.em: Correct spelling in comments and listed
2539 options.
2540
c1eb1488
AM
25412001-01-23 Alan Modra <alan@linuxcare.com.au>
2542
2543 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2544 default for the first section of a group of overlay sections.
2545
d9fc3714
AM
25462001-01-22 Alan Modra <alan@linuxcare.com.au>
2547
2548 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2549 * Makefile.in: Regenerate.
2550 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2551 Check for null tool_dir.
2552
6be0ca94
JW
25532001-01-16 Jim Wilson <wilson@redhat.com>
2554
2555 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2556 and IA_64.unwind.info.
2557
b9247304
L
25582001-01-16 H.J. Lu <hjl@gnu.org>
2559
2560 * ldlang.c (lang_check): Merge the private data only if the
2561 input file has contents.
2562
577a0623
AM
25632001-01-14 Alan Modra <alan@linuxcare.com.au>
2564
d952f17a
AM
2565 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2566
ffd6e9de
AM
2567 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2568 enabling search for libmilli. On a relocatable link, make .text
2569 sections unique.
2570 (LDEMUL_AFTER_PARSE): Define.
2571 (hppaelf_finish): Correct spelling of relocatable in comments.
2572
577a0623
AM
2573 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2574 rummage through the script for sections on the unique list.
2575 Correct length of strncmp for ".note".
2576 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2577
2578 * ldlang.c (unique_section_list): New var.
2579 (unique_section_p): New function.
2580 (walk_wild_section): Don't match sections on unique_section_list.
2581 (lang_add_unique): New function.
ffd6e9de 2582 Correct spelling of relocatable in comments.
577a0623
AM
2583
2584 * ldlang.h (struct unique_sections): Declare.
2585 (unique_section_list): Declare.
2586 (unique_section_p): Declare.
2587 (lang_add_unique): Declare.
2588
2589 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2590 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2591
2592 * ld.texinfo (--unique): Update.
2593
b7ed8fad
NC
25942001-01-13 Nick Clifton <nickc@redhat.com>
2595
2596 * lexsup.c (parse_args): Remove spurious white space.
2597
d0398d6a
NC
25982001-01-12 Nick Clifton <nickc@redhat.com>
2599
2600 * lexsup.c (parse_args): Update copyright date.
2601
350fdb00
PB
26022001-01-12 Philip Blundell <pb@futuretv.com>
2603
2604 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2605
60c6797e
KH
26062001-01-10 Kazu Hirata <kazu@hxi.com>
2607
2608 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2609 * scripttempl/h8300h.sc: Fix formatting.
2610 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
2611 * scripttempl/h8500.sc: Likewise.
2612 * scripttempl/h8500b.sc: Likewise.
2613 * scripttempl/h8500c.sc: Likewise.
2614 * scripttempl/h8500m.sc: Likewise.
2615 * scripttempl/h8500s.sc: Likewise.
60c6797e 2616
482e8b32
DB
26172000-01-07 David O'Brien <obrien@BSDi.com>
2618
2619 * emultempl/elf32.em: Only perform Linux ld hints processing when
2620 targeting Linux.
2621
d7ed7ca6
PB
26222001-01-07 Philip Blundell <philb@gnu.org>
2623
2624 * ld.texinfo (Bug Reporting): Update email address for reports.
2625
0fc3347a
NC
26262000-12-31 Nick Clifton <nickc@redhat.com>
2627
2628 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2629 options by checking for a return value of '?' not -1.
2630
e4897a32
NC
26312000-12-28 Nick Clifton <nickc@redhat.com>
2632
2633 * lexsup.c (struct ld_option): Add new enum value:
2634 EXACTLY_TWO_DASHES.
2635 (ld_options[]): Change -omagic, -output and -oformat options
2636 to be EXACTLY_TWO_DASHES.
2637 (OUTPUT_COUNT): Use ARRAY_SIZE.
2638 (parse_args): Change parameter 'argc' to unsigned.
2639 Place EXACTLY_TWO_DASHES options into new really_longopts
2640 array.
2641 If getopt_long_only fails, try calling getopt_long using the
2642 really_longopts array.
2643 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2644 TWO_DASHES options.
2645
2646 * ldlex.h: Fix prototype of parse_args.
2647
2648 * ld.texinfo: Document that long options starting with 'o'
2649 must be preceeded by two dashes. Change example of a single
2650 dashed long option from -oformat to -trace-symbol.
2651
1122a5fc
NC
26522000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2653
2654 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2655 (longopts[]): New --no-default-excludes option.
2656 (gld_${EMULATION_NAME}_list_options): Document.
2657 (gld_${EMULATION_NAME}_parse_args): Handle.
2658
037849a9
NC
26592000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2660
2661 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2662 whitespace, it breaks the K&R C preprocessor.
2663
7ec229ce
DD
26642000-12-11 DJ Delorie <dj@redhat.com>
2665
2666 * ld.texinfo: Add notes about --whole-archive and gcc.
2667
b79e8c78
NC
26682000-11-18 Fred Fish <fnf@be.com>
2669
2670 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2671 (ld_options): Entry for --allow-shlib-undefined.
2672 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2673 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2674 to false.
2675 * ld.texinfo: Document new command line switch.
d952f17a 2676
9a8e2505
GK
26772000-12-12 Geoffrey Keating <geoffk@redhat.com>
2678
2679 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2680 .fixup is actually read/write.
2681 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2682 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2683 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2684
3b16e843 26852000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
2686
2687 * NEWS: Add note about x86_64 architecture.
2688
93b63cd3
DD
26892000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2690
2691 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2692 Set DWARF2 sections to a VMA of zero.
2693
24f6971a
NC
26942000-12-01 Joel Sherrill <joel@OARcorp.com>
2695
d952f17a 2696 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
2697 New targets.
2698 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2699 (sparc*-*-rtems*): Switched from a.out to ELF.
2700
2be3aa03
NC
27012000-11-30 Jan Hubicka <jh@suse.cz>
2702
2703 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2704 (eelf_x86_64.c): New.
2705 * Makefile.in: Regenerate.
2706 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2707 * emulparams/elf_x86_64.sh: New.
2708
8c899858
HPN
27092000-11-30 Hans-Peter Nilsson <hp@axis.com>
2710
2711 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2712 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2713
2714 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2715 merging non-a.out sections into CONSTRUCTING.
2716
e47b9e39
NC
27172000-11-28 Nick Clifton <nickc@redhat.com>
2718
2719 * ld.1 (COPYING): Mention that the GNU Free Documentation
2720 License is present in the sources, but not the output, and
2721 also available from the GNU website.
2722 (GNU Free Documentation License): Comment out this section.
2723
ad95f82a
DB
27242000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2725
2726 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2727 does not use them.
2728
fd89e65f
DB
27292000-11-25 David O'Brien <obrien@FreeBSD.org>
2730
2731 * ld.1: Remove old date so it does not give the impression the manpage
2732 is way out of date.
2733
077b8428
NC
27342000-11-24 Nick Clifton <nickc@redhat.com>
2735
2736 * configure.tgt (xscale-coff): Add target.
2737 (xscale-elf): Add target.
2738
49425d28
NC
27392000-11-24 Fred Fish <fnf@be.com>
2740
d952f17a
AM
2741 * ldmain.c (main): Remove redundant init of config.make_executable
2742 to true.
49425d28 2743
d3480244
RH
27442000-11-15 Richard Henderson <rth@redhat.com>
2745
2746 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2747
1ce7de8b
KH
27482000-11-14 Kazu Hirata <kazu@hxi.com>
2749
2750 * scripttempl/h8300.sc: Fix formatting.
2751 * scripttempl/h8300h.sc: Likewise.
2752 * scripttempl/h8300s.sc: Likewise.
2753
3b16e843 27542000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
2755
2756 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2757
2e418547
PB
27582000-11-09 Philip Blundell <pb@futuretv.com>
2759
2760 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2761 around orphan sections whose names can be represented in C.
2762
c940e6fc
JW
27632000-11-07 Jim Wilson <wilson@redhat.com>
2764
2765 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2766 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2767
704c465c
NC
27682000-11-06 Nick Clifton <nickc@redhat.com>
2769
2770 * ld.texinfo: Add GNU Free Documentation License.
2771 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 2772 * ld.1: Add GNU Free Documentation License.
704c465c 2773
dca7760f
AM
27742000-11-05 Alan Modra <alan@linuxcare.com.au>
2775
2776 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2777 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2778
2779 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2780 Move 2000-11-02 Makefile.in changes to this file.
2781 * Makefile.in: Regenerate.
2782
40a633d5
NC
27832000-11-03 Nick Clifton <nickc@redhat.com>
2784
2785 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2786 constructors and destructors.
2787 * scripttempl/h8300h.sc: Ditto.
2788 * scripttempl/h8300s.sc: Ditto.
2789 * scripttempl/h8500.sc: Ditto.
2790 * scripttempl/h8500b.sc: Ditto.
2791 * scripttempl/h8500c.sc: Ditto.
2792 * scripttempl/h8500m.sc: Ditto.
2793 * scripttempl/h8500s.sc: Ditto.
2794 * scripttempl/v850.sc: Ditto.
2795 * scripttempl/w65.sc: Ditto.
2796 * scripttempl/z8000.sc: Ditto.
2797
59ff2774
NC
27982000-11-02 Per Lundberg <plundis@chaosdev.org>
2799
2800 * Makefile.in (e_i386_chaos.c): New rule.
2801 (ALL_EMULATIONS): Added e_i386_chaos.o.
2802 * emulparams/elf_i386_chaos.sh: New file.
2803 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2804
645571e1
JJ
28052000-10-20 Jakub Jelinek <jakub@redhat.com>
2806
2807 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2808 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2809 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2810 library path suffix.
2811 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2812
c5975a45
HPN
28132000-10-18 Hans-Peter Nilsson <hp@axis.com>
2814
2815 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2816 for consecutive sections.
2817
ea20a7da
CC
28182000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2819
d952f17a
AM
2820 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2821 options.
2822 * ld.texinfo: Added notes about this new option.
ea20a7da 2823
6e45556a
NC
28242000-10-16 Nick Clifton <nickc@redhat.com>
2825
2826 * emultempl/pe.em (_after_open): Add tests of return values from
2827 bfd functions. Emit appropriate error messages if necessary.
2828
b9a69188
NC
28292000-10-13 Nick Clifton <nickc@redhat.com>
2830
2831 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
2832 local variables - they are not used, but leave in the call to
2833 bfd_canonicalize_symtab.
b9a69188
NC
2834 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2835 pe_dll_search_prefix.
2836
627427de 28372000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 2838
627427de
DD
2839 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2840 (longopts): New --dll-search-prefix option.
2841 (gld_${EMULATION_NAME}_list_options): Document.
2842 (gld_${EMULATION_NAME}_parse_args): Handle.
2843 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2844 dynamically, search for a dll named '<prefix><basename>.dll'
2845 in preference to 'lib<basename>.dll' if --dll-search-prefix
2846 is specified.
2847
24376d1b
AM
28482000-10-12 Alan Modra <alan@linuxcare.com.au>
2849
2850 * ldlang.c (section_already_linked): Set kept_section instead of
2851 sec->comdat->sec.
2852
e47d05ad
KH
28532000-10-10 Kazu Hirata <kazu@hxi.com>
2854
2855 * deffile.h: Fix formatting.
2856 * lexsup.c: Likewise.
2857 * mri.c: Likewise.
2858
23a87948
DD
28592000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2860
2861 * pe-dll.c (make_one): Do not generate code thunk for DATA
2862 exports.
2863 (process_def_file): deduce DATA flag for auto-export sumbols.
2864
86b1cc60
KH
28652000-10-09 Kazu Hirata <kazu@hxi.com>
2866
89cdebba
KH
2867 * ld.h: Fix formatting.
2868 * ldcref.c: Likewise.
2869 * ldctor.h: Likewise.
2870 * ldemul.c: Likewise.
2871 * ldemul.h: Likewise.
2872 * ldexp.c: Likewise.
2873 * ldexp.h: Likewise.
2874 * ldfile.c: Likewise.
2875 * ldfile.h: Likewise.
2876 * ldlang.c: Likewise.
2877 * ldlang.h: Likewise.
2878 * ldmain.c: Likewise.
7bfd51a3
KH
2879 * pe-dll.c: Likewise.
2880
2881 * pe-dll.c: Revert some formatting fixes.
86b1cc60 2882
d643799d
KH
28832000-10-08 Kazu Hirata <kazu@hxi.com>
2884
2885 * pe-dll.c: Fix formatting.
2886
08da4cac
KH
28872000-10-05 Kazu Hirata <kazu@hxi.com>
2888
2889 * ldlang.c: Fix formatting.
2890
c2a94a7a
DD
28912000-10-03 DJ Delorie <dj@redhat.com>
2892
2893 * pe-dll.c (fill_edata): initialize entire block
2894 (make_one): fill in correct section.
2895
8c95a62e
KH
28962000-10-03 Kazu Hirata <kazu@hxi.com>
2897
2898 * ldexp.c: Fix formatting.
2899
486e80e2
DD
29002000-10-02 DJ Delorie <dj@redhat.com>
2901
2902 * emultempl/pe.em (gld_*_after_open): detect case where there two
2903 import libraries for same dll; rename one to ensure proper link
2904 order.
2905
2906 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2907 typo
2908 (generate_edata): fix typo
2909
24dd9f75
HPN
29102000-09-29 Hans-Peter Nilsson <hp@axis.com>
2911
2912 * scripttempl/crisaout.sc (ENTRY): Now __start.
2913 (.text): Add default setting for __start.
2914 Remove CONSTRUCTORS handling.
2915 (/DISCARD/): Add .gnu.warning.*.
2916 * emulparams/crislinux.sh (ENTRY): Now __start.
2917 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2918 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2919 (ENTRY): Now __start.
2920 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2921 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2922
4de2d33d
KH
29232000-09-29 Kazu Hirata <kazu@hxi.com>
2924
5cc18311
KH
2925 * deffile.h: Fix formatting.
2926 * ld.h: Likewise.
2927 * ldcref.c: Likewise.
4de2d33d 2928 * ldctor.c: Likewise.
5cc18311 2929 * ldctor.h: Likewise.
4de2d33d 2930 * ldemul.c: Likewise.
5cc18311 2931 * ldemul.h: Likewise.
4de2d33d 2932 * ldexp.c: Likewise.
5cc18311 2933 * ldexp.h: Likewise.
4de2d33d 2934 * ldfile.c: Likewise.
5cc18311 2935 * ldfile.h: Likewise.
4de2d33d 2936 * ldlang.c: Likewise.
5cc18311
KH
2937 * ldlang.h: Likewise.
2938 * lexsup.c: Likewise.
2939 * mri.c: Likewise.
2940 * pe-dll.c: Likewise.
4de2d33d 2941
45b1f63c
DD
29422000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2943
2944 * pe-dll.c (process_def_file): Uninitialized data wasn't
2945 exported with --export-all-symbols switch.
d952f17a 2946
45b1f63c
DD
29472000-09-28 DJ Delorie <dj@redhat.com>
2948
2949 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2950 noname work properly.
2951
47d89dba
AM
29522000-09-28 Alan Modra <alan@linuxcare.com.au>
2953
2954 * ld.texinfo (HPPA ELF32): New section.
2955
2956 * emultempl/hppaelf.em (group_size): New.
2957 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2958 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2959 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2960 options to prevent abbreviations matching.
2961 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2962 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2963
36bdbeec
NC
29642000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2965
2966 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2967 on the m68*-*-elf target. Make it support COFF input objects.
2968
6d5e62f8
KH
29692000-09-21 Kazu Hirata <kazu@hxi.com>
2970
2971 * ldmain.c: Fix formatting.
2972 * ldmisc.c: Likewise.
2973 * ldver.c: Likewise.
2974 * ldwrite.c: Likewise.
2975
e2eb67d9
AM
29762000-09-21 Alan Modra <alan@linuxcare.com.au>
2977
2978 * ldwrite.c (clone_section): Silence gcc warnings.
2979
b3ea3584
AM
29802000-09-20 Alan Modra <alan@linuxcare.com.au>
2981
2982 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2983 out of memory failure.
2984
2985 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2986 (clone_section): Handle out of memory failures. Rename var to
2987 avoid c++ reserved word.
2988
25f72752
AM
29892000-09-18 Alan Modra <alan@linuxcare.com.au>
2990
2991 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2992 stub_name param to stub_sec_name.
2993 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2994
0752970e
NC
29952000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2996
2997 * emultempl/m68kelf.em: New file.
2998 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2999 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3000 * Makefile.in: Regenerate.
3001
92b7e9d8
AM
30022000-09-15 Alan Modra <alan@linuxcare.com.au>
3003
3004 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3005 only as needed.
3006
9b14b192
NC
30072000-09-13 Nick Clifton <nickc@redhat.com>
3008
3009 * ldmain.c (multiple_definition): Disable relaxation if
3010 multiple symbol definitions are encountered - otherwise the
3011 linker could abort with an assertion failure.
3012
891fa266
NC
30132000-09-10 Nick Clifton <nickc@redhat.com>
3014
3015 * mri.c: Fix formatting.
3016
5d64ca4e
L
30172000-09-07 H.J. Lu <hjl@gnu.org>
3018
3019 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3020 * configure: Rebuild.
3021
dd94604f
L
30222000-09-07 H.J. Lu <hjl@gnu.org>
3023
3024 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3025 * Makefile.in: Rebuild.
3026
71bfc0ae
AM
30272000-09-07 Alan Modra <alan@linuxcare.com.au>
3028
3029 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3030 broken list handling. Create __start_SECNAME and __stop_SECNAME
3031 when no place-holder. Add some comments. Test both SEC_CODE and
3032 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 3033 Handle case where no output section statement created.
71bfc0ae 3034
4a428502
AO
30352000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3036
3037 * configure.tgt (sh-*-linux*): Added.
3038 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3039 * Makefile.in: Rebuilt.
3040 * emulparams/shelf_linux.sh: New file.
3041 * emulparams/shlelf_linux.sh: New file.
3042
f9989030
AM
30432000-09-06 Alan Modra <alan@linuxcare.com.au>
3044
3045 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3046 try shuffling sections when the orphan happens to be the place
3047 holder. Keep count of unique section names generated so we speed
3048 the search for a new name.
3049
58cccadb
AO
30502000-09-06 Alexandre Oliva <aoliva@redhat.com>
3051
3052 * configure: Rebuilt with new libtool.m4.
3053
5b343f5a
NC
30542000-09-05 Nick Clifton <nickc@redhat.com>
3055
3056 * Makefile.in: Regenerate.
3057 * aclocal.m4: Regenerate.
3058 * configure: Regenerate.
3059 * config.in: Regenerate.
3060 * po/ld.pot: Regenerate.
3061
3062 * ldint.texinfo: Remove CVS revision marker - it foils local
3063 comparisons.
3064
3065 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 3066
a854a4a7
AM
30672000-09-05 Alan Modra <alan@linuxcare.com.au>
3068
3231d22e
AM
3069 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3070 to stub section flags.
3071 (hppa_for_each_input_file_wrapper): New.
3072 (hppa_lang_for_each_input_file): New.
3073 (lang_for_each_input_file): Define to call above.
3074 (multi_subspace): New.
3075 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3076 (PARSE_AND_LIST_PROLOGUE): Define.
3077 (PARSE_AND_LIST_LONGOPTS): Define.
3078 (PARSE_AND_LIST_OPTIONS): Define.
3079 (PARSE_AND_LIST_ARGS_CASES): Define.
3080 (hppaelf_finish): Call elf32_hppa_set_gp.
3081 (hppaelf_set_output_arch): Remove.
3082 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3083
3084 * emulparams/hppalinux.sh (ELFSIZE): Define.
3085 (MACHINE): Define.
3086 (OTHER_READONLY_SECTIONS): Define.
3087 (DATA_PLT): Define.
3088 (GENERATE_SHLIB_SCRIPT): Define.
3089
5f992e62
AM
3090 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3091 to const throughout. Change `void *' to `PTR' throughout.
3092 (lang_memory_default): Function is local to file, add `static'.
3093
3094 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3095 (ehppalinux.c): Likewise.
3096 (earmelf.c): Likewise.
3097 (earmelf_linux.c): Likewise.
3098 (earmelf_linux26.c): Likewise.
3099 * Makefile.in: Regenerate.
3100
a854a4a7
AM
3101 * ld.h (ld_config_type): Add unique_orphan_sections.
3102 * lexsup.c (OPTION_UNIQUE): Define.
3103 (ld_options): Add "--unique".
3104 (parse_args): Handle it.
3105 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3106 search for an existing output section if unique_orphan_sections is
3107 set. Make use of bfd_get_unique_section_name rather than
3108 duplicating code here.
3109 * ld.texinfo: Describe --unique.
3110
3111 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3112 optional arg to split-by-file.
3113 (parse_args): Handle them.
3114 * ld.texinfo: Update description of these options.
3115 * ldwrite.c (clone_section): Pass in the section name. Replace
3116 local code with bfd_get_unique_section_name.
3117 (split_sections): Tidy code and comments. Use a list traversal
3118 more appropriate to the list construction. Handle cooked section
3119 sizes. Split when split_by_reloc reached rather than exceeded.
3120 Track section size and split when split_by_file reached. Fix
3121 link_order_tail (even though it's not used).
3122 (ldwrite): Modify condition for calling split_sections to suit
3123 changed split_by_reloc and split_by_file.
3124 * ldmain.c (main): Init config.split_by_reloc and
3125 config.split_by_file to -1.
3126 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3127 Change split_by_file to bfd_size_type.
3128
18e03609
NC
31292000-09-02 Nick Clifton <nickc@redhat.com>
3130
3131 * configure.in: Increase version number to 2.10.91.
3132 * NEWS: Mention new ability to support removal of duplicate DWARF2
3133 debug information.
3134 * configure: Regenerate.
3135 * aclocal.m4: Regenerate.
3136 * config.in: Regenerate.
3137
3a9d486c
NC
31382000-09-02 Daniel Berlin <dberlin@redhat.com>
3139
3140 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3141 sections.
a2b64bed 3142 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
3143 * scripttempl/elfd10v.sc: Ditto.
3144 * scripttempl/elfd30v.sc: Ditto.
3145 * scripttempl/elfi370.sc: Ditto.
3146 * scripttempl/elfm68hc11.sc: Ditto.
3147 * scripttempl/elfm68hc12.sc: Ditto.
3148 * scripttempl/elfi386beos.sc: Ditto.
3149 * scripttempl/v850.sc: Ditto.
50bbae35 3150
ac48eca1
AO
31512000-08-31 Alexandre Oliva <aoliva@redhat.com>
3152
3153 * acinclude.m4: Include libtool and gettext macros from the
3154 top level.
3155 * aclocal.m4, configure: Rebuilt.
3156
c13b1b77
NC
31572000-08-25 Nick Clifton <nickc@redhat.com>
3158
3159 * ldlang.c (open_output): When choosing the target for a
3160 particular endianness, do nothing if the target is not
3161 supported.
3162
dcb0bd0e
L
31632000-08-25 H.J. Lu <hjl@gnu.org>
3164
3165 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3166 check -rpath nor LD_RUN_PATH for cross link.
3167 * ld.texinfo: Document the change.
3168
5bcac8a4
HPN
31692000-08-24 Hans-Peter Nilsson <hp@axis.com>
3170
3171 * NEWS: Mention support for CRIS.
3172
6dd8c765
L
31732000-08-23 H.J. Lu <hjl@gnu.org>
3174
3175 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3176 the current runpath list from bfd_elf_get_runpath_list ()
3177 before search.
3178
ec4eb78a
L
31792000-08-22 H.J. Lu <hjl@gnu.org>
3180
3181 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3182 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3183 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3184 trace_file_tries is non-zero.
3185 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3186 if trace_file_tries is non-zero.
3187
3188 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 3189 * NEWS: Mention it.
ec4eb78a 3190
22b36938
JE
31912000-08-14 Jason Eckhardt <jle@cygnus.com>
3192
3193 * NEWS: Mention i860 support.
3194
d73e9da0
AS
31952000-08-14 Andreas Schwab <schwab@suse.de>
3196
3197 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 3198 syntax.
d73e9da0 3199
9ac4db9c
GK
32002000-08-10 Geoff Keating <geoffk@cygnus.com>
3201
3202 * scripttempl/elf.sc: Add a comment giving the correspondence
3203 between sections, per-datum sections, and linkonce sections. Make
3204 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3205 .sbss2.
3206
165589e4
JE
32072000-08-10 Jason Eckhardt <jle@cygnus.com>
3208
3209 * emulparams/elf32_i860.sh: New file.
3210 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3211 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3212 (eelf32_i860.c): New rule.
3213 * Makefile.in: Regenerate.
3214
345a835d
NC
32152000-08-10 Nick Clifton <nickc@cygnus.com>
3216
3217 * emulparams/mipspe.sh (ENTRY): Add definition.
3218
e374f1d9
NC
32192000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3220
3221 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3222 in error message.
3223
236d5abf
NC
32242000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3225
3226 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3227 the final size of .bss section.
3228 * scripttempl/elfm68hc12.sc: Likewise.
3229
4b209b22
AM
32302000-08-04 Alan Modra <alan@linuxcare.com.au>
3231
3232 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3233 gld${EMULATION_NAME}_parse_args for consistency. Combine
3234 lastoptind and prevoptind vars, and keep track of last optind.
3235 (gld_${EMULATION_NAME}_list_options): Rename to
3236 gld${EMULATION_NAME}_list_options.
3237
28423a68
AM
32382000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3239
3240 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3241 (i586-sco-sysv5uw7.1.0).
3242
b2009ff7
L
32432000-07-27 H.J. Lu <hjl@gnu.org>
3244
3245 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3246 (PARSE_AND_LIST_PROLOGUE): New.
3247 (PARSE_AND_LIST_LONGOPTS): Likewise.
3248 (PARSE_AND_LIST_OPTIONS): Likewise.
3249 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3250 (PARSE_AND_LIST_EPILOGUE): Likewise.
3251
04925e1e
AM
32522000-07-28 Alan Modra <alan@linuxcare.com.au>
3253
41392f03
AM
3254 * emultempl/armelf.em: Elide functions common to elf32.em,
3255 ie. most of the file.
3256 (arm_elf_after_open): New. Do arm specific things then call
3257 gld${EMULATION_NAME}_after_open.
3258 (arm_elf_before_allocation): New. Call
3259 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3260 (PARSE_AND_LIST_PROLOGUE): Define.
3261 (PARSE_AND_LIST_SHORTOPTS): Define.
3262 (PARSE_AND_LIST_LONGOPTS): Define.
3263 (PARSE_AND_LIST_OPTIONS): Define.
3264 (PARSE_AND_LIST_ARGS_CASES): Define.
3265 (LDEMUL_AFTER_OPEN): Define.
3266 (LDEMUL_BEFORE_ALLOCATION): Define.
3267 (LDEMUL_BEFORE_PARSE): Define.
3268 (LDEMUL_FINISH): Define.
3269
3270 * emultempl/hppaelf.em: Similarly zap most of this file.
3271 (hppaelf_add_stub_section): Prototype.
3272 (hppaelf_layaout_sections_again): Prototype.
3273 (hook_in_stub): Prototype.
3274 (LDEMUL_SET_OUTPUT_ARCH): Define.
3275 (LDEMUL_FINISH): Define.
3276 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3277
3278 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3279 (EXTRA_EM_FILE): New.
3280 * emulparams/armelf_linux.sh: Likewise.
3281 * emulparams/armelf_linux26.sh: Likewise.
3282 * emulparams/hppalinux.sh: Likewise.
3283 * emulparams/hppaelf.sh: Likewise.
3284 (NOP): Define.
3285
3286 * emultempl/elf32.em: Fix formatting.
3287 (EXTRA_EM_FILE): Source it.
3288 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3289 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3290 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3291 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3292 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3293 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3294 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3295 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3296 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3297 allow functions in this file to be overridden.
3298 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3299
3300 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3301
04925e1e
AM
3302 * emultempl/elf32.em: Reorganize file.
3303
88cdf297
NC
33042000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3305
3306 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3307 specific option to fit 64-bit executable in the lower
3308 31-bit address range. This is done by changing start
3309 address of .interp (the very first section of executable)
3310 and then setting EF_ALPHA_32BIT elf header flag.
3311
20bccb34
NC
33122000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3313
3314 * emultempl/m68kcoff.em: New file.
3315 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3316 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3317 generic.em.
3318 * Makefile.in: Regenerate.
3319
699845ef
L
33202000-07-20 H.J. Lu <hjl@gnu.org>
3321
3322 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3323 and "disable-new-dtags" to stop getopt from treating -d/-e as
3324 abbreviations for these options.
3325
6c1439be
L
33262000-07-20 H.J. Lu <hjl@gnu.org>
3327
3328 * ld.texinfo: Add documentation for --disable-new-dtags and
3329 --enable-new-dtags.
3330
3331 * ldmain.c (main): Initialize link_info.new_dtags to false.
3332
3333 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3334 --disable-new-dtags and --enable-new-dtags.
3335 (gld_${EMULATION_NAME}_list_options): Likewise.
3336
28c309a2
NC
33372000-07-05 Kenneth Block <krblock@computer.org>
3338
a2b64bed
NC
3339 * lexsup.c: Add optional style to demangle switch
3340 * ld.texinfo: Document optional style to demangle switch.
50bbae35 3341
9d06555c
HPN
33422000-07-20 Hans-Peter Nilsson <hp@axis.com>
3343
3344 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3345 ecrislinux.o.
3346 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3347 Regenerate dependencies.
3348 * Makefile.in: Rebuild.
3349 * configure.tgt (cris-*-*): New target.
3350 * emulparams/crisaout.sh, emulparams/criself.sh,
3351 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3352 * po/POTFILES.in, po/ld.pot: Regenerate.
3353
19e3be22
L
33542000-07-20 H.J. Lu <hjl@gnu.org>
3355
3356 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3357 Print out ignored -z options.
3358
e0ee487b
L
33592000-07-19 H.J. Lu <hjl@gnu.org>
3360
19e3be22
L
3361 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3362 (PARSE_AND_LIST_PROLOGUE): New.
3363 (PARSE_AND_LIST_LONGOPTS): Likewise.
3364 (PARSE_AND_LIST_OPTIONS): Likewise.
3365 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3366
3367 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3368
3369 * lexsup.c (ld_options): Comment out 'z'.
3370 (parse_args): Likewise.
3371
3372 * emultempl/elf32.em: Include "elf/common.h".
3373 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3374 options.
3375 (gld_${EMULATION_NAME}_list_options): Likewise.
3376
3377 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 3378
49e56c49
L
33792000-07-19 H.J. Lu <hjl@gnu.org>
3380
3381 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3382 bfd_elf_set_dt_needed_soname ().
3383
9d68bc82
DD
33842000-07-18 DJ Delorie <dj@cygnus.com>
3385
3386 * pe-dll.c (pe_dll_id_target): check object target name also
3387
53db15ed
HPN
33882000-07-18 Hans-Peter Nilsson <hp@axis.com>
3389
3390 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3391 ${INIT_END} if relocating.
3392 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3393
0ad8cf4c
DD
33942000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3395
a2b64bed 3396 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
3397 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3398 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3399 errors introduced by the old dynamic lib search order.
3400
874c8c99
DD
34012000-07-17 DJ Delorie <dj@cygnus.com>
3402
3403 * pe-dll.c (process_def_file): auto-export data items also
3404 (pe_process_import_defs): also see if _imp_ form needed
3405
5b4cf3f4
DD
34062000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3407
3408 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3409 for dll import libraries
3410
062739d1
NC
34112000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3412
3413 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 3414 gcc 2.95.2 and later.
062739d1 3415
1c64c4ed
NC
34162000-07-11 Kazu Hirata <kazu@hxi.com>
3417
50bbae35
AM
3418 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3419 message.
1c64c4ed 3420
b71e2778
AM
34212000-07-10 Alan Modra <alan@linuxcare.com.au>
3422
3423 * ldemul.h (struct lang_input_statement_struct): Remove forward
3424 declaration.
3425 (struct search_dirs): Likewise.
3426 * ldfile.h (struct lang_input_statement_struct): Likewise.
3427 Protect file from multiple inclusion.
3428 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3429 declaration from macro to file scope.
3430
3431 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3432 * ldgram.y: Likewise here.
3433 * ldlang.c: And here.
3434 * ldmain.c: And here.
3435 * mpw-elfmips.c: And here.
3436 * mpw-eppcmac.c: And here.
3437 * emultempl/aix.em: And here.
3438 * emultempl/armcoff.em: And here.
3439 * emultempl/armelf.em: And here.
3440 * emultempl/armelf_oabi.em: And here.
3441 * emultempl/beos.em: And here.
3442 * emultempl/elf32.em: And here.
3443 * emultempl/hppaelf.em: And here.
3444 * emultempl/linux.em: And here.
3445 * emultempl/lnk960.em: And here.
3446 * emultempl/pe.em: And here.
3447 * emultempl/sunos.em: And here.
3448 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3449 * mpw-idtmips.c: Ditto.
3450 * emultempl/generic.em: Ditto.
3451 * emultempl/gld960.em: Ditto.
3452 * emultempl/gld960c.em: Ditto.
3453 * emultempl/mipsecoff.em: Ditto.
3454 * emultempl/ticoff.em: Ditto.
3455 * emultempl/vanilla.em: Ditto.
3456
3457 * pe-dll.c: Include ldfile.h
3458 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3459
3460 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3461 arguments to bfd_elf32_size_dynamic_sections call.
3462 (gldelf32ebmip_place_orphan): Add missing arguments to
3463 lang_leave_output_section_statement call.
3464
2ef53d66
L
34652000-07-10 H.J. Lu <hjl@gnu.org>
3466
3467 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3468 DLL_SUPPORT.
3469 (strhash): Likewise.
3470 (compute_dll_image_base): Likewise.
3471 (pe_undef_found_sym): Likewise.
3472 (pe_undef_cdecl_match): Likewise.
3473 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3474 argument "arch" with ATTRIBUTE_UNUSED.
3475
9a8cbb09
AM
34762000-07-10 Alan Modra <alan@linuxcare.com.au>
3477
3478 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3479
3480 From Ryan Bradetich <rbradetich@uswest.net>
3481 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 3482
4900fc06
AM
34832000-07-09 Alan Modra <alan@linuxcare.com.au>
3484
3485 Changes to create multiple linker stubs, positioned immediately
3486 before the section where they are required.
3487 * emultempl/hppaelf.em: Include elf32-hppa.h.
3488 (stub_sec, file_chain): Delete.
3489 (hppaelf_create_output_section_statements): Don't make a stub
3490 section here.
3491 (hook_stub_info): New struct.
3492 (hook_in_stub): New function.
3493 (hppaelf_add_stub_section): New function.
3494 (hppaelf_finish): Do nothing for relocateable links. Modify the
3495 call to elf32_hppa_size_stubs. Move code for updating section
3496 layout from here...
3497 (hppaelf_layaout_sections_again): ..to here, a new function.
3498
3499 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3500 broken list handling. Pass in a pointer to the list.
3501 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3502 for above changes.
3503 (hppaelf_before_parse): Prototype.
3504 (hppaelf_set_output_arch): Prototype.
3505 (hppaelf_create_output_section_statements): Prototype.
3506 (hppaelf_delete_padding_statements): Prototype.
3507 (hppaelf_finish): Prototype.
3508
3509 Merge from elf32.em
3510 * emultempl/hppaelf.em: Include ctype.h.
3511 (struct orphan_save): New.
3512 (gld${EMULATION_NAME}_place_orphan): New.
3513 (output_rel_find): New.
3514 (hppaelf_get_script): Update from elf32.em.
3515 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3516 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 3517 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
3518
3519 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3520 ehppalinux.o, sort it. Regenerate dependencies.
3521 (ehppalinux.c): Depend on hppaelf.em
3522 * Makefile.in: Regenerate.
3523
3524 * configure.tgt: targ_emul=hppalinux for hppa*linux
3525
3526 * emulparams/hppalinux.sh: New.
3527 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3528
227aeb07
AM
35292000-07-08 Alan Modra <alan@linuxcare.com.au>
3530
3531 * lexsup.c (parse_args): Copy section name.
3532
28609fd4 35332000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 3534
2ef53d66 3535 * emultempl/pe.em: institute the following search order for
602e90d3
DD
3536 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3537 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3538 static lib (libfoo.a) if none of the above are found.
3539
5f577f7d
DD
35402000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3541
50bbae35 3542 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 3543 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 3544 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
3545 (gld_${EMULATION_NAME}_parse): Handle.
3546 (strhash): New static function.
50bbae35 3547 (compute_dll_image_base): New static function.
5f577f7d
DD
3548 (gld_${EMULATION_NAME}_set_symbols): Use.
3549
9a8cbb09 35502000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
3551
3552 * MAINTAINERS: new
3553
3548145d 35542000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
3555
3556 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3557 * emulparams/elf32btsmip.sh: New file.
3558 * Makefile.am: Add traditional mips target.
3559 * Makefile.in: Rebuild.
3560
67798033
L
35612000-07-01 H.J. Lu <hjl@gnu.org>
3562
3563 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3564 automake to use YLWRAP.
3565 * Makefile.in: Rebuild.
3566
0bdaf48b
AM
35672000-07-01 Alan Modra <alan@linuxcare.com.au>
3568
3569 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3570 (CLEANFILES): Add DEPA.
3571 * Makefile.in: Regenerate.
3572
c9e769c2
TW
35732000-06-30 Timothy Wall <twall@ppc>
3574
3575 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3576 the page in the upper octet of the address.
3577
65aa24b6
NC
35782000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3579
3580 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3581
4667035e
AM
35822000-06-24 Alan Modra <alan@linuxcare.com.au>
3583
3584 * NEWS: arm-elf does --gc-sections too.
3585
1581f8c9
AM
35862000-06-22 Alan Modra <alan@linuxcare.com.au>
3587
3588 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3589 find one.
3590 * Makefile.in: Regenerate.
3591
01580992
L
35922000-06-21 H.J. Lu <hjl@gnu.org>
3593
3594 * Makefile.am: Rebuild dependency.
3595 * Makefile.in: Rebuild.
3596
bbeb2e03
L
35972000-06-20 H.J. Lu <hjl@gnu.org>
3598
3599 * Makefile.am: Rebuild dependency.
3600 * Makefile.in: Rebuild.
3601
74459f0e
TW
36022000-06-20 Timothy Wall <twall@cygnus.com>
3603
3604 * scripttempl/tic54xcoff.sc: New.
3605 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3606 * gen-doc.texi: Add flag for TI COFF.
3607 * ld.texinfo: Add documentation for TI COFF handling switches.
3608 * emultempl/ticoff.em: New. TI COFF handling.
3609 * configure.tgt: Add tic54x target.
3610 * Makefile.am: Add tic54x target.
3611 * Makefile.in: Ditto.
3612
2ab47eed
AM
36132000-06-20 Alan Modra <alan@linuxcare.com.au>
3614
3615 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3616 checking for backslashes.
3617
919e4093
AM
36182000-06-19 Alan Modra <alan@linuxcare.com.au>
3619
3620 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3621
987fd5b4
AM
36222000-06-18 Alan Modra <alan@linuxcare.com.au>
3623
3624 * NEWS: Update list of targets supporting --gc-sections.
3625
3626 * scripttempl/elf.sc: KEEP .eh_frame contents.
3627 * scripttempl/elfd30v.sc: Same here.
3628
60bcf0fa
NC
36292000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3630
3631 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3632 and m68hc11 (elf).
3633 * Makefile.in: Rebuild.
3634 * configure.tgt: Recognize m68hc12 and m68hc11.
3635 * scripttempl/elfm68hc12.sc: New file.
3636 * emulparams/m68hc12elfb: New emulation.
3637 * emulparams/m68hc12elf: New emulation.
3638 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3639 (includes a memory.x script to define the ROM and RAM banks).
3640 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3641 New configuration files for support of Motorola 68hc11
3642
c7c54483
AM
36432000-06-15 Alan Modra <alan@linuxcare.com.au>
3644
3645 * ldmain.c (main): Only change SEC_READONLY for final link.
3646
bcef29e6
L
36472000-06-13 H.J. Lu <hjl@gnu.org>
3648
3649 * configure: Regenerate.
3650
946efd95
DB
36512000-06-08 David O'Brien <obrien@FreeBSD.org>
3652
3653 * configure.in (VERSION): Update to show this is the CVS mainline.
3654
57a6fd07
DB
36552000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3656
3657 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3658 input objects to be ECOFF.
3659 (check_sections): einfo takes %B, not %P, to print a BFD name.
3660
e06cae36
L
36612000-06-05 Michael Matz <matz@ifh.de>
3662
3663 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 3664 version scripts.
e06cae36 3665
d952f17a 3666 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 3667
2f0b56c0
DC
36682000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3669
3670 * emulparams/avr1200.sh (STACK): Define as 0.
3671 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3672 * emulparams/avr4433.sh (STACK): Likewise.
3673 * emulparams/avr44x4.sh (STACK): Likewise.
3674 * emulparams/avr85xx.sh (STACK): Likewise.
3675 * emulparams/avrmega103.sh (STACK): Likewise.
3676 * emulparams/avrmega161.sh (STACK): Likewise.
3677 * emulparams/avrmega603.sh (STACK): Likewise.
3678 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3679 (__stack): Define from ${STACK} for main().
3680
2114f57b
AM
36812000-05-26 Alan Modra <alan@linuxcare.com.au>
3682
3683 * Makefile.am: Update dependencies with "make dep-am"
3684 * Makefile.in: Regenerate.
3685
5af11cab
AM
36862000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3687
3688 * ldmain.c: Include filenames.h.
3689 (set_scripts_dir): Support backslashes in program name.
3690
1f0df59a
NC
36912000-05-22 Igor Shevlyakov <igor@windriver.com>
3692
3693 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
3694 read-only, don't forget to reset SEC_READONLY because it
3695 could be already set.
1f0df59a 3696
176355da
NC
36972000-05-22 Thomas de Lellis <tdel@windriver.com>
3698
50bbae35
AM
3699 * ld.1: Add documentation for new command line option:
3700 --section-start <sectionname>=<sectionorg>
3701 This is a generic version of -Ttext etc. which accepts
3702 any section name as a parameter instead of just text/data/
3703 bss.
3704 * ld.texinfo: More docs.
3705 * NEWS: More docs.
3706 * lexsup.c: (parse_args): Recognize new command line option.
176355da 3707 (ld_options): Add new option.
50bbae35 3708
8c5ff972
L
37092000-05-18 H.J. Lu <hjl@gnu.org>
3710
3711 * lexsup.c (parse_args): `i' == `r', not `q'.
3712
3b16e843 37132000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
3714
3715 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3716
a712da20
NC
37172000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3718 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 3719
a712da20
NC
3720 Add support for '-q' == '--emit-relocs' switch.
3721 * ldmain.c (main): Default to false.
3722 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3723 * NEWS: Describe the emitrelocations switch.
3724 * ld.texinfo: Describe the emitrelocations switch.
3725
690a460e
NC
37262000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3727
a2b64bed 3728 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
3729 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3730 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3731 link options.
50bbae35 3732
c2f1343c
AM
37332000-05-15 David O'Brien <obrien@FreeBSD.org>
3734
3735 * lexsup.c (parse_args): Update the year in the copyright notice.
3736
897083bd
AM
37372000-05-13 Alan Modra <alan@linuxcare.com.au>
3738
3739 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3740 Replace defines with those from intl/libgettext.h to quieten gcc
3741 warnings.
3742
cd4c806a
L
37432000-05-10 H.J. Lu <hjl@gnu.org>
3744
3745 * ldlang.c (open_input_bfds): Don't load the same file within
3746 a group again if the whole archive has been loaded already.
3747
93697284
AM
37482000-05-03 Alan Modra <alan@linuxcare.com.au>
3749
3750 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3751 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3752 strtoul.
3753
3b16e843 37542000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 3755
99a4150f 3756 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 3757
ebd6fc29
JW
3758 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3759 host "ia64-*-linux-gnu*".
3760
a1934524
AM
37612000-04-29 Andreas Jaeger <aj@suse.de>
3762
3763 * ld.h: Correctly check GCC version.
3764
3b16e843 37652000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
3766
3767 * Makefile.am: Add PA64 support. Add missing dependencies for
3768 PA32 elf support.
3769 * Makefile.in: Rebuilt.
3770 * configure.tgt: Add PA64 support (currently disabled).
3771
aea4bd9d
AM
37722000-04-25 Alan Modra <alan@linuxcare.com.au>
3773
3774 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3775 (output_rel_find): New function.
3776 (hold_section, hold_use): Delete.
3777 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3778 hold_interp): Make local to place_orphan.
3779 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3780 rather than place_section to find possible previous use of orphan.
3781 Similarly find the place-holder output sections. Use returned
3782 value from lang_enter_output_section_statement rather than calling
3783 lang_output_section_statement_lookup.
3784 * emultempl/armelf.em: Same here.
3785 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3786
3787 * ldlang.c (lang_enter_output_section_statement): Return output
3788 section statement.
3789 * ldlang.h (lang_enter_output_section_statement): Change
3790 declaration too.
3791
3792 * ldlang.h (lang_output_section_statement): Export it.
3793 * ldlang.c (lang_output_section_statement): Ditto.
3794
2b5fc1f5
NC
37952000-04-24 Nick Clifton <nickc@cygnus.com>
3796
3797 * ld.texinfo (Output Section Data): Add note that section data
3798 commands cannot appear outside of section directives.
3799
d8475ff6
JL
38002000-04-2 Matthew Green <mrg@cygnus.com>
3801
3802 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3803
3b16e843
NC
38042000-04-21 Richard Henderson <rth@cygnus.com>
3805 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
3806
3807 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3808 (eelf64_ia64.c): New rule.
3809 * Makefile.in: Rebuild.
3810 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3811 * emulparams/elf64_ia64.sh: New file.
50bbae35 3812
c9637625
RH
38132000-04-21 Richard Henderson <rth@cygnus.com>
3814
3815 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3816
28ea9521
AM
38172000-04-19 Alan Modra <alan@linuxcare.com.au>
3818
3819 * dep-in.sed: Match space at start of file name, not at end.
3820
20d04697
L
38212000-04-18 H.J. Lu <hjl@gnu.org>
3822
3823 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3824 lang_leave_output_section_statement () after calling
3825 lang_enter_output_section_statement ().
3826 * emultempl/armelf.em: Likewise.
3827
5ba47421
AM
38282000-04-18 Alan Modra <alan@linuxcare.com.au>
3829
3830 * emultempl/elf32.em (struct orphan_save): Add section field.
3831 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3832 better order, and place first orphan section as we did before the
3833 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3834 Don't call make_bfd_section here, let wild_doit do the job for us.
3835 Don't build a statement list when we'll only throw it away.
3836 * emultempl/armelf.em: Ditto.
3837 * emultempl/pe.em: Similarly.
3838
bdbe5705
GK
38392000-04-14 Geoff Keating <geoffk@cygnus.com>
3840
3841 * scripttempl/elfppc.sc: Remove.
3842 * emulparams/elf32ppc.sh: Use elf.sc.
3843 * emulparams/elf32lppc.sh: Use elf.sc.
3844 * emulparams/elf32ppclinux.sh: Use elf.sc.
3845 * emulparams/elf32ppcsim.sh: New file.
3846 * emulparams/elf32lppcsim.sh: New file.
3847 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3848 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3849 * Makefile.in: Regenerate.
3850 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3851
01cc8ff8
AM
38522000-04-14 Alan Modra <alan@linuxcare.com.au>
3853
5ba47421 3854 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 3855 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
3856 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3857 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
3858 Also set all relocateable section start addresses.
3859
6c86c541
GK
38602000-04-13 Geoff Keating <geoffk@cygnus.com>
3861
3862 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3863 Add new BSS_PLT variable for when .plt need not be contained in
3864 the file. Move _etext so that it is also after .fini, and provide
3865 both etext and _etext with a leading underscore. Mark the start
3866 and end of .sbss.
3867
6a345e87
AM
38682000-04-12 Alan Modra <alan@linuxcare.com.au>
3869
3870 * emultempl/elf32.em (struct orphan_save): New.
3871 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3872 hold_interp): Make them struct orphan_save.
3873 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3874 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3875 the end of the relevant section list. Also add associated section
3876 statements to the end of any previous orphan statements.
3877 * emultempl/armelf.em: Similarly.
3878 * emultempl/pe.em: Similarly.
3879
8be86746
AM
38802000-04-11 Alan Modra <alan@linuxcare.com.au>
3881
3882 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3883
3b16e843 38842000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 3885
a2d91340 3886 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 3887 --enable-build-warnings option.
a2d91340
AC
3888 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3889 * Makefile.in, configure: Re-generate.
3890
41b49281
AM
38912000-04-04 Alan Modra <alan@linuxcare.com.au>
3892
8ad3436c
AM
3893 * po/ld.pot: Regenerate.
3894
3895 * lexsup.c (help): Restore translated part of bug string.
3896
41b49281
AM
3897 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3898 (DEP): Quote when passing vars to sub-make. Add warning message
3899 to end.
3900 (DEP1): Rewrite for "gcc -MM".
3901 (CLEANFILES): Add DEP2.
3902 Update dependencies.
3903 * Makefile.in: Regenerate.
3904
c20f4f8c
AM
39052000-04-03 Alan Modra <alan@linuxcare.com.au>
3906
3907 * ld.h: #include "bin-bugs.h"
3908 * lexsup.c (help): Use REPORT_BUGS_TO.
3909
adde6300
AM
39102000-03-27 Denis Chertykov <denisc@overta.ru>
3911
3912 * configure.tgt (avr-*-*): New target support.
3913 * Makefile.am: Likewise.
3914 * scripttempl/elf32avr.sc: New script file.
3915 * emulparams/avr1200.sh: New file.
3916 * emulparams/avr23xx.sh: New file.
3917 * emulparams/avr4433.sh New file.
3918 * emulparams/avr44x4.sh New file.
3919 * emulparams/avr85xx.sh New file.
3920 * emulparams/avrmega103.sh New file.
3921 * emulparams/avrmega161.sh New file.
3922 * emulparams/avrmega603.sh New file.
3923 * Makefile.in: Regenerate.
3924
9282ff41
L
39252000-03-09 Andreas Jaeger <aj@suse.de>
3926
3927 * Makefile.am (check-DEJAGNU): Also unset LANG.
3928 * Makefile.in: Rebuild.
3929
a9998805
ILT
39302000-03-06 Ian Lance Taylor <ian@zembu.com>
3931
3932 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3933 archive.
3934
f9bc20e7
NC
39352000-03-02 H.J. Lu <hjl@gnu.org>
3936
3937 * emulparams/elf32mcore.sh: Include "getopt.h".
3938
4e277b38
ILT
39392000-03-01 Ian Lance Taylor <ian@zembu.com>
3940
3941 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3942
f0c87f88
NC
39432000-03-01 H.J. Lu <hjl@gnu.org>
3944
3945 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3946 * emulparams/shpe.sh: Likewise.
3947
39482000-03-01 Nick Clifton <nickc@cygnus.com>
3949
3950 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3951 to unused parameters.
3952
3953 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3954 functions only used by DLL code.
3955 (_place_orphan): Initialise 'dollar'.
3956
b6f29aaa
L
39572000-03-01 H.J. Lu <hjl@gnu.org>
3958
3959 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3960 indicate if the undefined symbol is a fatal error or not.
3961 Don't delete the output file if "fatal" is false.
3962
af28fce3
L
39632000-02-29 H.J. Lu <hjl@gnu.org>
3964
50bbae35 3965 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
3966 Set LC_COLLATE and LC_ALL to null and export them. It is for
3967 sort which expects the C locale.
3968 Add $(LIBS) to all $(HOSTING_LIBS).
3969 * Makefile.in: Rebuild.
3970
40d109bf
AM
39712000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3972
3973 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3974 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3975 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3976 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3977 find_potential_libraries.
3978
db5be682
JB
39792000-02-28 Jim Blandy <jimb@redhat.com>
3980
3981 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 3982 list entries; the lexer considers commas to be valid part of a
db5be682
JB
3983 filename, so in something like `foo, bar' the comma is considered
3984 part of the first filename, `foo,'.
3985 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3986
3558ff4c
ILT
39872000-02-27 Loren J. Rittle <ljrittle@acm.org>
3988
3989 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3990 host "i[3456]86-*-freebsdelf*".
3991
4eee2681
ILT
39922000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3993
3994 * scripttempl/i386go32.sc: Move misplaced semicolons.
3995
8d75d12d
ILT
39962000-02-25 Ian Lance Taylor <ian@zembu.com>
3997
3998 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3999 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4000 (eelf64hppa.c, ehppaelf.c): Remove targets.
4001 * Makefile.in: Rebuild.
4002
a1836d49
AO
40032000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4004
ad51fb57
AO
4005 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4006 GNU/Linux/sparc, but keep the default as 32.
4007
a1836d49
AO
4008 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4009 it default if sparcv9 or sparc64.
4010
344a211f
NC
40112000-02-24 Nick Clifton <nickc@cygnus.com>
4012
4013 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4014 * Makefile.in: Regenerate.
4015 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4016
4017 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4018 find_potential_libraries.
4019 * ldemul.c (ldemul_find_potential_libraries): New function.
4020
4021 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 4022 exported.
344a211f
NC
4023 (ldfile_open_file): Call ldemul_find_potential_libraries.
4024 * ldfile.h: Add prototype for ldfile_open_file_search.
4025
4026 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4027
4028 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4029 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4030
4031 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4032 (gld_X_find_potential_libraries): New function. Search for
4033 libraries called "*.lib".
4034
a2b64bed 4035 * scripttempl/pe.sc: Add .pdata section.
344a211f 4036
eaba1dd3
RH
40372000-02-23 Richard Henderson <rth@cygnus.com>
4038
4039 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4040 Add and use memory regions.
4041
5b93d8bb
AM
40422000-02-23 Linas Vepstas (linas@linas.org)
4043
4044 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4045
4046 * Makefile.am: Add support for Linux/IBM 370.
4047 * configure.tgt: Likewise.
4048
4049 * Makefile.in: Regenerate.
4050
f6af82bd
AM
40512000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4052
4053 * ldlang.c (print_input_section, print_data_statement,
4054 print_reloc_statement, print_padding_statement, insert_pad,
4055 size_input_section, lang_check_section_addresses,
4056 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 4057 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
4058 (lang_do_assignments): Also change `size' to unsigned.
4059
9e673ad1
RH
40602000-02-16 Richard Henderson <rth@cygnus.com>
4061
4062 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4063
562d3460
TW
40642000-02-16 Timothy Wall <twall@cygnus.com>
4065
4066 * mri.c (mri_draw_tree): Add default LMA region argument to call
4067 to lang_leave_output_section_statement.
4068 * ldlang.h: Update prototypes with LMA region arguments.
4069 * ldlang.c (lang_size_sections): Encapsulate region bounds
4070 checking in os_check_region call.
4071 (os_check_region): New function.
4072 (lang_output_section_statement_lookup): Initialize lma_region.
4073 (lang_leave_output_section_statement): Add LMA region argument.
4074 (lang_leave_overlay): Ditto.
4075 * ldgram.y: Handle LMA region syntax.
4076 * ld.texinfo (Output Section Description): Describe LMA region usage.
4077 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 4078 lma region in call to lang_leave_output_section_statement.
562d3460 4079 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 4080 lma region in call to lang_leave_output_section_statement.
562d3460 4081 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 4082 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
4083
4084
9e4ed18c
TW
40852000-02-04 Timothy Wall <twall@redhat.com>
4086
4087 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4088 octets when calculating section end addresses.
4089
32edc927
TW
40902000-02-04 Timothy Wall <twall@redhat.com>
4091
4092 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4093
4cbfc3ac
TW
40942000-02-03 Timothy Wall <twall@redhat.com>
4095
a2b64bed 4096 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 4097 octet count.
a2b64bed 4098 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
4099 print_reloc_statement, print_padding_statement): Print target
4100 address values and section sizes as bytes, not octets.
4101 (insert_pad) Calculate padding size in octets, and adjust "dot"
4102 by bytes.
4103 (size_input_section) Always adjust "dot" by bytes, not octets.
4104 (lang_check_section_addresses, lang_do_assignments) Adjust
4105 "dot" by bytes, not octets. Use the larger of the directive size
4106 or octets_per_byte for the number of octets actually allocated in
4107 the output section.
4108 (lang_set_startof) Make sure STARTOF returns a target address.
4109 (lang_one_common) Record size changes in octets.
4110 (lang_abs_symbol_at_end_of) Section end symbol's value is
4111 recorded in target bytes.
4112 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4113 to be clear about behavior when an octet is smaller than one byte.
50bbae35 4114
305c7206
AM
41152000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4116
4117 * ldcref.c (output_cref): Don't pass message strings to printf
4118 as format arg.
4119 Update copyright.
4120
4121 * ldmisc.c (vfinfo): Same here.
4122 Update copyright.
4123
e1c47aa4
AM
41242000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4125
4126 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4127 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4128 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4129 Add missing NULL initialisers, and comments.
4130
4131 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4132
13392b77
NC
41332000-01-21 Nick Clifton <nickc@cygnus.com>
4134
4135 * ldlang.c (lang_size_sections): Fix typo in comment.
4136
cce4c4c5
NC
41372000-01-18 H.J. Lu <hjl@gnu.org>
4138
4139 * ldlang.c (lang_size_sections): Also update the current
4140 address of a region if the SEC_NEVER_LOAD bit is not set.
4141
0decc840
NC
41422000-01-10 Philip Blundell <pb@futuretv.com>
4143
4144 * configure.tgt (arm*-*-conix*): New target.
4145
4e53152f
NC
41462000-01-07 Nick Clifton <nickc@cygnus.com>
4147
4148 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
4149 line switches with -Wl, (or whatever is appropriate) if it is
4150 being invoked by a comnpiler driver program.
50bbae35 4151 Fix description of the behaviour of the -n command line switch.
4e53152f 4152
3b16e843 41532000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
4154
4155 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4156 (name_list): New.
4157 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4158 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4159 (exclude_name_list): New.
4160 ldlang.c (walk_wild_section): Support list of excluded files.
4161 (print_wild_statement): Likewise.
4162 (lang_add_wild): Likewise.
4163 * ldlang.h (lang_wild_statement_type): Likewise.
4164 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 4165
5aaace27
NC
41662000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4167
870df5dc
NC
4168 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4169 (process_def_file): Use.
4170 (pe_dll_compat_implib): New variable.
4171 (make_one): Use.
50bbae35 4172
870df5dc
NC
4173 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4174 pe_dll_compat_implib.
50bbae35
AM
4175
4176 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
4177 compat-implib options.
4178 (gld_${EMULATION_NAME}_list_options): List new options.
4179 (gld_${EMULATION_NAME}_parse_args): Handle.
4180
50bbae35 4181 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 4182 dll.
50bbae35
AM
4183
4184 * deffilep.y (opt_name): Allow "." in name.
5aaace27 4185
2f6d2f85 4186For older changes see ChangeLog-9899
252b5132
RH
4187\f
4188Local Variables:
4189mode: change-log
4190left-margin: 8
4191fill-column: 74
4192version-control: never
4193End:
This page took 0.346492 seconds and 4 git commands to generate.