* elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
13ae64f3
JJ
12002-05-23 Jakub Jelinek <jakub@redhat.com>
2
3 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
4 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
5 output section if necessary. Handle .tbss.
6 (lang_size_sections): Clear _raw_size for .tbss section
7 (it allocates space in PT_TLS segment only).
8 * ldwrite.c (build_link_order): Build link order for .tbss too.
9
68b2fc7a
AM
102002-05-23 Alan Modra <amodra@bigpond.net.au>
11
12 * configure.in: Correct spelling of AC_PREREQ.
13
70b0be79
CF
142002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
15
16 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
17 default.
18 (autofilter_objlist): Add crtbegin.o, crtend.o.
19
202002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
21
22 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
23 (longopts): Add new option --exclude-libs.
24 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
25 (gld_${EMULATION_NAME}_parse_args): Use it.
26 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
27 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
28 from whole archives.
29 (pe_dll_add_excludes): Set excludes->type.
30 (auto_export): Add new variable libname and set to archive basename if
31 abfd. Use it when filtering default and user-specified libarary
32 excludes. Let string "ALL" mean all libs when filtering user-specified
33 libs.
34 * ld.texinfo: Document --exclude-libs.
35
fac1652d
AM
362002-05-22 Alan Modra <amodra@bigpond.net.au>
37
38 * ldemul.c (ldemul_new_vers_pattern): New function.
39 * ldemul.h (ldemul_new_vers_pattern): Declare.
40 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
41 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
42 * emultempl/ppc64elf.em (dotsyms): New static var.
43 (gld${EMULATION_NAME}_new_vers_pattern): New function.
44 (LDEMUL_NEW_VERS_PATTERN): Define.
45 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
46 (PARSE_AND_LIST_LONGOPTS): Likewise.
47 (PARSE_AND_LIST_ARGS_CASES): Handle them.
48 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
49 initialiser.
50 * emultempl/armcoff.em: Likewise.
51 * emultempl/armelf_oabi.em: Likewise.
52 * emultempl/beos.em: Likewise.
53 * emultempl/elf32.em: Likewise.
54 * emultempl/generic.em: Likewise.
55 * emultempl/gld960.em: Likewise.
56 * emultempl/gld960c.em: Likewise.
57 * emultempl/linux.em: Likewise.
58 * emultempl/lnk960.em: Likewise.
59 * emultempl/m68kcoff.em: Likewise.
60 * emultempl/mipsecoff.em: Likewise.
61 * emultempl/pe.em: Likewise.
62 * emultempl/sunos.em: Likewise.
63 * emultempl/ticoff.em: Likewise.
64 * emultempl/vanilla.em: Likewise.
65
eb3d6bb8
AM
662002-05-22 Alan Modra <amodra@bigpond.net.au>
67
68 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
69 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
70 (LIB_SEARCH_DIRS): No need to use "tr".
71 (COMPILE_IN): Only set for native targets.
72 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
73 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
74 * configure.tgt (powerpc*): Set tdir_*.
75 (powerpcle*): Correct targ_extra_emuls.
76 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
77 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
78
54f24647
AM
792002-05-22 Alan Modra <amodra@bigpond.net.au>
80
81 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
82 calling lang_add_entry.
83
aa713662
L
842002-05-21 H.J. Lu (hjl@gnu.org)
85
86 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
87 "-z muldefs".
88 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
89
90 * ld.texinfo: Updated for --allow-multiple-definition and
91 "-z muldefs".
92
93 * ldmain.c (main): Initialize the allow_multiple_definition
94 field to false.
95
96 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
97 (ld_options): Add --allow-multiple-definition.
98 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
99
658f2588
JT
1002002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
101
102 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
103 (earmelfb_nbsd.c): New rule.
104 * Makefile.in: Regenerate.
105 * configure.tgt (armeb-*-netbsdelf*): New target.
106 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
107 (arm-*-netbsd*): Likewise.
108 * emulparams/armelfb_nbsd.sh: New file.
109
ca10c62d
TR
1102002-05-18 Tom Rix <trix@redhat.com>
111
112 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
113 support.
114
fae1e84f
MM
1152002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
116
117 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
118 * Makefile.in: Regenerate.
119 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
120
7c8bf1e8
MM
1212002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
122
123 * emulparams/avr1.sh: New file.
124 * emulparams/avr2.sh: New file.
125 * emulparams/avr3.sh: New file.
126 * emulparams/avr4.sh: New file.
127 * emulparams/avr5.sh: New file.
128 * scripttempl/avr.sc: New file.
129
c2c01aa7
AM
1302002-05-15 Alan Modra <amodra@bigpond.net.au>
131
132 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
133 (lang_place_orphans): Abort if just_syms_flag.
134
f1f0d9ab
TR
1352002-05-10 Tom Rix <trix@redhat.com>
136
137 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
138 architecture and machine information in the output bfd.
139 (gld*_before_parse): Remove old arch and machine code.
140 (choose_target): Rename to gld*_choose_target.
141 (rtld): Change type to int.
142 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
143 objects in XCOFF archives.
144 * ldfile.h: Update copyright date.
145
f4d73366
JJ
1462002-05-10 Jakub Jelinek <jakub@redhat.com>
147
148 * ldmain.c (main): Enable -z combreloc by default.
149
d3d8a9ee
NC
1502002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
151
152 * Makefile.am: Honour DESTDIR.
153 * Makefile.in: Regenerate.
154
9f88b410
RS
1552002-05-07 Richard Sandiford <rsandifo@redhat.com>
156
157 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
158 (lang_enter_overlay): Remove the last two parameters.
159 (lang_leave_overlay): Take them here instead.
160 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
161 (section): Pass LMA and crossref flag to lang_leave_overlay rather
162 than lang_enter_overlay.
163 * ldlang.c (lang_memory_region_lookup): Return null for null names.
164 (lang_output_section_statement_lookup): Initialize update_dot_tree.
165 (lang_size_sections_1): Evaluate it.
166 (lang_leave_output_section_statement): Rework LMA lookup.
167 (overlay_lma, overlay_nocrossrefs): Remove.
168 (lang_enter_overlay): Remove LMA and corssref arguments.
169 (lang_enter_overlay_section): Don't set the LMA here.
170 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
171 assignment to the last section's update_dot_tree. Unconditionally
172 use the load and run-time regions specified in the OVERLAY statement.
173 Likewise the first section's LMA. Only set the other sections' LMAs
174 when no load region is given.
175
b9a743c8
NC
1762002-05-06 Nick Clifton <nickc@redhat.com>
177
178 * po/sv.po: New translation.
179
a3d60be3
AM
1802002-05-04 Alan Modra <amodra@bigpond.net.au>
181
182 * emultempl/hppaelf.em (build_section_lists): New function.
183 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
184 and build_section_lists.
185
b7a26f91
KH
1862002-05-03 Kazu Hirata <kazu@cs.umass.edu>
187
188 * ld.h: Fix formatting.
189 * ldexp.c: Likewise.
190 * ldfile.c: Likewise.
191 * ldlang.c: Likewise.
192 * ldmain.c: Likewise.
193 * lexsup.c: Likewise.
194 * pe-dll.c: Likewise.
195
805fc799
AM
1962002-05-02 Alan Modra <amodra@bigpond.net.au>
197
198 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
199 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
200 (build_section_lists): Do output_section tests here.
201
cc7e59b2
TR
2022002-04-30 Tom Rix <trix@redhat.com>
203
204 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
205
9c1d81c1
AM
2062002-05-01 Alan Modra <amodra@bigpond.net.au>
207
208 Long branch stubs, multiple stub sections.
209 * emultempl/ppc64elf.em: Include ldctor.h.
210 (stub_file): New var.
211 (group_size): New var.
212 (ppc_create_output_section_statements): New function.
213 (struct hook_stub_info): New.
214 (hook_in_stub): New function.
215 (ppc_add_stub_section): New function.
216 (ppc_layout_sections_again): New function.
217 (build_section_lists): New function.
218 (gld${EMULATION_NAME}_finish): Rewrite.
219 (real_func): New var.
220 (ppc_for_each_input_file_wrapper): New function.
221 (ppc_lang_for_each_input_file): New function.
222 (lang_for_each_input_file): Define.
223 (PARSE_AND_LIST_PROLOGUE): Define.
224 (PARSE_AND_LIST_LONGOPTS): Define.
225 (PARSE_AND_LIST_OPTIONS): Define.
226 (PARSE_AND_LIST_ARGS_CASES): Define.
227 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
228
aa67bccf
TR
2292002-04-30 Tom Rix <trix@redhat.com>
230
231 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
232 -blibpath, -bnolibpath support.
233
94349e12
MM
2342002-04-30 Mark Mitchell <mark@codesourcery.com>
235
236 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
237 (eelf32ppcwindiss.c): New target.
238 * Makefile.in: Regenerated.
239 * configure.tgt: Add support for powerpc-*-windiss.
240 * emulparams/elf32ppcwindiss.sh: New file.
241
7b17f854
RS
2422002-04-30 Richard Sandiford <rsandifo@redhat.com>
243
244 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
245 * ldexp.c (exp_print_token): Add "infix_p" argument.
246 (exp_print_tree): Update accordingly.
247
596dafeb
AM
2482002-04-28 Alan Modra <amodra@bigpond.net.au>
249
250 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
251 * Makefile.in: Regenerate.
252 * mpw-elfmips.c: Delete.
253 * mpw-eppcmac.c: Delete.
254 * mpw-esh.c: Delete.
255 * mpw-idtmips.c: Delete.
256
a44d7f9c
JR
257Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
258
259 * emulparams/shelf32.sh (MACHINE): Now sh5.
260
944cd72c
TS
2612002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
262
263 * ldgram.y: Fix syntax warning.
264
5835c212
NC
2652002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
266
267 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
268 to prevent "-n" from being taken as an abbreviation for
269 "--no-pipeline-knowledge".
270
024531e2
AM
2712002-04-08 Alan Modra <amodra@bigpond.net.au>
272
d08a14c3
AM
273 * ldlang.c (lang_size_sections_1): Don't complain about
274 SEC_NEVER_LOAD sections having no memory region specified.
275
024531e2
AM
276 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
277
c657a1f0
MG
2782002-04-07 matthew green <mrg@redhat.com>
279
280 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
281
61bef6f1
AM
2822002-04-04 Alan Modra <amodra@bigpond.net.au>
283
284 * dep-in.sed: Cope with absolute paths.
285 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
286 Run "make dep-am".
287 * Makefile.in: Regenerate.
288
49ba2791
TS
2892002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
290
291 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
292
50e60fb5
JJ
2932002-04-03 Jakub Jelinek <jakub@redhat.com>
294
295 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
296 is smaller than maximum, round dot up to common page boundary.
297
6f12f4ca
AM
2982002-03-28 Alan Modra <amodra@bigpond.net.au>
299
300 * configure.host: Set up for generic hosts first, then tweak as
301 necessary in more specific targets.
302 (HOSTING_LIBS): Include libgcc_eh.a if found.
303
a8f1f017
AJ
3042002-03-23 Andreas Jaeger <aj@suse.de>
305
306 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
307
1d3fdf38
AM
3082002-03-21 Alan Modra <amodra@bigpond.net.au>
309
310 * Makefile.am: Run "make dep-am".
311 * Makefile.in: Regenerate.
312
79b1faa8
AM
3132002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
314
315 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
316
fcf0e35b
AM
3172002-03-20 Alan Modra <amodra@bigpond.net.au>
318
319 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
320 add the symbol to the linker hash table immediately.
321 (lang_place_undefineds): Split symbol creation out..
322 (insert_undefined): ..to here.
323
fed2999d
DB
3242002-03-18 David O'Brien <obrien@FreeBSD.org>
325
326 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
327 the contents of the buffer returned from basename function will are
328 getting overwritten while still being used.
329
beb43bb9
JH
330Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
331 Andreas Jaeger <aj@suse.de>
332 Andreas Schwab <schwab@suse.de>
333
334 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
335 * elf_x86_64.sh (ARCH): Set to i386:x86-64
336 set libraries to default to lib64 paths.
337
eb1e0e80
NC
3382002-03-18 Tom Rix <trix@redhat.com>
339
340 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
341 * configure.tgt : Same.
342 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
343 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
344 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
345 emulation parameters for better -b32, -b64 support.
346 * emulparms/aixrs6.sh : Same.
347 * emulparms/ppcmacos.sh : Same.
348 * emultempl/aix.em (choose_target) : Use new emulation parameters
349 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
350 * Makefile.in : Regenerate.
351
a1c259a1
NC
3522002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
353
354 * po/fr.po: Updated version.
355
862120bd
AM
3562002-03-18 Alan Modra <amodra@bigpond.net.au>
357
358 * ldmain.c (main): Move .text readonly flag fudges from here..
359 * ldlang.c (lang_process): ..to here.
360
d35a52e2
AM
3612002-03-14 Alan Modra <amodra@bigpond.net.au>
362
363 * ldlang.c (lang_check): Remove the word size check added in last
364 change. Treat emitrelocations case as for relocatable links.
365
9ce88e60
NC
3662002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
367
368 * po/fr.po: Updated version.
369
30cba025
AM
3702002-03-13 Alan Modra <amodra@bigpond.net.au>
371
372 * ldlang.c (lang_check): Do relocatable link checks first, so that
373 warn_mismatch can't override. Check compatible and word size too.
374
84ec0e6d
DJ
3752002-03-07 Daniel Jacobowitz <drow@mvista.com>
376
377 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
378
2d13d8c5
JJ
3792002-03-05 Jakub Jelinek <jakub@redhat.com>
380
381 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
382 DATA_SEGMENT_ALIGN.
383
b5090659
L
3842002-03-04 H.J. Lu <hjl@gnu.org>
385
386 * scripttempl/elf.sc: Put .preinit_array, .init_array and
387 .fini_array in the data segment.
388
f42ce16e
AM
3892002-03-04 Alan Modra <amodra@bigpond.net.au>
390
391 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
392
de77b6ac
RH
3932002-03-01 David Mosberger <davidm@hpl.hp.com>
394
395 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
396 .init_array, and .fini_array.
397
997e08c0
AS
3982002-02-20 Andreas Schwab <schwab@suse.de>
399
400 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
401 .IA64_unwind* in a relocatable link.
402
9a66911f
NC
4032002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
404
405 * NEWS: Mark 2.12 branch.
406
d86bcc10
MS
4072002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
408
409 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
410 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
411
69f284c7
TR
4122002-02-18 Tom Rix <trix@redhat.com>
413
414 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
415 (gld*_before_allocation): Same.
a8f1f017 416 (gld*_create_output_section_statements): Generate
69f284c7
TR
417 __rtinit if run time linking. Add librtl.a to the link.
418 (gld*_read_file): Clean.
419
82bd7b59
AM
4202002-02-18 Alan Modra <amodra@bigpond.net.au>
421
422 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
423
ac3e50bf
DB
4242002-02-18 David O'Brien <obrien@FreeBSD.org>
425
6a7f963b 426 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
ac3e50bf
DB
427 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
428 and eelf64alpha_fbsd.
6a7f963b 429 * Makefile.in: Regenerate.
ac3e50bf
DB
430 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
431 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
432 use a FreeBSD-specific emulation rather than the psABI one.
433 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
434 for all FreeBSD ELF systems.
435 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
436 emulation.
437 * emulparams/elf32ppc_fbsd.sh: Likewise.
438 * emulparams/elf64_ia64_fbsd.sh: Likewise.
439 * emulparams/elf64_sparc_fbsd.sh: Likewise.
440 * emulparams/elf64alpha_fbsd.sh: Likewise.
441 * emulparams/elf_i386_fbsd.sh: Likewise.
442 * emulparams/elf_x86_64_fbsd.sh: Likewise.
443
6ad738c5
NC
4442002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
445
446 * po/tr.po: Updated version.
447
9673c93c
AM
4482002-02-18 Alan Modra <amodra@bigpond.net.au>
449
450 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
451 (FILL): Likewise.
452
1c5e6447
HPN
4532002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
454
455 * emultempl/mmo.em (mmo_after_open): Don't call
456 _bfd_mmix_check_all_relocs when producing ELF output.
457
8bb57516
RH
4582002-02-15 Richard Henderson <rth@redhat.com>
459
de77b6ac 460 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
8bb57516
RH
461 definition. Emit a unop+nop pair.
462
49fda6c8
HPN
4632002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
464
83c2d653
HPN
465 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
466 for presence of .MMIX.reg_contents.linker_allocated before early
467 exit.
468
49fda6c8
HPN
469 * NEWS: Mention support for MMIX.
470
2c382fb6
AM
4712002-02-15 Alan Modra <amodra@bigpond.net.au>
472
473 Support arbitrary length fill patterns.
a139d329
AM
474 * ld.texinfo (Output Section Fill): Describe fill expressions.
475 (FILL): Refer to the above.
2c382fb6
AM
476 * ldexp.h (etree_value_type): Add "str" field.
477 (union etree_union): Add "str" to "value" struct.
478 (exp_bigintop): Declare.
479 (exp_get_fill): Declare.
480 * ldexp.c: Include "safe-ctype.h".
481 (exp_intop): Set value.str to NULL.
482 (exp_bigintop): New function.
483 (new_rel): Pass in "str", and set new.str from it.
484 (new_rel_from_section): Set new.str to NULL.
485 (fold_name): Adjust calls to new_rel.
486 (exp_fold_tree): Likewise.
487 (exp_get_fill): New function.
488 * ldgram.y (struct big_int bigint, fill_type *fill): New.
489 (INT): Returns a "bigint". Adjust all code handling INTs.
490 (fill_opt): Returns a "fill".
491 (fill_exp): Split out of fill_opt, use for FILL.
492 * ldlang.h (struct _fill_type): New.
493 (fill_type): Move typedef to ldexp.h.
494 (lang_output_section_statement_type): "fill" is now a pointer.
495 (lang_fill_statement_type): Likewise.
496 (lang_padding_statement_type): Likewise.
497 (lang_add_fill): Now takes a "fill_type *" param.
498 (lang_leave_output_section_statement): Likewise.
499 (lang_do_assignments): Likewise.
500 (lang_size_sections): Likewise.
501 (lang_leave_overlay_section): Likewise.
502 (lang_leave_overlay): Likewise.
503 * ldlang.c: Include ldgram.h after ldexp.h.
504 (lang_output_section_statement_lookup): Adjust for fill_type change.
505 (print_fill_statement): Likewise.
506 (print_padding_statement): Likewise.
507 (insert_pad): Now takes a "fill_type *" arg.
508 (size_input_section): Likewise.
509 (lang_size_sections_1): Likewise.
510 (lang_size_sections): Likewise.
511 (lang_do_assignments): Likewise.
512 (lang_add_fill): Likewise.
513 (lang_leave_output_section_statement): Likewise.
514 (lang_leave_overlay_section): Likewise.
515 (lang_leave_overlay): Likewise.
516 Adjust all callers of the above function.
517 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
518 starting with "0X" as well as "0x". Return bigint.str for hex
519 numbers starting with "0x" or "0X", zero bigint.str otherwise.
520 Always use base 16 for numbers starting with "$".
521 * ldmain.c: Include ldgram.h after ldexp.h.
522 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
523 of bfd_fill_link_order.
524 * pe-dll.c: Adjust lang_do_assignments calls.
525 * emultempl/elf32.em: Likewise.
526 * emultempl/hppaelf.em: Likewise.
527 * emultempl/ppc64elf.em: Likewise.
528 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
529 lang_add_assignment call.
530 * emultempl/pe.em: Likewise.
531
313e35ee
AM
5322002-02-14 Phil Edwards <pme@gcc.gnu.org>
533
a139d329 534 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
313e35ee
AM
535 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
536 the pattern in question is not a regexp.
537 * ldlang.c: Likewise.
538 * ldlang.h: Likewise.
539 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
540
2d20f7bf
JJ
5412002-02-12 Jakub Jelinek <jakub@redhat.com>
542
543 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
544 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
545 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
546 * ldexp.c (exp_data_seg): New variable.
547 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
548 (fold_binary): Handle DATA_SEGMENT_ALIGN.
549 (exp_fold_tree): Handle DATA_SEGMENT_END.
550 Pass allocation_done when recursing instead of hardcoding
551 lang_allocating_phase_enum.
552 * ldexp.h (exp_data_seg): New.
553 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
554 (lang_size_sections): New.
555 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
556 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
557 if COMMONPAGESIZE is defined.
558 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
559 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
560 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
561 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
562 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
563 libraries only.
564
06880219
AM
5652002-02-11 Alan Modra <amodra@bigpond.net.au>
566
567 * Makefile.in: Regenerate.
568
37b0ac0f
DJ
5692002-02-10 Daniel Jacobowitz <drow@mvista.com>
570
571 * lexsup.c: Remove strtoul declaration.
572
4e5bae56
DJ
5732002-02-10 Daniel Jacobowitz <drow@mvista.com>
574
575 * ldmain.c: Add prototype for main ().
576 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
577 * emultempl/lnk960.em (lnk960_choose_target): Function should
578 take two arguments.
579
1e281515
AM
5802002-02-10 Alan Modra <amodra@bigpond.net.au>
581
582 * ldlang.c (entry_section): New initialised variable.
583 (lang_finish): Use it.
584 * ldlang.h (entry_section): Declare.
585 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
586 entry_section to ".opd".
587
f92d92ff 5882002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
589
590 * ld.texinfo (Options): Add back in -nostdlib documentation,
591 which had been inadvertently removed.
592
74c44237
HPN
5932002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
594
595 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
596 register section vma to a sane value after emitting error. Make
597 fatal conditions cause program exit when emitting message.
598
5e37cc46
NC
5992002-02-08 Ivan Guzvinec <ivang@opencores.org>
600
601 * configure.tgt: Add or32-*-rtems target.
602
2d92cb7d
AO
6032002-02-08 Alexandre Oliva <aoliva@redhat.com>
604
605 Contribute sh64-elf.
606 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
607 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
608 in OTHER_RELOCATABLE_SECTIONS.
609 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
610 * emulparams/shelf32.sh (STACK_ADDR): Define.
611 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
612 (OTHER_SECTIONS): this. Removed stack settings.
613 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
614 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
615 2001-03-12 DJ Delorie <dj@redhat.com>
616 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
617 relaxing if any shmedia or mixed sections are found.
618 2001-03-07 DJ Delorie <dj@redhat.com>
619 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
620 einfo. Gracefully decline to output to non-elf formats.
621 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
622 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
623 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
624 * emulparams/shelf32.sh: Ditto.
625 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
626 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
627 comment.
628 2001-01-10 Ben Elliston <bje@redhat.com>
629 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
630 non-portable shell constructs. From Hans-Peter Nilsson.
631 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
632 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
633 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
634 dependencies to the shell script include chain.
635 * Makefile.in: Regenerate.
636 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
637 * emultempl/sh64elf.em: Update and tweak comments.
638 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
639 make a .cranges section SEC_IN_MEMORY.
640 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
641 * emultempl/sh64elf.em
642 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
643 .cranges section found to be necessary; continue and set stored
644 section contents flags for sections with non-mixed contents.
645 Use a struct sh64_section_data container and sh64_elf_section_data
646 to store contents-type flags.
647 Remove unused update of "isec".
648 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
649 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
650 access contents-type flags. Assert that the associated container
651 is initialized. Use that container, not elf_gp_size, to hold size
652 of linker-generated cranges contents.
653 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
654 * emultempl/sh64elf.em
655 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
656 there's already a .cranges section. When section flag difference
657 is found, don't NULL-check cranges a second time. Tweak comments.
658 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
659 merging, not max size, as size of ld-generated .cranges contents.
660 Don't set ELF section flags in output section. When checking for
661 needed .cranges descriptors, don't use a variable; compare
662 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
663 comments.
664 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
665 * emultempl/sh64elf.em: New file.
666 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
667 * Makefile.in: Regenerate.
668 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
669 (OTHER_RELOCATING_SECTIONS): Ditto.
670 (EXTRA_EM_FILE): New, set to sh64elf if not set.
671 * emulparams/shlelf32.sh: Stub out all settings except
672 OUTPUT_FORMAT. Source shelf32.sh.
673 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
674 OTHER_RELOCATING_SECTIONS.
675 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
676 * emulparams/shlelf64.sh: Stub out all settings except
677 OUTPUT_FORMAT. Source shelf64.sh.
678 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
679 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
680 .cranges section.
681 (DATA_START_SYMBOLS): Define, provide ___data.
682 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
683 for consecutive .data section.
684 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
685 section after .data section.
686 * emulparams/shlelf64.sh: Ditto.
687 * emulparams/shelf32.sh: Ditto.
688 (ALIGNMENT): Define to 8.
689 * emulparams/shelf32.sh: Ditto.
690 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
691 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
692 built-in linker scripts.
693 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
694 * emulparams/shlelf64.sh: New.
695 * emulparams/shelf64.sh: New.
696 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
697 targ_extra_emuls.
698 * Makefile.am: Add support for shlelf64 and shelf64.
699 * Makefile.in: Regenerate.
700 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
701 * configure.tgt (sh64-*-elf*): Add shelf as default.
702 Add shlelf to targ_extra_emuls.
703 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
704 * emulparams/shelf32.sh: New file.
705 * emulparams/shlelf32.sh: New file.
706 * Makefile.am: Add support for shlelf32 and shelf32.
707 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
708 * Makefile.in: Regenerate.
709
e3dc8847
HPN
7102002-02-05 Hans-Peter Nilsson <hp@axis.com>
711
712 * ldlang.c (lang_reset_memory_regions): Rename from
713 reset_memory_regions. Change all callers. Make public.
714 * ldlang.h (lang_reset_memory_regions): Prototype.
715 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
716 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
717 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
718 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 719
8017dbcb
HPN
7202002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
721
722 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
723 arithmetic when checking for too many global registers.
724
006336b8
JT
7252002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
726
727 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
728 (ehppanbsd.c): New rule.
729 * Makefile.in: Regenerate.
730 * configure.tgt (hppa*-*-netbsd*): New target.
731 * emulparams/hppalinux.sh: Add comment to check other files
732 that source this file it is modified, and list which
733 files that do.
734 * emulparams/hppanbsd.sh: New file.
735
da1f2fec
GK
7362002-02-01 Geoffrey Keating <geoffk@redhat.com>
737
738 * scripttempl/xstormy16.sc: Don't allocate extra space for the
739 stack.
740
48fa4a5d
HPN
7412002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
742
743 Support on-demand global register allocation from
744 R_MMIX_BASE_PLUS_OFFSET relocs.
745 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
746 mmix_set_reg_section_vma. Call
747 _bfd_mmix_finalize_linker_allocated_gregs.
748 (mmix_before_allocation): New function.
749 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
750 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
751 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
752 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
753 before .MMIX.reg_contents.
754 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
755 (mmo_after_open): New function.
756 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
757 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
758 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
759
3b16e843
NC
7602002-01-31 Ivan Guzvinec <ivang@opencores.org>
761
762 * emulparams/or32.sh: New file.
763 * emulparams/or32elf.sh: New file.
764 * scripttempl/or32.sc: New file.
765 * configure.tgt : Add support for or32.
766 * configure: Regenerate
767 * Makefile.am: Add support for or32.
768 * Makefile.in: Regenerate.
769 * NEWS: Mention support for or32.
770 * po/ld.pot: Regenerate.
771
f744d540 7722002-01-29 Chris Demetriou <cgd@broadcom.com>
313e35ee 773 Mitch Lichtenberg <mpl@broadcom.com>
f744d540
CD
774
775 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
776 * emultempl/mipself.em: New file to handle MIPS ELF embedded
777 reloc creation (ld --embedded-relocs).
778
4867be41
DJ
7792002-01-27 Daniel Jacobowitz <drow@mvista.com>
780
781 * configure: Regenerated.
782
cd8e197b
HPN
7832002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
784
785 * Makefile.am (install): Depend on install-info.
786 * Makefile.in: Regenerate.
787
9cb61eab
AM
7882002-01-26 Christian Rose <menthos@menthos.com>
789
790 * ldmain.c (main): Use full sentences to ease translation.
791
1caa7b23
NC
7922002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
793
794 * po/fr.po: Updated version.
795
1ddbd152
NC
7962002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
797
798 * po/es.po: Updated version.
799
1e84433f
AJ
8002002-01-25 Andreas Jaeger <aj@suse.de>
801
802 * ldlex.l (yy_input): Correct error check.
803
6d39955e
AM
8042002-01-25 Alan Modra <amodra@bigpond.net.au>
805
806 * ldmisc.c (demangle): Put back dots when string not demangled.
807
a9ed1e1b
RH
8082002-01-22 Richard Henderson <rth@redhat.com>
809
810 * emulparams/elf64alpha.sh (NOP): Use unop.
811
968ec2b9
AJ
8122002-01-21 Andreas Jaeger <aj@suse.de>
813
814 * ldlex.l: Use fread instead of read.
815
9596feea
JT
8162002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
817
818 * configure.tgt (ia64-*-netbsd*): New target.
819
493a6d47
L
8202002-01-21 H.J. Lu <hjl@gnu.org>
821
822 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
823 0.
824 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
825
2a538ba5
AJ
8262002-01-18 Andreas Jaeger <aj@suse.de>
827
828 * ldver.c (ldversion): Update year.
829
328577ad
NC
8302002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
831
832 * po/ld.pot: Regenerate.
833
1f808cd5
AM
8342002-01-16 Alan Modra <amodra@bigpond.net.au>
835
836 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
837 * Makefile.in: Regenerate.
838 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
839 * emultempl/ppc64elf.em: New file.
840
335c5610
DD
8412002-01-15 DJ Delorie <dj@redhat.com>
842
843 * scripttempl/pe.sc: Add support for constructor priorities.
844
c40bbade
DC
8452002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
846
847 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
848 * emulparams/avr23xx.sh: Likewise.
849 * emulparams/avr4433.sh: Likewise.
850 * emulparams/avr44x4.sh: Likewise.
851 * emulparams/avr85xx.sh: Likewise.
852 * emulparams/avrmega103.sh: Likewise.
853 * emulparams/avrmega161.sh: Likewise.
854 * emulparams/avrmega603.sh: Likewise.
855 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
856
34efb449
AO
8572002-01-08 Alexandre Oliva <aoliva@redhat.com>
858
859 * ldlang.c (walk_wild_section): Exclude object file if enclosing
860 archive is excluded.
861
8d05742f
JT
8622002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
863
864 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 865 (eshelf_nbsd.c): New rule.
8d05742f
JT
866 (eshlelf_nbsd.c): New rule.
867 * Makefile.in: Regenerate.
868 * configure.tgt (sh*le-*-netbsdelf*): New target.
869 (sh*-*-netbsdelf*): New target.
870 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
871 * ld/emulparams/shelf_nbsd.sh: New emulation.
872 * ld/emulparams/shlelf_nbsd.sh: New emulation.
873
be2d1673
NC
8742002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
875
876 * po/es.po: New file: Spanish translation.
877 * configure.in (ALL_LINGUAS): Add es.
878 * configure: Regenerate.
879
dbab7a7b
NC
8802002-01-06 John Marshall <jmarshall@acm.org>
881
882 * ld.texinfo: Note that --emit-relocs is currently only
883 implemented for ELF.
884
3dfe7a8c
AM
8852002-01-05 Alan Modra <amodra@bigpond.net.au>
886
887 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
888 of bfd_section_list_remove and bfd_section_list_insert macros.
889 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
890 * emultempl/mmo.em (mmo_place_orphan): Likewise.
891
8a8b2d4b
AJ
8922002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
893
894 * configure.tgt (x86_64-*-netbsd*): New target.
895
9a4c7f16
TR
8962001-12-21 Tom Rix <trix@redhat.com>
897
8a8b2d4b 898 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
899 For -binitfini support.
900 * emultempl/aix.em (gld*_before_parse): Fix comment.
901 * emultempl/aix.em (gld*_parse_args): Fix comment.
902
3695c299
AM
9032001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
904
cf86e6df
AM
905 * configure.tgt (mips*-dec-netbsd*): Delete alias for
906 mips*el-*-netbsd*.
907 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
908
3695c299
AM
909 * configure.tgt (arm-*-netbsdelf*): Add target.
910 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
911 * emulparams/armelf_nbsd.sh: Added.
912 * Makefile.am: Add rules for earmelf_nbsd.
913 * Makefile.in: Regenerate.
914
97cb79ae
AJ
9152001-12-19 Andreas Jaeger <aj@suse.de>,
916 Susanne Oberhauser <froh@suse.de>
917
918 * configure.host: Add rules for x86_64-*linux-gnu. Change
919 s390x-linux entry to use gcc to report configuration, replace gcc
920 with $CC in s390-linux
921
9d201f2f
AJ
9222001-12-19 Andreas Jaeger <aj@suse.de>
923
924 * ld.texinfo (VERSION): Fix markup.
925
0b69cd08
MG
9262001-12-18 matthew green <mrg@eterna.com.au>
927
928 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
929 (m68kelfnbsd.c): New rule.
930 * Makefile.in: Regenerate.
931 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
932 (m68*-*-netbsd*4k*): .. this.
933 (m68*-*-netbsdelf*): New target.
934 (m68*-*-netbsd*): Also include ELF support.
935 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
936 * emulparams/m68kelfnbsd.sh: New emulation.
937
6b9b879a
JJ
9382001-12-18 Jakub Jelinek <jakub@redhat.com>
939
940 * ldgram.y (vers_node): Support anonymous version tags.
941 * ldlang.c (lang_register_vers_node): Ensure anonymous version
942 tag is not defined together with non-anonymous versions.
943 * ld.texinfo: Document it.
944
9fc877ed
NC
9452001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
946
947 * po/tr.po: New file: Turkish translation.
948 * configure.in (ALL_LINGUAS): Add tr.
949 * configure: Regenerate.
950
fc18a3f3
RH
9512001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
952
953 * Makefile.am: Add rules for eelf64alpha_nbsd.
954 * Makefile.in: Regenerate.
955 * configure.tgt (alpha*-*-netbsd*): Set
956 targ_emul to elf64alpha_nbsd.
957 * emulparams/elf64alpha_nbsd.sh: Added.
958
76f63e91
AM
9592001-12-17 Alan Modra <amodra@bigpond.net.au>
960
961 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
962 section_tail when fiddling with section list.
963 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
964 broken into separate strings to make translation easier.
965 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
966 fiddling with section list.
967 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
968
d03b89bd
HPN
9692001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
970
971 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
972
320fec9a
AM
9732001-12-15 Alan Modra <amodra@bigpond.net.au>
974
975 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
976
65765700
JJ
9772001-12-13 Jakub Jelinek <jakub@redhat.com>
978
979 * emultempl/elf32.em (finish): Supply output_bfd
980 to bfd_elf*_discard_info.
981 (OPTION_EH_FRAME_HDR): Define.
982 (longopts): Add --eh-frame-hdr.
983 (parse_args): Handle it.
984 (list_options): Add --eh-frame-hdr to help.
985 * emultempl/hppaelf.em (finish): Supply output_bfd
986 to bfd_elf*_discard_info.
987 * scripttempl/elf.sc (.eh_frame_hdr): Add.
988
89894c62
AM
9892001-12-13 Alan Modra <amodra@bigpond.net.au>
990
991 * lexsup.c (parse_args): Don't pass shortopts to second call to
992 getopt functions. Restore optind rather than decrementing before
993 second call. Remove errind as it now duplicates last_optind.
994
583f1926
CF
9952001-12-11 Christopher Faylor <cgf@redhat.com>
996
997 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
998
93fbbb04
GK
9992001-12-07 Geoffrey Keating <geoffk@redhat.com>
1000 Richard Henderson <rth@redhat.com>
1001
1002 * Makefile.am: Add support for xstormy16.
1003 * configure.tgt: Add support for xstormy16.
1004 * Makefile.in: Regenerate.
1005 * emulparams/elf32xstormy16.sh: New file.
1006 * scripttempl/xstormy16.sc: New file.
1007
583f1926
CF
10082001-10-01 Christopher Faylor <cgf@cygnus.com>
1009
fc18a3f3
RH
1010 * Makefile.in (LIB_PATH): Make configurable.
1011 (GENSCRIPTS): Set LIB_PATH in environment.
1012 * configure.in: Substitute LIB_PATH.
1013 * configure: Regenerate.
1014 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1015 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 1016
ff291a48
NC
10172001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1018
1019 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1020 describing the -N option so that it is easier to translate into
1021 foreign languages.
1022
e3c8793a
NC
10232001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1024
1025 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1026 statements describing a single option with a single, newline
1027 escaped fprintf. This allows better translation into other
1028 languages.
9d201f2f 1029
fc18a3f3
RH
1030 * ldmain.c (add_archive_element): Combine multiple strings
1031 into a single string to permit better translation into other
1032 languages.
e3c8793a 1033
f2eab0af
TR
10342001-12-05 Tom Rix <trix@redhat.com>
1035
1036 * Makefile.am: Remove eaixppc64.
9d201f2f 1037 * Makefile.in: Regenerate.
f2eab0af 1038
249172c3
TR
10392001-12-04 Tom Rix <trix@redhat.com>
1040
9d201f2f 1041 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
1042 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1043 warning.
1044 (gld*_read_file): Fix typo.
1045 (change_symbol_mode): Add prototype.
1046 (is_syscall): Same.
9d201f2f 1047
249172c3
TR
1048 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1049 * emulparams/aixrs6.sh : Same.
1050 * emulparams/ppcmacos.sh : Same.
1051 * emulparams/aixppc64.sh : Delete file.
1052 * emultempl/aix.em : Formatting changes.
1053
5b5cd1b0
HPN
10542001-12-04 Hans-Peter Nilsson <hp@axis.com>
1055
1056 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1057 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1058 __Sbss.
1059 (OTHER_END_SYMBOLS): Fix formatting.
1060 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1061 (OTHER_END_SYMBOLS): Fix formatting.
1062
7cecdbff
AM
10632001-12-04 Alan Modra <amodra@bigpond.net.au>
1064
1065 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1066
742aeb63 10672001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 1068
742aeb63 1069 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 1070 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
1071 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1072 (ldemul_default_target): Same.
1073 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
1074 * emultempl/gld960c.em (gld960_choose_target): Same.
1075 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
1076 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1077 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1078 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 1079 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
1080 -b32 and -b64.
1081
48459341
L
10822001-11-27 H.J. Lu <hjl@gnu.org>
1083
1084 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1085 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1086 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1087 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1088 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1089 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1090 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1091 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1092
7cecdbff 1093 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
1094 is not empty.
1095 (SDATA): Likewise.
1096 (REL_SDATA): Likewise.
1097 (REL_SBSS): Likewise.
1098 (REL_SDATA2): Likewise.
1099 (REL_SBSS2): Likewise.
1100 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1101 (SDATA2): Likewise.
1102
ecfdd20c
SC
11032001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1104
1105 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1106 destructor in rom.
7cecdbff 1107 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 1108
da54c6eb
L
11092001-11-22 H.J. Lu <hjl@gnu.org>
1110
1111 * Makefile.in: Regenerated with automake based on automake
1112 1.4-8 in RedHat 7.1.
1113
465bc359
AM
11142001-11-22 Alan Modra <amodra@bigpond.net.au>
1115
1116 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1117 (config.status): Delete rule.
1118 Add extra dependencies to cover sourced emulparams files.
1119 * Makefile.in: Regenerate.
1120
1121 * scripttempl/elf.sc: Order <section>, <section>.* and
1122 corresponding linkonce sections as seen in input files.
1123 Formatting fixes. Zero vma of all sections if not relocating.
1124 (STACK): Define and insert if STACK_ADDR defined.
1125 (OTHER_RELOCATING_SECTIONS): Delete.
1126 (OTHER_END_SYMBOLS): Define.
1127 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1128 (OTHER_READWRITE_SECTIONS): Likewise.
1129 (OTHER_GOT_SECTIONS): Likewise.
1130 (OTHER_SDATA_SECTIONS): Likewise.
1131 (OTHER_BSS_SECTIONS): Likewise.
1132 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1133 (OTHER_READWRITE_SECTIONS): Likewise.
1134 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1135 (OTHER_READWRITE_SECTIONS): Likewise
1136
1137 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1138 (STACK_ADDR): Define.
1139 * emulparams/armelf_oabi.sh: As for armelf.sh.
1140 * emulparams/elf32mcore.sh: As for armelf.sh.
1141 * emulparams/h8300elf.sh: As for armelf.sh.
1142 * emulparams/mn10200.sh: As for armelf.sh.
1143 * emulparams/shelf.sh: As for armelf.sh.
1144
1145 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1146 (OTHER_END_SYMBOLS): Define.
1147 * emulparams/m32relf.sh: As for elf32fr30.sh.
1148 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1149 * emulparams/h8300self.sh: As for elf32fr30.sh.
1150
1151 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1152 defines with RELOCATING test.
1153 (OTHER_SDATA_SECTIONS): Likewise.
1154 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1155 (OTHER_END_SYMBOLS): ..this.
1156 * emulparams/crislinux.sh: As for criself.sh.
1157
1158 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1159 if not relocating.
1160 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1161 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1162 normal and linkonce sections as seen in input files.
1163 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1164 (TEXT_DYNAMIC): Likewise.
1165 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1166 (OTHER_SDATA_SECTIONS): Likewise.
1167 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1168 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1169 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1170 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1171 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1172 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1173 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1174 sections as seen in input files.
1175 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1176 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1177 if not relocating.
1178 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1179 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1180 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1181 (OTHER_SECTIONS): Instead, use this..
1182 (OTHER_END_SYMBOLS): ..and this.
1183
1184 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1185 * emulparams/elf32bsmip.sh: Likewise.
1186 * emulparams/elf32btsmip.sh: Likewise.
1187 * emulparams/elf32ebmip.sh: Likewise.
1188 * emulparams/elf32lmip.sh: Likewise.
1189 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1190 * emulparams/elf32lsmip.sh: Likewise.
1191 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1192 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1193 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1194 * emulparams/elf64btsmip.sh: Likewise.
1195 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1196 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1197 * emulparams/elf32ppclinux.sh: Likewise.
1198 * emulparams/elf32ppcsim.sh: Likewise.
1199 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1200 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1201 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1202 * emulparams/h8300self.sh: Likewise.
1203 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1204 * emulparams/sh.sh: Comment.
1205 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1206 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1207 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1208
abc6ab0a
AM
12092001-11-21 David Heine <dlheine@tensilica.com>
1210 Alan Modra <amodra@bigpond.net.au>
1211
1212 * ldlang.c (map_input_to_output_sections): Replace "break"
1213 accidentally removed with 2001-08-03 change.
1214 (lang_gc_sections_1): Likewise.
1215
2181f54f
AM
12162001-11-21 Alan Modra <amodra@bigpond.net.au>
1217
1218 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1219
ca0b5847
AM
12202001-11-20 Angela Marie Thomas <angela@redhat.com>
1221
1222 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
1223 of false when calling lang_size_sections.
1224 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 1225
c56feb2b
AM
12262001-11-15 Alan Modra <amodra@bigpond.net.au>
1227
1228 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1229 function when LDEMUL_FINISH isn't set to the same name. Don't
1230 call ${LDEMUL_FINISH}.
1231 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1232 * emultempl/armelf.em (arm_elf_finish): Call
1233 gld${EMULATION_NAME}_finish.
1234 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1235 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1236 hppaelf_layout_sections_again if necessary.
1237 (need_laying_out): New var.
1238 (hppaelf_layaout_sections_again): Rename to
1239 hppaelf_layout_sections_again. Clear need_laying_out.
1240 (PARSE_AND_LIST_OPTIONS): Format text.
1241
a48ca7f2
L
12422001-11-14 H.J. Lu <hjl@gnu.org>
1243
1244 * emultempl/armelf.em (arm_elf_finish): Renamed from
1245 gld${EMULATION_NAME}_finish.
1246 (LDEMUL_FINISH): Set to arm_elf_finish.
1247
73d074b4
DJ
12482001-11-14 Daniel Jacobowitz <drow@mvista.com>
1249
1250 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1251 (struct ld_emulation_xfer_struct): Use it.
1252
3b16e843 12532001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 1254
465bc359 1255 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
1256 additional symbols referenced by newer crt0.o files from HP.
1257
f11b7027
NC
12582001-11-12 Anthony Green <green@redhat.com>
1259
1260 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1261
3bf2994f
AM
12622001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1263
1264 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1265 * Makefile.in: Regenerate.
1266
ff5dcc92
SC
12672001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1268
1269 * ld.texinfo: Use @command for commands, @option for options.
1270 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1271 the page man title.
1272 * Makefile.in: Rebuild.
1273
9fb9af6e
CD
12742001-11-04 Chris Demetriou <cgd@broadcom.com>
1275
1276 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1277 Add support for targets.
2181f54f 1278
3c62831e
NC
12792001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1280
1281 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1282 * configure: Regernate.
1283 * po/fr.po: New file.
1284 * po/sv.po: New file.
1285
3a9091c4
NC
12862001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1287
1288 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1289 as little endian default and to support big endian.
2181f54f 1290
361b220e
CD
12912001-11-01 Chris Demetriou <cgd@broadcom.com>
1292
1293 * ld.texinfo (Options): Document new option, -nostdlib.
1294 * lexsup.c (OPTION_NOSTDLIB): New definition.
1295 (ld_options): Add entry for "nostdlib".
1296 (parse_args): Handle OPTIONS_NOSTDLIB.
1297 * ldfile.c (ldfile_add_library_path): Don't add directories
1298 to the search path if they weren't specified on the command line
1299 and -nostdlib was specified.
1300 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1301
210a7bd1
NC
13022001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1303
1304 * lexsup.c (parse_args): Prevent infinite parsing loop when
1305 "-rpath.a" is specified on the command line.
1306 Replace calls to fprintf with calls to einfo.
1307
114283d8
NC
13082001-10-31 John Marshall <jmarshall@acm.org>
1309
1310 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1311 appear only once across all the linker scripts involved in a link
1312 invocation no longer applies. Make the documentation reflect
1313 that.
1314
7649aa50
NC
13152001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1316
1317 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1318 targets.
1319 (sh-*-linux*): Added targ_extra_libpath.
1320
6e814ff8
AM
13212001-10-31 David Heine <dlheine@tensilica.com>
1322
1323 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1324 for padding statements.
1325
3c3bdf30
NC
13262001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1327
1328 * configure.tgt (mmix-*-*): New target.
1329 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1330 Add dependencies to match.
1331 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1332 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1333 scripttempl/mmo.sc: New files.
1334 * gen-doc.texi: @set MMIX.
1335 * ld.texinfo: Ditto.
6e814ff8 1336 [MMIX] Add MMIX node.
3c3bdf30
NC
1337 * Makefile.in: Regenerate.
1338
ca0c1d3e
KH
13392001-10-29 Kazu Hirata <kazu@hxi.com>
1340
1341 * ldlang.c: Fix a comment typo.
1342
1a3d33ce
AM
13432001-10-23 Alan Modra <amodra@bigpond.net.au>
1344
1345 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1346 entries, and match *-*-linux*.
1347
b47c4208
AM
13482001-10-20 Alan Modra <amodra@bigpond.net.au>
1349
1350 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1351 with ldlex_script, ldlex_popstate.
1352 (ifile_p1): Likewise.
1353 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1354 correct slot.
1355 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1356 to 1. Don't BEGIN(SCRIPT).
1357 (lex_redirect): Similarly.
1358 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1359
fd521b47
NC
13602001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1361
1362 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1363 __EH_FRAME_END__ and accept eh frames into data section.
1364 Add ctor and dtor sections.
1365
59d28a94
DD
13662001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1367
1368 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1369 (auto-export): Fix indentation.
1370
663dd378
DD
13712001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1372
1373 * pe-dll.c (autofilter_objectlist): Add startup objects
1374 for profiling.
1375 (auto-export): Constify char * p.
6e814ff8 1376 Extract file basename and use strcmp rather than ststr
663dd378
DD
1377 for object lookup.
1378
31d677f9
CD
13792001-10-18 Chris Demetriou <cgd@broadcom.com>
1380
1381 * ldmain.c (get_emulation): Improve comment about the handling
1382 of -mipsN options.
1383
aa200fe8
AM
13842001-10-17 Alan Modra <amodra@bigpond.net.au>
1385
1386 * po/POTFILES.in: Regenerate.
1387
146e7110
AM
13882001-10-16 Vassili Karpov <malc@pulsesoft.com>
1389
1390 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1391 -z nocopyreloc and -z nocombreloc usage strings.
1392
b4330e85
NC
13932001-10-12 Vassili Karpov <malc@pulsesoft.com>
1394
146e7110 1395 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
1396 in usage.
1397
5af8a2fb
NC
13982001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1399
1400 * scripttempl/armaout.sc: Place .bss section after end of aligned
1401 data section to match behaviour of aout code in constructrion of
1402 header.
1403
5b784096
DD
14042001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1405
1406 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1407 startup files for mingw32 dlls to list.
1408
61585df2
CD
14092001-10-10 Chris Demetriou <cgd@broadcom.com>
1410
1411 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1412
45cf6f3e
AH
14132001-10-08 Aldy Hernandez <aldyh@redhat.com>
1414
1415 * configure.tgt (targ): Add arm9e-*-elf.
1416
e24d7c12
L
14172001-10-05 H.J. Lu <hjl@gnu.org>
1418
1419 * genscripts.sh: Fix a typo in the last change.
1420
ec38dd05
JJ
14212001-10-05 Jakub Jelinek <jakub@redhat.com>
1422
1423 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1424 -z nocombreloc in usage.
1425
cedd6b0d
JB
14262001-10-03 Jim Blandy <jimb@redhat.com>
1427
1428 * genscripts.sh: Include a comment at the top of each generated
1429 script, explaining its purpose.
1430
8bd621d8
AM
14312001-10-03 Vassili Karpov <malc@pulsesoft.com>
1432
1433 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1434 * NEWS: Mention -z nocopyreloc.
1435 * ld.texinfo (Options): Describe nocopyreloc.
1436
fcd8210c
AM
14372001-10-03 Alan Modra <amodra@bigpond.net.au>
1438
1439 * configure: Regenerate.
1440
d32820f2
AM
14412001-10-02 Alan Modra <amodra@bigpond.net.au>
1442
1443 * ldver.h (ld_program_version): Remove declaration.
1444 * lexsup.c (parse_args): Move printing of copyright message..
1445 * ldver.c (ldversion): .. to here.
1446 Use BFD_VERSION_STRING in place of BFD_VERSION.
1447 (ld_program_version): Remove.
1448 * Makefile.am (Makefile): Depend on bfd/configure.in.
1449 Run "make dep-am".
1450 * Makefile.in: Regenerate.
1451
af46bcdc
HPN
14522001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1453
1454 * Makefile.am: Update dependencies with "make dep-am".
1455 * Makefile.in: Regenerate.
1456
4818e05f 14572001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 1458
4818e05f
AM
1459 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1460 * lexsup.c: Add --no-define-common commandline option.
1461 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1462 * ldlex.l: Likewise.
1463 * ld.h: Add command_line.inhibit_common_definition.
1464 * ldmain.c (main): Initialize.
1465 * ld.texinfo: Document.
862517b6 1466
d5e0ebeb
AM
14672001-09-26 Alan Modra <amodra@bigpond.net.au>
1468
1469 * ldmisc.c (USE_STDARG): Remove.
1470 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1471 (einfo): Likewise.
1472 (minfo): Likewise.
1473 (lfinfo): Likewise.
1474
1475 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1476 declarations. Update copyright.
1477
2f8d8971
NC
14782001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1479
85c77458
NC
1480 * pe-dll.c: Remove obsoleted declaration of
1481 pe_get_data_import_dll_name.
1482 (pe_create_import_fixup): Fix thinko.
1483
2f8d8971
NC
1484 * ld.texinfo(enable-auto-import): Clarify the explanation.
1485
14862001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1487
1488 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1489 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1490 DLL_SUPPORT controlled code.
1491
72358f65 14922001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 1493
72358f65
NC
1494 * emultempl/pe.em(pe_data_import_dll): Make static.
1495 (pe_get_data_import_dll_name): New accessor function.
146e7110 1496 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
1497 pe_get_data_import_dll_name() from pe.em, instead of
1498 directly accessing pe_data_import_dll variable from pe.em.
1499
3882b010
L
15002001-09-18 Bruno Haible <haible@clisp.cons.org>
1501
1502 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1503 (def_file_add_directive): Use ISSPACE instead of isspace.
1504 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1505 isdigit/isxdigit/isalpha/isalnum.
1506 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1507 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1508 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1509 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1510 isalnum.
1511 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1512 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1513 isupper/tolower.
1514 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1515 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1516 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1517 (ctor_prio): Use ISDIGIT instead of isdigit.
1518 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1519 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1520 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1521 isupper/tolower.
1522 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1523 (stricpy): Use TOLOWER instead of isupper/tolower.
1524 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1525 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1526 (lex_warn_invalid): Use ISPRINT instead of isprint.
1527 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1528 (main): For gettext, also set the LC_CTYPE locate facet.
1529 (add_keepsyms_file): Use ISSPACE instead of isspace.
1530 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1531 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1532 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1533 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1534 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1535 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1536 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1537 (quoteput): Use ISSPACE instead of isspace.
1538 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1539 instead of isalnum.
1540
db09f25b
AM
15412001-09-18 Alan Modra <amodra@bigpond.net.au>
1542
1543 * deffilep.y (def_stash_module): Constify "name" param.
1544
1545 * pe-dll.c: Replace CONST with const throughout.
1546 (quick_symbol): Constify "n1", "n2", "n3" params.
1547 (make_singleton_name_thunk): Constify "import" param. Make
1548 "buffer_len" a size_t.
1549 (make_import_fixup_entry): Constify "name", "fixup_name",
1550 "dll_symname" params.
1551 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1552 (pe_get32): Likewise.
1553 (pe_implied_import_dll): Likewise.
1554
1555 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1556 (sort_by_section_name): Likewise.
1557
1558 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1559 (make_import_fixup): Cast printf arg, rel->address to long rather
1560 than int.
1561 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1562
74699268
AM
15632001-09-15 Alan Modra <amodra@bigpond.net.au>
1564
1565 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1566 defines BufferSize. Increase buffer size by one.
1567
775cabad
NC
15682001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1569
1570 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1571
056a1d49
NC
15722001-09-14 Kevin Lo <kevlo@openbsd.org>
1573
1574 * configure.tgt: Add arm-openbsd target.
1575
a7d792bb
L
15762001-09-12 H.J. Lu <hjl@gnu.org>
1577
1578 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1579 eelf64lppc.o to ...
1580 (ALL_64_EMULATIONS): Here.
1581 * Makefile.in: Regenerated.
1582
0d888aac
CW
15832001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1584
1585 * emultempl/pe.em(make_import_fixup): change signature to
1586 take asection as well as arelec; we need this for proper
146e7110 1587 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
1588 there is no attempt to add a constant addend to the reloc;
1589 otherwise, report error condition.
1590 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1591 since final argument is a pointer to make_import_fixup().
1592 Change call to cb() to match make_import_fixup() signature.
1593 (make_import_fixup_mark): make buffer_len unsigned.
1594 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1595
15962001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1597
1598 * ld.texinfo: add verbose documentation for auto-import
146e7110 1599 direct-addressing workaround, to compliment the terse
0d888aac
CW
1600 error message.
1601
cedacdc0
CM
16022001-09-12 Andrew MacLeod <amacleod@redhat.com>
1603
146e7110 1604 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 1605
3b16e843 16062001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
1607
1608 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1609 * emulparams/h8300self.sh: Similarly.
1610
559e4713
NC
16112001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1612
1613 * ld.texinfo (Options, --stack): Correct default value for stack
1614 reserve.
1615
1fdf0249
TR
16162001-09-05 Tom Rix <trix@redhat.com>
1617
1618 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 1619
9b5799b8
AJ
16202001-09-03 Andreas Jaeger <aj@suse.de>
1621
1622 * emultempl/beos.em: Declare prototypes for comparions functions,
1623 adjust definitions.
1624
48f6162b
AJ
16252001-09-02 Andreas Jaeger <aj@suse.de>
1626
1627 * emultempl/aix.em: Add missing prototype.
1628 * emultempl/lnk960.em: Likewise.
1629 * emultempl/vanilla.em: Likewise.
1630 * emultempl/armcoff.em: Likewise.
1631 * emultempl/armelf_oabi.em: Likewise.
1632 * emultempl/beos.em: Likewise.
1633 * emultempl/gld960c.em: Likewise.
1634 * emultempl/gld960.em: Likewise.
1635
1636 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1637 for prototype declaration.
1638
39e5585e
EC
16392001-08-31 Eric Christopher <echristo@redhat.com>
1640 Jason Eckhardt <jle@redhat.com>
1641
1642 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1643
3fc90ddb
AJ
16442001-08-31 Andreas Jaeger <aj@suse.de>
1645
1646 * emultempl/pe.em: Add missing prototypes.
1647 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1648 pe_find_data_imports.
1649 (pr_sym): Add unused attribute.
1650
d43ded80
PB
16512001-08-29 Joel Sherrill <joel@OARcorp.com>
1652
39e5585e 1653 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
1654 default from coff to elf.
1655
3946dd2f
JL
16562001-08-29 Jeff Law <law@redhat.com>
1657
1658 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1659 ARCH specification.
1660 * emulparams/h8300self.sh: Similarly.
1661
3b16e843 16622001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
1663
1664 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1665 eh8300self.o .
1666 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1667 * configure.tgt (h8300-*-elf*): New case.
1668 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1669 * emulparams/h8300self.sh: New file.
1670 * Makefile.in: Regenerated.
1671
70d0c6e9
NC
16722001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1673
1674 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1675 with macro name.
1676
5c67d4bb
AM
16772001-08-27 Linus Nordberg <linus@swox.com>
1678 Alan Modra <amodra@bigpond.net.au>
1679
1680 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1681 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1682 Run "make dep-am"
1683 * Makefile.in: Regenerate.
1684 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1685 entries to correct alphabetical position.
1686 * emulparams/elf64ppc.sh: New.
1687 * emulparams/elf64lppc.sh: New.
1688
08131015
NC
16892001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1690
1691 * ldmain.c (main): Declare BSIZE as static.
1692
db6751f2
JJ
16932001-08-23 Jakub Jelinek <jakub@redhat.com>
1694
1695 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1696 into .rel.dyn resp. .rela.dyn if combreloc.
1697 (get_script): If .x linker script is equal to .xn, only put it
1698 once into the binary.
1699 Add .xc and .xsc scripts.
1700 (parse_args): Handle -z combreloc and -z nocombreloc.
1701 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1702 For .xc and .xsc scripts put all .rel* or .rela* input sections
1703 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1704 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1705 is elf.
1706 Strip trailing whitespace from script.
1707 Generate .xc and .xsc scripts if requested.
1708 * ldmain.c (main): Initialize link_info.combreloc and
1709 link_info.spare_dynamic_tags.
1710 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1711 (ld_options): Add --spare-dynamic-tags option.
1712 (parse_args): Likewise.
1713 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1714 * ldint.texinfo: Document .xc and .xsc linker scripts.
1715 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1716
63d069c0
L
17172001-08-22 H.J. Lu <hjl@gnu.org>
1718
1719 * emulparams/elf32fr30.sh: Add a newline.
1720
948f9114
AJ
17212001-08-21 Andreas Jaeger <aj@suse.de>
1722
1723 * deffilep.y: Add missing prototypes.
1724 * pe-dll.c: Likewise.
1725
ae7fb08f
AM
17262001-08-20 Alan Modra <amodra@bigpond.net.au>
1727
2af02257
AM
1728 * ldlang.c (insert_pad): Fix typos in last patch.
1729
1730 * ldlang.c: When traversing lang_statement_union_type lists,
1731 consistently use "header.next" rather than "next".
1732 * mpw-eppcmac.c: Likewise.
1733 * emultempl/beos.em: Likewise.
1734 * emultempl/hppaelf.em: Likewise.
1735 * emultempl/pe.em: Likewise.
1736 * ldlang.h (union lang_statement_union): Remove "next" field.
1737
c0c330a7
AM
1738 * ldlang.c (insert_pad): Use offsetof macro.
1739 (lang_size_sections): Always neuter padding statements.
1740 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1741
ae7fb08f
AM
1742 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1743 passed to lang_size_sections.
1744 (pe_exe_fill_sections): Likewise.
1745 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1746 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1747
fab80407
AM
17482001-08-18 Alan Modra <amodra@bigpond.net.au>
1749
1750 * emultempl/aix.em: Formatting fixes.
1751
b3327aad
AM
17522001-08-18 Alan Modra <amodra@bigpond.net.au>
1753
1754 * ldlang.c (insert_pad): Make use of an existing pad statement if
1755 available. Move code calculating alignment, adjusting section
1756 alignment power, and adjusting dot to ..
1757 (size_input_section): .. here. Remove unused relax param.
1758 (lang_size_sections): Change boolean `relax' param to boolean *.
1759 Adjust call to size_input_section. Make use of insert_pad to
1760 place pad after the assignment statement. If relaxing, zap
1761 padding statements.
1762 (reset_memory_regions): Reset output_bfd section sizes too.
1763 (relax_again): Move to..
1764 (lang_process): ..here. Adjust call to lang_size_sections, and
1765 remove duplicated code.
1766 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1767
563e308f
AM
17682001-08-17 Alan Modra <amodra@bigpond.net.au>
1769
1770 * ld.texinfo: Document that fill values now use the four least
1771 significant bytes.
1772 * emulparams/elf32fr30.sh (NOP): Update.
1773 * emulparams/elf32mcore.sh: Likewise.
1774 * emulparams/elf64_s390.sh: Likewise.
1775 * emulparams/elf_i386.sh: Likewise.
1776 * emulparams/elf_i386_be.sh: Likewise.
1777 * emulparams/elf_i386_chaos.sh: Likewise.
1778 * emulparams/elf_i386_ldso.sh: Likewise.
1779 * emulparams/elf_s390.sh: Likewise.
1780 * emulparams/elf_x86_64.sh: Likewise.
1781 * emulparams/i386moss.sh: Likewise.
1782 * emulparams/i386nw.sh: Likewise.
1783 * emulparams/m68kelf.sh: Likewise.
1784 * scripttempl/elf.sc: Update NOP comment.
1785 * scripttempl/elfi370.sc: Likewise.
1786 * scripttempl/elfm68hc11.sc: Likewise.
1787 * scripttempl/elfm68hc12.sc: Likewise.
1788 * scripttempl/nw.sc: Likewise.
1789
b90e1c6f
TR
17902001-08-15 Tom Rix <trix@redhat.com>
1791
1792 * ldgram.y (saved_script_handle): Initialize to NULL.
1793 * ldmain.c (main): Change check on saved_script_handle.
948f9114 1794
39dcfe18
AM
17952001-08-14 Alan Modra <amodra@bigpond.net.au>
1796
cde43e70
AM
1797 * emultempl/elf32.em: Formatting fixes.
1798 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1799 looking at sec->owner.
1800 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1801 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1802 unused code, and reorganize orphan section placement code.
1803
39dcfe18
AM
1804 * ldlang.c (wild_doit): Rename to lang_add_section.
1805 * ldlang.h: Here too.
1806 * mpw-elfmips.c: And here.
1807 * emultempl/beos.em: And here.
1808 * emultempl/elf32.em: And here.
1809 * emultempl/hppaelf.em: And here.
1810 * emultempl/pe.em: And here.
1811
908d20b3
RH
18122001-08-13 Richard Henderson <rth@redhat.com>
1813
1814 * emultempl/needrelax.em: New file.
1815 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1816 * Makefile.am (eelf64_ia64.c): Depend on it.
1817 * Makefile.in: Rebuild.
1818
0f33d40b
AM
18192001-08-13 Alan Modra <amodra@bigpond.net.au>
1820
22af9fd3
AM
1821 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1822 output_section is set non-NULL.
1823
0f33d40b
AM
1824 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1825 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1826 needlessly create an output_section_statement. Treat a correctly
1827 named output_section_statement with NULL bfd_section as compatible.
1828
55ab6103
HPN
18292001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1830
1831 * emultempl/generic.em: Support EXTRA_EM_FILE.
1832 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1833 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1834 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1835 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1836 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1837 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1838 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1839 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1840 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1841 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1842
24098abb
RH
18432001-08-12 Richard Henderson <rth@redhat.com>
1844
1845 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1846 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1847 scripttempl/v850.sc: Keep .jcr data.
1848
b9a8de1e 18492001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
1850 Andrew Haley <aph@cambridge.redhat.com>
1851 Nick Clifton <nickc@redhat.com>
b9a8de1e 1852
146e7110 1853 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
1854 Change type to file handle.
1855 * ld.h (had_script): Rename and retype.
1856 * ldfile.c (ldfile_open_command_file): Save the file handle
1857 used in saved_script_handle.
1858 * lexsup.c (parse_args): Do not allow -c option to alter
1859 saved_script_handle.
1860 * ldmain.c (main): Print out the linker script used if
1861 --verbose is given. Check saved_script_handle to obtain the
1862 external linker script used, or if NULL, dump the builtin
1863 script.
1864 * ld.texinfo: Document that --verbose now dumps the linker
1865 script used, regardless of whether it was an internal or an
1866 external script.
1867
0218d1e4
AJ
18682001-08-10 Andreas Jaeger <aj@suse.de>
1869
1870 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1871 to build warnings.
1872 * configure: Regenerate.
1873
5253f23b
AM
18742001-08-09 Alan Modra <amodra@bigpond.net.au>
1875
73810896
AM
1876 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1877
5253f23b
AM
1878 * scripttempl/elf.sc: Move non-text .dynamic section before
1879 .plt/.got/.sdata* group.
1880 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1881 (OTHER_SDATA_SECTIONS): Add.
1882 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1883 OTHER_GOT_SECTIONS.
1884 * emulparams/crislinux.sh: Likewise.
1885 * emulparams/elf32b4300.sh: Likewise.
1886 * emulparams/elf32bmip.sh: Likewise.
1887 * emulparams/elf32bmipn32.sh: Likewise.
1888 * emulparams/elf32bsmip.sh: Likewise.
1889 * emulparams/elf32btsmip.sh: Likewise.
1890 * emulparams/elf32ebmip.sh: Likewise.
1891 * emulparams/elf32elmip.sh: Likewise.
1892 * emulparams/elf32l4300.sh: Likewise.
1893 * emulparams/elf32lmip.sh: Likewise.
1894 * emulparams/elf32lsmip.sh: Likewise.
1895 * emulparams/elf32ltsmip.sh: Likewise.
1896 * emulparams/elf64bmip.sh: Likewise.
1897 * emulparams/elf64btsmip.sh: Likewise.
1898 * emulparams/elf64ltsmip.sh: Likewise.
1899
179c732c
AM
19002001-08-08 Alan Modra <amodra@bigpond.net.au>
1901
1902 * genscripts.sh: Source the emulparams script before each output
1903 script is generated so that variables like `RELOCATING' may affect
1904 variables defined in the emulparams script.
1905
3fd36710
AM
19062001-08-04 Alan Modra <amodra@bigpond.net.au>
1907
20713691
AM
1908 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1909 order.
1910
3fd36710
AM
1911 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1912 ie. iterate over wild_statement.section_list.
1913 (gld${EMULATION_NAME}_place_orphan): Likewise.
1914
de0b1853
SC
19152001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1916
1917 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1918 .fini[0-4] sections used by _exit
1919 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1920 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1921 * scripttempl/elfm68hc11.sc: Likewise.
1922
ff7e6f88
L
19232001-08-03 H.J. Lu <hjl@gnu.org>
1924
1925 * emultempl/beos.em (init): Add the missing initialization.
1926
b6bf44ba
AM
19272001-08-03 Alan Modra <amodra@bigpond.net.au>
1928
1929 * ld.texinfo (Input Section Basics): Clarify ordering of output
1930 sections.
1931 * ldlang.c (callback_t): Add wildcard_list param.
1932 (walk_wild_section): Remove "section" param. Rewrite for
1933 lang_wild_statement_type change. Remove unique_section_p test.
1934 (walk_wild_file): Remove "section" param.
1935 (walk_wild): Remove "section" and "file" params.
1936 (lang_gc_wild): Likewise.
1937 (wild): Likewise. Modify for lang_wild_statement_type change.
1938 (wild_sort): Likewise. Add "sec" param.
1939 (gc_section_callback): Likewise.
1940 (output_section_callback): Likewise. Do unique_section_p test.
1941 (map_input_to_output_sections): Modify call to wild.
1942 (lang_gc_sections_1): Likewise.
1943 (print_wild_statement): Modify for lang_wild_statement_type
1944 change.
1945 (lang_add_wild): Replace filename, filenames_sorted param with
1946 filespec. Replace section_name, sections_sorted,
1947 exclude_filename_list with section_list.
1948 * ldlang.h (lang_add_wild): Here too.
1949 (lang_wild_statement_type): Replace section_name, sections_sorted,
1950 and exclude_filename_list with section_list.
1951 * ldgram.y (current_file): Delete.
1952 (%union): Add wildcard_list.
1953 (file_NAME_list): Set type to wildcard_list. Build a linked list
1954 rather than calling lang_add_wild for each entry.
1955 (input_section_spec_no_keep): Call lang_add_wild here instead.
1956 * ld.h (struct wildcard_list): Declare.
1957 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1958
b044cda1
CW
19592001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1960
1961 * ldmain.c (main): initialize link_info.pei386_auto_import
1962 * pe-dll.c: new tables for auto-export filtering
1963 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 1964 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
1965 "by hand".
1966
19672001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1968
b6bf44ba
AM
1969 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1970 static variable current_sec (static struct sec *). Add
b044cda1 1971 forward declaration for add_bfd_to_link.
b6bf44ba
AM
1972 (process_def_file): Don't export undefined symbols. Do not
1973 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
1974 with new API.
1975 (pe_walk_relocs_of_symbol): New function.
1976 (generate_reloc): add optional extra debugging
b6bf44ba 1977 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 1978 line in output
b6bf44ba 1979 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
1980 (DATA auto-import support).
1981 (make_singleton_name_thunk): New function.
1982 (make_import_fixup_mark): New function.
1983 (make_import_fixup_entry): New function.
1984 (pe_create_import_fixup): New function.
b6bf44ba 1985 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 1986 char *.
b6bf44ba
AM
1987 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1988 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
1989 pe_create_import_fixup.
1990 * emultempl/pe.em: add new options --enable-auto-import,
1991 --disable-auto-import, and --enable-extra-pe-debug.
1992 (make_import_fixup): New function.
1993 (pe_find_data_imports): New function.
1994 (pr_sym): New function.
b6bf44ba 1995 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
1996 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1997 CODE.
1998
19992001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 2000
b044cda1
CW
2001 * ld.texinfo: add additional documentation for
2002 --export-all-symbols. Document --out-implib,
2003 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
2004 --dll-search-prefix, --enable-auto-import, and
2005 --disable-auto-import.
b044cda1
CW
2006 * ldint.texinfo: Add detailed documentation on auto-import
2007 implementation.
2008
156e34dd
NC
20092001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2010
2011 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2012 example.
2013
d6231427
AM
20142001-07-24 Alan Modra <amodra@bigpond.net.au>
2015
2016 * Makefile.am: Update dependencies with "make dep-am".
2017 * Makefile.in: Regenerate
2018
e14ec88b
AM
20192001-07-23 Alan Modra <amodra@bigpond.net.au>
2020
2021 * ldcref.c (check_section_sym_xref): New function.
2022 (check_nocrossrefs): Call it.
2023 (check_nocrossref): Interate over h->refs here instead of..
2024 (check_refs): ..here. Pass in the symbol name, section, and bfd
2025 rather than hash_entry pointers.
2026 (struct check_refs_info): Keep symbol name rather than hash entry.
2027 Remove "same".
2028 (check_reloc_refs): Tweak for above changes in check_refs_info.
2029 Only report references to section syms when symname is NULL to
2030 prevent duplicate messages for the same reloc.
2031
1b577b00
NC
20322001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2033
c7d701b0
NC
2034 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2035 available. Do not print NULL trees.
2036 (exp_print_token): Print unknown tokens with values > 126 as
2037 decimal values not ASCII characters.
2038
1545243b
NC
2039 * ldlang.c (lang_leave_overlay): If a region is specified assign
2040 it to all sections inside the overlay unless they have been
2041 assigned to the own, non-default, memory region.
2042
1b577b00
NC
2043 * README: Add header for consistency with other README files.
2044
5030876b
L
20452001-07-14 H.J. Lu <hjl@gnu.org>
2046
2047 * emultempl/elf32.em (output_prev_sec_find): Never return
2048 bfd_abs_section_ptr, bfd_com_section_ptr nor
2049 bfd_und_section_ptr.
2050
18c7a9a5
NC
20512001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2052
22af9fd3 2053 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
2054 elf32.em.
2055 * Makefile.in: Regenerate.
2056
9ffecff1
MG
20572001-07-14 matthew green <mrg@eterna.com.au>
2058
2059 * configure.tgt (i386-*-netbsdelf*): New target.
2060 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2061
95500e1c
JJ
20622001-07-13 Jakub Jelinek <jakub@redhat.com>
2063
2064 * emultempl/elf32.em (output_prev_sec_find): New.
2065 (place_orphan): Use it.
2066
e97cb84f
L
20672001-07-11 H.J. Lu <hjl@gnu.org>
2068
2069 * ldmain.c (main): Fix typos in the last change.
2070
7333607e
JJ
20712001-07-11 Jakub Jelinek <jakub@redhat.com>
2072
2073 * ldmain.c (main): Disallow -F and -f without -shared.
2074
d29d80f2
NC
20752001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2076
2077 * emultempl/pe.em (after_open): Check for the output_bfd not
2078 having any coff_data structure allocated to it.
2079
c2a1a436
DB
20802001-07-09 David O'Brien <obrien@FreeBSD.org>
2081
2082 * emultempl/elf32.em: Do not assuming that contents of the buffer
2083 returned from basename function will remain unchanged accross other
2084 function calls.
2085
63653551
L
20862001-07-03 H.J. Lu <hjl@gnu.org>
2087
2088 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2089 2001-07-03. It creates dynamic entries even for static binaries.
2090
d303a449
L
20912001-07-03 Jakub Jelinek <jakub@redhat.com>
2092
2093 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2094 (DYNAMIC): Use it to reserve few dynamic entries for
2095 post-linking tools.
2096
9f22353f
AM
20972001-06-27 Alan Modra <amodra@bigpond.net.au>
2098
2099 * emulparams/hppa64linux.sh: New file.
2100 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2101 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2102 (ehppa64linux.c): Add rule to make it.
2103 Run "make dep-am".
2104 * Makefile.in: Regenerate.
2105
62bf86b4
HPN
21062001-06-21 Hans-Peter Nilsson <hp@axis.com>
2107
2108 * ld.texinfo (Options, -r): Mention restrictions when using
2109 different object formats.
2110
429d935d
HPN
21112001-06-19 Hans-Peter Nilsson <hp@axis.com>
2112
2113 * ldlang.c (lang_check): Emit fatal error if relocatable link
2114 between different object flavours with relocations in input.
2115
cb840a31
L
21162001-06-19 H.J. Lu <hjl@gnu.org>
2117
2118 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2119 (--version-script): Mention the language support.
2120
9bf03acc
L
21212001-06-19 H.J. Lu <hjl@gnu.org>
2122
2123 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2124
c45021f2
NC
21252001-06-18 H.J. Lu <hjl@gnu.org>
2126
b6bf44ba
AM
2127 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2128 (diststuff): Add $(MANS).
2129 * Makefile.in: Regenerated.
c45021f2 2130
b6bf44ba 2131 * ld.1: Removed.
c45021f2 2132
6caa99ab
HPN
21332001-06-18 Hans-Peter Nilsson <hp@axis.com>
2134
605d9b3a
HPN
2135 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2136 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2137 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2138 * ld.h (args_type): Remove member export_dynamic. All users
2139 changed to use struct bfd_link_info member.
2140
6caa99ab
HPN
2141 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2142 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2143 * Makefile.in: Regenerate.
2144
6f9efd97
L
21452001-06-18 H.J. Lu <hjl@gnu.org>
2146
2147 * ldlang.c (init_os): Add the newline to the einfo call.
2148 (lang_check): Likewise.
2149 (lang_do_version_exports_section): Likewise.
2150
5af9fd8b
L
21512001-06-15 H.J. Lu <hjl@gnu.org>
2152
2153 * lexsup.c (parse_args); Save optind to report unrecognized
2154 option.
2155
2a096f04
HPN
21562001-06-15 Hans-Peter Nilsson <hp@axis.com>
2157
7e66c3f5
HPN
2158 * ldlang.c (lang_check): Emit fatal error if relocatable link
2159 between different object flavours.
2160
2a096f04
HPN
2161 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2162 Set new link_info member export_dynamic.
2163 * ldmain.c (main): Initialize new link_info member export_dynamic.
2164
6770ec8c
NC
21652001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2166
2167 * ldlang.c (walk_wild): Only call walk_wild_file if
2168 lookup_name returns something.
b6bf44ba 2169 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 2170 (load_symbols): Change to a boolean function.
b6bf44ba 2171 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
2172 executable.
2173
8529105a
AM
21742001-06-08 Alan Modra <amodra@bigpond.net.au>
2175
2176 * ldlang.c (record_bfd_errors): Remove.
2177
2178 * emultempl/aix.em: Fix copyright dates.
2179
8f3aa7a0
AJ
21802001-06-07 Andreas Jaeger <aj@suse.de>
2181
2182 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2183 (TEXT_START_ADDR): Likewise.
2184
3277f888
AM
21852001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2186
2187 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2188
3763134d
DD
21892001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2190
2191 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2192
5929ebc0
L
21932001-05-31 H.J. Lu <hjl@gnu.org>
2194
2195 * ldlang.c (open_input_bfds): Don't change the bfd error
2196 handler whilst loading symbols.
2197
c04a062d
NC
21982001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2199
2200 * configure.tgt: Remove i370-mvs architecture, it is not currently
2201 supported.
2202
96fcab3e
L
22032001-05-25 H.J. Lu <hjl@gnu.org>
2204
2205 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2206 like emulparams/aixppc.sh.
2207
db8d4f23
L
22082001-05-25 H.J. Lu <hjl@gnu.org>
2209
2210 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2211 setting of output_filename after bfd_scan_arch.
2212 * emultempl/pe.em: Likewise.
2213
5f642101
L
22142001-05-25 H.J. Lu <hjl@gnu.org>
2215
2216 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2217 like emulparams/aixppc.sh.
2218
2219 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2220 instead of ${srcdir}/emultempl/stringify.sed.
2221
64e9ece0
TW
22222001-05-25 Timothy Wall <twall@oculustech.com>
2223
2224 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 2225 output.
64e9ece0 2226
c709b096
AM
22272001-05-25 Alan Modra <amodra@one.net.au>
2228
2229 * configure.host: Replace linuxoldld with linux*oldld.
2230 * configure.tgt: Likewise.
2231
6cbdcc6f
L
22322001-05-24 H.J. Lu <hjl@gnu.org>
2233
2234 * emultempl/stringify.sed: Removed again.
2235
86af25fe
L
22362001-05-24 H.J. Lu <hjl@gnu.org>
2237
2238 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2239 (gld${EMULATION_NAME}_before_parse): Initialize
2240 ldfile_output_architecture, ldfile_output_machine and
2241 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2242 * emultempl/beos.em: Likewise.
2243 * emultempl/elf32.em: Likewise.
2244 * emultempl/linux.em: Likewise.
2245 * emultempl/mipsecoff.em: Likewise.
2246 * emultempl/pe.em: Likewise.
2247 * emultempl/sunos.em: Likewise.
2248
3b1b01cf
TR
22492001-05-24 Tom Rix <trix@redhat.com>
2250
8f3aa7a0 2251 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
2252 udate import file format.
2253 (change_symbol_mode) New, same
2254 (is_syscall) New, same
2255 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2256 * emulparams/aixppc64.sh : same
2257 * emulparams/aixrs6.sh : same
2258 * emulparams/ppcmacos.sh : same
2259 * emultempl/aix.em : use strtoull to parse options
2260 * Makefile.am : add eaixppc64 emulation for xcoff64
2261 * Makefile.in : same
2262 * configure.tgt : same
2263
2264 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 2265 default data section offset to 0x20000000
3b1b01cf 2266 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 2267 loader and debug sections use the currect section offset.
3b1b01cf
TR
2268
2269 * emultempl/aix.em : Add xcoff64 support
2270 Add -binitfini support
8f3aa7a0 2271 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 2272 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 2273 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
2274 sections
2275
2276 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 2277
57e6abd2
AO
22782001-05-23 Alexandre Oliva <aoliva@redhat.com>
2279
2280 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2281 variable to avoid non-portable shell construct.
2282
d1cf510e
NC
22832001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2284
2285 * ldmain.c (get_emulation): Add -mips5 command line argument.
2286
506eee22
NC
22872001-05-22 Alexandre Oliva <aoliva@redhat.com>
2288
2289 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2290 (ELF_INTERPRETER_NAME): Define it.
2291 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2292 it.
2293 * configure.tgt (targ_emul, targ_extra_emuls)
2294 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2295 as primary, elf_i386 as extra.
2296 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2297 (eelf_i386_ldso.c): New rule.
2298 * Makefile.in: Rebuilt.
2299
23002001-05-22 Nick Clifton <nickc@redhat.com>
2301
2302 * lexsup.c (ld_options): Allow -I to be an alias for
2303 --dynamic-linker. This is for Solaris compatability.
2304 * ld.texinfo: Document that -I can be used.
2305 * ld.1: Regenerate.
2306
d1778b88
AM
23072001-05-16 Alan Modra <amodra@one.net.au>
2308
2309 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2310 whether an input section is the first one assigned to an output
2311 section.
2312 Assorted formatting fixes.
2313
02649152
DD
23142001-05-14 DJ Delorie <dj@delorie.com>
2315
2316 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2317 * Makefile.in: Ditto.
2318
579f31ac
JJ
23192001-05-11 Jakub Jelinek <jakub@redhat.com>
2320
2321 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2322 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2323 output sections.
2324 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2325
8550eb6e
JJ
23262001-05-11 Jakub Jelinek <jakub@redhat.com>
2327
2328 * ldlang.c (lang_process): Call bfd_merge_sections.
2329
8e5a525c
AM
23302001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2331
2332 * ldgram.y: Fix typo.
2333
1c9acd94
L
23342001-05-03 H.J. Lu <hjl@gnu.org>
2335
2336 * emultempl/elf32.em: Include "libiberty.h".
2337 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2338 basename of the bfd filename.
2339 (gld${EMULATION_NAME}_stat_needed): Likewise.
2340 (gld${EMULATION_NAME}_try_needed): Likewise.
2341 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2342
14fe918e
L
23432001-05-02 H.J. Lu <hjl@gnu.org>
2344
2345 * emultempl/pe.em: Include <ctype.h>.
2346
c7e40348
NC
23472001-05-02 Johan Rydberg <jrydberg@opencores.org>
2348
b6bf44ba 2349 * emulparams/elf32openrisc.sh: New file.
c7e40348 2350
b6bf44ba
AM
2351 * Makefile.am: Add OpenRISC target.
2352 * Makefile.in: Regenerated.
c7e40348 2353
b6bf44ba 2354 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
2355
23562001-05-02 Nick Clifton <nickc@redhat.com>
2357
2358 * emultempl/aix.em: Replace buystring with xstrdup.
2359 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 2360
d1b2b2dc
L
23612001-05-02 H.J. Lu <hjl@gnu.org>
2362
2363 * ldfile.c: Include "libiberty.h".
2364 * ldlex.l: Likewise.
2365
2366 * ldmisc.c (buystring): Removed.
2367 * ldmisc.h: Likewise.
2368
2369 * ldfile.c: Replace buystring with xstrdup.
2370 * ldlang.c: Likewise.
2371 * ldlex.l: Likewise.
2372 * ldmain.c: Likewise.
2373 * ldmisc.c: Likewise.
2374 * lexsup.c: Likewise.
2375 * mpw-eppcmac.c: Likewise.
2376
35714f2a
AJ
23772001-04-30 Andreas Jaeger <aj@suse.de>
2378
2379 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2380
884fb58e
NC
23812001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2382
b6bf44ba
AM
2383 * ldlang.c (load_symbols): Give emulation a chance
2384 to process unrecognized file before fatal error is
2385 reported, not after.
884fb58e 2386
87748b32
NC
23872001-04-27 Sean McNeil <sean@mcneil.com>
2388
2389 * configure.tgt: Add arm-vxworks target.
2390 * scripttempl/armcoff.sc: Support .text or .data as a section name
2391 prefix.
2392 Define _etext.
35714f2a 2393
7ce691ae
C
23942001-04-13 J.T. Conklin <jtc@redback.com>
2395
2396 * ld.texinfo: Document --fatal-warnings.
2397 * ld.1: Regenerate.
2398
2399 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 2400 warnings have been turned into errors.
7ce691ae
C
2401 * lexsup.c (OPTION_WARN_FATAL): Define.
2402 (ld_options): Entry for --fatal-warnings.
2403 (parse_args): Handle OPTION_WARN_FATAL.
2404 * ld.h (ld_config_type): Add fatal_warnings field.
2405
f5fa8ca2
JJ
24062001-04-13 Jakub Jelinek <jakub@redhat.com>
2407
2408 * ldmain.c (main): Default to discard_sec_merge.
2409 * lexsup.c (OPTION_DISCARD_NONE): Define.
2410 (ld_options): Add --discard-none.
2411 (parse_args): Handle OPTION_DISCARD_NONE.
2412 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2413 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2414 all its input sections match.
2415
fdec3cfc
L
24162001-04-05 Steven J. Hill <sjhill@cotw.com>
2417
2418 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2419 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2420 (eelf32ltsmip.c): New target.
2421 (eelf64btsmip.c): Likewise.
2422 (eelf64ltsmip.c): Likewise.
2423 * Makefile.in: Regenerated.
2424
2425 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2426 target.
2427 (mips*-*-linux-gnu*): Likewise.
2428
2429 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2430 MIPS taget.
35714f2a 2431 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
2432 target.
2433 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2434 endian target.
2435
589bad82
HPN
24362001-04-05 Hans-Peter Nilsson <hp@axis.com>
2437
2438 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2439 correct value of __Stext here.
2440 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2441 .startup section.
2442
2443 * emulparams/crislinux.sh: Remove FIXME.
2444
94202e16
AM
24452001-04-02 Alan Modra <alan@linuxcare.com.au>
2446
2447 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2448 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2449
1268a053
HPN
24502001-03-27 Hans-Peter Nilsson <hp@axis.com>
2451
2452 * configure.tgt (cris-*-*): Change default emulation to criself.
2453 (cris-*-*aout*): New rule.
2454
d85e9ff7
AM
24552001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2456
2457 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2458 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2459
0879a67a
AJ
24602001-03-26 Andreas Jaeger <aj@suse.de>
2461
2462 * ld.texinfo (Overview): Fix syntax in texi code.
2463
0285c67d
NC
24642001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2465
2466 * ld.texinfo: Put @c man indications to generate the ld man page.
2467 When generating man, define all the variables. Define SEEALSO
2468 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2469 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2470 (ld.1): Generate from ld.texinfo.
2471 * Makefile.in: Regenerate.
2472
c20ec07b
NC
24732001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2474
2475 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 2476 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 2477
cc5ce052
UD
24782001-03-17 Ulrich Drepper <drepper@redhat.com>
2479
2480 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2481 is an absolute path look only for this file and not along the path.
2482
a1ab1d2a
UD
24832001-03-17 Ulrich Drepper <drepper@redhat.com>
2484
2485 * emultempl/elf32.em (OPTION_GROUP): New macro.
2486 Add new option Bgroup to longopts.
2487 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2488 (gld*_list_options): Add -Bgroup and -z defs.
2489 * ld.1: Document -Bgroup and -z defs.
2490 * ld.texinfo: Likewise.
2491
788fca5a
MM
24922001-03-07 Michael Meissner <meissner@redhat.com>
2493
2494 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2495 with sections created by -fdata-sections.
2496 (.dynbss,.bss): Ditto.
2497
1c7566d1
AM
24982001-03-05 Alan Modra <alan@linuxcare.com.au>
2499
2500 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2501 after_allocation_default, not gld..._before_allocation.
2502
27b7e12d
AM
25032001-02-27 Alan Modra <alan@linuxcare.com.au>
2504
2505 * configure.in (BFD_VERSION): New.
2506 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2507 * configure: Regenerate.
2508 * Makefile.am: Run "make dep-am"
2509 * Makefile.in: Regenerate.
2510
2bc551c7
TW
25112001-02-26 Timothy Wall <twall@cygnus.com>
2512
2513 * emulparams/elf64_aix.sh: Add additional read-only sections;
2514 uncomment lines which are now required.
2515
1276aefa
NC
25162001-02-26 H.J. Lu <hjl@gnu.org>
2517
2518 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
2519 that problems can be caught whilst loading symbols.
2520 (record_bfd_errors): New function: Report BFD errors and mark
2521 the executable output as being invalid.
1276aefa 2522
41c49998
TW
25232001-02-22 Timothy Wall <twall@cygnus.com>
2524
2525 * configure.host: Add configuration for ia64-*-aix*.
2526 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2527 Add dependencies for eelf64_aix.c.
2528 * Makefile.in: Regenerate.
2529 * configure.tgt: Add ia64-*-aix* mapping.
2530 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 2531 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
2532 AIX-specific test.
2533
78f85fd7
L
25342001-02-20 H.J. Lu <hjl@gnu.org>
2535
2536 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2537 false if we found the file.
2538
1ac7e077 25392001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
2540
2541 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2542 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2543
e135f41b
NC
25442001-02-18 lars brinkhoff <lars@nocrew.org>
2545
2546 * Makefile.am: Add PDP-11 target.
2547 * configure.tgt: Likewise.
2548 * emulparams/pdp11.sh: New file.
2549
a842aceb
DB
25502001-02-17 David O'Brien <obrien@FreeBSD.org>
2551
2552 * configure.host: Add a generic FreeBSD configuration entry such that
2553 all [modern] FreeBSD systems on all platforms will look the same.
2554
24174db0
L
25552001-02-14 H.J. Lu <hjl@gnu.org>
2556
2557 * configure.tgt: Remove mention of earmelf_linux26.
2558
30c3c13a
RH
25592001-02-13 Richard Henderson <rth@redhat.com>
2560
2561 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2562
b46a87b1
L
25632001-02-13 H.J. Lu <hjl@gnu.org>
2564
2565 * ldexp.h (node_type): Add etree_provided.
2566 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2567 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 2568 for etree_provided.
b46a87b1
L
2569 (exp_print_tree): Handle etree_provided.
2570 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2571 etree_provided.
2572
f3988fd9
RH
25732001-02-09 David Mosberger <davidm@hpl.hp.com>
2574
2575 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2576 .IA_64.unwind.* pattern to unwind table section and
2577 .IA_64.unwind_info* pattern to unwind info section.
2578
a85d7ed0
NC
25792001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2580
2581 * Makefile.am: Add linux target for S/390.
2582 * Makefile.in: Likewise.
2583 * configure.host: Likewise.
2584 * configure.tgt: Likewise.
2585 * emulparams/elf64_s390.sh: New file.
2586 * emulparams/elf_s390.sh: New file.
2587
780248c4
JJ
25882001-02-09 Jakub Jelinek <jakub@redhat.com>
2589
2590 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2591 targ_extra_libpath.
2592 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2593
0e2534bd
PB
25942001-02-06 Philip Blundell <philb@gnu.org>
2595
2596 * Makefile.am: Remove mention of earmelf_linux26.
2597 * Makefile.in: Regenerate.
2598
46c1ea57
PB
25992001-02-04 Philip Blundell <philb@gnu.org>
2600
2601 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2602 * emulparams/armelf_linux26.sh: Delete.
2603 * configure.tgt: Remove mention of armelf_linux26 emulation.
2604
0088edd2
NC
26052001-02-01 Nick Clifton <nickc@redhat.com>
2606
2607 * ld.1: Replace occurances of -oformat with --oformat.
2608
02aa14fb
AM
26092001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2610
2611 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2612 load_base is specified.
2613
f813923c
HPN
26142001-01-24 Hans-Peter Nilsson <hp@axis.com>
2615
2616 * emultempl/elf32.em: Correct spelling in comments and listed
2617 options.
2618
c1eb1488
AM
26192001-01-23 Alan Modra <alan@linuxcare.com.au>
2620
2621 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2622 default for the first section of a group of overlay sections.
2623
d9fc3714
AM
26242001-01-22 Alan Modra <alan@linuxcare.com.au>
2625
2626 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2627 * Makefile.in: Regenerate.
2628 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2629 Check for null tool_dir.
2630
6be0ca94
JW
26312001-01-16 Jim Wilson <wilson@redhat.com>
2632
2633 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2634 and IA_64.unwind.info.
2635
b9247304
L
26362001-01-16 H.J. Lu <hjl@gnu.org>
2637
2638 * ldlang.c (lang_check): Merge the private data only if the
2639 input file has contents.
2640
577a0623
AM
26412001-01-14 Alan Modra <alan@linuxcare.com.au>
2642
d952f17a
AM
2643 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2644
ffd6e9de
AM
2645 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2646 enabling search for libmilli. On a relocatable link, make .text
2647 sections unique.
2648 (LDEMUL_AFTER_PARSE): Define.
2649 (hppaelf_finish): Correct spelling of relocatable in comments.
2650
577a0623
AM
2651 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2652 rummage through the script for sections on the unique list.
2653 Correct length of strncmp for ".note".
2654 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2655
2656 * ldlang.c (unique_section_list): New var.
2657 (unique_section_p): New function.
2658 (walk_wild_section): Don't match sections on unique_section_list.
2659 (lang_add_unique): New function.
ffd6e9de 2660 Correct spelling of relocatable in comments.
577a0623
AM
2661
2662 * ldlang.h (struct unique_sections): Declare.
2663 (unique_section_list): Declare.
2664 (unique_section_p): Declare.
2665 (lang_add_unique): Declare.
2666
2667 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2668 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2669
2670 * ld.texinfo (--unique): Update.
2671
b7ed8fad
NC
26722001-01-13 Nick Clifton <nickc@redhat.com>
2673
2674 * lexsup.c (parse_args): Remove spurious white space.
2675
d0398d6a
NC
26762001-01-12 Nick Clifton <nickc@redhat.com>
2677
2678 * lexsup.c (parse_args): Update copyright date.
2679
350fdb00
PB
26802001-01-12 Philip Blundell <pb@futuretv.com>
2681
2682 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2683
60c6797e
KH
26842001-01-10 Kazu Hirata <kazu@hxi.com>
2685
2686 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2687 * scripttempl/h8300h.sc: Fix formatting.
2688 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
2689 * scripttempl/h8500.sc: Likewise.
2690 * scripttempl/h8500b.sc: Likewise.
2691 * scripttempl/h8500c.sc: Likewise.
2692 * scripttempl/h8500m.sc: Likewise.
2693 * scripttempl/h8500s.sc: Likewise.
60c6797e 2694
482e8b32
DB
26952000-01-07 David O'Brien <obrien@BSDi.com>
2696
2697 * emultempl/elf32.em: Only perform Linux ld hints processing when
2698 targeting Linux.
2699
d7ed7ca6
PB
27002001-01-07 Philip Blundell <philb@gnu.org>
2701
2702 * ld.texinfo (Bug Reporting): Update email address for reports.
2703
0fc3347a
NC
27042000-12-31 Nick Clifton <nickc@redhat.com>
2705
2706 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2707 options by checking for a return value of '?' not -1.
2708
e4897a32
NC
27092000-12-28 Nick Clifton <nickc@redhat.com>
2710
2711 * lexsup.c (struct ld_option): Add new enum value:
2712 EXACTLY_TWO_DASHES.
2713 (ld_options[]): Change -omagic, -output and -oformat options
2714 to be EXACTLY_TWO_DASHES.
2715 (OUTPUT_COUNT): Use ARRAY_SIZE.
2716 (parse_args): Change parameter 'argc' to unsigned.
2717 Place EXACTLY_TWO_DASHES options into new really_longopts
2718 array.
2719 If getopt_long_only fails, try calling getopt_long using the
2720 really_longopts array.
2721 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2722 TWO_DASHES options.
2723
2724 * ldlex.h: Fix prototype of parse_args.
2725
2726 * ld.texinfo: Document that long options starting with 'o'
2727 must be preceeded by two dashes. Change example of a single
2728 dashed long option from -oformat to -trace-symbol.
2729
1122a5fc
NC
27302000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2731
2732 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2733 (longopts[]): New --no-default-excludes option.
2734 (gld_${EMULATION_NAME}_list_options): Document.
2735 (gld_${EMULATION_NAME}_parse_args): Handle.
2736
037849a9
NC
27372000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2738
2739 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2740 whitespace, it breaks the K&R C preprocessor.
2741
7ec229ce
DD
27422000-12-11 DJ Delorie <dj@redhat.com>
2743
2744 * ld.texinfo: Add notes about --whole-archive and gcc.
2745
b79e8c78
NC
27462000-11-18 Fred Fish <fnf@be.com>
2747
2748 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2749 (ld_options): Entry for --allow-shlib-undefined.
2750 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2751 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2752 to false.
2753 * ld.texinfo: Document new command line switch.
d952f17a 2754
9a8e2505
GK
27552000-12-12 Geoffrey Keating <geoffk@redhat.com>
2756
2757 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2758 .fixup is actually read/write.
2759 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2760 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2761 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2762
3b16e843 27632000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
2764
2765 * NEWS: Add note about x86_64 architecture.
2766
93b63cd3
DD
27672000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2768
2769 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2770 Set DWARF2 sections to a VMA of zero.
2771
68b2fc7a 27722000-12-01 Joel Sherrill <joel@OARcorp.com>
24f6971a 2773
d952f17a 2774 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
2775 New targets.
2776 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2777 (sparc*-*-rtems*): Switched from a.out to ELF.
2778
2be3aa03
NC
27792000-11-30 Jan Hubicka <jh@suse.cz>
2780
2781 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2782 (eelf_x86_64.c): New.
2783 * Makefile.in: Regenerate.
2784 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2785 * emulparams/elf_x86_64.sh: New.
2786
8c899858
HPN
27872000-11-30 Hans-Peter Nilsson <hp@axis.com>
2788
2789 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2790 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2791
2792 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2793 merging non-a.out sections into CONSTRUCTING.
2794
e47b9e39
NC
27952000-11-28 Nick Clifton <nickc@redhat.com>
2796
2797 * ld.1 (COPYING): Mention that the GNU Free Documentation
2798 License is present in the sources, but not the output, and
2799 also available from the GNU website.
2800 (GNU Free Documentation License): Comment out this section.
2801
ad95f82a
DB
28022000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2803
2804 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2805 does not use them.
2806
fd89e65f
DB
28072000-11-25 David O'Brien <obrien@FreeBSD.org>
2808
2809 * ld.1: Remove old date so it does not give the impression the manpage
2810 is way out of date.
2811
077b8428
NC
28122000-11-24 Nick Clifton <nickc@redhat.com>
2813
2814 * configure.tgt (xscale-coff): Add target.
2815 (xscale-elf): Add target.
2816
49425d28
NC
28172000-11-24 Fred Fish <fnf@be.com>
2818
d952f17a
AM
2819 * ldmain.c (main): Remove redundant init of config.make_executable
2820 to true.
49425d28 2821
d3480244
RH
28222000-11-15 Richard Henderson <rth@redhat.com>
2823
2824 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2825
1ce7de8b
KH
28262000-11-14 Kazu Hirata <kazu@hxi.com>
2827
2828 * scripttempl/h8300.sc: Fix formatting.
2829 * scripttempl/h8300h.sc: Likewise.
2830 * scripttempl/h8300s.sc: Likewise.
2831
3b16e843 28322000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
2833
2834 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2835
2e418547
PB
28362000-11-09 Philip Blundell <pb@futuretv.com>
2837
2838 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2839 around orphan sections whose names can be represented in C.
2840
c940e6fc
JW
28412000-11-07 Jim Wilson <wilson@redhat.com>
2842
2843 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2844 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2845
704c465c
NC
28462000-11-06 Nick Clifton <nickc@redhat.com>
2847
2848 * ld.texinfo: Add GNU Free Documentation License.
2849 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 2850 * ld.1: Add GNU Free Documentation License.
704c465c 2851
dca7760f
AM
28522000-11-05 Alan Modra <alan@linuxcare.com.au>
2853
2854 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2855 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2856
2857 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2858 Move 2000-11-02 Makefile.in changes to this file.
2859 * Makefile.in: Regenerate.
2860
40a633d5
NC
28612000-11-03 Nick Clifton <nickc@redhat.com>
2862
2863 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2864 constructors and destructors.
2865 * scripttempl/h8300h.sc: Ditto.
2866 * scripttempl/h8300s.sc: Ditto.
2867 * scripttempl/h8500.sc: Ditto.
2868 * scripttempl/h8500b.sc: Ditto.
2869 * scripttempl/h8500c.sc: Ditto.
2870 * scripttempl/h8500m.sc: Ditto.
2871 * scripttempl/h8500s.sc: Ditto.
2872 * scripttempl/v850.sc: Ditto.
2873 * scripttempl/w65.sc: Ditto.
2874 * scripttempl/z8000.sc: Ditto.
2875
59ff2774
NC
28762000-11-02 Per Lundberg <plundis@chaosdev.org>
2877
2878 * Makefile.in (e_i386_chaos.c): New rule.
2879 (ALL_EMULATIONS): Added e_i386_chaos.o.
2880 * emulparams/elf_i386_chaos.sh: New file.
2881 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2882
645571e1
JJ
28832000-10-20 Jakub Jelinek <jakub@redhat.com>
2884
2885 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2886 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2887 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2888 library path suffix.
2889 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2890
c5975a45
HPN
28912000-10-18 Hans-Peter Nilsson <hp@axis.com>
2892
2893 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2894 for consecutive sections.
2895
ea20a7da
CC
28962000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2897
d952f17a
AM
2898 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2899 options.
2900 * ld.texinfo: Added notes about this new option.
ea20a7da 2901
6e45556a
NC
29022000-10-16 Nick Clifton <nickc@redhat.com>
2903
2904 * emultempl/pe.em (_after_open): Add tests of return values from
2905 bfd functions. Emit appropriate error messages if necessary.
2906
b9a69188
NC
29072000-10-13 Nick Clifton <nickc@redhat.com>
2908
2909 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
2910 local variables - they are not used, but leave in the call to
2911 bfd_canonicalize_symtab.
b9a69188
NC
2912 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2913 pe_dll_search_prefix.
2914
627427de 29152000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 2916
627427de
DD
2917 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2918 (longopts): New --dll-search-prefix option.
2919 (gld_${EMULATION_NAME}_list_options): Document.
2920 (gld_${EMULATION_NAME}_parse_args): Handle.
2921 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2922 dynamically, search for a dll named '<prefix><basename>.dll'
2923 in preference to 'lib<basename>.dll' if --dll-search-prefix
2924 is specified.
2925
24376d1b
AM
29262000-10-12 Alan Modra <alan@linuxcare.com.au>
2927
2928 * ldlang.c (section_already_linked): Set kept_section instead of
2929 sec->comdat->sec.
2930
e47d05ad
KH
29312000-10-10 Kazu Hirata <kazu@hxi.com>
2932
2933 * deffile.h: Fix formatting.
2934 * lexsup.c: Likewise.
2935 * mri.c: Likewise.
2936
23a87948
DD
29372000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2938
2939 * pe-dll.c (make_one): Do not generate code thunk for DATA
2940 exports.
2941 (process_def_file): deduce DATA flag for auto-export sumbols.
2942
86b1cc60
KH
29432000-10-09 Kazu Hirata <kazu@hxi.com>
2944
89cdebba
KH
2945 * ld.h: Fix formatting.
2946 * ldcref.c: Likewise.
2947 * ldctor.h: Likewise.
2948 * ldemul.c: Likewise.
2949 * ldemul.h: Likewise.
2950 * ldexp.c: Likewise.
2951 * ldexp.h: Likewise.
2952 * ldfile.c: Likewise.
2953 * ldfile.h: Likewise.
2954 * ldlang.c: Likewise.
2955 * ldlang.h: Likewise.
2956 * ldmain.c: Likewise.
7bfd51a3
KH
2957 * pe-dll.c: Likewise.
2958
2959 * pe-dll.c: Revert some formatting fixes.
86b1cc60 2960
d643799d
KH
29612000-10-08 Kazu Hirata <kazu@hxi.com>
2962
2963 * pe-dll.c: Fix formatting.
2964
08da4cac
KH
29652000-10-05 Kazu Hirata <kazu@hxi.com>
2966
2967 * ldlang.c: Fix formatting.
2968
c2a94a7a
DD
29692000-10-03 DJ Delorie <dj@redhat.com>
2970
2971 * pe-dll.c (fill_edata): initialize entire block
2972 (make_one): fill in correct section.
2973
8c95a62e
KH
29742000-10-03 Kazu Hirata <kazu@hxi.com>
2975
2976 * ldexp.c: Fix formatting.
2977
486e80e2
DD
29782000-10-02 DJ Delorie <dj@redhat.com>
2979
2980 * emultempl/pe.em (gld_*_after_open): detect case where there two
2981 import libraries for same dll; rename one to ensure proper link
2982 order.
2983
2984 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2985 typo
2986 (generate_edata): fix typo
2987
24dd9f75
HPN
29882000-09-29 Hans-Peter Nilsson <hp@axis.com>
2989
2990 * scripttempl/crisaout.sc (ENTRY): Now __start.
2991 (.text): Add default setting for __start.
2992 Remove CONSTRUCTORS handling.
2993 (/DISCARD/): Add .gnu.warning.*.
2994 * emulparams/crislinux.sh (ENTRY): Now __start.
2995 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2996 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2997 (ENTRY): Now __start.
2998 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2999 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3000
4de2d33d
KH
30012000-09-29 Kazu Hirata <kazu@hxi.com>
3002
5cc18311
KH
3003 * deffile.h: Fix formatting.
3004 * ld.h: Likewise.
3005 * ldcref.c: Likewise.
4de2d33d 3006 * ldctor.c: Likewise.
5cc18311 3007 * ldctor.h: Likewise.
4de2d33d 3008 * ldemul.c: Likewise.
5cc18311 3009 * ldemul.h: Likewise.
4de2d33d 3010 * ldexp.c: Likewise.
5cc18311 3011 * ldexp.h: Likewise.
4de2d33d 3012 * ldfile.c: Likewise.
5cc18311 3013 * ldfile.h: Likewise.
4de2d33d 3014 * ldlang.c: Likewise.
5cc18311
KH
3015 * ldlang.h: Likewise.
3016 * lexsup.c: Likewise.
3017 * mri.c: Likewise.
3018 * pe-dll.c: Likewise.
4de2d33d 3019
45b1f63c
DD
30202000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3021
3022 * pe-dll.c (process_def_file): Uninitialized data wasn't
3023 exported with --export-all-symbols switch.
d952f17a 3024
45b1f63c
DD
30252000-09-28 DJ Delorie <dj@redhat.com>
3026
3027 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3028 noname work properly.
3029
47d89dba
AM
30302000-09-28 Alan Modra <alan@linuxcare.com.au>
3031
3032 * ld.texinfo (HPPA ELF32): New section.
3033
3034 * emultempl/hppaelf.em (group_size): New.
3035 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3036 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3037 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3038 options to prevent abbreviations matching.
3039 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3040 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3041
36bdbeec
NC
30422000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3043
3044 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3045 on the m68*-*-elf target. Make it support COFF input objects.
3046
6d5e62f8
KH
30472000-09-21 Kazu Hirata <kazu@hxi.com>
3048
3049 * ldmain.c: Fix formatting.
3050 * ldmisc.c: Likewise.
3051 * ldver.c: Likewise.
3052 * ldwrite.c: Likewise.
3053
e2eb67d9
AM
30542000-09-21 Alan Modra <alan@linuxcare.com.au>
3055
3056 * ldwrite.c (clone_section): Silence gcc warnings.
3057
b3ea3584
AM
30582000-09-20 Alan Modra <alan@linuxcare.com.au>
3059
3060 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3061 out of memory failure.
3062
3063 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3064 (clone_section): Handle out of memory failures. Rename var to
3065 avoid c++ reserved word.
3066
25f72752
AM
30672000-09-18 Alan Modra <alan@linuxcare.com.au>
3068
3069 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3070 stub_name param to stub_sec_name.
3071 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3072
0752970e
NC
30732000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3074
3075 * emultempl/m68kelf.em: New file.
3076 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3077 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3078 * Makefile.in: Regenerate.
3079
92b7e9d8
AM
30802000-09-15 Alan Modra <alan@linuxcare.com.au>
3081
3082 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3083 only as needed.
3084
9b14b192
NC
30852000-09-13 Nick Clifton <nickc@redhat.com>
3086
3087 * ldmain.c (multiple_definition): Disable relaxation if
3088 multiple symbol definitions are encountered - otherwise the
3089 linker could abort with an assertion failure.
3090
891fa266
NC
30912000-09-10 Nick Clifton <nickc@redhat.com>
3092
3093 * mri.c: Fix formatting.
3094
5d64ca4e
L
30952000-09-07 H.J. Lu <hjl@gnu.org>
3096
3097 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3098 * configure: Rebuild.
3099
dd94604f
L
31002000-09-07 H.J. Lu <hjl@gnu.org>
3101
3102 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3103 * Makefile.in: Rebuild.
3104
71bfc0ae
AM
31052000-09-07 Alan Modra <alan@linuxcare.com.au>
3106
3107 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3108 broken list handling. Create __start_SECNAME and __stop_SECNAME
3109 when no place-holder. Add some comments. Test both SEC_CODE and
3110 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 3111 Handle case where no output section statement created.
71bfc0ae 3112
4a428502
AO
31132000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3114
3115 * configure.tgt (sh-*-linux*): Added.
3116 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3117 * Makefile.in: Rebuilt.
3118 * emulparams/shelf_linux.sh: New file.
3119 * emulparams/shlelf_linux.sh: New file.
3120
f9989030
AM
31212000-09-06 Alan Modra <alan@linuxcare.com.au>
3122
3123 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3124 try shuffling sections when the orphan happens to be the place
3125 holder. Keep count of unique section names generated so we speed
3126 the search for a new name.
3127
58cccadb
AO
31282000-09-06 Alexandre Oliva <aoliva@redhat.com>
3129
3130 * configure: Rebuilt with new libtool.m4.
3131
5b343f5a
NC
31322000-09-05 Nick Clifton <nickc@redhat.com>
3133
3134 * Makefile.in: Regenerate.
3135 * aclocal.m4: Regenerate.
3136 * configure: Regenerate.
3137 * config.in: Regenerate.
3138 * po/ld.pot: Regenerate.
3139
3140 * ldint.texinfo: Remove CVS revision marker - it foils local
3141 comparisons.
3142
3143 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 3144
a854a4a7
AM
31452000-09-05 Alan Modra <alan@linuxcare.com.au>
3146
3231d22e
AM
3147 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3148 to stub section flags.
3149 (hppa_for_each_input_file_wrapper): New.
3150 (hppa_lang_for_each_input_file): New.
3151 (lang_for_each_input_file): Define to call above.
3152 (multi_subspace): New.
3153 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3154 (PARSE_AND_LIST_PROLOGUE): Define.
3155 (PARSE_AND_LIST_LONGOPTS): Define.
3156 (PARSE_AND_LIST_OPTIONS): Define.
3157 (PARSE_AND_LIST_ARGS_CASES): Define.
3158 (hppaelf_finish): Call elf32_hppa_set_gp.
3159 (hppaelf_set_output_arch): Remove.
3160 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3161
3162 * emulparams/hppalinux.sh (ELFSIZE): Define.
3163 (MACHINE): Define.
3164 (OTHER_READONLY_SECTIONS): Define.
3165 (DATA_PLT): Define.
3166 (GENERATE_SHLIB_SCRIPT): Define.
3167
5f992e62
AM
3168 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3169 to const throughout. Change `void *' to `PTR' throughout.
3170 (lang_memory_default): Function is local to file, add `static'.
3171
3172 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3173 (ehppalinux.c): Likewise.
3174 (earmelf.c): Likewise.
3175 (earmelf_linux.c): Likewise.
3176 (earmelf_linux26.c): Likewise.
3177 * Makefile.in: Regenerate.
3178
a854a4a7
AM
3179 * ld.h (ld_config_type): Add unique_orphan_sections.
3180 * lexsup.c (OPTION_UNIQUE): Define.
3181 (ld_options): Add "--unique".
3182 (parse_args): Handle it.
3183 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3184 search for an existing output section if unique_orphan_sections is
3185 set. Make use of bfd_get_unique_section_name rather than
3186 duplicating code here.
3187 * ld.texinfo: Describe --unique.
3188
3189 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3190 optional arg to split-by-file.
3191 (parse_args): Handle them.
3192 * ld.texinfo: Update description of these options.
3193 * ldwrite.c (clone_section): Pass in the section name. Replace
3194 local code with bfd_get_unique_section_name.
3195 (split_sections): Tidy code and comments. Use a list traversal
3196 more appropriate to the list construction. Handle cooked section
3197 sizes. Split when split_by_reloc reached rather than exceeded.
3198 Track section size and split when split_by_file reached. Fix
3199 link_order_tail (even though it's not used).
3200 (ldwrite): Modify condition for calling split_sections to suit
3201 changed split_by_reloc and split_by_file.
3202 * ldmain.c (main): Init config.split_by_reloc and
3203 config.split_by_file to -1.
3204 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3205 Change split_by_file to bfd_size_type.
3206
18e03609
NC
32072000-09-02 Nick Clifton <nickc@redhat.com>
3208
3209 * configure.in: Increase version number to 2.10.91.
3210 * NEWS: Mention new ability to support removal of duplicate DWARF2
3211 debug information.
3212 * configure: Regenerate.
3213 * aclocal.m4: Regenerate.
3214 * config.in: Regenerate.
3215
3a9d486c
NC
32162000-09-02 Daniel Berlin <dberlin@redhat.com>
3217
3218 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3219 sections.
a2b64bed 3220 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
3221 * scripttempl/elfd10v.sc: Ditto.
3222 * scripttempl/elfd30v.sc: Ditto.
3223 * scripttempl/elfi370.sc: Ditto.
3224 * scripttempl/elfm68hc11.sc: Ditto.
3225 * scripttempl/elfm68hc12.sc: Ditto.
3226 * scripttempl/elfi386beos.sc: Ditto.
3227 * scripttempl/v850.sc: Ditto.
50bbae35 3228
ac48eca1
AO
32292000-08-31 Alexandre Oliva <aoliva@redhat.com>
3230
3231 * acinclude.m4: Include libtool and gettext macros from the
3232 top level.
3233 * aclocal.m4, configure: Rebuilt.
3234
c13b1b77
NC
32352000-08-25 Nick Clifton <nickc@redhat.com>
3236
3237 * ldlang.c (open_output): When choosing the target for a
3238 particular endianness, do nothing if the target is not
3239 supported.
3240
dcb0bd0e
L
32412000-08-25 H.J. Lu <hjl@gnu.org>
3242
3243 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3244 check -rpath nor LD_RUN_PATH for cross link.
3245 * ld.texinfo: Document the change.
3246
5bcac8a4
HPN
32472000-08-24 Hans-Peter Nilsson <hp@axis.com>
3248
3249 * NEWS: Mention support for CRIS.
3250
6dd8c765
L
32512000-08-23 H.J. Lu <hjl@gnu.org>
3252
3253 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3254 the current runpath list from bfd_elf_get_runpath_list ()
3255 before search.
3256
ec4eb78a
L
32572000-08-22 H.J. Lu <hjl@gnu.org>
3258
3259 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3260 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3261 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3262 trace_file_tries is non-zero.
3263 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3264 if trace_file_tries is non-zero.
3265
3266 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 3267 * NEWS: Mention it.
ec4eb78a 3268
22b36938
JE
32692000-08-14 Jason Eckhardt <jle@cygnus.com>
3270
3271 * NEWS: Mention i860 support.
3272
d73e9da0
AS
32732000-08-14 Andreas Schwab <schwab@suse.de>
3274
3275 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 3276 syntax.
d73e9da0 3277
9ac4db9c
GK
32782000-08-10 Geoff Keating <geoffk@cygnus.com>
3279
3280 * scripttempl/elf.sc: Add a comment giving the correspondence
3281 between sections, per-datum sections, and linkonce sections. Make
3282 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3283 .sbss2.
3284
165589e4
JE
32852000-08-10 Jason Eckhardt <jle@cygnus.com>
3286
3287 * emulparams/elf32_i860.sh: New file.
3288 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3289 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3290 (eelf32_i860.c): New rule.
3291 * Makefile.in: Regenerate.
3292
345a835d
NC
32932000-08-10 Nick Clifton <nickc@cygnus.com>
3294
3295 * emulparams/mipspe.sh (ENTRY): Add definition.
3296
e374f1d9
NC
32972000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3298
3299 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3300 in error message.
3301
236d5abf
NC
33022000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3303
3304 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3305 the final size of .bss section.
3306 * scripttempl/elfm68hc12.sc: Likewise.
3307
4b209b22
AM
33082000-08-04 Alan Modra <alan@linuxcare.com.au>
3309
3310 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3311 gld${EMULATION_NAME}_parse_args for consistency. Combine
3312 lastoptind and prevoptind vars, and keep track of last optind.
3313 (gld_${EMULATION_NAME}_list_options): Rename to
3314 gld${EMULATION_NAME}_list_options.
3315
28423a68
AM
33162000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3317
3318 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3319 (i586-sco-sysv5uw7.1.0).
3320
b2009ff7
L
33212000-07-27 H.J. Lu <hjl@gnu.org>
3322
3323 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3324 (PARSE_AND_LIST_PROLOGUE): New.
3325 (PARSE_AND_LIST_LONGOPTS): Likewise.
3326 (PARSE_AND_LIST_OPTIONS): Likewise.
3327 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3328 (PARSE_AND_LIST_EPILOGUE): Likewise.
3329
04925e1e
AM
33302000-07-28 Alan Modra <alan@linuxcare.com.au>
3331
41392f03
AM
3332 * emultempl/armelf.em: Elide functions common to elf32.em,
3333 ie. most of the file.
3334 (arm_elf_after_open): New. Do arm specific things then call
3335 gld${EMULATION_NAME}_after_open.
3336 (arm_elf_before_allocation): New. Call
3337 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3338 (PARSE_AND_LIST_PROLOGUE): Define.
3339 (PARSE_AND_LIST_SHORTOPTS): Define.
3340 (PARSE_AND_LIST_LONGOPTS): Define.
3341 (PARSE_AND_LIST_OPTIONS): Define.
3342 (PARSE_AND_LIST_ARGS_CASES): Define.
3343 (LDEMUL_AFTER_OPEN): Define.
3344 (LDEMUL_BEFORE_ALLOCATION): Define.
3345 (LDEMUL_BEFORE_PARSE): Define.
3346 (LDEMUL_FINISH): Define.
3347
3348 * emultempl/hppaelf.em: Similarly zap most of this file.
3349 (hppaelf_add_stub_section): Prototype.
3350 (hppaelf_layaout_sections_again): Prototype.
3351 (hook_in_stub): Prototype.
3352 (LDEMUL_SET_OUTPUT_ARCH): Define.
3353 (LDEMUL_FINISH): Define.
3354 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3355
3356 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3357 (EXTRA_EM_FILE): New.
3358 * emulparams/armelf_linux.sh: Likewise.
3359 * emulparams/armelf_linux26.sh: Likewise.
3360 * emulparams/hppalinux.sh: Likewise.
3361 * emulparams/hppaelf.sh: Likewise.
3362 (NOP): Define.
3363
3364 * emultempl/elf32.em: Fix formatting.
3365 (EXTRA_EM_FILE): Source it.
3366 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3367 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3368 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3369 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3370 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3371 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3372 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3373 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3374 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3375 allow functions in this file to be overridden.
3376 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3377
3378 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3379
04925e1e
AM
3380 * emultempl/elf32.em: Reorganize file.
3381
88cdf297
NC
33822000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3383
3384 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3385 specific option to fit 64-bit executable in the lower
3386 31-bit address range. This is done by changing start
3387 address of .interp (the very first section of executable)
3388 and then setting EF_ALPHA_32BIT elf header flag.
3389
20bccb34
NC
33902000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3391
3392 * emultempl/m68kcoff.em: New file.
3393 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3394 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3395 generic.em.
3396 * Makefile.in: Regenerate.
3397
699845ef
L
33982000-07-20 H.J. Lu <hjl@gnu.org>
3399
3400 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3401 and "disable-new-dtags" to stop getopt from treating -d/-e as
3402 abbreviations for these options.
3403
6c1439be
L
34042000-07-20 H.J. Lu <hjl@gnu.org>
3405
3406 * ld.texinfo: Add documentation for --disable-new-dtags and
3407 --enable-new-dtags.
3408
3409 * ldmain.c (main): Initialize link_info.new_dtags to false.
3410
3411 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3412 --disable-new-dtags and --enable-new-dtags.
3413 (gld_${EMULATION_NAME}_list_options): Likewise.
3414
28c309a2
NC
34152000-07-05 Kenneth Block <krblock@computer.org>
3416
a2b64bed
NC
3417 * lexsup.c: Add optional style to demangle switch
3418 * ld.texinfo: Document optional style to demangle switch.
50bbae35 3419
9d06555c
HPN
34202000-07-20 Hans-Peter Nilsson <hp@axis.com>
3421
3422 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3423 ecrislinux.o.
3424 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3425 Regenerate dependencies.
3426 * Makefile.in: Rebuild.
3427 * configure.tgt (cris-*-*): New target.
3428 * emulparams/crisaout.sh, emulparams/criself.sh,
3429 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3430 * po/POTFILES.in, po/ld.pot: Regenerate.
3431
19e3be22
L
34322000-07-20 H.J. Lu <hjl@gnu.org>
3433
3434 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3435 Print out ignored -z options.
3436
e0ee487b
L
34372000-07-19 H.J. Lu <hjl@gnu.org>
3438
19e3be22
L
3439 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3440 (PARSE_AND_LIST_PROLOGUE): New.
3441 (PARSE_AND_LIST_LONGOPTS): Likewise.
3442 (PARSE_AND_LIST_OPTIONS): Likewise.
3443 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3444
3445 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3446
3447 * lexsup.c (ld_options): Comment out 'z'.
3448 (parse_args): Likewise.
3449
3450 * emultempl/elf32.em: Include "elf/common.h".
3451 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3452 options.
3453 (gld_${EMULATION_NAME}_list_options): Likewise.
3454
3455 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 3456
49e56c49
L
34572000-07-19 H.J. Lu <hjl@gnu.org>
3458
3459 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3460 bfd_elf_set_dt_needed_soname ().
3461
9d68bc82
DD
34622000-07-18 DJ Delorie <dj@cygnus.com>
3463
3464 * pe-dll.c (pe_dll_id_target): check object target name also
3465
53db15ed
HPN
34662000-07-18 Hans-Peter Nilsson <hp@axis.com>
3467
3468 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3469 ${INIT_END} if relocating.
3470 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3471
0ad8cf4c
DD
34722000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3473
a2b64bed 3474 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
3475 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3476 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3477 errors introduced by the old dynamic lib search order.
3478
874c8c99
DD
34792000-07-17 DJ Delorie <dj@cygnus.com>
3480
3481 * pe-dll.c (process_def_file): auto-export data items also
3482 (pe_process_import_defs): also see if _imp_ form needed
3483
5b4cf3f4
DD
34842000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3485
3486 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3487 for dll import libraries
3488
062739d1
NC
34892000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3490
3491 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 3492 gcc 2.95.2 and later.
062739d1 3493
1c64c4ed
NC
34942000-07-11 Kazu Hirata <kazu@hxi.com>
3495
50bbae35
AM
3496 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3497 message.
1c64c4ed 3498
b71e2778
AM
34992000-07-10 Alan Modra <alan@linuxcare.com.au>
3500
3501 * ldemul.h (struct lang_input_statement_struct): Remove forward
3502 declaration.
3503 (struct search_dirs): Likewise.
3504 * ldfile.h (struct lang_input_statement_struct): Likewise.
3505 Protect file from multiple inclusion.
3506 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3507 declaration from macro to file scope.
3508
3509 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3510 * ldgram.y: Likewise here.
3511 * ldlang.c: And here.
3512 * ldmain.c: And here.
3513 * mpw-elfmips.c: And here.
3514 * mpw-eppcmac.c: And here.
3515 * emultempl/aix.em: And here.
3516 * emultempl/armcoff.em: And here.
3517 * emultempl/armelf.em: And here.
3518 * emultempl/armelf_oabi.em: And here.
3519 * emultempl/beos.em: And here.
3520 * emultempl/elf32.em: And here.
3521 * emultempl/hppaelf.em: And here.
3522 * emultempl/linux.em: And here.
3523 * emultempl/lnk960.em: And here.
3524 * emultempl/pe.em: And here.
3525 * emultempl/sunos.em: And here.
3526 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3527 * mpw-idtmips.c: Ditto.
3528 * emultempl/generic.em: Ditto.
3529 * emultempl/gld960.em: Ditto.
3530 * emultempl/gld960c.em: Ditto.
3531 * emultempl/mipsecoff.em: Ditto.
3532 * emultempl/ticoff.em: Ditto.
3533 * emultempl/vanilla.em: Ditto.
3534
3535 * pe-dll.c: Include ldfile.h
3536 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3537
3538 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3539 arguments to bfd_elf32_size_dynamic_sections call.
3540 (gldelf32ebmip_place_orphan): Add missing arguments to
3541 lang_leave_output_section_statement call.
3542
2ef53d66
L
35432000-07-10 H.J. Lu <hjl@gnu.org>
3544
3545 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3546 DLL_SUPPORT.
3547 (strhash): Likewise.
3548 (compute_dll_image_base): Likewise.
3549 (pe_undef_found_sym): Likewise.
3550 (pe_undef_cdecl_match): Likewise.
3551 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3552 argument "arch" with ATTRIBUTE_UNUSED.
3553
9a8cbb09
AM
35542000-07-10 Alan Modra <alan@linuxcare.com.au>
3555
3556 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3557
3558 From Ryan Bradetich <rbradetich@uswest.net>
3559 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 3560
4900fc06
AM
35612000-07-09 Alan Modra <alan@linuxcare.com.au>
3562
3563 Changes to create multiple linker stubs, positioned immediately
3564 before the section where they are required.
3565 * emultempl/hppaelf.em: Include elf32-hppa.h.
3566 (stub_sec, file_chain): Delete.
3567 (hppaelf_create_output_section_statements): Don't make a stub
3568 section here.
3569 (hook_stub_info): New struct.
3570 (hook_in_stub): New function.
3571 (hppaelf_add_stub_section): New function.
3572 (hppaelf_finish): Do nothing for relocateable links. Modify the
3573 call to elf32_hppa_size_stubs. Move code for updating section
3574 layout from here...
3575 (hppaelf_layaout_sections_again): ..to here, a new function.
3576
3577 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3578 broken list handling. Pass in a pointer to the list.
3579 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3580 for above changes.
3581 (hppaelf_before_parse): Prototype.
3582 (hppaelf_set_output_arch): Prototype.
3583 (hppaelf_create_output_section_statements): Prototype.
3584 (hppaelf_delete_padding_statements): Prototype.
3585 (hppaelf_finish): Prototype.
3586
3587 Merge from elf32.em
3588 * emultempl/hppaelf.em: Include ctype.h.
3589 (struct orphan_save): New.
3590 (gld${EMULATION_NAME}_place_orphan): New.
3591 (output_rel_find): New.
3592 (hppaelf_get_script): Update from elf32.em.
3593 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3594 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 3595 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
3596
3597 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3598 ehppalinux.o, sort it. Regenerate dependencies.
3599 (ehppalinux.c): Depend on hppaelf.em
3600 * Makefile.in: Regenerate.
3601
3602 * configure.tgt: targ_emul=hppalinux for hppa*linux
3603
3604 * emulparams/hppalinux.sh: New.
3605 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3606
227aeb07
AM
36072000-07-08 Alan Modra <alan@linuxcare.com.au>
3608
3609 * lexsup.c (parse_args): Copy section name.
3610
28609fd4 36112000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 3612
2ef53d66 3613 * emultempl/pe.em: institute the following search order for
602e90d3
DD
3614 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3615 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3616 static lib (libfoo.a) if none of the above are found.
3617
5f577f7d
DD
36182000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3619
50bbae35 3620 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 3621 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 3622 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
3623 (gld_${EMULATION_NAME}_parse): Handle.
3624 (strhash): New static function.
50bbae35 3625 (compute_dll_image_base): New static function.
5f577f7d
DD
3626 (gld_${EMULATION_NAME}_set_symbols): Use.
3627
9a8cbb09 36282000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
3629
3630 * MAINTAINERS: new
3631
3548145d 36322000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
3633
3634 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3635 * emulparams/elf32btsmip.sh: New file.
3636 * Makefile.am: Add traditional mips target.
3637 * Makefile.in: Rebuild.
3638
67798033
L
36392000-07-01 H.J. Lu <hjl@gnu.org>
3640
3641 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3642 automake to use YLWRAP.
3643 * Makefile.in: Rebuild.
3644
0bdaf48b
AM
36452000-07-01 Alan Modra <alan@linuxcare.com.au>
3646
3647 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3648 (CLEANFILES): Add DEPA.
3649 * Makefile.in: Regenerate.
3650
c9e769c2
TW
36512000-06-30 Timothy Wall <twall@ppc>
3652
3653 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3654 the page in the upper octet of the address.
3655
65aa24b6
NC
36562000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3657
3658 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3659
4667035e
AM
36602000-06-24 Alan Modra <alan@linuxcare.com.au>
3661
3662 * NEWS: arm-elf does --gc-sections too.
3663
1581f8c9
AM
36642000-06-22 Alan Modra <alan@linuxcare.com.au>
3665
3666 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3667 find one.
3668 * Makefile.in: Regenerate.
3669
01580992
L
36702000-06-21 H.J. Lu <hjl@gnu.org>
3671
3672 * Makefile.am: Rebuild dependency.
3673 * Makefile.in: Rebuild.
3674
bbeb2e03
L
36752000-06-20 H.J. Lu <hjl@gnu.org>
3676
3677 * Makefile.am: Rebuild dependency.
3678 * Makefile.in: Rebuild.
3679
74459f0e
TW
36802000-06-20 Timothy Wall <twall@cygnus.com>
3681
3682 * scripttempl/tic54xcoff.sc: New.
3683 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3684 * gen-doc.texi: Add flag for TI COFF.
3685 * ld.texinfo: Add documentation for TI COFF handling switches.
3686 * emultempl/ticoff.em: New. TI COFF handling.
3687 * configure.tgt: Add tic54x target.
3688 * Makefile.am: Add tic54x target.
3689 * Makefile.in: Ditto.
3690
2ab47eed
AM
36912000-06-20 Alan Modra <alan@linuxcare.com.au>
3692
3693 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3694 checking for backslashes.
3695
919e4093
AM
36962000-06-19 Alan Modra <alan@linuxcare.com.au>
3697
3698 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3699
987fd5b4
AM
37002000-06-18 Alan Modra <alan@linuxcare.com.au>
3701
3702 * NEWS: Update list of targets supporting --gc-sections.
3703
3704 * scripttempl/elf.sc: KEEP .eh_frame contents.
3705 * scripttempl/elfd30v.sc: Same here.
3706
60bcf0fa
NC
37072000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3708
3709 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3710 and m68hc11 (elf).
3711 * Makefile.in: Rebuild.
3712 * configure.tgt: Recognize m68hc12 and m68hc11.
3713 * scripttempl/elfm68hc12.sc: New file.
3714 * emulparams/m68hc12elfb: New emulation.
3715 * emulparams/m68hc12elf: New emulation.
3716 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3717 (includes a memory.x script to define the ROM and RAM banks).
3718 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3719 New configuration files for support of Motorola 68hc11
3720
c7c54483
AM
37212000-06-15 Alan Modra <alan@linuxcare.com.au>
3722
3723 * ldmain.c (main): Only change SEC_READONLY for final link.
3724
bcef29e6
L
37252000-06-13 H.J. Lu <hjl@gnu.org>
3726
3727 * configure: Regenerate.
3728
946efd95
DB
37292000-06-08 David O'Brien <obrien@FreeBSD.org>
3730
3731 * configure.in (VERSION): Update to show this is the CVS mainline.
3732
57a6fd07
DB
37332000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3734
3735 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3736 input objects to be ECOFF.
3737 (check_sections): einfo takes %B, not %P, to print a BFD name.
3738
e06cae36
L
37392000-06-05 Michael Matz <matz@ifh.de>
3740
3741 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 3742 version scripts.
e06cae36 3743
d952f17a 3744 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 3745
2f0b56c0
DC
37462000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3747
3748 * emulparams/avr1200.sh (STACK): Define as 0.
3749 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3750 * emulparams/avr4433.sh (STACK): Likewise.
3751 * emulparams/avr44x4.sh (STACK): Likewise.
3752 * emulparams/avr85xx.sh (STACK): Likewise.
3753 * emulparams/avrmega103.sh (STACK): Likewise.
3754 * emulparams/avrmega161.sh (STACK): Likewise.
3755 * emulparams/avrmega603.sh (STACK): Likewise.
3756 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3757 (__stack): Define from ${STACK} for main().
3758
2114f57b
AM
37592000-05-26 Alan Modra <alan@linuxcare.com.au>
3760
3761 * Makefile.am: Update dependencies with "make dep-am"
3762 * Makefile.in: Regenerate.
3763
5af11cab
AM
37642000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3765
3766 * ldmain.c: Include filenames.h.
3767 (set_scripts_dir): Support backslashes in program name.
3768
1f0df59a
NC
37692000-05-22 Igor Shevlyakov <igor@windriver.com>
3770
3771 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
3772 read-only, don't forget to reset SEC_READONLY because it
3773 could be already set.
1f0df59a 3774
176355da
NC
37752000-05-22 Thomas de Lellis <tdel@windriver.com>
3776
50bbae35
AM
3777 * ld.1: Add documentation for new command line option:
3778 --section-start <sectionname>=<sectionorg>
3779 This is a generic version of -Ttext etc. which accepts
3780 any section name as a parameter instead of just text/data/
3781 bss.
3782 * ld.texinfo: More docs.
3783 * NEWS: More docs.
3784 * lexsup.c: (parse_args): Recognize new command line option.
176355da 3785 (ld_options): Add new option.
50bbae35 3786
8c5ff972
L
37872000-05-18 H.J. Lu <hjl@gnu.org>
3788
3789 * lexsup.c (parse_args): `i' == `r', not `q'.
3790
3b16e843 37912000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
3792
3793 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3794
a712da20
NC
37952000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3796 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 3797
a712da20
NC
3798 Add support for '-q' == '--emit-relocs' switch.
3799 * ldmain.c (main): Default to false.
3800 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3801 * NEWS: Describe the emitrelocations switch.
3802 * ld.texinfo: Describe the emitrelocations switch.
3803
690a460e
NC
38042000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3805
a2b64bed 3806 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
3807 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3808 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3809 link options.
50bbae35 3810
c2f1343c
AM
38112000-05-15 David O'Brien <obrien@FreeBSD.org>
3812
3813 * lexsup.c (parse_args): Update the year in the copyright notice.
3814
897083bd
AM
38152000-05-13 Alan Modra <alan@linuxcare.com.au>
3816
3817 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3818 Replace defines with those from intl/libgettext.h to quieten gcc
3819 warnings.
3820
cd4c806a
L
38212000-05-10 H.J. Lu <hjl@gnu.org>
3822
3823 * ldlang.c (open_input_bfds): Don't load the same file within
3824 a group again if the whole archive has been loaded already.
3825
93697284
AM
38262000-05-03 Alan Modra <alan@linuxcare.com.au>
3827
3828 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3829 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3830 strtoul.
3831
3b16e843 38322000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 3833
99a4150f 3834 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 3835
ebd6fc29
JW
3836 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3837 host "ia64-*-linux-gnu*".
3838
a1934524
AM
38392000-04-29 Andreas Jaeger <aj@suse.de>
3840
3841 * ld.h: Correctly check GCC version.
3842
3b16e843 38432000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
3844
3845 * Makefile.am: Add PA64 support. Add missing dependencies for
3846 PA32 elf support.
3847 * Makefile.in: Rebuilt.
3848 * configure.tgt: Add PA64 support (currently disabled).
3849
aea4bd9d
AM
38502000-04-25 Alan Modra <alan@linuxcare.com.au>
3851
3852 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3853 (output_rel_find): New function.
3854 (hold_section, hold_use): Delete.
3855 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3856 hold_interp): Make local to place_orphan.
3857 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3858 rather than place_section to find possible previous use of orphan.
3859 Similarly find the place-holder output sections. Use returned
3860 value from lang_enter_output_section_statement rather than calling
3861 lang_output_section_statement_lookup.
3862 * emultempl/armelf.em: Same here.
3863 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3864
3865 * ldlang.c (lang_enter_output_section_statement): Return output
3866 section statement.
3867 * ldlang.h (lang_enter_output_section_statement): Change
3868 declaration too.
3869
3870 * ldlang.h (lang_output_section_statement): Export it.
3871 * ldlang.c (lang_output_section_statement): Ditto.
3872
2b5fc1f5
NC
38732000-04-24 Nick Clifton <nickc@cygnus.com>
3874
3875 * ld.texinfo (Output Section Data): Add note that section data
3876 commands cannot appear outside of section directives.
3877
d8475ff6
JL
38782000-04-2 Matthew Green <mrg@cygnus.com>
3879
3880 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3881
3b16e843
NC
38822000-04-21 Richard Henderson <rth@cygnus.com>
3883 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
3884
3885 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3886 (eelf64_ia64.c): New rule.
3887 * Makefile.in: Rebuild.
3888 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3889 * emulparams/elf64_ia64.sh: New file.
50bbae35 3890
c9637625
RH
38912000-04-21 Richard Henderson <rth@cygnus.com>
3892
3893 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3894
28ea9521
AM
38952000-04-19 Alan Modra <alan@linuxcare.com.au>
3896
3897 * dep-in.sed: Match space at start of file name, not at end.
3898
20d04697
L
38992000-04-18 H.J. Lu <hjl@gnu.org>
3900
3901 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3902 lang_leave_output_section_statement () after calling
3903 lang_enter_output_section_statement ().
3904 * emultempl/armelf.em: Likewise.
3905
5ba47421
AM
39062000-04-18 Alan Modra <alan@linuxcare.com.au>
3907
3908 * emultempl/elf32.em (struct orphan_save): Add section field.
3909 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3910 better order, and place first orphan section as we did before the
3911 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3912 Don't call make_bfd_section here, let wild_doit do the job for us.
3913 Don't build a statement list when we'll only throw it away.
3914 * emultempl/armelf.em: Ditto.
3915 * emultempl/pe.em: Similarly.
3916
bdbe5705
GK
39172000-04-14 Geoff Keating <geoffk@cygnus.com>
3918
3919 * scripttempl/elfppc.sc: Remove.
3920 * emulparams/elf32ppc.sh: Use elf.sc.
3921 * emulparams/elf32lppc.sh: Use elf.sc.
3922 * emulparams/elf32ppclinux.sh: Use elf.sc.
3923 * emulparams/elf32ppcsim.sh: New file.
3924 * emulparams/elf32lppcsim.sh: New file.
3925 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3926 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3927 * Makefile.in: Regenerate.
3928 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3929
01cc8ff8
AM
39302000-04-14 Alan Modra <alan@linuxcare.com.au>
3931
5ba47421 3932 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 3933 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
3934 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3935 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
3936 Also set all relocateable section start addresses.
3937
6c86c541
GK
39382000-04-13 Geoff Keating <geoffk@cygnus.com>
3939
3940 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3941 Add new BSS_PLT variable for when .plt need not be contained in
3942 the file. Move _etext so that it is also after .fini, and provide
3943 both etext and _etext with a leading underscore. Mark the start
3944 and end of .sbss.
3945
6a345e87
AM
39462000-04-12 Alan Modra <alan@linuxcare.com.au>
3947
3948 * emultempl/elf32.em (struct orphan_save): New.
3949 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3950 hold_interp): Make them struct orphan_save.
3951 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3952 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3953 the end of the relevant section list. Also add associated section
3954 statements to the end of any previous orphan statements.
3955 * emultempl/armelf.em: Similarly.
3956 * emultempl/pe.em: Similarly.
3957
8be86746
AM
39582000-04-11 Alan Modra <alan@linuxcare.com.au>
3959
3960 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3961
3b16e843 39622000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 3963
a2d91340 3964 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 3965 --enable-build-warnings option.
a2d91340
AC
3966 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3967 * Makefile.in, configure: Re-generate.
3968
41b49281
AM
39692000-04-04 Alan Modra <alan@linuxcare.com.au>
3970
8ad3436c
AM
3971 * po/ld.pot: Regenerate.
3972
3973 * lexsup.c (help): Restore translated part of bug string.
3974
41b49281
AM
3975 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3976 (DEP): Quote when passing vars to sub-make. Add warning message
3977 to end.
3978 (DEP1): Rewrite for "gcc -MM".
3979 (CLEANFILES): Add DEP2.
3980 Update dependencies.
3981 * Makefile.in: Regenerate.
3982
c20f4f8c
AM
39832000-04-03 Alan Modra <alan@linuxcare.com.au>
3984
3985 * ld.h: #include "bin-bugs.h"
3986 * lexsup.c (help): Use REPORT_BUGS_TO.
3987
adde6300
AM
39882000-03-27 Denis Chertykov <denisc@overta.ru>
3989
3990 * configure.tgt (avr-*-*): New target support.
3991 * Makefile.am: Likewise.
3992 * scripttempl/elf32avr.sc: New script file.
3993 * emulparams/avr1200.sh: New file.
3994 * emulparams/avr23xx.sh: New file.
3995 * emulparams/avr4433.sh New file.
3996 * emulparams/avr44x4.sh New file.
3997 * emulparams/avr85xx.sh New file.
3998 * emulparams/avrmega103.sh New file.
3999 * emulparams/avrmega161.sh New file.
4000 * emulparams/avrmega603.sh New file.
4001 * Makefile.in: Regenerate.
4002
9282ff41
L
40032000-03-09 Andreas Jaeger <aj@suse.de>
4004
4005 * Makefile.am (check-DEJAGNU): Also unset LANG.
4006 * Makefile.in: Rebuild.
4007
a9998805
ILT
40082000-03-06 Ian Lance Taylor <ian@zembu.com>
4009
4010 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4011 archive.
4012
f9bc20e7
NC
40132000-03-02 H.J. Lu <hjl@gnu.org>
4014
4015 * emulparams/elf32mcore.sh: Include "getopt.h".
4016
4e277b38
ILT
40172000-03-01 Ian Lance Taylor <ian@zembu.com>
4018
4019 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4020
f0c87f88
NC
40212000-03-01 H.J. Lu <hjl@gnu.org>
4022
4023 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4024 * emulparams/shpe.sh: Likewise.
4025
40262000-03-01 Nick Clifton <nickc@cygnus.com>
4027
4028 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4029 to unused parameters.
4030
4031 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4032 functions only used by DLL code.
4033 (_place_orphan): Initialise 'dollar'.
4034
b6f29aaa
L
40352000-03-01 H.J. Lu <hjl@gnu.org>
4036
4037 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4038 indicate if the undefined symbol is a fatal error or not.
4039 Don't delete the output file if "fatal" is false.
4040
af28fce3
L
40412000-02-29 H.J. Lu <hjl@gnu.org>
4042
50bbae35 4043 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
4044 Set LC_COLLATE and LC_ALL to null and export them. It is for
4045 sort which expects the C locale.
4046 Add $(LIBS) to all $(HOSTING_LIBS).
4047 * Makefile.in: Rebuild.
4048
40d109bf
AM
40492000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4050
4051 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4052 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4053 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4054 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4055 find_potential_libraries.
4056
db5be682
JB
40572000-02-28 Jim Blandy <jimb@redhat.com>
4058
4059 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 4060 list entries; the lexer considers commas to be valid part of a
db5be682
JB
4061 filename, so in something like `foo, bar' the comma is considered
4062 part of the first filename, `foo,'.
4063 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4064
3558ff4c
ILT
40652000-02-27 Loren J. Rittle <ljrittle@acm.org>
4066
4067 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4068 host "i[3456]86-*-freebsdelf*".
4069
4eee2681
ILT
40702000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4071
4072 * scripttempl/i386go32.sc: Move misplaced semicolons.
4073
8d75d12d
ILT
40742000-02-25 Ian Lance Taylor <ian@zembu.com>
4075
4076 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4077 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4078 (eelf64hppa.c, ehppaelf.c): Remove targets.
4079 * Makefile.in: Rebuild.
4080
a1836d49
AO
40812000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4082
ad51fb57
AO
4083 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4084 GNU/Linux/sparc, but keep the default as 32.
4085
a1836d49
AO
4086 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4087 it default if sparcv9 or sparc64.
4088
344a211f
NC
40892000-02-24 Nick Clifton <nickc@cygnus.com>
4090
4091 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4092 * Makefile.in: Regenerate.
4093 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4094
4095 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4096 find_potential_libraries.
4097 * ldemul.c (ldemul_find_potential_libraries): New function.
4098
4099 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 4100 exported.
344a211f
NC
4101 (ldfile_open_file): Call ldemul_find_potential_libraries.
4102 * ldfile.h: Add prototype for ldfile_open_file_search.
4103
4104 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4105
4106 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4107 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4108
4109 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4110 (gld_X_find_potential_libraries): New function. Search for
4111 libraries called "*.lib".
4112
a2b64bed 4113 * scripttempl/pe.sc: Add .pdata section.
344a211f 4114
eaba1dd3
RH
41152000-02-23 Richard Henderson <rth@cygnus.com>
4116
4117 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4118 Add and use memory regions.
4119
5b93d8bb
AM
41202000-02-23 Linas Vepstas (linas@linas.org)
4121
4122 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4123
4124 * Makefile.am: Add support for Linux/IBM 370.
4125 * configure.tgt: Likewise.
4126
4127 * Makefile.in: Regenerate.
4128
f6af82bd
AM
41292000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4130
4131 * ldlang.c (print_input_section, print_data_statement,
4132 print_reloc_statement, print_padding_statement, insert_pad,
4133 size_input_section, lang_check_section_addresses,
4134 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 4135 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
4136 (lang_do_assignments): Also change `size' to unsigned.
4137
9e673ad1
RH
41382000-02-16 Richard Henderson <rth@cygnus.com>
4139
4140 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4141
562d3460
TW
41422000-02-16 Timothy Wall <twall@cygnus.com>
4143
4144 * mri.c (mri_draw_tree): Add default LMA region argument to call
4145 to lang_leave_output_section_statement.
4146 * ldlang.h: Update prototypes with LMA region arguments.
4147 * ldlang.c (lang_size_sections): Encapsulate region bounds
4148 checking in os_check_region call.
4149 (os_check_region): New function.
4150 (lang_output_section_statement_lookup): Initialize lma_region.
4151 (lang_leave_output_section_statement): Add LMA region argument.
4152 (lang_leave_overlay): Ditto.
4153 * ldgram.y: Handle LMA region syntax.
4154 * ld.texinfo (Output Section Description): Describe LMA region usage.
4155 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 4156 lma region in call to lang_leave_output_section_statement.
562d3460 4157 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 4158 lma region in call to lang_leave_output_section_statement.
562d3460 4159 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 4160 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
4161
4162
9e4ed18c
TW
41632000-02-04 Timothy Wall <twall@redhat.com>
4164
4165 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4166 octets when calculating section end addresses.
4167
32edc927
TW
41682000-02-04 Timothy Wall <twall@redhat.com>
4169
4170 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4171
4cbfc3ac
TW
41722000-02-03 Timothy Wall <twall@redhat.com>
4173
a2b64bed 4174 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 4175 octet count.
a2b64bed 4176 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
4177 print_reloc_statement, print_padding_statement): Print target
4178 address values and section sizes as bytes, not octets.
4179 (insert_pad) Calculate padding size in octets, and adjust "dot"
4180 by bytes.
4181 (size_input_section) Always adjust "dot" by bytes, not octets.
4182 (lang_check_section_addresses, lang_do_assignments) Adjust
4183 "dot" by bytes, not octets. Use the larger of the directive size
4184 or octets_per_byte for the number of octets actually allocated in
4185 the output section.
4186 (lang_set_startof) Make sure STARTOF returns a target address.
4187 (lang_one_common) Record size changes in octets.
4188 (lang_abs_symbol_at_end_of) Section end symbol's value is
4189 recorded in target bytes.
68b2fc7a 4190 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4cbfc3ac 4191 to be clear about behavior when an octet is smaller than one byte.
50bbae35 4192
305c7206
AM
41932000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4194
4195 * ldcref.c (output_cref): Don't pass message strings to printf
4196 as format arg.
4197 Update copyright.
4198
4199 * ldmisc.c (vfinfo): Same here.
4200 Update copyright.
4201
e1c47aa4
AM
42022000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4203
4204 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4205 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4206 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4207 Add missing NULL initialisers, and comments.
4208
4209 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4210
13392b77
NC
42112000-01-21 Nick Clifton <nickc@cygnus.com>
4212
4213 * ldlang.c (lang_size_sections): Fix typo in comment.
4214
cce4c4c5
NC
42152000-01-18 H.J. Lu <hjl@gnu.org>
4216
4217 * ldlang.c (lang_size_sections): Also update the current
4218 address of a region if the SEC_NEVER_LOAD bit is not set.
4219
0decc840
NC
42202000-01-10 Philip Blundell <pb@futuretv.com>
4221
4222 * configure.tgt (arm*-*-conix*): New target.
4223
4e53152f
NC
42242000-01-07 Nick Clifton <nickc@cygnus.com>
4225
4226 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
4227 line switches with -Wl, (or whatever is appropriate) if it is
4228 being invoked by a comnpiler driver program.
50bbae35 4229 Fix description of the behaviour of the -n command line switch.
4e53152f 4230
3b16e843 42312000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
4232
4233 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4234 (name_list): New.
4235 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4236 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4237 (exclude_name_list): New.
4238 ldlang.c (walk_wild_section): Support list of excluded files.
4239 (print_wild_statement): Likewise.
4240 (lang_add_wild): Likewise.
4241 * ldlang.h (lang_wild_statement_type): Likewise.
4242 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 4243
5aaace27
NC
42442000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4245
870df5dc
NC
4246 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4247 (process_def_file): Use.
4248 (pe_dll_compat_implib): New variable.
4249 (make_one): Use.
50bbae35 4250
870df5dc
NC
4251 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4252 pe_dll_compat_implib.
50bbae35
AM
4253
4254 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
4255 compat-implib options.
4256 (gld_${EMULATION_NAME}_list_options): List new options.
4257 (gld_${EMULATION_NAME}_parse_args): Handle.
4258
50bbae35 4259 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 4260 dll.
50bbae35
AM
4261
4262 * deffilep.y (opt_name): Allow "." in name.
5aaace27 4263
2f6d2f85 4264For older changes see ChangeLog-9899
252b5132
RH
4265\f
4266Local Variables:
4267mode: change-log
4268left-margin: 8
4269fill-column: 74
4270version-control: never
4271End:
This page took 0.35827 seconds and 4 git commands to generate.