When computing size of symbols for an ELF target use the internal size field.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
f13a5424
AM
12002-06-07 Alan Modra <amodra@bigpond.net.au>
2
3 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
4
1abffd82
JL
52002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
6
7 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
8 HOSTING_CRT0 and HOSTING_LIBS.
9
7a33bc10
JR
10Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
11
12 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
13
4a5e698d
JT
142002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
15
16 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
17 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
18
1d475d82
AM
192002-06-05 Alan Modra <amodra@bigpond.net.au>
20
21 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
22 SEC_EXCLUDE sections when doing a relocatable link.
23
5b0e55b6
JT
242002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
25
26 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
27 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
28 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
29 (eshlelf64_nbsd.c): New rules.
30 * Makefile.in: Regenerate.
31 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
32 (sh64-*-netbsd*): New targets.
33 * emulparams/shelf32_nbsd.sh: New file.
34 * emulparams/shelf64_nbsd.sh: New file.
35 * emulparams/shlelf32_nbsd.sh: New file.
36 * emulparams/shlelf64_nbsd.sh: New file.
37
9ad85d9b
AM
382002-06-04 Alan Modra <amodra@bigpond.net.au>
39
40 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
41
0c9b4fee
MM
422002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
43
44 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
45 C++ constructors/destructors, loosely based on the m68hc11 port.
46
2c538bde
AM
472002-05-31 Alan Modra <amodra@bigpond.net.au>
48
49 * Makefile.in: Regenerate.
50 * aclocal.m4: Regenerate.
51 * config.in: Regenerate.
52 * configure: Regenerate.
53
a0cb91c6
AM
542002-05-31 Graeme Peterson <gp@qnx.com>
55
56 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
57 (ei386nto.c): Add rule.
58 * Makefile.in: Regenerate.
59 * configure.tgt: Add i[3456]86-*-nto-qnx*.
60 * emulparams/i386nto.sh: New file.
61
37020578
JT
622002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
63
64 * NEWS: Add entry for VAX ELF support.
65
ab68f3e0
JT
662002-05-29 Matt Thomas <matt@3am-software.com>
67 Jason Thorpe <thorpej@wasabisystems.com>
68
69 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
70 (eelf32vax.c)
71 (evaxnbsd.c): New rules.
72 * Makefile.in: Regenerate.
73 * configure.tgt (vax-*-netbsdelf*)
74 (vax-*-netbsdaout*)
75 (vax-*-netbsd*): New targets.
76 * emulparams/elf32vax.sh: New file.
77 * emulparams/vaxnbsd.sh: New file.
78
8afb0e02
NC
792002-05-29 Adam Nemet <anemet@lnxw.com>
80
81 * emultempl/armelf.em (arm_elf_after_open): Don't determine
82 bfd_for_interwork, instead add glue sections to each input bfd.
83 (bfd_for_interwork): New global.
84 (arm_elf_set_bfd_for_interworking): New function.
85 (arm_elf_before_allocation): Use it.
86
d172d4ba
NC
872002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
88
89 * Makefile.am: Add DLX make target.
90 * configure.tgt: Add DLX configuration.
91 * Makefile.in: Regenerate.
92 * emulparams/elf32_dlx.sh: New file
93 * scripttempl/dlx.sc: New file
94
b4477fa8
NC
952002-05-27 Per Lundberg <per@caleb.dnsalias.org>
96
97 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
98 * Makefile.in: Regenerate.
99 * emulparams/elf_chaos.sh: Use elf_chaos script.
100 * scripttempl/elf_chaos.sc: New file.
101
ee3cc2e2
RS
1022002-05-27 Richard Sandiford <rsandifo@redhat.com>
103
104 * ldlang.c (lang_size_sections_1): Move check for conflicting load
105 addresses and regions from here...
106 (lang_get_regions): ...to this new function.
107 (lang_leave_output_section_statement): Use lang_get_regions.
108 (lang_leave_overlay): Likewise.
109 * mri.c (mri_draw_tree): Pass null as last argument to
110 lang_leave_output_section_statement.
111 * emultempl/elf32.em (gld*_place_orphan): Likewise.
112 * emultempl/mmo.em (mmo_place_orphan): Likewise.
113 * emultempl/pe.em (gld*_place_orphan): Likewise.
114
aa501e5c
JT
1152002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
116
117 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
118
658957db
KH
1192002-05-25 Kazu Hirata <kazu@cs.umass.edu>
120
121 * ldemul.c: Fix formatting.
122 * ldfile.c: Likewise.
123 * pe-dll.c: Likewise.
124 * pe-dll.h: Likewise.
125
3511b595
AM
1262002-05-25 Alan Modra <amodra@bigpond.net.au>
127
0d6d936f
AM
128 * ldlang.c (lang_process): Formatting, grammar.
129
3511b595
AM
130 * ldlex.l: Use #include "" instead of <> for local header files.
131
436e8db0
NC
1322002-05-24 TAMURA Kent <kent@netbsd.org>
133
134 * configure.tgt: Add a target for i386-netbsdpe.
135
13ae64f3
JJ
1362002-05-23 Jakub Jelinek <jakub@redhat.com>
137
138 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
139 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
140 output section if necessary. Handle .tbss.
141 (lang_size_sections): Clear _raw_size for .tbss section
142 (it allocates space in PT_TLS segment only).
143 * ldwrite.c (build_link_order): Build link order for .tbss too.
144
68b2fc7a
AM
1452002-05-23 Alan Modra <amodra@bigpond.net.au>
146
147 * configure.in: Correct spelling of AC_PREREQ.
148
70b0be79
CF
1492002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
150
151 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
152 default.
153 (autofilter_objlist): Add crtbegin.o, crtend.o.
154
1552002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
156
157 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
158 (longopts): Add new option --exclude-libs.
159 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
160 (gld_${EMULATION_NAME}_parse_args): Use it.
161 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
162 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
163 from whole archives.
164 (pe_dll_add_excludes): Set excludes->type.
165 (auto_export): Add new variable libname and set to archive basename if
166 abfd. Use it when filtering default and user-specified libarary
167 excludes. Let string "ALL" mean all libs when filtering user-specified
168 libs.
169 * ld.texinfo: Document --exclude-libs.
170
fac1652d
AM
1712002-05-22 Alan Modra <amodra@bigpond.net.au>
172
173 * ldemul.c (ldemul_new_vers_pattern): New function.
174 * ldemul.h (ldemul_new_vers_pattern): Declare.
175 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
176 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
177 * emultempl/ppc64elf.em (dotsyms): New static var.
178 (gld${EMULATION_NAME}_new_vers_pattern): New function.
179 (LDEMUL_NEW_VERS_PATTERN): Define.
180 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
181 (PARSE_AND_LIST_LONGOPTS): Likewise.
182 (PARSE_AND_LIST_ARGS_CASES): Handle them.
183 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
184 initialiser.
185 * emultempl/armcoff.em: Likewise.
186 * emultempl/armelf_oabi.em: Likewise.
187 * emultempl/beos.em: Likewise.
188 * emultempl/elf32.em: Likewise.
189 * emultempl/generic.em: Likewise.
190 * emultempl/gld960.em: Likewise.
191 * emultempl/gld960c.em: Likewise.
192 * emultempl/linux.em: Likewise.
193 * emultempl/lnk960.em: Likewise.
194 * emultempl/m68kcoff.em: Likewise.
195 * emultempl/mipsecoff.em: Likewise.
196 * emultempl/pe.em: Likewise.
197 * emultempl/sunos.em: Likewise.
198 * emultempl/ticoff.em: Likewise.
199 * emultempl/vanilla.em: Likewise.
200
eb3d6bb8
AM
2012002-05-22 Alan Modra <amodra@bigpond.net.au>
202
203 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
204 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
205 (LIB_SEARCH_DIRS): No need to use "tr".
206 (COMPILE_IN): Only set for native targets.
207 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
208 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
209 * configure.tgt (powerpc*): Set tdir_*.
210 (powerpcle*): Correct targ_extra_emuls.
211 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
212 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
213
54f24647
AM
2142002-05-22 Alan Modra <amodra@bigpond.net.au>
215
216 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
217 calling lang_add_entry.
218
aa713662
L
2192002-05-21 H.J. Lu (hjl@gnu.org)
220
221 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
222 "-z muldefs".
223 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
224
225 * ld.texinfo: Updated for --allow-multiple-definition and
226 "-z muldefs".
227
228 * ldmain.c (main): Initialize the allow_multiple_definition
229 field to false.
230
231 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
232 (ld_options): Add --allow-multiple-definition.
233 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
234
658f2588
JT
2352002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
236
237 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
238 (earmelfb_nbsd.c): New rule.
239 * Makefile.in: Regenerate.
240 * configure.tgt (armeb-*-netbsdelf*): New target.
241 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
242 (arm-*-netbsd*): Likewise.
243 * emulparams/armelfb_nbsd.sh: New file.
244
ca10c62d
TR
2452002-05-18 Tom Rix <trix@redhat.com>
246
247 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
248 support.
249
fae1e84f
MM
2502002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
251
252 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
253 * Makefile.in: Regenerate.
254 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
255
7c8bf1e8
MM
2562002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
257
258 * emulparams/avr1.sh: New file.
259 * emulparams/avr2.sh: New file.
260 * emulparams/avr3.sh: New file.
261 * emulparams/avr4.sh: New file.
262 * emulparams/avr5.sh: New file.
263 * scripttempl/avr.sc: New file.
264
c2c01aa7
AM
2652002-05-15 Alan Modra <amodra@bigpond.net.au>
266
267 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
268 (lang_place_orphans): Abort if just_syms_flag.
269
f1f0d9ab
TR
2702002-05-10 Tom Rix <trix@redhat.com>
271
272 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
273 architecture and machine information in the output bfd.
274 (gld*_before_parse): Remove old arch and machine code.
275 (choose_target): Rename to gld*_choose_target.
276 (rtld): Change type to int.
277 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
278 objects in XCOFF archives.
279 * ldfile.h: Update copyright date.
280
f4d73366
JJ
2812002-05-10 Jakub Jelinek <jakub@redhat.com>
282
283 * ldmain.c (main): Enable -z combreloc by default.
284
d3d8a9ee
NC
2852002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
286
287 * Makefile.am: Honour DESTDIR.
288 * Makefile.in: Regenerate.
289
9f88b410
RS
2902002-05-07 Richard Sandiford <rsandifo@redhat.com>
291
292 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
293 (lang_enter_overlay): Remove the last two parameters.
294 (lang_leave_overlay): Take them here instead.
295 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
296 (section): Pass LMA and crossref flag to lang_leave_overlay rather
297 than lang_enter_overlay.
298 * ldlang.c (lang_memory_region_lookup): Return null for null names.
299 (lang_output_section_statement_lookup): Initialize update_dot_tree.
300 (lang_size_sections_1): Evaluate it.
301 (lang_leave_output_section_statement): Rework LMA lookup.
302 (overlay_lma, overlay_nocrossrefs): Remove.
3511b595 303 (lang_enter_overlay): Remove LMA and crossref arguments.
9f88b410
RS
304 (lang_enter_overlay_section): Don't set the LMA here.
305 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
306 assignment to the last section's update_dot_tree. Unconditionally
307 use the load and run-time regions specified in the OVERLAY statement.
308 Likewise the first section's LMA. Only set the other sections' LMAs
309 when no load region is given.
310
b9a743c8
NC
3112002-05-06 Nick Clifton <nickc@redhat.com>
312
313 * po/sv.po: New translation.
314
a3d60be3
AM
3152002-05-04 Alan Modra <amodra@bigpond.net.au>
316
317 * emultempl/hppaelf.em (build_section_lists): New function.
318 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
319 and build_section_lists.
320
b7a26f91
KH
3212002-05-03 Kazu Hirata <kazu@cs.umass.edu>
322
323 * ld.h: Fix formatting.
324 * ldexp.c: Likewise.
325 * ldfile.c: Likewise.
326 * ldlang.c: Likewise.
327 * ldmain.c: Likewise.
328 * lexsup.c: Likewise.
329 * pe-dll.c: Likewise.
330
805fc799
AM
3312002-05-02 Alan Modra <amodra@bigpond.net.au>
332
333 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
334 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
335 (build_section_lists): Do output_section tests here.
336
cc7e59b2
TR
3372002-04-30 Tom Rix <trix@redhat.com>
338
339 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
340
9c1d81c1
AM
3412002-05-01 Alan Modra <amodra@bigpond.net.au>
342
343 Long branch stubs, multiple stub sections.
344 * emultempl/ppc64elf.em: Include ldctor.h.
345 (stub_file): New var.
346 (group_size): New var.
347 (ppc_create_output_section_statements): New function.
348 (struct hook_stub_info): New.
349 (hook_in_stub): New function.
350 (ppc_add_stub_section): New function.
351 (ppc_layout_sections_again): New function.
352 (build_section_lists): New function.
353 (gld${EMULATION_NAME}_finish): Rewrite.
354 (real_func): New var.
355 (ppc_for_each_input_file_wrapper): New function.
356 (ppc_lang_for_each_input_file): New function.
357 (lang_for_each_input_file): Define.
358 (PARSE_AND_LIST_PROLOGUE): Define.
359 (PARSE_AND_LIST_LONGOPTS): Define.
360 (PARSE_AND_LIST_OPTIONS): Define.
361 (PARSE_AND_LIST_ARGS_CASES): Define.
362 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
363
aa67bccf
TR
3642002-04-30 Tom Rix <trix@redhat.com>
365
366 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
367 -blibpath, -bnolibpath support.
368
94349e12
MM
3692002-04-30 Mark Mitchell <mark@codesourcery.com>
370
371 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
372 (eelf32ppcwindiss.c): New target.
373 * Makefile.in: Regenerated.
374 * configure.tgt: Add support for powerpc-*-windiss.
375 * emulparams/elf32ppcwindiss.sh: New file.
376
7b17f854
RS
3772002-04-30 Richard Sandiford <rsandifo@redhat.com>
378
379 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
380 * ldexp.c (exp_print_token): Add "infix_p" argument.
381 (exp_print_tree): Update accordingly.
382
596dafeb
AM
3832002-04-28 Alan Modra <amodra@bigpond.net.au>
384
385 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
386 * Makefile.in: Regenerate.
387 * mpw-elfmips.c: Delete.
388 * mpw-eppcmac.c: Delete.
389 * mpw-esh.c: Delete.
390 * mpw-idtmips.c: Delete.
391
a44d7f9c
JR
392Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
393
394 * emulparams/shelf32.sh (MACHINE): Now sh5.
395
944cd72c
TS
3962002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
397
398 * ldgram.y: Fix syntax warning.
399
5835c212
NC
4002002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
401
402 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
403 to prevent "-n" from being taken as an abbreviation for
404 "--no-pipeline-knowledge".
405
024531e2
AM
4062002-04-08 Alan Modra <amodra@bigpond.net.au>
407
d08a14c3
AM
408 * ldlang.c (lang_size_sections_1): Don't complain about
409 SEC_NEVER_LOAD sections having no memory region specified.
410
024531e2
AM
411 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
412
c657a1f0
MG
4132002-04-07 matthew green <mrg@redhat.com>
414
415 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
416
61bef6f1
AM
4172002-04-04 Alan Modra <amodra@bigpond.net.au>
418
419 * dep-in.sed: Cope with absolute paths.
420 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
421 Run "make dep-am".
422 * Makefile.in: Regenerate.
423
49ba2791
TS
4242002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
425
426 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
427
50e60fb5
JJ
4282002-04-03 Jakub Jelinek <jakub@redhat.com>
429
430 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
431 is smaller than maximum, round dot up to common page boundary.
432
6f12f4ca
AM
4332002-03-28 Alan Modra <amodra@bigpond.net.au>
434
435 * configure.host: Set up for generic hosts first, then tweak as
436 necessary in more specific targets.
437 (HOSTING_LIBS): Include libgcc_eh.a if found.
438
a8f1f017
AJ
4392002-03-23 Andreas Jaeger <aj@suse.de>
440
441 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
442
1d3fdf38
AM
4432002-03-21 Alan Modra <amodra@bigpond.net.au>
444
445 * Makefile.am: Run "make dep-am".
446 * Makefile.in: Regenerate.
447
79b1faa8
AM
4482002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
449
450 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
451
fcf0e35b
AM
4522002-03-20 Alan Modra <amodra@bigpond.net.au>
453
454 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
455 add the symbol to the linker hash table immediately.
456 (lang_place_undefineds): Split symbol creation out..
457 (insert_undefined): ..to here.
458
fed2999d
DB
4592002-03-18 David O'Brien <obrien@FreeBSD.org>
460
461 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
462 the contents of the buffer returned from basename function will are
463 getting overwritten while still being used.
464
beb43bb9
JH
465Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
466 Andreas Jaeger <aj@suse.de>
467 Andreas Schwab <schwab@suse.de>
468
469 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
470 * elf_x86_64.sh (ARCH): Set to i386:x86-64
471 set libraries to default to lib64 paths.
472
eb1e0e80
NC
4732002-03-18 Tom Rix <trix@redhat.com>
474
475 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
476 * configure.tgt : Same.
477 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
478 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
479 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
480 emulation parameters for better -b32, -b64 support.
481 * emulparms/aixrs6.sh : Same.
482 * emulparms/ppcmacos.sh : Same.
483 * emultempl/aix.em (choose_target) : Use new emulation parameters
484 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
485 * Makefile.in : Regenerate.
486
a1c259a1
NC
4872002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
488
489 * po/fr.po: Updated version.
490
862120bd
AM
4912002-03-18 Alan Modra <amodra@bigpond.net.au>
492
493 * ldmain.c (main): Move .text readonly flag fudges from here..
494 * ldlang.c (lang_process): ..to here.
495
d35a52e2
AM
4962002-03-14 Alan Modra <amodra@bigpond.net.au>
497
498 * ldlang.c (lang_check): Remove the word size check added in last
499 change. Treat emitrelocations case as for relocatable links.
500
9ce88e60
NC
5012002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
502
503 * po/fr.po: Updated version.
504
30cba025
AM
5052002-03-13 Alan Modra <amodra@bigpond.net.au>
506
507 * ldlang.c (lang_check): Do relocatable link checks first, so that
508 warn_mismatch can't override. Check compatible and word size too.
509
84ec0e6d
DJ
5102002-03-07 Daniel Jacobowitz <drow@mvista.com>
511
512 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
513
2d13d8c5
JJ
5142002-03-05 Jakub Jelinek <jakub@redhat.com>
515
516 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
517 DATA_SEGMENT_ALIGN.
518
b5090659
L
5192002-03-04 H.J. Lu <hjl@gnu.org>
520
521 * scripttempl/elf.sc: Put .preinit_array, .init_array and
522 .fini_array in the data segment.
523
f42ce16e
AM
5242002-03-04 Alan Modra <amodra@bigpond.net.au>
525
526 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
527
de77b6ac
RH
5282002-03-01 David Mosberger <davidm@hpl.hp.com>
529
530 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
531 .init_array, and .fini_array.
532
997e08c0
AS
5332002-02-20 Andreas Schwab <schwab@suse.de>
534
535 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
536 .IA64_unwind* in a relocatable link.
537
9a66911f
NC
5382002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
539
540 * NEWS: Mark 2.12 branch.
541
d86bcc10
MS
5422002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
543
544 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
545 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
546
69f284c7
TR
5472002-02-18 Tom Rix <trix@redhat.com>
548
549 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
550 (gld*_before_allocation): Same.
a8f1f017 551 (gld*_create_output_section_statements): Generate
69f284c7
TR
552 __rtinit if run time linking. Add librtl.a to the link.
553 (gld*_read_file): Clean.
554
82bd7b59
AM
5552002-02-18 Alan Modra <amodra@bigpond.net.au>
556
557 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
558
ac3e50bf
DB
5592002-02-18 David O'Brien <obrien@FreeBSD.org>
560
6a7f963b 561 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
ac3e50bf
DB
562 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
563 and eelf64alpha_fbsd.
6a7f963b 564 * Makefile.in: Regenerate.
ac3e50bf
DB
565 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
566 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
567 use a FreeBSD-specific emulation rather than the psABI one.
568 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
569 for all FreeBSD ELF systems.
570 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
571 emulation.
572 * emulparams/elf32ppc_fbsd.sh: Likewise.
573 * emulparams/elf64_ia64_fbsd.sh: Likewise.
574 * emulparams/elf64_sparc_fbsd.sh: Likewise.
575 * emulparams/elf64alpha_fbsd.sh: Likewise.
576 * emulparams/elf_i386_fbsd.sh: Likewise.
577 * emulparams/elf_x86_64_fbsd.sh: Likewise.
578
6ad738c5
NC
5792002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
580
581 * po/tr.po: Updated version.
582
9673c93c
AM
5832002-02-18 Alan Modra <amodra@bigpond.net.au>
584
585 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
586 (FILL): Likewise.
587
1c5e6447
HPN
5882002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
589
590 * emultempl/mmo.em (mmo_after_open): Don't call
591 _bfd_mmix_check_all_relocs when producing ELF output.
592
8bb57516
RH
5932002-02-15 Richard Henderson <rth@redhat.com>
594
de77b6ac 595 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
8bb57516
RH
596 definition. Emit a unop+nop pair.
597
49fda6c8
HPN
5982002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
599
83c2d653
HPN
600 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
601 for presence of .MMIX.reg_contents.linker_allocated before early
602 exit.
603
49fda6c8
HPN
604 * NEWS: Mention support for MMIX.
605
2c382fb6
AM
6062002-02-15 Alan Modra <amodra@bigpond.net.au>
607
608 Support arbitrary length fill patterns.
a139d329
AM
609 * ld.texinfo (Output Section Fill): Describe fill expressions.
610 (FILL): Refer to the above.
2c382fb6
AM
611 * ldexp.h (etree_value_type): Add "str" field.
612 (union etree_union): Add "str" to "value" struct.
613 (exp_bigintop): Declare.
614 (exp_get_fill): Declare.
615 * ldexp.c: Include "safe-ctype.h".
616 (exp_intop): Set value.str to NULL.
617 (exp_bigintop): New function.
618 (new_rel): Pass in "str", and set new.str from it.
619 (new_rel_from_section): Set new.str to NULL.
620 (fold_name): Adjust calls to new_rel.
621 (exp_fold_tree): Likewise.
622 (exp_get_fill): New function.
623 * ldgram.y (struct big_int bigint, fill_type *fill): New.
624 (INT): Returns a "bigint". Adjust all code handling INTs.
625 (fill_opt): Returns a "fill".
626 (fill_exp): Split out of fill_opt, use for FILL.
627 * ldlang.h (struct _fill_type): New.
628 (fill_type): Move typedef to ldexp.h.
629 (lang_output_section_statement_type): "fill" is now a pointer.
630 (lang_fill_statement_type): Likewise.
631 (lang_padding_statement_type): Likewise.
632 (lang_add_fill): Now takes a "fill_type *" param.
633 (lang_leave_output_section_statement): Likewise.
634 (lang_do_assignments): Likewise.
635 (lang_size_sections): Likewise.
636 (lang_leave_overlay_section): Likewise.
637 (lang_leave_overlay): Likewise.
638 * ldlang.c: Include ldgram.h after ldexp.h.
639 (lang_output_section_statement_lookup): Adjust for fill_type change.
640 (print_fill_statement): Likewise.
641 (print_padding_statement): Likewise.
642 (insert_pad): Now takes a "fill_type *" arg.
643 (size_input_section): Likewise.
644 (lang_size_sections_1): Likewise.
645 (lang_size_sections): Likewise.
646 (lang_do_assignments): Likewise.
647 (lang_add_fill): Likewise.
648 (lang_leave_output_section_statement): Likewise.
649 (lang_leave_overlay_section): Likewise.
650 (lang_leave_overlay): Likewise.
651 Adjust all callers of the above function.
652 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
653 starting with "0X" as well as "0x". Return bigint.str for hex
654 numbers starting with "0x" or "0X", zero bigint.str otherwise.
655 Always use base 16 for numbers starting with "$".
656 * ldmain.c: Include ldgram.h after ldexp.h.
657 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
658 of bfd_fill_link_order.
659 * pe-dll.c: Adjust lang_do_assignments calls.
660 * emultempl/elf32.em: Likewise.
661 * emultempl/hppaelf.em: Likewise.
662 * emultempl/ppc64elf.em: Likewise.
663 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
664 lang_add_assignment call.
665 * emultempl/pe.em: Likewise.
666
313e35ee
AM
6672002-02-14 Phil Edwards <pme@gcc.gnu.org>
668
a139d329 669 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
313e35ee
AM
670 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
671 the pattern in question is not a regexp.
672 * ldlang.c: Likewise.
673 * ldlang.h: Likewise.
674 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
675
2d20f7bf
JJ
6762002-02-12 Jakub Jelinek <jakub@redhat.com>
677
678 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
679 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
680 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
681 * ldexp.c (exp_data_seg): New variable.
682 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
683 (fold_binary): Handle DATA_SEGMENT_ALIGN.
684 (exp_fold_tree): Handle DATA_SEGMENT_END.
685 Pass allocation_done when recursing instead of hardcoding
686 lang_allocating_phase_enum.
687 * ldexp.h (exp_data_seg): New.
688 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
689 (lang_size_sections): New.
690 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
691 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
692 if COMMONPAGESIZE is defined.
693 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
694 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
695 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
696 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
697 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
698 libraries only.
699
06880219
AM
7002002-02-11 Alan Modra <amodra@bigpond.net.au>
701
702 * Makefile.in: Regenerate.
703
37b0ac0f
DJ
7042002-02-10 Daniel Jacobowitz <drow@mvista.com>
705
706 * lexsup.c: Remove strtoul declaration.
707
4e5bae56
DJ
7082002-02-10 Daniel Jacobowitz <drow@mvista.com>
709
710 * ldmain.c: Add prototype for main ().
711 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
712 * emultempl/lnk960.em (lnk960_choose_target): Function should
713 take two arguments.
714
1e281515
AM
7152002-02-10 Alan Modra <amodra@bigpond.net.au>
716
717 * ldlang.c (entry_section): New initialised variable.
718 (lang_finish): Use it.
719 * ldlang.h (entry_section): Declare.
720 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
721 entry_section to ".opd".
722
f92d92ff 7232002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
724
725 * ld.texinfo (Options): Add back in -nostdlib documentation,
726 which had been inadvertently removed.
727
74c44237
HPN
7282002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
729
730 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
731 register section vma to a sane value after emitting error. Make
732 fatal conditions cause program exit when emitting message.
733
5e37cc46
NC
7342002-02-08 Ivan Guzvinec <ivang@opencores.org>
735
736 * configure.tgt: Add or32-*-rtems target.
737
2d92cb7d
AO
7382002-02-08 Alexandre Oliva <aoliva@redhat.com>
739
740 Contribute sh64-elf.
741 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
742 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
743 in OTHER_RELOCATABLE_SECTIONS.
744 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
745 * emulparams/shelf32.sh (STACK_ADDR): Define.
746 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
747 (OTHER_SECTIONS): this. Removed stack settings.
748 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
749 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
750 2001-03-12 DJ Delorie <dj@redhat.com>
751 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
752 relaxing if any shmedia or mixed sections are found.
753 2001-03-07 DJ Delorie <dj@redhat.com>
754 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
755 einfo. Gracefully decline to output to non-elf formats.
756 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
757 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
758 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
759 * emulparams/shelf32.sh: Ditto.
760 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
761 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
762 comment.
763 2001-01-10 Ben Elliston <bje@redhat.com>
764 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
765 non-portable shell constructs. From Hans-Peter Nilsson.
766 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
767 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
768 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
769 dependencies to the shell script include chain.
770 * Makefile.in: Regenerate.
771 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
772 * emultempl/sh64elf.em: Update and tweak comments.
773 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
774 make a .cranges section SEC_IN_MEMORY.
775 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
776 * emultempl/sh64elf.em
777 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
778 .cranges section found to be necessary; continue and set stored
779 section contents flags for sections with non-mixed contents.
780 Use a struct sh64_section_data container and sh64_elf_section_data
781 to store contents-type flags.
782 Remove unused update of "isec".
783 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
784 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
785 access contents-type flags. Assert that the associated container
786 is initialized. Use that container, not elf_gp_size, to hold size
787 of linker-generated cranges contents.
788 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
789 * emultempl/sh64elf.em
790 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
791 there's already a .cranges section. When section flag difference
792 is found, don't NULL-check cranges a second time. Tweak comments.
793 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
794 merging, not max size, as size of ld-generated .cranges contents.
795 Don't set ELF section flags in output section. When checking for
796 needed .cranges descriptors, don't use a variable; compare
797 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
798 comments.
799 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
800 * emultempl/sh64elf.em: New file.
801 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
802 * Makefile.in: Regenerate.
803 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
804 (OTHER_RELOCATING_SECTIONS): Ditto.
805 (EXTRA_EM_FILE): New, set to sh64elf if not set.
806 * emulparams/shlelf32.sh: Stub out all settings except
807 OUTPUT_FORMAT. Source shelf32.sh.
808 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
809 OTHER_RELOCATING_SECTIONS.
810 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
811 * emulparams/shlelf64.sh: Stub out all settings except
812 OUTPUT_FORMAT. Source shelf64.sh.
813 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
814 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
815 .cranges section.
816 (DATA_START_SYMBOLS): Define, provide ___data.
817 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
818 for consecutive .data section.
819 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
820 section after .data section.
821 * emulparams/shlelf64.sh: Ditto.
822 * emulparams/shelf32.sh: Ditto.
823 (ALIGNMENT): Define to 8.
824 * emulparams/shelf32.sh: Ditto.
825 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
826 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
827 built-in linker scripts.
828 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
829 * emulparams/shlelf64.sh: New.
830 * emulparams/shelf64.sh: New.
831 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
832 targ_extra_emuls.
833 * Makefile.am: Add support for shlelf64 and shelf64.
834 * Makefile.in: Regenerate.
835 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
836 * configure.tgt (sh64-*-elf*): Add shelf as default.
837 Add shlelf to targ_extra_emuls.
838 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
839 * emulparams/shelf32.sh: New file.
840 * emulparams/shlelf32.sh: New file.
841 * Makefile.am: Add support for shlelf32 and shelf32.
842 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
843 * Makefile.in: Regenerate.
844
e3dc8847
HPN
8452002-02-05 Hans-Peter Nilsson <hp@axis.com>
846
847 * ldlang.c (lang_reset_memory_regions): Rename from
848 reset_memory_regions. Change all callers. Make public.
849 * ldlang.h (lang_reset_memory_regions): Prototype.
850 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
851 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
852 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
853 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 854
8017dbcb
HPN
8552002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
856
857 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
858 arithmetic when checking for too many global registers.
859
006336b8
JT
8602002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
861
862 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
863 (ehppanbsd.c): New rule.
864 * Makefile.in: Regenerate.
865 * configure.tgt (hppa*-*-netbsd*): New target.
866 * emulparams/hppalinux.sh: Add comment to check other files
867 that source this file it is modified, and list which
868 files that do.
869 * emulparams/hppanbsd.sh: New file.
870
da1f2fec
GK
8712002-02-01 Geoffrey Keating <geoffk@redhat.com>
872
873 * scripttempl/xstormy16.sc: Don't allocate extra space for the
874 stack.
875
48fa4a5d
HPN
8762002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
877
878 Support on-demand global register allocation from
879 R_MMIX_BASE_PLUS_OFFSET relocs.
880 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
881 mmix_set_reg_section_vma. Call
882 _bfd_mmix_finalize_linker_allocated_gregs.
883 (mmix_before_allocation): New function.
884 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
885 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
886 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
887 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
888 before .MMIX.reg_contents.
889 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
890 (mmo_after_open): New function.
891 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
892 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
893 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
894
3b16e843
NC
8952002-01-31 Ivan Guzvinec <ivang@opencores.org>
896
897 * emulparams/or32.sh: New file.
898 * emulparams/or32elf.sh: New file.
899 * scripttempl/or32.sc: New file.
900 * configure.tgt : Add support for or32.
901 * configure: Regenerate
902 * Makefile.am: Add support for or32.
903 * Makefile.in: Regenerate.
904 * NEWS: Mention support for or32.
905 * po/ld.pot: Regenerate.
906
f744d540 9072002-01-29 Chris Demetriou <cgd@broadcom.com>
313e35ee 908 Mitch Lichtenberg <mpl@broadcom.com>
f744d540
CD
909
910 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
911 * emultempl/mipself.em: New file to handle MIPS ELF embedded
912 reloc creation (ld --embedded-relocs).
913
4867be41
DJ
9142002-01-27 Daniel Jacobowitz <drow@mvista.com>
915
916 * configure: Regenerated.
917
cd8e197b
HPN
9182002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
919
920 * Makefile.am (install): Depend on install-info.
921 * Makefile.in: Regenerate.
922
9cb61eab
AM
9232002-01-26 Christian Rose <menthos@menthos.com>
924
925 * ldmain.c (main): Use full sentences to ease translation.
926
1caa7b23
NC
9272002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
928
929 * po/fr.po: Updated version.
930
1ddbd152
NC
9312002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
932
933 * po/es.po: Updated version.
934
1e84433f
AJ
9352002-01-25 Andreas Jaeger <aj@suse.de>
936
937 * ldlex.l (yy_input): Correct error check.
938
6d39955e
AM
9392002-01-25 Alan Modra <amodra@bigpond.net.au>
940
941 * ldmisc.c (demangle): Put back dots when string not demangled.
942
a9ed1e1b
RH
9432002-01-22 Richard Henderson <rth@redhat.com>
944
945 * emulparams/elf64alpha.sh (NOP): Use unop.
946
968ec2b9
AJ
9472002-01-21 Andreas Jaeger <aj@suse.de>
948
949 * ldlex.l: Use fread instead of read.
950
9596feea
JT
9512002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
952
953 * configure.tgt (ia64-*-netbsd*): New target.
954
493a6d47
L
9552002-01-21 H.J. Lu <hjl@gnu.org>
956
957 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
958 0.
959 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
960
2a538ba5
AJ
9612002-01-18 Andreas Jaeger <aj@suse.de>
962
963 * ldver.c (ldversion): Update year.
964
328577ad
NC
9652002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
966
967 * po/ld.pot: Regenerate.
968
1f808cd5
AM
9692002-01-16 Alan Modra <amodra@bigpond.net.au>
970
971 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
972 * Makefile.in: Regenerate.
973 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
974 * emultempl/ppc64elf.em: New file.
975
335c5610
DD
9762002-01-15 DJ Delorie <dj@redhat.com>
977
978 * scripttempl/pe.sc: Add support for constructor priorities.
979
c40bbade
DC
9802002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
981
982 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
983 * emulparams/avr23xx.sh: Likewise.
984 * emulparams/avr4433.sh: Likewise.
985 * emulparams/avr44x4.sh: Likewise.
986 * emulparams/avr85xx.sh: Likewise.
987 * emulparams/avrmega103.sh: Likewise.
988 * emulparams/avrmega161.sh: Likewise.
989 * emulparams/avrmega603.sh: Likewise.
990 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
991
34efb449
AO
9922002-01-08 Alexandre Oliva <aoliva@redhat.com>
993
994 * ldlang.c (walk_wild_section): Exclude object file if enclosing
995 archive is excluded.
996
8d05742f
JT
9972002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
998
999 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 1000 (eshelf_nbsd.c): New rule.
8d05742f
JT
1001 (eshlelf_nbsd.c): New rule.
1002 * Makefile.in: Regenerate.
1003 * configure.tgt (sh*le-*-netbsdelf*): New target.
1004 (sh*-*-netbsdelf*): New target.
1005 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1006 * ld/emulparams/shelf_nbsd.sh: New emulation.
1007 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1008
be2d1673
NC
10092002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1010
1011 * po/es.po: New file: Spanish translation.
1012 * configure.in (ALL_LINGUAS): Add es.
1013 * configure: Regenerate.
1014
dbab7a7b
NC
10152002-01-06 John Marshall <jmarshall@acm.org>
1016
1017 * ld.texinfo: Note that --emit-relocs is currently only
1018 implemented for ELF.
1019
3dfe7a8c
AM
10202002-01-05 Alan Modra <amodra@bigpond.net.au>
1021
1022 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1023 of bfd_section_list_remove and bfd_section_list_insert macros.
1024 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1025 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1026
8a8b2d4b
AJ
10272002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1028
1029 * configure.tgt (x86_64-*-netbsd*): New target.
1030
9a4c7f16
TR
10312001-12-21 Tom Rix <trix@redhat.com>
1032
8a8b2d4b 1033 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
1034 For -binitfini support.
1035 * emultempl/aix.em (gld*_before_parse): Fix comment.
1036 * emultempl/aix.em (gld*_parse_args): Fix comment.
1037
3695c299
AM
10382001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1039
cf86e6df
AM
1040 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1041 mips*el-*-netbsd*.
1042 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1043
3695c299
AM
1044 * configure.tgt (arm-*-netbsdelf*): Add target.
1045 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1046 * emulparams/armelf_nbsd.sh: Added.
1047 * Makefile.am: Add rules for earmelf_nbsd.
1048 * Makefile.in: Regenerate.
1049
97cb79ae
AJ
10502001-12-19 Andreas Jaeger <aj@suse.de>,
1051 Susanne Oberhauser <froh@suse.de>
1052
1053 * configure.host: Add rules for x86_64-*linux-gnu. Change
1054 s390x-linux entry to use gcc to report configuration, replace gcc
1055 with $CC in s390-linux
1056
9d201f2f
AJ
10572001-12-19 Andreas Jaeger <aj@suse.de>
1058
1059 * ld.texinfo (VERSION): Fix markup.
1060
0b69cd08
MG
10612001-12-18 matthew green <mrg@eterna.com.au>
1062
1063 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1064 (m68kelfnbsd.c): New rule.
1065 * Makefile.in: Regenerate.
1066 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1067 (m68*-*-netbsd*4k*): .. this.
1068 (m68*-*-netbsdelf*): New target.
1069 (m68*-*-netbsd*): Also include ELF support.
1070 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1071 * emulparams/m68kelfnbsd.sh: New emulation.
1072
6b9b879a
JJ
10732001-12-18 Jakub Jelinek <jakub@redhat.com>
1074
1075 * ldgram.y (vers_node): Support anonymous version tags.
1076 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1077 tag is not defined together with non-anonymous versions.
1078 * ld.texinfo: Document it.
1079
9fc877ed
NC
10802001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1081
1082 * po/tr.po: New file: Turkish translation.
1083 * configure.in (ALL_LINGUAS): Add tr.
1084 * configure: Regenerate.
1085
fc18a3f3
RH
10862001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1087
1088 * Makefile.am: Add rules for eelf64alpha_nbsd.
1089 * Makefile.in: Regenerate.
1090 * configure.tgt (alpha*-*-netbsd*): Set
1091 targ_emul to elf64alpha_nbsd.
1092 * emulparams/elf64alpha_nbsd.sh: Added.
1093
76f63e91
AM
10942001-12-17 Alan Modra <amodra@bigpond.net.au>
1095
1096 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1097 section_tail when fiddling with section list.
1098 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1099 broken into separate strings to make translation easier.
1100 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1101 fiddling with section list.
1102 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1103
d03b89bd
HPN
11042001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1105
1106 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1107
320fec9a
AM
11082001-12-15 Alan Modra <amodra@bigpond.net.au>
1109
1110 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1111
65765700
JJ
11122001-12-13 Jakub Jelinek <jakub@redhat.com>
1113
1114 * emultempl/elf32.em (finish): Supply output_bfd
1115 to bfd_elf*_discard_info.
1116 (OPTION_EH_FRAME_HDR): Define.
1117 (longopts): Add --eh-frame-hdr.
1118 (parse_args): Handle it.
1119 (list_options): Add --eh-frame-hdr to help.
1120 * emultempl/hppaelf.em (finish): Supply output_bfd
1121 to bfd_elf*_discard_info.
1122 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1123
89894c62
AM
11242001-12-13 Alan Modra <amodra@bigpond.net.au>
1125
1126 * lexsup.c (parse_args): Don't pass shortopts to second call to
1127 getopt functions. Restore optind rather than decrementing before
1128 second call. Remove errind as it now duplicates last_optind.
1129
583f1926
CF
11302001-12-11 Christopher Faylor <cgf@redhat.com>
1131
1132 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1133
93fbbb04
GK
11342001-12-07 Geoffrey Keating <geoffk@redhat.com>
1135 Richard Henderson <rth@redhat.com>
1136
1137 * Makefile.am: Add support for xstormy16.
1138 * configure.tgt: Add support for xstormy16.
1139 * Makefile.in: Regenerate.
1140 * emulparams/elf32xstormy16.sh: New file.
1141 * scripttempl/xstormy16.sc: New file.
1142
583f1926
CF
11432001-10-01 Christopher Faylor <cgf@cygnus.com>
1144
fc18a3f3
RH
1145 * Makefile.in (LIB_PATH): Make configurable.
1146 (GENSCRIPTS): Set LIB_PATH in environment.
1147 * configure.in: Substitute LIB_PATH.
1148 * configure: Regenerate.
1149 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1150 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 1151
ff291a48
NC
11522001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1153
1154 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1155 describing the -N option so that it is easier to translate into
1156 foreign languages.
1157
e3c8793a
NC
11582001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1159
1160 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1161 statements describing a single option with a single, newline
1162 escaped fprintf. This allows better translation into other
1163 languages.
9d201f2f 1164
fc18a3f3
RH
1165 * ldmain.c (add_archive_element): Combine multiple strings
1166 into a single string to permit better translation into other
1167 languages.
e3c8793a 1168
f2eab0af
TR
11692001-12-05 Tom Rix <trix@redhat.com>
1170
1171 * Makefile.am: Remove eaixppc64.
9d201f2f 1172 * Makefile.in: Regenerate.
f2eab0af 1173
249172c3
TR
11742001-12-04 Tom Rix <trix@redhat.com>
1175
9d201f2f 1176 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
1177 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1178 warning.
1179 (gld*_read_file): Fix typo.
1180 (change_symbol_mode): Add prototype.
1181 (is_syscall): Same.
9d201f2f 1182
249172c3
TR
1183 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1184 * emulparams/aixrs6.sh : Same.
1185 * emulparams/ppcmacos.sh : Same.
1186 * emulparams/aixppc64.sh : Delete file.
1187 * emultempl/aix.em : Formatting changes.
1188
5b5cd1b0
HPN
11892001-12-04 Hans-Peter Nilsson <hp@axis.com>
1190
1191 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1192 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1193 __Sbss.
1194 (OTHER_END_SYMBOLS): Fix formatting.
1195 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1196 (OTHER_END_SYMBOLS): Fix formatting.
1197
7cecdbff
AM
11982001-12-04 Alan Modra <amodra@bigpond.net.au>
1199
1200 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1201
742aeb63 12022001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 1203
742aeb63 1204 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 1205 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
1206 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1207 (ldemul_default_target): Same.
1208 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
1209 * emultempl/gld960c.em (gld960_choose_target): Same.
1210 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
1211 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1212 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1213 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 1214 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
1215 -b32 and -b64.
1216
48459341
L
12172001-11-27 H.J. Lu <hjl@gnu.org>
1218
1219 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1220 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1221 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1222 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1223 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1224 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1225 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1226 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1227
7cecdbff 1228 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
1229 is not empty.
1230 (SDATA): Likewise.
1231 (REL_SDATA): Likewise.
1232 (REL_SBSS): Likewise.
1233 (REL_SDATA2): Likewise.
1234 (REL_SBSS2): Likewise.
1235 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1236 (SDATA2): Likewise.
1237
ecfdd20c
SC
12382001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1239
1240 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1241 destructor in rom.
7cecdbff 1242 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 1243
da54c6eb
L
12442001-11-22 H.J. Lu <hjl@gnu.org>
1245
1246 * Makefile.in: Regenerated with automake based on automake
1247 1.4-8 in RedHat 7.1.
1248
465bc359
AM
12492001-11-22 Alan Modra <amodra@bigpond.net.au>
1250
1251 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1252 (config.status): Delete rule.
1253 Add extra dependencies to cover sourced emulparams files.
1254 * Makefile.in: Regenerate.
1255
1256 * scripttempl/elf.sc: Order <section>, <section>.* and
1257 corresponding linkonce sections as seen in input files.
1258 Formatting fixes. Zero vma of all sections if not relocating.
1259 (STACK): Define and insert if STACK_ADDR defined.
1260 (OTHER_RELOCATING_SECTIONS): Delete.
1261 (OTHER_END_SYMBOLS): Define.
1262 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1263 (OTHER_READWRITE_SECTIONS): Likewise.
1264 (OTHER_GOT_SECTIONS): Likewise.
1265 (OTHER_SDATA_SECTIONS): Likewise.
1266 (OTHER_BSS_SECTIONS): Likewise.
1267 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1268 (OTHER_READWRITE_SECTIONS): Likewise.
1269 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1270 (OTHER_READWRITE_SECTIONS): Likewise
1271
1272 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1273 (STACK_ADDR): Define.
1274 * emulparams/armelf_oabi.sh: As for armelf.sh.
1275 * emulparams/elf32mcore.sh: As for armelf.sh.
1276 * emulparams/h8300elf.sh: As for armelf.sh.
1277 * emulparams/mn10200.sh: As for armelf.sh.
1278 * emulparams/shelf.sh: As for armelf.sh.
1279
1280 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1281 (OTHER_END_SYMBOLS): Define.
1282 * emulparams/m32relf.sh: As for elf32fr30.sh.
1283 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1284 * emulparams/h8300self.sh: As for elf32fr30.sh.
1285
1286 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1287 defines with RELOCATING test.
1288 (OTHER_SDATA_SECTIONS): Likewise.
1289 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1290 (OTHER_END_SYMBOLS): ..this.
1291 * emulparams/crislinux.sh: As for criself.sh.
1292
1293 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1294 if not relocating.
1295 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1296 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1297 normal and linkonce sections as seen in input files.
1298 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1299 (TEXT_DYNAMIC): Likewise.
1300 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1301 (OTHER_SDATA_SECTIONS): Likewise.
1302 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1303 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1304 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1305 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1306 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1307 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1308 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1309 sections as seen in input files.
1310 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1311 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1312 if not relocating.
1313 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1314 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1315 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1316 (OTHER_SECTIONS): Instead, use this..
1317 (OTHER_END_SYMBOLS): ..and this.
1318
1319 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1320 * emulparams/elf32bsmip.sh: Likewise.
1321 * emulparams/elf32btsmip.sh: Likewise.
1322 * emulparams/elf32ebmip.sh: Likewise.
1323 * emulparams/elf32lmip.sh: Likewise.
1324 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1325 * emulparams/elf32lsmip.sh: Likewise.
1326 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1327 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1328 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1329 * emulparams/elf64btsmip.sh: Likewise.
1330 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1331 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1332 * emulparams/elf32ppclinux.sh: Likewise.
1333 * emulparams/elf32ppcsim.sh: Likewise.
1334 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1335 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1336 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1337 * emulparams/h8300self.sh: Likewise.
1338 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1339 * emulparams/sh.sh: Comment.
1340 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1341 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1342 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1343
abc6ab0a
AM
13442001-11-21 David Heine <dlheine@tensilica.com>
1345 Alan Modra <amodra@bigpond.net.au>
1346
1347 * ldlang.c (map_input_to_output_sections): Replace "break"
1348 accidentally removed with 2001-08-03 change.
1349 (lang_gc_sections_1): Likewise.
1350
2181f54f
AM
13512001-11-21 Alan Modra <amodra@bigpond.net.au>
1352
1353 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1354
ca0b5847
AM
13552001-11-20 Angela Marie Thomas <angela@redhat.com>
1356
1357 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
1358 of false when calling lang_size_sections.
1359 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 1360
c56feb2b
AM
13612001-11-15 Alan Modra <amodra@bigpond.net.au>
1362
1363 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1364 function when LDEMUL_FINISH isn't set to the same name. Don't
1365 call ${LDEMUL_FINISH}.
1366 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1367 * emultempl/armelf.em (arm_elf_finish): Call
1368 gld${EMULATION_NAME}_finish.
1369 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1370 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1371 hppaelf_layout_sections_again if necessary.
1372 (need_laying_out): New var.
1373 (hppaelf_layaout_sections_again): Rename to
1374 hppaelf_layout_sections_again. Clear need_laying_out.
1375 (PARSE_AND_LIST_OPTIONS): Format text.
1376
a48ca7f2
L
13772001-11-14 H.J. Lu <hjl@gnu.org>
1378
1379 * emultempl/armelf.em (arm_elf_finish): Renamed from
1380 gld${EMULATION_NAME}_finish.
1381 (LDEMUL_FINISH): Set to arm_elf_finish.
1382
73d074b4
DJ
13832001-11-14 Daniel Jacobowitz <drow@mvista.com>
1384
1385 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1386 (struct ld_emulation_xfer_struct): Use it.
1387
3b16e843 13882001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 1389
465bc359 1390 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
1391 additional symbols referenced by newer crt0.o files from HP.
1392
f11b7027
NC
13932001-11-12 Anthony Green <green@redhat.com>
1394
1395 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1396
3bf2994f
AM
13972001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1398
1399 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1400 * Makefile.in: Regenerate.
1401
ff5dcc92
SC
14022001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1403
1404 * ld.texinfo: Use @command for commands, @option for options.
1405 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1406 the page man title.
1407 * Makefile.in: Rebuild.
1408
9fb9af6e
CD
14092001-11-04 Chris Demetriou <cgd@broadcom.com>
1410
1411 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1412 Add support for targets.
2181f54f 1413
3c62831e
NC
14142001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1415
1416 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1417 * configure: Regernate.
1418 * po/fr.po: New file.
1419 * po/sv.po: New file.
1420
3a9091c4
NC
14212001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1422
1423 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1424 as little endian default and to support big endian.
2181f54f 1425
361b220e
CD
14262001-11-01 Chris Demetriou <cgd@broadcom.com>
1427
1428 * ld.texinfo (Options): Document new option, -nostdlib.
1429 * lexsup.c (OPTION_NOSTDLIB): New definition.
1430 (ld_options): Add entry for "nostdlib".
1431 (parse_args): Handle OPTIONS_NOSTDLIB.
1432 * ldfile.c (ldfile_add_library_path): Don't add directories
1433 to the search path if they weren't specified on the command line
1434 and -nostdlib was specified.
1435 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1436
210a7bd1
NC
14372001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1438
1439 * lexsup.c (parse_args): Prevent infinite parsing loop when
1440 "-rpath.a" is specified on the command line.
1441 Replace calls to fprintf with calls to einfo.
1442
114283d8
NC
14432001-10-31 John Marshall <jmarshall@acm.org>
1444
1445 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1446 appear only once across all the linker scripts involved in a link
1447 invocation no longer applies. Make the documentation reflect
1448 that.
1449
7649aa50
NC
14502001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1451
1452 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1453 targets.
1454 (sh-*-linux*): Added targ_extra_libpath.
1455
6e814ff8
AM
14562001-10-31 David Heine <dlheine@tensilica.com>
1457
1458 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1459 for padding statements.
1460
3c3bdf30
NC
14612001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1462
1463 * configure.tgt (mmix-*-*): New target.
1464 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1465 Add dependencies to match.
1466 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1467 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1468 scripttempl/mmo.sc: New files.
1469 * gen-doc.texi: @set MMIX.
1470 * ld.texinfo: Ditto.
6e814ff8 1471 [MMIX] Add MMIX node.
3c3bdf30
NC
1472 * Makefile.in: Regenerate.
1473
ca0c1d3e
KH
14742001-10-29 Kazu Hirata <kazu@hxi.com>
1475
1476 * ldlang.c: Fix a comment typo.
1477
1a3d33ce
AM
14782001-10-23 Alan Modra <amodra@bigpond.net.au>
1479
1480 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1481 entries, and match *-*-linux*.
1482
b47c4208
AM
14832001-10-20 Alan Modra <amodra@bigpond.net.au>
1484
1485 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1486 with ldlex_script, ldlex_popstate.
1487 (ifile_p1): Likewise.
1488 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1489 correct slot.
1490 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1491 to 1. Don't BEGIN(SCRIPT).
1492 (lex_redirect): Similarly.
1493 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1494
fd521b47
NC
14952001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1496
1497 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1498 __EH_FRAME_END__ and accept eh frames into data section.
1499 Add ctor and dtor sections.
1500
59d28a94
DD
15012001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1502
1503 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1504 (auto-export): Fix indentation.
1505
663dd378
DD
15062001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1507
1508 * pe-dll.c (autofilter_objectlist): Add startup objects
1509 for profiling.
1510 (auto-export): Constify char * p.
6e814ff8 1511 Extract file basename and use strcmp rather than ststr
663dd378
DD
1512 for object lookup.
1513
31d677f9
CD
15142001-10-18 Chris Demetriou <cgd@broadcom.com>
1515
1516 * ldmain.c (get_emulation): Improve comment about the handling
1517 of -mipsN options.
1518
aa200fe8
AM
15192001-10-17 Alan Modra <amodra@bigpond.net.au>
1520
1521 * po/POTFILES.in: Regenerate.
1522
146e7110
AM
15232001-10-16 Vassili Karpov <malc@pulsesoft.com>
1524
1525 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1526 -z nocopyreloc and -z nocombreloc usage strings.
1527
b4330e85
NC
15282001-10-12 Vassili Karpov <malc@pulsesoft.com>
1529
146e7110 1530 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
1531 in usage.
1532
5af8a2fb
NC
15332001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1534
1535 * scripttempl/armaout.sc: Place .bss section after end of aligned
1536 data section to match behaviour of aout code in constructrion of
1537 header.
1538
5b784096
DD
15392001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1540
1541 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1542 startup files for mingw32 dlls to list.
1543
61585df2
CD
15442001-10-10 Chris Demetriou <cgd@broadcom.com>
1545
1546 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1547
45cf6f3e
AH
15482001-10-08 Aldy Hernandez <aldyh@redhat.com>
1549
1550 * configure.tgt (targ): Add arm9e-*-elf.
1551
e24d7c12
L
15522001-10-05 H.J. Lu <hjl@gnu.org>
1553
1554 * genscripts.sh: Fix a typo in the last change.
1555
ec38dd05
JJ
15562001-10-05 Jakub Jelinek <jakub@redhat.com>
1557
1558 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1559 -z nocombreloc in usage.
1560
cedd6b0d
JB
15612001-10-03 Jim Blandy <jimb@redhat.com>
1562
1563 * genscripts.sh: Include a comment at the top of each generated
1564 script, explaining its purpose.
1565
8bd621d8
AM
15662001-10-03 Vassili Karpov <malc@pulsesoft.com>
1567
1568 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1569 * NEWS: Mention -z nocopyreloc.
1570 * ld.texinfo (Options): Describe nocopyreloc.
1571
fcd8210c
AM
15722001-10-03 Alan Modra <amodra@bigpond.net.au>
1573
1574 * configure: Regenerate.
1575
d32820f2
AM
15762001-10-02 Alan Modra <amodra@bigpond.net.au>
1577
1578 * ldver.h (ld_program_version): Remove declaration.
1579 * lexsup.c (parse_args): Move printing of copyright message..
1580 * ldver.c (ldversion): .. to here.
1581 Use BFD_VERSION_STRING in place of BFD_VERSION.
1582 (ld_program_version): Remove.
1583 * Makefile.am (Makefile): Depend on bfd/configure.in.
1584 Run "make dep-am".
1585 * Makefile.in: Regenerate.
1586
af46bcdc
HPN
15872001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1588
1589 * Makefile.am: Update dependencies with "make dep-am".
1590 * Makefile.in: Regenerate.
1591
4818e05f 15922001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 1593
4818e05f
AM
1594 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1595 * lexsup.c: Add --no-define-common commandline option.
1596 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1597 * ldlex.l: Likewise.
1598 * ld.h: Add command_line.inhibit_common_definition.
1599 * ldmain.c (main): Initialize.
1600 * ld.texinfo: Document.
862517b6 1601
d5e0ebeb
AM
16022001-09-26 Alan Modra <amodra@bigpond.net.au>
1603
1604 * ldmisc.c (USE_STDARG): Remove.
1605 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1606 (einfo): Likewise.
1607 (minfo): Likewise.
1608 (lfinfo): Likewise.
1609
1610 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1611 declarations. Update copyright.
1612
2f8d8971
NC
16132001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1614
85c77458
NC
1615 * pe-dll.c: Remove obsoleted declaration of
1616 pe_get_data_import_dll_name.
1617 (pe_create_import_fixup): Fix thinko.
1618
2f8d8971
NC
1619 * ld.texinfo(enable-auto-import): Clarify the explanation.
1620
16212001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1622
1623 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1624 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1625 DLL_SUPPORT controlled code.
1626
72358f65 16272001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 1628
72358f65
NC
1629 * emultempl/pe.em(pe_data_import_dll): Make static.
1630 (pe_get_data_import_dll_name): New accessor function.
146e7110 1631 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
1632 pe_get_data_import_dll_name() from pe.em, instead of
1633 directly accessing pe_data_import_dll variable from pe.em.
1634
3882b010
L
16352001-09-18 Bruno Haible <haible@clisp.cons.org>
1636
1637 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1638 (def_file_add_directive): Use ISSPACE instead of isspace.
1639 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1640 isdigit/isxdigit/isalpha/isalnum.
1641 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1642 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1643 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1644 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1645 isalnum.
1646 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1647 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1648 isupper/tolower.
1649 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1650 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1651 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1652 (ctor_prio): Use ISDIGIT instead of isdigit.
1653 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1654 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1655 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1656 isupper/tolower.
1657 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1658 (stricpy): Use TOLOWER instead of isupper/tolower.
1659 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1660 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1661 (lex_warn_invalid): Use ISPRINT instead of isprint.
1662 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1663 (main): For gettext, also set the LC_CTYPE locate facet.
1664 (add_keepsyms_file): Use ISSPACE instead of isspace.
1665 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1666 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1667 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1668 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1669 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1670 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1671 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1672 (quoteput): Use ISSPACE instead of isspace.
1673 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1674 instead of isalnum.
1675
db09f25b
AM
16762001-09-18 Alan Modra <amodra@bigpond.net.au>
1677
1678 * deffilep.y (def_stash_module): Constify "name" param.
1679
1680 * pe-dll.c: Replace CONST with const throughout.
1681 (quick_symbol): Constify "n1", "n2", "n3" params.
1682 (make_singleton_name_thunk): Constify "import" param. Make
1683 "buffer_len" a size_t.
1684 (make_import_fixup_entry): Constify "name", "fixup_name",
1685 "dll_symname" params.
1686 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1687 (pe_get32): Likewise.
1688 (pe_implied_import_dll): Likewise.
1689
1690 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1691 (sort_by_section_name): Likewise.
1692
1693 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1694 (make_import_fixup): Cast printf arg, rel->address to long rather
1695 than int.
1696 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1697
74699268
AM
16982001-09-15 Alan Modra <amodra@bigpond.net.au>
1699
1700 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1701 defines BufferSize. Increase buffer size by one.
1702
775cabad
NC
17032001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1704
1705 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1706
056a1d49
NC
17072001-09-14 Kevin Lo <kevlo@openbsd.org>
1708
1709 * configure.tgt: Add arm-openbsd target.
1710
a7d792bb
L
17112001-09-12 H.J. Lu <hjl@gnu.org>
1712
1713 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1714 eelf64lppc.o to ...
1715 (ALL_64_EMULATIONS): Here.
1716 * Makefile.in: Regenerated.
1717
0d888aac
CW
17182001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1719
1720 * emultempl/pe.em(make_import_fixup): change signature to
1721 take asection as well as arelec; we need this for proper
146e7110 1722 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
1723 there is no attempt to add a constant addend to the reloc;
1724 otherwise, report error condition.
1725 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1726 since final argument is a pointer to make_import_fixup().
1727 Change call to cb() to match make_import_fixup() signature.
1728 (make_import_fixup_mark): make buffer_len unsigned.
1729 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1730
17312001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1732
1733 * ld.texinfo: add verbose documentation for auto-import
146e7110 1734 direct-addressing workaround, to compliment the terse
0d888aac
CW
1735 error message.
1736
cedacdc0
CM
17372001-09-12 Andrew MacLeod <amacleod@redhat.com>
1738
146e7110 1739 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 1740
3b16e843 17412001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
1742
1743 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1744 * emulparams/h8300self.sh: Similarly.
1745
559e4713
NC
17462001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1747
1748 * ld.texinfo (Options, --stack): Correct default value for stack
1749 reserve.
1750
1fdf0249
TR
17512001-09-05 Tom Rix <trix@redhat.com>
1752
1753 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 1754
9b5799b8
AJ
17552001-09-03 Andreas Jaeger <aj@suse.de>
1756
1757 * emultempl/beos.em: Declare prototypes for comparions functions,
1758 adjust definitions.
1759
48f6162b
AJ
17602001-09-02 Andreas Jaeger <aj@suse.de>
1761
1762 * emultempl/aix.em: Add missing prototype.
1763 * emultempl/lnk960.em: Likewise.
1764 * emultempl/vanilla.em: Likewise.
1765 * emultempl/armcoff.em: Likewise.
1766 * emultempl/armelf_oabi.em: Likewise.
1767 * emultempl/beos.em: Likewise.
1768 * emultempl/gld960c.em: Likewise.
1769 * emultempl/gld960.em: Likewise.
1770
1771 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1772 for prototype declaration.
1773
39e5585e
EC
17742001-08-31 Eric Christopher <echristo@redhat.com>
1775 Jason Eckhardt <jle@redhat.com>
1776
1777 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1778
3fc90ddb
AJ
17792001-08-31 Andreas Jaeger <aj@suse.de>
1780
1781 * emultempl/pe.em: Add missing prototypes.
1782 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1783 pe_find_data_imports.
1784 (pr_sym): Add unused attribute.
1785
d43ded80
PB
17862001-08-29 Joel Sherrill <joel@OARcorp.com>
1787
39e5585e 1788 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
1789 default from coff to elf.
1790
3946dd2f
JL
17912001-08-29 Jeff Law <law@redhat.com>
1792
1793 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1794 ARCH specification.
1795 * emulparams/h8300self.sh: Similarly.
1796
3b16e843 17972001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
1798
1799 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1800 eh8300self.o .
1801 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1802 * configure.tgt (h8300-*-elf*): New case.
1803 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1804 * emulparams/h8300self.sh: New file.
1805 * Makefile.in: Regenerated.
1806
70d0c6e9
NC
18072001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1808
1809 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1810 with macro name.
1811
5c67d4bb
AM
18122001-08-27 Linus Nordberg <linus@swox.com>
1813 Alan Modra <amodra@bigpond.net.au>
1814
1815 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1816 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1817 Run "make dep-am"
1818 * Makefile.in: Regenerate.
1819 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1820 entries to correct alphabetical position.
1821 * emulparams/elf64ppc.sh: New.
1822 * emulparams/elf64lppc.sh: New.
1823
08131015
NC
18242001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1825
1826 * ldmain.c (main): Declare BSIZE as static.
1827
db6751f2
JJ
18282001-08-23 Jakub Jelinek <jakub@redhat.com>
1829
1830 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1831 into .rel.dyn resp. .rela.dyn if combreloc.
1832 (get_script): If .x linker script is equal to .xn, only put it
1833 once into the binary.
1834 Add .xc and .xsc scripts.
1835 (parse_args): Handle -z combreloc and -z nocombreloc.
1836 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1837 For .xc and .xsc scripts put all .rel* or .rela* input sections
1838 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1839 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1840 is elf.
1841 Strip trailing whitespace from script.
1842 Generate .xc and .xsc scripts if requested.
1843 * ldmain.c (main): Initialize link_info.combreloc and
1844 link_info.spare_dynamic_tags.
1845 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1846 (ld_options): Add --spare-dynamic-tags option.
1847 (parse_args): Likewise.
1848 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1849 * ldint.texinfo: Document .xc and .xsc linker scripts.
1850 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1851
63d069c0
L
18522001-08-22 H.J. Lu <hjl@gnu.org>
1853
1854 * emulparams/elf32fr30.sh: Add a newline.
1855
948f9114
AJ
18562001-08-21 Andreas Jaeger <aj@suse.de>
1857
1858 * deffilep.y: Add missing prototypes.
1859 * pe-dll.c: Likewise.
1860
ae7fb08f
AM
18612001-08-20 Alan Modra <amodra@bigpond.net.au>
1862
2af02257
AM
1863 * ldlang.c (insert_pad): Fix typos in last patch.
1864
1865 * ldlang.c: When traversing lang_statement_union_type lists,
1866 consistently use "header.next" rather than "next".
1867 * mpw-eppcmac.c: Likewise.
1868 * emultempl/beos.em: Likewise.
1869 * emultempl/hppaelf.em: Likewise.
1870 * emultempl/pe.em: Likewise.
1871 * ldlang.h (union lang_statement_union): Remove "next" field.
1872
c0c330a7
AM
1873 * ldlang.c (insert_pad): Use offsetof macro.
1874 (lang_size_sections): Always neuter padding statements.
1875 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1876
ae7fb08f
AM
1877 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1878 passed to lang_size_sections.
1879 (pe_exe_fill_sections): Likewise.
1880 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1881 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1882
fab80407
AM
18832001-08-18 Alan Modra <amodra@bigpond.net.au>
1884
1885 * emultempl/aix.em: Formatting fixes.
1886
b3327aad
AM
18872001-08-18 Alan Modra <amodra@bigpond.net.au>
1888
1889 * ldlang.c (insert_pad): Make use of an existing pad statement if
1890 available. Move code calculating alignment, adjusting section
1891 alignment power, and adjusting dot to ..
1892 (size_input_section): .. here. Remove unused relax param.
1893 (lang_size_sections): Change boolean `relax' param to boolean *.
1894 Adjust call to size_input_section. Make use of insert_pad to
1895 place pad after the assignment statement. If relaxing, zap
1896 padding statements.
1897 (reset_memory_regions): Reset output_bfd section sizes too.
1898 (relax_again): Move to..
1899 (lang_process): ..here. Adjust call to lang_size_sections, and
1900 remove duplicated code.
1901 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1902
563e308f
AM
19032001-08-17 Alan Modra <amodra@bigpond.net.au>
1904
1905 * ld.texinfo: Document that fill values now use the four least
1906 significant bytes.
1907 * emulparams/elf32fr30.sh (NOP): Update.
1908 * emulparams/elf32mcore.sh: Likewise.
1909 * emulparams/elf64_s390.sh: Likewise.
1910 * emulparams/elf_i386.sh: Likewise.
1911 * emulparams/elf_i386_be.sh: Likewise.
1912 * emulparams/elf_i386_chaos.sh: Likewise.
1913 * emulparams/elf_i386_ldso.sh: Likewise.
1914 * emulparams/elf_s390.sh: Likewise.
1915 * emulparams/elf_x86_64.sh: Likewise.
1916 * emulparams/i386moss.sh: Likewise.
1917 * emulparams/i386nw.sh: Likewise.
1918 * emulparams/m68kelf.sh: Likewise.
1919 * scripttempl/elf.sc: Update NOP comment.
1920 * scripttempl/elfi370.sc: Likewise.
1921 * scripttempl/elfm68hc11.sc: Likewise.
1922 * scripttempl/elfm68hc12.sc: Likewise.
1923 * scripttempl/nw.sc: Likewise.
1924
b90e1c6f
TR
19252001-08-15 Tom Rix <trix@redhat.com>
1926
1927 * ldgram.y (saved_script_handle): Initialize to NULL.
1928 * ldmain.c (main): Change check on saved_script_handle.
948f9114 1929
39dcfe18
AM
19302001-08-14 Alan Modra <amodra@bigpond.net.au>
1931
cde43e70
AM
1932 * emultempl/elf32.em: Formatting fixes.
1933 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1934 looking at sec->owner.
1935 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1936 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1937 unused code, and reorganize orphan section placement code.
1938
39dcfe18
AM
1939 * ldlang.c (wild_doit): Rename to lang_add_section.
1940 * ldlang.h: Here too.
1941 * mpw-elfmips.c: And here.
1942 * emultempl/beos.em: And here.
1943 * emultempl/elf32.em: And here.
1944 * emultempl/hppaelf.em: And here.
1945 * emultempl/pe.em: And here.
1946
908d20b3
RH
19472001-08-13 Richard Henderson <rth@redhat.com>
1948
1949 * emultempl/needrelax.em: New file.
1950 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1951 * Makefile.am (eelf64_ia64.c): Depend on it.
1952 * Makefile.in: Rebuild.
1953
0f33d40b
AM
19542001-08-13 Alan Modra <amodra@bigpond.net.au>
1955
22af9fd3
AM
1956 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1957 output_section is set non-NULL.
1958
0f33d40b
AM
1959 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1960 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1961 needlessly create an output_section_statement. Treat a correctly
1962 named output_section_statement with NULL bfd_section as compatible.
1963
55ab6103
HPN
19642001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1965
1966 * emultempl/generic.em: Support EXTRA_EM_FILE.
1967 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1968 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1969 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1970 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1971 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1972 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1973 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1974 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1975 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1976 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1977
24098abb
RH
19782001-08-12 Richard Henderson <rth@redhat.com>
1979
1980 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1981 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1982 scripttempl/v850.sc: Keep .jcr data.
1983
b9a8de1e 19842001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
1985 Andrew Haley <aph@cambridge.redhat.com>
1986 Nick Clifton <nickc@redhat.com>
b9a8de1e 1987
146e7110 1988 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
1989 Change type to file handle.
1990 * ld.h (had_script): Rename and retype.
1991 * ldfile.c (ldfile_open_command_file): Save the file handle
1992 used in saved_script_handle.
1993 * lexsup.c (parse_args): Do not allow -c option to alter
1994 saved_script_handle.
1995 * ldmain.c (main): Print out the linker script used if
1996 --verbose is given. Check saved_script_handle to obtain the
1997 external linker script used, or if NULL, dump the builtin
1998 script.
1999 * ld.texinfo: Document that --verbose now dumps the linker
2000 script used, regardless of whether it was an internal or an
2001 external script.
2002
0218d1e4
AJ
20032001-08-10 Andreas Jaeger <aj@suse.de>
2004
2005 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2006 to build warnings.
2007 * configure: Regenerate.
2008
5253f23b
AM
20092001-08-09 Alan Modra <amodra@bigpond.net.au>
2010
73810896
AM
2011 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2012
5253f23b
AM
2013 * scripttempl/elf.sc: Move non-text .dynamic section before
2014 .plt/.got/.sdata* group.
2015 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2016 (OTHER_SDATA_SECTIONS): Add.
2017 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2018 OTHER_GOT_SECTIONS.
2019 * emulparams/crislinux.sh: Likewise.
2020 * emulparams/elf32b4300.sh: Likewise.
2021 * emulparams/elf32bmip.sh: Likewise.
2022 * emulparams/elf32bmipn32.sh: Likewise.
2023 * emulparams/elf32bsmip.sh: Likewise.
2024 * emulparams/elf32btsmip.sh: Likewise.
2025 * emulparams/elf32ebmip.sh: Likewise.
2026 * emulparams/elf32elmip.sh: Likewise.
2027 * emulparams/elf32l4300.sh: Likewise.
2028 * emulparams/elf32lmip.sh: Likewise.
2029 * emulparams/elf32lsmip.sh: Likewise.
2030 * emulparams/elf32ltsmip.sh: Likewise.
2031 * emulparams/elf64bmip.sh: Likewise.
2032 * emulparams/elf64btsmip.sh: Likewise.
2033 * emulparams/elf64ltsmip.sh: Likewise.
2034
179c732c
AM
20352001-08-08 Alan Modra <amodra@bigpond.net.au>
2036
2037 * genscripts.sh: Source the emulparams script before each output
2038 script is generated so that variables like `RELOCATING' may affect
2039 variables defined in the emulparams script.
2040
3fd36710
AM
20412001-08-04 Alan Modra <amodra@bigpond.net.au>
2042
20713691
AM
2043 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2044 order.
2045
3fd36710
AM
2046 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2047 ie. iterate over wild_statement.section_list.
2048 (gld${EMULATION_NAME}_place_orphan): Likewise.
2049
de0b1853
SC
20502001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2051
2052 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2053 .fini[0-4] sections used by _exit
2054 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2055 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2056 * scripttempl/elfm68hc11.sc: Likewise.
2057
ff7e6f88
L
20582001-08-03 H.J. Lu <hjl@gnu.org>
2059
2060 * emultempl/beos.em (init): Add the missing initialization.
2061
b6bf44ba
AM
20622001-08-03 Alan Modra <amodra@bigpond.net.au>
2063
2064 * ld.texinfo (Input Section Basics): Clarify ordering of output
2065 sections.
2066 * ldlang.c (callback_t): Add wildcard_list param.
2067 (walk_wild_section): Remove "section" param. Rewrite for
2068 lang_wild_statement_type change. Remove unique_section_p test.
2069 (walk_wild_file): Remove "section" param.
2070 (walk_wild): Remove "section" and "file" params.
2071 (lang_gc_wild): Likewise.
2072 (wild): Likewise. Modify for lang_wild_statement_type change.
2073 (wild_sort): Likewise. Add "sec" param.
2074 (gc_section_callback): Likewise.
2075 (output_section_callback): Likewise. Do unique_section_p test.
2076 (map_input_to_output_sections): Modify call to wild.
2077 (lang_gc_sections_1): Likewise.
2078 (print_wild_statement): Modify for lang_wild_statement_type
2079 change.
2080 (lang_add_wild): Replace filename, filenames_sorted param with
2081 filespec. Replace section_name, sections_sorted,
2082 exclude_filename_list with section_list.
2083 * ldlang.h (lang_add_wild): Here too.
2084 (lang_wild_statement_type): Replace section_name, sections_sorted,
2085 and exclude_filename_list with section_list.
2086 * ldgram.y (current_file): Delete.
2087 (%union): Add wildcard_list.
2088 (file_NAME_list): Set type to wildcard_list. Build a linked list
2089 rather than calling lang_add_wild for each entry.
2090 (input_section_spec_no_keep): Call lang_add_wild here instead.
2091 * ld.h (struct wildcard_list): Declare.
2092 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2093
b044cda1
CW
20942001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2095
2096 * ldmain.c (main): initialize link_info.pei386_auto_import
2097 * pe-dll.c: new tables for auto-export filtering
2098 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 2099 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
2100 "by hand".
2101
21022001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2103
b6bf44ba
AM
2104 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2105 static variable current_sec (static struct sec *). Add
b044cda1 2106 forward declaration for add_bfd_to_link.
b6bf44ba
AM
2107 (process_def_file): Don't export undefined symbols. Do not
2108 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
2109 with new API.
2110 (pe_walk_relocs_of_symbol): New function.
2111 (generate_reloc): add optional extra debugging
b6bf44ba 2112 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 2113 line in output
b6bf44ba 2114 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
2115 (DATA auto-import support).
2116 (make_singleton_name_thunk): New function.
2117 (make_import_fixup_mark): New function.
2118 (make_import_fixup_entry): New function.
2119 (pe_create_import_fixup): New function.
b6bf44ba 2120 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 2121 char *.
b6bf44ba
AM
2122 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2123 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
2124 pe_create_import_fixup.
2125 * emultempl/pe.em: add new options --enable-auto-import,
2126 --disable-auto-import, and --enable-extra-pe-debug.
2127 (make_import_fixup): New function.
2128 (pe_find_data_imports): New function.
2129 (pr_sym): New function.
b6bf44ba 2130 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
2131 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2132 CODE.
2133
21342001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 2135
b044cda1
CW
2136 * ld.texinfo: add additional documentation for
2137 --export-all-symbols. Document --out-implib,
2138 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
2139 --dll-search-prefix, --enable-auto-import, and
2140 --disable-auto-import.
b044cda1
CW
2141 * ldint.texinfo: Add detailed documentation on auto-import
2142 implementation.
2143
156e34dd
NC
21442001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2145
2146 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2147 example.
2148
d6231427
AM
21492001-07-24 Alan Modra <amodra@bigpond.net.au>
2150
2151 * Makefile.am: Update dependencies with "make dep-am".
2152 * Makefile.in: Regenerate
2153
e14ec88b
AM
21542001-07-23 Alan Modra <amodra@bigpond.net.au>
2155
2156 * ldcref.c (check_section_sym_xref): New function.
2157 (check_nocrossrefs): Call it.
2158 (check_nocrossref): Interate over h->refs here instead of..
2159 (check_refs): ..here. Pass in the symbol name, section, and bfd
2160 rather than hash_entry pointers.
2161 (struct check_refs_info): Keep symbol name rather than hash entry.
2162 Remove "same".
2163 (check_reloc_refs): Tweak for above changes in check_refs_info.
2164 Only report references to section syms when symname is NULL to
2165 prevent duplicate messages for the same reloc.
2166
1b577b00
NC
21672001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2168
c7d701b0
NC
2169 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2170 available. Do not print NULL trees.
2171 (exp_print_token): Print unknown tokens with values > 126 as
2172 decimal values not ASCII characters.
2173
1545243b
NC
2174 * ldlang.c (lang_leave_overlay): If a region is specified assign
2175 it to all sections inside the overlay unless they have been
2176 assigned to the own, non-default, memory region.
2177
1b577b00
NC
2178 * README: Add header for consistency with other README files.
2179
5030876b
L
21802001-07-14 H.J. Lu <hjl@gnu.org>
2181
2182 * emultempl/elf32.em (output_prev_sec_find): Never return
2183 bfd_abs_section_ptr, bfd_com_section_ptr nor
2184 bfd_und_section_ptr.
2185
18c7a9a5
NC
21862001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2187
22af9fd3 2188 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
2189 elf32.em.
2190 * Makefile.in: Regenerate.
2191
9ffecff1
MG
21922001-07-14 matthew green <mrg@eterna.com.au>
2193
2194 * configure.tgt (i386-*-netbsdelf*): New target.
2195 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2196
95500e1c
JJ
21972001-07-13 Jakub Jelinek <jakub@redhat.com>
2198
2199 * emultempl/elf32.em (output_prev_sec_find): New.
2200 (place_orphan): Use it.
2201
e97cb84f
L
22022001-07-11 H.J. Lu <hjl@gnu.org>
2203
2204 * ldmain.c (main): Fix typos in the last change.
2205
7333607e
JJ
22062001-07-11 Jakub Jelinek <jakub@redhat.com>
2207
2208 * ldmain.c (main): Disallow -F and -f without -shared.
2209
d29d80f2
NC
22102001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2211
2212 * emultempl/pe.em (after_open): Check for the output_bfd not
2213 having any coff_data structure allocated to it.
2214
c2a1a436
DB
22152001-07-09 David O'Brien <obrien@FreeBSD.org>
2216
2217 * emultempl/elf32.em: Do not assuming that contents of the buffer
2218 returned from basename function will remain unchanged accross other
2219 function calls.
2220
63653551
L
22212001-07-03 H.J. Lu <hjl@gnu.org>
2222
2223 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2224 2001-07-03. It creates dynamic entries even for static binaries.
2225
d303a449
L
22262001-07-03 Jakub Jelinek <jakub@redhat.com>
2227
2228 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2229 (DYNAMIC): Use it to reserve few dynamic entries for
2230 post-linking tools.
2231
9f22353f
AM
22322001-06-27 Alan Modra <amodra@bigpond.net.au>
2233
2234 * emulparams/hppa64linux.sh: New file.
2235 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2236 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2237 (ehppa64linux.c): Add rule to make it.
2238 Run "make dep-am".
2239 * Makefile.in: Regenerate.
2240
62bf86b4
HPN
22412001-06-21 Hans-Peter Nilsson <hp@axis.com>
2242
2243 * ld.texinfo (Options, -r): Mention restrictions when using
2244 different object formats.
2245
429d935d
HPN
22462001-06-19 Hans-Peter Nilsson <hp@axis.com>
2247
2248 * ldlang.c (lang_check): Emit fatal error if relocatable link
2249 between different object flavours with relocations in input.
2250
cb840a31
L
22512001-06-19 H.J. Lu <hjl@gnu.org>
2252
2253 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2254 (--version-script): Mention the language support.
2255
9bf03acc
L
22562001-06-19 H.J. Lu <hjl@gnu.org>
2257
2258 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2259
c45021f2
NC
22602001-06-18 H.J. Lu <hjl@gnu.org>
2261
b6bf44ba
AM
2262 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2263 (diststuff): Add $(MANS).
2264 * Makefile.in: Regenerated.
c45021f2 2265
b6bf44ba 2266 * ld.1: Removed.
c45021f2 2267
6caa99ab
HPN
22682001-06-18 Hans-Peter Nilsson <hp@axis.com>
2269
605d9b3a
HPN
2270 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2271 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2272 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2273 * ld.h (args_type): Remove member export_dynamic. All users
2274 changed to use struct bfd_link_info member.
2275
6caa99ab
HPN
2276 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2277 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2278 * Makefile.in: Regenerate.
2279
6f9efd97
L
22802001-06-18 H.J. Lu <hjl@gnu.org>
2281
2282 * ldlang.c (init_os): Add the newline to the einfo call.
2283 (lang_check): Likewise.
2284 (lang_do_version_exports_section): Likewise.
2285
5af9fd8b
L
22862001-06-15 H.J. Lu <hjl@gnu.org>
2287
2288 * lexsup.c (parse_args); Save optind to report unrecognized
2289 option.
2290
2a096f04
HPN
22912001-06-15 Hans-Peter Nilsson <hp@axis.com>
2292
7e66c3f5
HPN
2293 * ldlang.c (lang_check): Emit fatal error if relocatable link
2294 between different object flavours.
2295
2a096f04
HPN
2296 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2297 Set new link_info member export_dynamic.
2298 * ldmain.c (main): Initialize new link_info member export_dynamic.
2299
6770ec8c
NC
23002001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2301
2302 * ldlang.c (walk_wild): Only call walk_wild_file if
2303 lookup_name returns something.
b6bf44ba 2304 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 2305 (load_symbols): Change to a boolean function.
b6bf44ba 2306 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
2307 executable.
2308
8529105a
AM
23092001-06-08 Alan Modra <amodra@bigpond.net.au>
2310
2311 * ldlang.c (record_bfd_errors): Remove.
2312
2313 * emultempl/aix.em: Fix copyright dates.
2314
8f3aa7a0
AJ
23152001-06-07 Andreas Jaeger <aj@suse.de>
2316
2317 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2318 (TEXT_START_ADDR): Likewise.
2319
3277f888
AM
23202001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2321
2322 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2323
3763134d
DD
23242001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2325
2326 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2327
5929ebc0
L
23282001-05-31 H.J. Lu <hjl@gnu.org>
2329
2330 * ldlang.c (open_input_bfds): Don't change the bfd error
2331 handler whilst loading symbols.
2332
c04a062d
NC
23332001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2334
2335 * configure.tgt: Remove i370-mvs architecture, it is not currently
2336 supported.
2337
96fcab3e
L
23382001-05-25 H.J. Lu <hjl@gnu.org>
2339
2340 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2341 like emulparams/aixppc.sh.
2342
db8d4f23
L
23432001-05-25 H.J. Lu <hjl@gnu.org>
2344
2345 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2346 setting of output_filename after bfd_scan_arch.
2347 * emultempl/pe.em: Likewise.
2348
5f642101
L
23492001-05-25 H.J. Lu <hjl@gnu.org>
2350
2351 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2352 like emulparams/aixppc.sh.
2353
2354 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2355 instead of ${srcdir}/emultempl/stringify.sed.
2356
64e9ece0
TW
23572001-05-25 Timothy Wall <twall@oculustech.com>
2358
2359 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 2360 output.
64e9ece0 2361
c709b096
AM
23622001-05-25 Alan Modra <amodra@one.net.au>
2363
2364 * configure.host: Replace linuxoldld with linux*oldld.
2365 * configure.tgt: Likewise.
2366
6cbdcc6f
L
23672001-05-24 H.J. Lu <hjl@gnu.org>
2368
2369 * emultempl/stringify.sed: Removed again.
2370
86af25fe
L
23712001-05-24 H.J. Lu <hjl@gnu.org>
2372
2373 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2374 (gld${EMULATION_NAME}_before_parse): Initialize
2375 ldfile_output_architecture, ldfile_output_machine and
2376 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2377 * emultempl/beos.em: Likewise.
2378 * emultempl/elf32.em: Likewise.
2379 * emultempl/linux.em: Likewise.
2380 * emultempl/mipsecoff.em: Likewise.
2381 * emultempl/pe.em: Likewise.
2382 * emultempl/sunos.em: Likewise.
2383
3b1b01cf
TR
23842001-05-24 Tom Rix <trix@redhat.com>
2385
8f3aa7a0 2386 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
2387 udate import file format.
2388 (change_symbol_mode) New, same
2389 (is_syscall) New, same
2390 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2391 * emulparams/aixppc64.sh : same
2392 * emulparams/aixrs6.sh : same
2393 * emulparams/ppcmacos.sh : same
2394 * emultempl/aix.em : use strtoull to parse options
2395 * Makefile.am : add eaixppc64 emulation for xcoff64
2396 * Makefile.in : same
2397 * configure.tgt : same
2398
2399 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 2400 default data section offset to 0x20000000
3b1b01cf 2401 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 2402 loader and debug sections use the currect section offset.
3b1b01cf
TR
2403
2404 * emultempl/aix.em : Add xcoff64 support
2405 Add -binitfini support
8f3aa7a0 2406 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 2407 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 2408 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
2409 sections
2410
2411 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 2412
57e6abd2
AO
24132001-05-23 Alexandre Oliva <aoliva@redhat.com>
2414
2415 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2416 variable to avoid non-portable shell construct.
2417
d1cf510e
NC
24182001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2419
2420 * ldmain.c (get_emulation): Add -mips5 command line argument.
2421
506eee22
NC
24222001-05-22 Alexandre Oliva <aoliva@redhat.com>
2423
2424 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2425 (ELF_INTERPRETER_NAME): Define it.
2426 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2427 it.
2428 * configure.tgt (targ_emul, targ_extra_emuls)
2429 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2430 as primary, elf_i386 as extra.
2431 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2432 (eelf_i386_ldso.c): New rule.
2433 * Makefile.in: Rebuilt.
2434
24352001-05-22 Nick Clifton <nickc@redhat.com>
2436
2437 * lexsup.c (ld_options): Allow -I to be an alias for
2438 --dynamic-linker. This is for Solaris compatability.
2439 * ld.texinfo: Document that -I can be used.
2440 * ld.1: Regenerate.
2441
d1778b88
AM
24422001-05-16 Alan Modra <amodra@one.net.au>
2443
2444 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2445 whether an input section is the first one assigned to an output
2446 section.
2447 Assorted formatting fixes.
2448
02649152
DD
24492001-05-14 DJ Delorie <dj@delorie.com>
2450
2451 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2452 * Makefile.in: Ditto.
2453
579f31ac
JJ
24542001-05-11 Jakub Jelinek <jakub@redhat.com>
2455
2456 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2457 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2458 output sections.
2459 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2460
8550eb6e
JJ
24612001-05-11 Jakub Jelinek <jakub@redhat.com>
2462
2463 * ldlang.c (lang_process): Call bfd_merge_sections.
2464
8e5a525c
AM
24652001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2466
2467 * ldgram.y: Fix typo.
2468
1c9acd94
L
24692001-05-03 H.J. Lu <hjl@gnu.org>
2470
2471 * emultempl/elf32.em: Include "libiberty.h".
2472 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2473 basename of the bfd filename.
2474 (gld${EMULATION_NAME}_stat_needed): Likewise.
2475 (gld${EMULATION_NAME}_try_needed): Likewise.
2476 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2477
14fe918e
L
24782001-05-02 H.J. Lu <hjl@gnu.org>
2479
2480 * emultempl/pe.em: Include <ctype.h>.
2481
c7e40348
NC
24822001-05-02 Johan Rydberg <jrydberg@opencores.org>
2483
b6bf44ba 2484 * emulparams/elf32openrisc.sh: New file.
c7e40348 2485
b6bf44ba
AM
2486 * Makefile.am: Add OpenRISC target.
2487 * Makefile.in: Regenerated.
c7e40348 2488
b6bf44ba 2489 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
2490
24912001-05-02 Nick Clifton <nickc@redhat.com>
2492
2493 * emultempl/aix.em: Replace buystring with xstrdup.
2494 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 2495
d1b2b2dc
L
24962001-05-02 H.J. Lu <hjl@gnu.org>
2497
2498 * ldfile.c: Include "libiberty.h".
2499 * ldlex.l: Likewise.
2500
2501 * ldmisc.c (buystring): Removed.
2502 * ldmisc.h: Likewise.
2503
2504 * ldfile.c: Replace buystring with xstrdup.
2505 * ldlang.c: Likewise.
2506 * ldlex.l: Likewise.
2507 * ldmain.c: Likewise.
2508 * ldmisc.c: Likewise.
2509 * lexsup.c: Likewise.
2510 * mpw-eppcmac.c: Likewise.
2511
35714f2a
AJ
25122001-04-30 Andreas Jaeger <aj@suse.de>
2513
2514 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2515
884fb58e
NC
25162001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2517
b6bf44ba
AM
2518 * ldlang.c (load_symbols): Give emulation a chance
2519 to process unrecognized file before fatal error is
2520 reported, not after.
884fb58e 2521
87748b32
NC
25222001-04-27 Sean McNeil <sean@mcneil.com>
2523
2524 * configure.tgt: Add arm-vxworks target.
2525 * scripttempl/armcoff.sc: Support .text or .data as a section name
2526 prefix.
2527 Define _etext.
35714f2a 2528
7ce691ae
C
25292001-04-13 J.T. Conklin <jtc@redback.com>
2530
2531 * ld.texinfo: Document --fatal-warnings.
2532 * ld.1: Regenerate.
2533
2534 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 2535 warnings have been turned into errors.
7ce691ae
C
2536 * lexsup.c (OPTION_WARN_FATAL): Define.
2537 (ld_options): Entry for --fatal-warnings.
2538 (parse_args): Handle OPTION_WARN_FATAL.
2539 * ld.h (ld_config_type): Add fatal_warnings field.
2540
f5fa8ca2
JJ
25412001-04-13 Jakub Jelinek <jakub@redhat.com>
2542
2543 * ldmain.c (main): Default to discard_sec_merge.
2544 * lexsup.c (OPTION_DISCARD_NONE): Define.
2545 (ld_options): Add --discard-none.
2546 (parse_args): Handle OPTION_DISCARD_NONE.
2547 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2548 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2549 all its input sections match.
2550
fdec3cfc
L
25512001-04-05 Steven J. Hill <sjhill@cotw.com>
2552
2553 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2554 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2555 (eelf32ltsmip.c): New target.
2556 (eelf64btsmip.c): Likewise.
2557 (eelf64ltsmip.c): Likewise.
2558 * Makefile.in: Regenerated.
2559
2560 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2561 target.
2562 (mips*-*-linux-gnu*): Likewise.
2563
2564 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2565 MIPS taget.
35714f2a 2566 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
2567 target.
2568 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2569 endian target.
2570
589bad82
HPN
25712001-04-05 Hans-Peter Nilsson <hp@axis.com>
2572
2573 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2574 correct value of __Stext here.
2575 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2576 .startup section.
2577
2578 * emulparams/crislinux.sh: Remove FIXME.
2579
94202e16
AM
25802001-04-02 Alan Modra <alan@linuxcare.com.au>
2581
2582 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2583 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2584
1268a053
HPN
25852001-03-27 Hans-Peter Nilsson <hp@axis.com>
2586
2587 * configure.tgt (cris-*-*): Change default emulation to criself.
2588 (cris-*-*aout*): New rule.
2589
d85e9ff7
AM
25902001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2591
2592 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2593 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2594
0879a67a
AJ
25952001-03-26 Andreas Jaeger <aj@suse.de>
2596
2597 * ld.texinfo (Overview): Fix syntax in texi code.
2598
0285c67d
NC
25992001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2600
2601 * ld.texinfo: Put @c man indications to generate the ld man page.
2602 When generating man, define all the variables. Define SEEALSO
2603 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2604 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2605 (ld.1): Generate from ld.texinfo.
2606 * Makefile.in: Regenerate.
2607
c20ec07b
NC
26082001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2609
2610 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 2611 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 2612
cc5ce052
UD
26132001-03-17 Ulrich Drepper <drepper@redhat.com>
2614
2615 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2616 is an absolute path look only for this file and not along the path.
2617
a1ab1d2a
UD
26182001-03-17 Ulrich Drepper <drepper@redhat.com>
2619
2620 * emultempl/elf32.em (OPTION_GROUP): New macro.
2621 Add new option Bgroup to longopts.
2622 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2623 (gld*_list_options): Add -Bgroup and -z defs.
2624 * ld.1: Document -Bgroup and -z defs.
2625 * ld.texinfo: Likewise.
2626
788fca5a
MM
26272001-03-07 Michael Meissner <meissner@redhat.com>
2628
2629 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2630 with sections created by -fdata-sections.
2631 (.dynbss,.bss): Ditto.
2632
1c7566d1
AM
26332001-03-05 Alan Modra <alan@linuxcare.com.au>
2634
2635 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2636 after_allocation_default, not gld..._before_allocation.
2637
27b7e12d
AM
26382001-02-27 Alan Modra <alan@linuxcare.com.au>
2639
2640 * configure.in (BFD_VERSION): New.
2641 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2642 * configure: Regenerate.
2643 * Makefile.am: Run "make dep-am"
2644 * Makefile.in: Regenerate.
2645
2bc551c7
TW
26462001-02-26 Timothy Wall <twall@cygnus.com>
2647
2648 * emulparams/elf64_aix.sh: Add additional read-only sections;
2649 uncomment lines which are now required.
2650
1276aefa
NC
26512001-02-26 H.J. Lu <hjl@gnu.org>
2652
2653 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
2654 that problems can be caught whilst loading symbols.
2655 (record_bfd_errors): New function: Report BFD errors and mark
2656 the executable output as being invalid.
1276aefa 2657
41c49998
TW
26582001-02-22 Timothy Wall <twall@cygnus.com>
2659
2660 * configure.host: Add configuration for ia64-*-aix*.
2661 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2662 Add dependencies for eelf64_aix.c.
2663 * Makefile.in: Regenerate.
2664 * configure.tgt: Add ia64-*-aix* mapping.
2665 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 2666 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
2667 AIX-specific test.
2668
78f85fd7
L
26692001-02-20 H.J. Lu <hjl@gnu.org>
2670
2671 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2672 false if we found the file.
2673
1ac7e077 26742001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
2675
2676 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2677 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2678
e135f41b
NC
26792001-02-18 lars brinkhoff <lars@nocrew.org>
2680
2681 * Makefile.am: Add PDP-11 target.
2682 * configure.tgt: Likewise.
2683 * emulparams/pdp11.sh: New file.
2684
a842aceb
DB
26852001-02-17 David O'Brien <obrien@FreeBSD.org>
2686
2687 * configure.host: Add a generic FreeBSD configuration entry such that
2688 all [modern] FreeBSD systems on all platforms will look the same.
2689
24174db0
L
26902001-02-14 H.J. Lu <hjl@gnu.org>
2691
2692 * configure.tgt: Remove mention of earmelf_linux26.
2693
30c3c13a
RH
26942001-02-13 Richard Henderson <rth@redhat.com>
2695
2696 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2697
b46a87b1
L
26982001-02-13 H.J. Lu <hjl@gnu.org>
2699
2700 * ldexp.h (node_type): Add etree_provided.
2701 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2702 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 2703 for etree_provided.
b46a87b1
L
2704 (exp_print_tree): Handle etree_provided.
2705 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2706 etree_provided.
2707
f3988fd9
RH
27082001-02-09 David Mosberger <davidm@hpl.hp.com>
2709
2710 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2711 .IA_64.unwind.* pattern to unwind table section and
2712 .IA_64.unwind_info* pattern to unwind info section.
2713
a85d7ed0
NC
27142001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2715
2716 * Makefile.am: Add linux target for S/390.
2717 * Makefile.in: Likewise.
2718 * configure.host: Likewise.
2719 * configure.tgt: Likewise.
2720 * emulparams/elf64_s390.sh: New file.
2721 * emulparams/elf_s390.sh: New file.
2722
780248c4
JJ
27232001-02-09 Jakub Jelinek <jakub@redhat.com>
2724
2725 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2726 targ_extra_libpath.
2727 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2728
0e2534bd
PB
27292001-02-06 Philip Blundell <philb@gnu.org>
2730
2731 * Makefile.am: Remove mention of earmelf_linux26.
2732 * Makefile.in: Regenerate.
2733
46c1ea57
PB
27342001-02-04 Philip Blundell <philb@gnu.org>
2735
2736 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2737 * emulparams/armelf_linux26.sh: Delete.
2738 * configure.tgt: Remove mention of armelf_linux26 emulation.
2739
0088edd2
NC
27402001-02-01 Nick Clifton <nickc@redhat.com>
2741
2742 * ld.1: Replace occurances of -oformat with --oformat.
2743
02aa14fb
AM
27442001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2745
2746 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2747 load_base is specified.
2748
f813923c
HPN
27492001-01-24 Hans-Peter Nilsson <hp@axis.com>
2750
2751 * emultempl/elf32.em: Correct spelling in comments and listed
2752 options.
2753
c1eb1488
AM
27542001-01-23 Alan Modra <alan@linuxcare.com.au>
2755
2756 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2757 default for the first section of a group of overlay sections.
2758
d9fc3714
AM
27592001-01-22 Alan Modra <alan@linuxcare.com.au>
2760
2761 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2762 * Makefile.in: Regenerate.
2763 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2764 Check for null tool_dir.
2765
6be0ca94
JW
27662001-01-16 Jim Wilson <wilson@redhat.com>
2767
2768 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2769 and IA_64.unwind.info.
2770
b9247304
L
27712001-01-16 H.J. Lu <hjl@gnu.org>
2772
2773 * ldlang.c (lang_check): Merge the private data only if the
2774 input file has contents.
2775
577a0623
AM
27762001-01-14 Alan Modra <alan@linuxcare.com.au>
2777
d952f17a
AM
2778 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2779
ffd6e9de
AM
2780 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2781 enabling search for libmilli. On a relocatable link, make .text
2782 sections unique.
2783 (LDEMUL_AFTER_PARSE): Define.
2784 (hppaelf_finish): Correct spelling of relocatable in comments.
2785
577a0623
AM
2786 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2787 rummage through the script for sections on the unique list.
2788 Correct length of strncmp for ".note".
2789 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2790
2791 * ldlang.c (unique_section_list): New var.
2792 (unique_section_p): New function.
2793 (walk_wild_section): Don't match sections on unique_section_list.
2794 (lang_add_unique): New function.
ffd6e9de 2795 Correct spelling of relocatable in comments.
577a0623
AM
2796
2797 * ldlang.h (struct unique_sections): Declare.
2798 (unique_section_list): Declare.
2799 (unique_section_p): Declare.
2800 (lang_add_unique): Declare.
2801
2802 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2803 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2804
2805 * ld.texinfo (--unique): Update.
2806
b7ed8fad
NC
28072001-01-13 Nick Clifton <nickc@redhat.com>
2808
2809 * lexsup.c (parse_args): Remove spurious white space.
2810
d0398d6a
NC
28112001-01-12 Nick Clifton <nickc@redhat.com>
2812
2813 * lexsup.c (parse_args): Update copyright date.
2814
350fdb00
PB
28152001-01-12 Philip Blundell <pb@futuretv.com>
2816
2817 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2818
60c6797e
KH
28192001-01-10 Kazu Hirata <kazu@hxi.com>
2820
2821 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2822 * scripttempl/h8300h.sc: Fix formatting.
2823 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
2824 * scripttempl/h8500.sc: Likewise.
2825 * scripttempl/h8500b.sc: Likewise.
2826 * scripttempl/h8500c.sc: Likewise.
2827 * scripttempl/h8500m.sc: Likewise.
2828 * scripttempl/h8500s.sc: Likewise.
60c6797e 2829
482e8b32
DB
28302000-01-07 David O'Brien <obrien@BSDi.com>
2831
2832 * emultempl/elf32.em: Only perform Linux ld hints processing when
2833 targeting Linux.
2834
d7ed7ca6
PB
28352001-01-07 Philip Blundell <philb@gnu.org>
2836
2837 * ld.texinfo (Bug Reporting): Update email address for reports.
2838
0fc3347a
NC
28392000-12-31 Nick Clifton <nickc@redhat.com>
2840
2841 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2842 options by checking for a return value of '?' not -1.
2843
e4897a32
NC
28442000-12-28 Nick Clifton <nickc@redhat.com>
2845
2846 * lexsup.c (struct ld_option): Add new enum value:
2847 EXACTLY_TWO_DASHES.
2848 (ld_options[]): Change -omagic, -output and -oformat options
2849 to be EXACTLY_TWO_DASHES.
2850 (OUTPUT_COUNT): Use ARRAY_SIZE.
2851 (parse_args): Change parameter 'argc' to unsigned.
2852 Place EXACTLY_TWO_DASHES options into new really_longopts
2853 array.
2854 If getopt_long_only fails, try calling getopt_long using the
2855 really_longopts array.
2856 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2857 TWO_DASHES options.
2858
2859 * ldlex.h: Fix prototype of parse_args.
2860
2861 * ld.texinfo: Document that long options starting with 'o'
2862 must be preceeded by two dashes. Change example of a single
2863 dashed long option from -oformat to -trace-symbol.
2864
1122a5fc
NC
28652000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2866
2867 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2868 (longopts[]): New --no-default-excludes option.
2869 (gld_${EMULATION_NAME}_list_options): Document.
2870 (gld_${EMULATION_NAME}_parse_args): Handle.
2871
037849a9
NC
28722000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2873
2874 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2875 whitespace, it breaks the K&R C preprocessor.
2876
7ec229ce
DD
28772000-12-11 DJ Delorie <dj@redhat.com>
2878
2879 * ld.texinfo: Add notes about --whole-archive and gcc.
2880
b79e8c78
NC
28812000-11-18 Fred Fish <fnf@be.com>
2882
2883 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2884 (ld_options): Entry for --allow-shlib-undefined.
2885 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2886 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2887 to false.
2888 * ld.texinfo: Document new command line switch.
d952f17a 2889
9a8e2505
GK
28902000-12-12 Geoffrey Keating <geoffk@redhat.com>
2891
2892 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2893 .fixup is actually read/write.
2894 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2895 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2896 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2897
3b16e843 28982000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
2899
2900 * NEWS: Add note about x86_64 architecture.
2901
93b63cd3
DD
29022000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2903
2904 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2905 Set DWARF2 sections to a VMA of zero.
2906
68b2fc7a 29072000-12-01 Joel Sherrill <joel@OARcorp.com>
24f6971a 2908
d952f17a 2909 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
2910 New targets.
2911 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2912 (sparc*-*-rtems*): Switched from a.out to ELF.
2913
2be3aa03
NC
29142000-11-30 Jan Hubicka <jh@suse.cz>
2915
2916 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2917 (eelf_x86_64.c): New.
2918 * Makefile.in: Regenerate.
2919 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2920 * emulparams/elf_x86_64.sh: New.
2921
8c899858
HPN
29222000-11-30 Hans-Peter Nilsson <hp@axis.com>
2923
2924 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2925 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2926
2927 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2928 merging non-a.out sections into CONSTRUCTING.
2929
e47b9e39
NC
29302000-11-28 Nick Clifton <nickc@redhat.com>
2931
2932 * ld.1 (COPYING): Mention that the GNU Free Documentation
2933 License is present in the sources, but not the output, and
2934 also available from the GNU website.
2935 (GNU Free Documentation License): Comment out this section.
2936
ad95f82a
DB
29372000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2938
2939 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2940 does not use them.
2941
fd89e65f
DB
29422000-11-25 David O'Brien <obrien@FreeBSD.org>
2943
2944 * ld.1: Remove old date so it does not give the impression the manpage
2945 is way out of date.
2946
077b8428
NC
29472000-11-24 Nick Clifton <nickc@redhat.com>
2948
2949 * configure.tgt (xscale-coff): Add target.
2950 (xscale-elf): Add target.
2951
49425d28
NC
29522000-11-24 Fred Fish <fnf@be.com>
2953
d952f17a
AM
2954 * ldmain.c (main): Remove redundant init of config.make_executable
2955 to true.
49425d28 2956
d3480244
RH
29572000-11-15 Richard Henderson <rth@redhat.com>
2958
2959 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2960
1ce7de8b
KH
29612000-11-14 Kazu Hirata <kazu@hxi.com>
2962
2963 * scripttempl/h8300.sc: Fix formatting.
2964 * scripttempl/h8300h.sc: Likewise.
2965 * scripttempl/h8300s.sc: Likewise.
2966
3b16e843 29672000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
2968
2969 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2970
2e418547
PB
29712000-11-09 Philip Blundell <pb@futuretv.com>
2972
2973 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2974 around orphan sections whose names can be represented in C.
2975
c940e6fc
JW
29762000-11-07 Jim Wilson <wilson@redhat.com>
2977
2978 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2979 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2980
704c465c
NC
29812000-11-06 Nick Clifton <nickc@redhat.com>
2982
2983 * ld.texinfo: Add GNU Free Documentation License.
2984 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 2985 * ld.1: Add GNU Free Documentation License.
704c465c 2986
dca7760f
AM
29872000-11-05 Alan Modra <alan@linuxcare.com.au>
2988
2989 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2990 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2991
2992 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2993 Move 2000-11-02 Makefile.in changes to this file.
2994 * Makefile.in: Regenerate.
2995
40a633d5
NC
29962000-11-03 Nick Clifton <nickc@redhat.com>
2997
2998 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2999 constructors and destructors.
3000 * scripttempl/h8300h.sc: Ditto.
3001 * scripttempl/h8300s.sc: Ditto.
3002 * scripttempl/h8500.sc: Ditto.
3003 * scripttempl/h8500b.sc: Ditto.
3004 * scripttempl/h8500c.sc: Ditto.
3005 * scripttempl/h8500m.sc: Ditto.
3006 * scripttempl/h8500s.sc: Ditto.
3007 * scripttempl/v850.sc: Ditto.
3008 * scripttempl/w65.sc: Ditto.
3009 * scripttempl/z8000.sc: Ditto.
3010
59ff2774
NC
30112000-11-02 Per Lundberg <plundis@chaosdev.org>
3012
3013 * Makefile.in (e_i386_chaos.c): New rule.
3014 (ALL_EMULATIONS): Added e_i386_chaos.o.
3015 * emulparams/elf_i386_chaos.sh: New file.
3016 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3017
645571e1
JJ
30182000-10-20 Jakub Jelinek <jakub@redhat.com>
3019
3020 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3021 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3022 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3023 library path suffix.
3024 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3025
c5975a45
HPN
30262000-10-18 Hans-Peter Nilsson <hp@axis.com>
3027
3028 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3029 for consecutive sections.
3030
ea20a7da
CC
30312000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3032
d952f17a
AM
3033 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3034 options.
3035 * ld.texinfo: Added notes about this new option.
ea20a7da 3036
6e45556a
NC
30372000-10-16 Nick Clifton <nickc@redhat.com>
3038
3039 * emultempl/pe.em (_after_open): Add tests of return values from
3040 bfd functions. Emit appropriate error messages if necessary.
3041
b9a69188
NC
30422000-10-13 Nick Clifton <nickc@redhat.com>
3043
3044 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
3045 local variables - they are not used, but leave in the call to
3046 bfd_canonicalize_symtab.
b9a69188
NC
3047 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3048 pe_dll_search_prefix.
3049
627427de 30502000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 3051
627427de
DD
3052 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3053 (longopts): New --dll-search-prefix option.
3054 (gld_${EMULATION_NAME}_list_options): Document.
3055 (gld_${EMULATION_NAME}_parse_args): Handle.
3056 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3057 dynamically, search for a dll named '<prefix><basename>.dll'
3058 in preference to 'lib<basename>.dll' if --dll-search-prefix
3059 is specified.
3060
24376d1b
AM
30612000-10-12 Alan Modra <alan@linuxcare.com.au>
3062
3063 * ldlang.c (section_already_linked): Set kept_section instead of
3064 sec->comdat->sec.
3065
e47d05ad
KH
30662000-10-10 Kazu Hirata <kazu@hxi.com>
3067
3068 * deffile.h: Fix formatting.
3069 * lexsup.c: Likewise.
3070 * mri.c: Likewise.
3071
23a87948
DD
30722000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3073
3074 * pe-dll.c (make_one): Do not generate code thunk for DATA
3075 exports.
3076 (process_def_file): deduce DATA flag for auto-export sumbols.
3077
86b1cc60
KH
30782000-10-09 Kazu Hirata <kazu@hxi.com>
3079
89cdebba
KH
3080 * ld.h: Fix formatting.
3081 * ldcref.c: Likewise.
3082 * ldctor.h: Likewise.
3083 * ldemul.c: Likewise.
3084 * ldemul.h: Likewise.
3085 * ldexp.c: Likewise.
3086 * ldexp.h: Likewise.
3087 * ldfile.c: Likewise.
3088 * ldfile.h: Likewise.
3089 * ldlang.c: Likewise.
3090 * ldlang.h: Likewise.
3091 * ldmain.c: Likewise.
7bfd51a3
KH
3092 * pe-dll.c: Likewise.
3093
3094 * pe-dll.c: Revert some formatting fixes.
86b1cc60 3095
d643799d
KH
30962000-10-08 Kazu Hirata <kazu@hxi.com>
3097
3098 * pe-dll.c: Fix formatting.
3099
08da4cac
KH
31002000-10-05 Kazu Hirata <kazu@hxi.com>
3101
3102 * ldlang.c: Fix formatting.
3103
c2a94a7a
DD
31042000-10-03 DJ Delorie <dj@redhat.com>
3105
3106 * pe-dll.c (fill_edata): initialize entire block
3107 (make_one): fill in correct section.
3108
8c95a62e
KH
31092000-10-03 Kazu Hirata <kazu@hxi.com>
3110
3111 * ldexp.c: Fix formatting.
3112
486e80e2
DD
31132000-10-02 DJ Delorie <dj@redhat.com>
3114
3115 * emultempl/pe.em (gld_*_after_open): detect case where there two
3116 import libraries for same dll; rename one to ensure proper link
3117 order.
3118
3119 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3120 typo
3121 (generate_edata): fix typo
3122
24dd9f75
HPN
31232000-09-29 Hans-Peter Nilsson <hp@axis.com>
3124
3125 * scripttempl/crisaout.sc (ENTRY): Now __start.
3126 (.text): Add default setting for __start.
3127 Remove CONSTRUCTORS handling.
3128 (/DISCARD/): Add .gnu.warning.*.
3129 * emulparams/crislinux.sh (ENTRY): Now __start.
3130 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3131 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3132 (ENTRY): Now __start.
3133 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3134 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3135
4de2d33d
KH
31362000-09-29 Kazu Hirata <kazu@hxi.com>
3137
5cc18311
KH
3138 * deffile.h: Fix formatting.
3139 * ld.h: Likewise.
3140 * ldcref.c: Likewise.
4de2d33d 3141 * ldctor.c: Likewise.
5cc18311 3142 * ldctor.h: Likewise.
4de2d33d 3143 * ldemul.c: Likewise.
5cc18311 3144 * ldemul.h: Likewise.
4de2d33d 3145 * ldexp.c: Likewise.
5cc18311 3146 * ldexp.h: Likewise.
4de2d33d 3147 * ldfile.c: Likewise.
5cc18311 3148 * ldfile.h: Likewise.
4de2d33d 3149 * ldlang.c: Likewise.
5cc18311
KH
3150 * ldlang.h: Likewise.
3151 * lexsup.c: Likewise.
3152 * mri.c: Likewise.
3153 * pe-dll.c: Likewise.
4de2d33d 3154
45b1f63c
DD
31552000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3156
3157 * pe-dll.c (process_def_file): Uninitialized data wasn't
3158 exported with --export-all-symbols switch.
d952f17a 3159
45b1f63c
DD
31602000-09-28 DJ Delorie <dj@redhat.com>
3161
3162 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3163 noname work properly.
3164
47d89dba
AM
31652000-09-28 Alan Modra <alan@linuxcare.com.au>
3166
3167 * ld.texinfo (HPPA ELF32): New section.
3168
3169 * emultempl/hppaelf.em (group_size): New.
3170 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3171 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3172 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3173 options to prevent abbreviations matching.
3174 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3175 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3176
36bdbeec
NC
31772000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3178
3179 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3180 on the m68*-*-elf target. Make it support COFF input objects.
3181
6d5e62f8
KH
31822000-09-21 Kazu Hirata <kazu@hxi.com>
3183
3184 * ldmain.c: Fix formatting.
3185 * ldmisc.c: Likewise.
3186 * ldver.c: Likewise.
3187 * ldwrite.c: Likewise.
3188
e2eb67d9
AM
31892000-09-21 Alan Modra <alan@linuxcare.com.au>
3190
3191 * ldwrite.c (clone_section): Silence gcc warnings.
3192
b3ea3584
AM
31932000-09-20 Alan Modra <alan@linuxcare.com.au>
3194
3195 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3196 out of memory failure.
3197
3198 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3199 (clone_section): Handle out of memory failures. Rename var to
3200 avoid c++ reserved word.
3201
25f72752
AM
32022000-09-18 Alan Modra <alan@linuxcare.com.au>
3203
3204 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3205 stub_name param to stub_sec_name.
3206 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3207
0752970e
NC
32082000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3209
3210 * emultempl/m68kelf.em: New file.
3211 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3212 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3213 * Makefile.in: Regenerate.
3214
92b7e9d8
AM
32152000-09-15 Alan Modra <alan@linuxcare.com.au>
3216
3217 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3218 only as needed.
3219
9b14b192
NC
32202000-09-13 Nick Clifton <nickc@redhat.com>
3221
3222 * ldmain.c (multiple_definition): Disable relaxation if
3223 multiple symbol definitions are encountered - otherwise the
3224 linker could abort with an assertion failure.
3225
891fa266
NC
32262000-09-10 Nick Clifton <nickc@redhat.com>
3227
3228 * mri.c: Fix formatting.
3229
5d64ca4e
L
32302000-09-07 H.J. Lu <hjl@gnu.org>
3231
3232 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3233 * configure: Rebuild.
3234
dd94604f
L
32352000-09-07 H.J. Lu <hjl@gnu.org>
3236
3237 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3238 * Makefile.in: Rebuild.
3239
71bfc0ae
AM
32402000-09-07 Alan Modra <alan@linuxcare.com.au>
3241
3242 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3243 broken list handling. Create __start_SECNAME and __stop_SECNAME
3244 when no place-holder. Add some comments. Test both SEC_CODE and
3245 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 3246 Handle case where no output section statement created.
71bfc0ae 3247
4a428502
AO
32482000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3249
3250 * configure.tgt (sh-*-linux*): Added.
3251 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3252 * Makefile.in: Rebuilt.
3253 * emulparams/shelf_linux.sh: New file.
3254 * emulparams/shlelf_linux.sh: New file.
3255
f9989030
AM
32562000-09-06 Alan Modra <alan@linuxcare.com.au>
3257
3258 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3259 try shuffling sections when the orphan happens to be the place
3260 holder. Keep count of unique section names generated so we speed
3261 the search for a new name.
3262
58cccadb
AO
32632000-09-06 Alexandre Oliva <aoliva@redhat.com>
3264
3265 * configure: Rebuilt with new libtool.m4.
3266
5b343f5a
NC
32672000-09-05 Nick Clifton <nickc@redhat.com>
3268
3269 * Makefile.in: Regenerate.
3270 * aclocal.m4: Regenerate.
3271 * configure: Regenerate.
3272 * config.in: Regenerate.
3273 * po/ld.pot: Regenerate.
3274
3275 * ldint.texinfo: Remove CVS revision marker - it foils local
3276 comparisons.
3277
3278 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 3279
a854a4a7
AM
32802000-09-05 Alan Modra <alan@linuxcare.com.au>
3281
3231d22e
AM
3282 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3283 to stub section flags.
3284 (hppa_for_each_input_file_wrapper): New.
3285 (hppa_lang_for_each_input_file): New.
3286 (lang_for_each_input_file): Define to call above.
3287 (multi_subspace): New.
3288 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3289 (PARSE_AND_LIST_PROLOGUE): Define.
3290 (PARSE_AND_LIST_LONGOPTS): Define.
3291 (PARSE_AND_LIST_OPTIONS): Define.
3292 (PARSE_AND_LIST_ARGS_CASES): Define.
3293 (hppaelf_finish): Call elf32_hppa_set_gp.
3294 (hppaelf_set_output_arch): Remove.
3295 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3296
3297 * emulparams/hppalinux.sh (ELFSIZE): Define.
3298 (MACHINE): Define.
3299 (OTHER_READONLY_SECTIONS): Define.
3300 (DATA_PLT): Define.
3301 (GENERATE_SHLIB_SCRIPT): Define.
3302
5f992e62
AM
3303 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3304 to const throughout. Change `void *' to `PTR' throughout.
3305 (lang_memory_default): Function is local to file, add `static'.
3306
3307 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3308 (ehppalinux.c): Likewise.
3309 (earmelf.c): Likewise.
3310 (earmelf_linux.c): Likewise.
3311 (earmelf_linux26.c): Likewise.
3312 * Makefile.in: Regenerate.
3313
a854a4a7
AM
3314 * ld.h (ld_config_type): Add unique_orphan_sections.
3315 * lexsup.c (OPTION_UNIQUE): Define.
3316 (ld_options): Add "--unique".
3317 (parse_args): Handle it.
3318 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3319 search for an existing output section if unique_orphan_sections is
3320 set. Make use of bfd_get_unique_section_name rather than
3321 duplicating code here.
3322 * ld.texinfo: Describe --unique.
3323
3324 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3325 optional arg to split-by-file.
3326 (parse_args): Handle them.
3327 * ld.texinfo: Update description of these options.
3328 * ldwrite.c (clone_section): Pass in the section name. Replace
3329 local code with bfd_get_unique_section_name.
3330 (split_sections): Tidy code and comments. Use a list traversal
3331 more appropriate to the list construction. Handle cooked section
3332 sizes. Split when split_by_reloc reached rather than exceeded.
3333 Track section size and split when split_by_file reached. Fix
3334 link_order_tail (even though it's not used).
3335 (ldwrite): Modify condition for calling split_sections to suit
3336 changed split_by_reloc and split_by_file.
3337 * ldmain.c (main): Init config.split_by_reloc and
3338 config.split_by_file to -1.
3339 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3340 Change split_by_file to bfd_size_type.
3341
18e03609
NC
33422000-09-02 Nick Clifton <nickc@redhat.com>
3343
3344 * configure.in: Increase version number to 2.10.91.
3345 * NEWS: Mention new ability to support removal of duplicate DWARF2
3346 debug information.
3347 * configure: Regenerate.
3348 * aclocal.m4: Regenerate.
3349 * config.in: Regenerate.
3350
3a9d486c
NC
33512000-09-02 Daniel Berlin <dberlin@redhat.com>
3352
3353 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3354 sections.
a2b64bed 3355 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
3356 * scripttempl/elfd10v.sc: Ditto.
3357 * scripttempl/elfd30v.sc: Ditto.
3358 * scripttempl/elfi370.sc: Ditto.
3359 * scripttempl/elfm68hc11.sc: Ditto.
3360 * scripttempl/elfm68hc12.sc: Ditto.
3361 * scripttempl/elfi386beos.sc: Ditto.
3362 * scripttempl/v850.sc: Ditto.
50bbae35 3363
ac48eca1
AO
33642000-08-31 Alexandre Oliva <aoliva@redhat.com>
3365
3366 * acinclude.m4: Include libtool and gettext macros from the
3367 top level.
3368 * aclocal.m4, configure: Rebuilt.
3369
c13b1b77
NC
33702000-08-25 Nick Clifton <nickc@redhat.com>
3371
3372 * ldlang.c (open_output): When choosing the target for a
3373 particular endianness, do nothing if the target is not
3374 supported.
3375
dcb0bd0e
L
33762000-08-25 H.J. Lu <hjl@gnu.org>
3377
3378 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3379 check -rpath nor LD_RUN_PATH for cross link.
3380 * ld.texinfo: Document the change.
3381
5bcac8a4
HPN
33822000-08-24 Hans-Peter Nilsson <hp@axis.com>
3383
3384 * NEWS: Mention support for CRIS.
3385
6dd8c765
L
33862000-08-23 H.J. Lu <hjl@gnu.org>
3387
3388 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3389 the current runpath list from bfd_elf_get_runpath_list ()
3390 before search.
3391
ec4eb78a
L
33922000-08-22 H.J. Lu <hjl@gnu.org>
3393
3394 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3395 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3396 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3397 trace_file_tries is non-zero.
3398 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3399 if trace_file_tries is non-zero.
3400
3401 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 3402 * NEWS: Mention it.
ec4eb78a 3403
22b36938
JE
34042000-08-14 Jason Eckhardt <jle@cygnus.com>
3405
3406 * NEWS: Mention i860 support.
3407
d73e9da0
AS
34082000-08-14 Andreas Schwab <schwab@suse.de>
3409
3410 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 3411 syntax.
d73e9da0 3412
9ac4db9c
GK
34132000-08-10 Geoff Keating <geoffk@cygnus.com>
3414
3415 * scripttempl/elf.sc: Add a comment giving the correspondence
3416 between sections, per-datum sections, and linkonce sections. Make
3417 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3418 .sbss2.
3419
165589e4
JE
34202000-08-10 Jason Eckhardt <jle@cygnus.com>
3421
3422 * emulparams/elf32_i860.sh: New file.
3423 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3424 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3425 (eelf32_i860.c): New rule.
3426 * Makefile.in: Regenerate.
3427
345a835d
NC
34282000-08-10 Nick Clifton <nickc@cygnus.com>
3429
3430 * emulparams/mipspe.sh (ENTRY): Add definition.
3431
e374f1d9
NC
34322000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3433
3434 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3435 in error message.
3436
236d5abf
NC
34372000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3438
3439 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3440 the final size of .bss section.
3441 * scripttempl/elfm68hc12.sc: Likewise.
3442
4b209b22
AM
34432000-08-04 Alan Modra <alan@linuxcare.com.au>
3444
3445 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3446 gld${EMULATION_NAME}_parse_args for consistency. Combine
3447 lastoptind and prevoptind vars, and keep track of last optind.
3448 (gld_${EMULATION_NAME}_list_options): Rename to
3449 gld${EMULATION_NAME}_list_options.
3450
28423a68
AM
34512000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3452
3453 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3454 (i586-sco-sysv5uw7.1.0).
3455
b2009ff7
L
34562000-07-27 H.J. Lu <hjl@gnu.org>
3457
3458 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3459 (PARSE_AND_LIST_PROLOGUE): New.
3460 (PARSE_AND_LIST_LONGOPTS): Likewise.
3461 (PARSE_AND_LIST_OPTIONS): Likewise.
3462 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3463 (PARSE_AND_LIST_EPILOGUE): Likewise.
3464
04925e1e
AM
34652000-07-28 Alan Modra <alan@linuxcare.com.au>
3466
41392f03
AM
3467 * emultempl/armelf.em: Elide functions common to elf32.em,
3468 ie. most of the file.
3469 (arm_elf_after_open): New. Do arm specific things then call
3470 gld${EMULATION_NAME}_after_open.
3471 (arm_elf_before_allocation): New. Call
3472 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3473 (PARSE_AND_LIST_PROLOGUE): Define.
3474 (PARSE_AND_LIST_SHORTOPTS): Define.
3475 (PARSE_AND_LIST_LONGOPTS): Define.
3476 (PARSE_AND_LIST_OPTIONS): Define.
3477 (PARSE_AND_LIST_ARGS_CASES): Define.
3478 (LDEMUL_AFTER_OPEN): Define.
3479 (LDEMUL_BEFORE_ALLOCATION): Define.
3480 (LDEMUL_BEFORE_PARSE): Define.
3481 (LDEMUL_FINISH): Define.
3482
3483 * emultempl/hppaelf.em: Similarly zap most of this file.
3484 (hppaelf_add_stub_section): Prototype.
3485 (hppaelf_layaout_sections_again): Prototype.
3486 (hook_in_stub): Prototype.
3487 (LDEMUL_SET_OUTPUT_ARCH): Define.
3488 (LDEMUL_FINISH): Define.
3489 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3490
3491 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3492 (EXTRA_EM_FILE): New.
3493 * emulparams/armelf_linux.sh: Likewise.
3494 * emulparams/armelf_linux26.sh: Likewise.
3495 * emulparams/hppalinux.sh: Likewise.
3496 * emulparams/hppaelf.sh: Likewise.
3497 (NOP): Define.
3498
3499 * emultempl/elf32.em: Fix formatting.
3500 (EXTRA_EM_FILE): Source it.
3501 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3502 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3503 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3504 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3505 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3506 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3507 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3508 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3509 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3510 allow functions in this file to be overridden.
3511 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3512
3513 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3514
04925e1e
AM
3515 * emultempl/elf32.em: Reorganize file.
3516
88cdf297
NC
35172000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3518
3519 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3520 specific option to fit 64-bit executable in the lower
3521 31-bit address range. This is done by changing start
3522 address of .interp (the very first section of executable)
3523 and then setting EF_ALPHA_32BIT elf header flag.
3524
20bccb34
NC
35252000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3526
3527 * emultempl/m68kcoff.em: New file.
3528 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3529 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3530 generic.em.
3531 * Makefile.in: Regenerate.
3532
699845ef
L
35332000-07-20 H.J. Lu <hjl@gnu.org>
3534
3535 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3536 and "disable-new-dtags" to stop getopt from treating -d/-e as
3537 abbreviations for these options.
3538
6c1439be
L
35392000-07-20 H.J. Lu <hjl@gnu.org>
3540
3541 * ld.texinfo: Add documentation for --disable-new-dtags and
3542 --enable-new-dtags.
3543
3544 * ldmain.c (main): Initialize link_info.new_dtags to false.
3545
3546 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3547 --disable-new-dtags and --enable-new-dtags.
3548 (gld_${EMULATION_NAME}_list_options): Likewise.
3549
28c309a2
NC
35502000-07-05 Kenneth Block <krblock@computer.org>
3551
a2b64bed
NC
3552 * lexsup.c: Add optional style to demangle switch
3553 * ld.texinfo: Document optional style to demangle switch.
50bbae35 3554
9d06555c
HPN
35552000-07-20 Hans-Peter Nilsson <hp@axis.com>
3556
3557 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3558 ecrislinux.o.
3559 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3560 Regenerate dependencies.
3561 * Makefile.in: Rebuild.
3562 * configure.tgt (cris-*-*): New target.
3563 * emulparams/crisaout.sh, emulparams/criself.sh,
3564 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3565 * po/POTFILES.in, po/ld.pot: Regenerate.
3566
19e3be22
L
35672000-07-20 H.J. Lu <hjl@gnu.org>
3568
3569 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3570 Print out ignored -z options.
3571
e0ee487b
L
35722000-07-19 H.J. Lu <hjl@gnu.org>
3573
19e3be22
L
3574 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3575 (PARSE_AND_LIST_PROLOGUE): New.
3576 (PARSE_AND_LIST_LONGOPTS): Likewise.
3577 (PARSE_AND_LIST_OPTIONS): Likewise.
3578 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3579
3580 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3581
3582 * lexsup.c (ld_options): Comment out 'z'.
3583 (parse_args): Likewise.
3584
3585 * emultempl/elf32.em: Include "elf/common.h".
3586 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3587 options.
3588 (gld_${EMULATION_NAME}_list_options): Likewise.
3589
3590 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 3591
49e56c49
L
35922000-07-19 H.J. Lu <hjl@gnu.org>
3593
3594 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3595 bfd_elf_set_dt_needed_soname ().
3596
9d68bc82
DD
35972000-07-18 DJ Delorie <dj@cygnus.com>
3598
3599 * pe-dll.c (pe_dll_id_target): check object target name also
3600
53db15ed
HPN
36012000-07-18 Hans-Peter Nilsson <hp@axis.com>
3602
3603 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3604 ${INIT_END} if relocating.
3605 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3606
0ad8cf4c
DD
36072000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3608
a2b64bed 3609 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
3610 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3611 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3612 errors introduced by the old dynamic lib search order.
3613
874c8c99
DD
36142000-07-17 DJ Delorie <dj@cygnus.com>
3615
3616 * pe-dll.c (process_def_file): auto-export data items also
3617 (pe_process_import_defs): also see if _imp_ form needed
3618
5b4cf3f4
DD
36192000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3620
3621 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3622 for dll import libraries
3623
062739d1
NC
36242000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3625
3626 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 3627 gcc 2.95.2 and later.
062739d1 3628
1c64c4ed
NC
36292000-07-11 Kazu Hirata <kazu@hxi.com>
3630
50bbae35
AM
3631 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3632 message.
1c64c4ed 3633
b71e2778
AM
36342000-07-10 Alan Modra <alan@linuxcare.com.au>
3635
3636 * ldemul.h (struct lang_input_statement_struct): Remove forward
3637 declaration.
3638 (struct search_dirs): Likewise.
3639 * ldfile.h (struct lang_input_statement_struct): Likewise.
3640 Protect file from multiple inclusion.
3641 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3642 declaration from macro to file scope.
3643
3644 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3645 * ldgram.y: Likewise here.
3646 * ldlang.c: And here.
3647 * ldmain.c: And here.
3648 * mpw-elfmips.c: And here.
3649 * mpw-eppcmac.c: And here.
3650 * emultempl/aix.em: And here.
3651 * emultempl/armcoff.em: And here.
3652 * emultempl/armelf.em: And here.
3653 * emultempl/armelf_oabi.em: And here.
3654 * emultempl/beos.em: And here.
3655 * emultempl/elf32.em: And here.
3656 * emultempl/hppaelf.em: And here.
3657 * emultempl/linux.em: And here.
3658 * emultempl/lnk960.em: And here.
3659 * emultempl/pe.em: And here.
3660 * emultempl/sunos.em: And here.
3661 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3662 * mpw-idtmips.c: Ditto.
3663 * emultempl/generic.em: Ditto.
3664 * emultempl/gld960.em: Ditto.
3665 * emultempl/gld960c.em: Ditto.
3666 * emultempl/mipsecoff.em: Ditto.
3667 * emultempl/ticoff.em: Ditto.
3668 * emultempl/vanilla.em: Ditto.
3669
3670 * pe-dll.c: Include ldfile.h
3671 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3672
3673 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3674 arguments to bfd_elf32_size_dynamic_sections call.
3675 (gldelf32ebmip_place_orphan): Add missing arguments to
3676 lang_leave_output_section_statement call.
3677
2ef53d66
L
36782000-07-10 H.J. Lu <hjl@gnu.org>
3679
3680 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3681 DLL_SUPPORT.
3682 (strhash): Likewise.
3683 (compute_dll_image_base): Likewise.
3684 (pe_undef_found_sym): Likewise.
3685 (pe_undef_cdecl_match): Likewise.
3686 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3687 argument "arch" with ATTRIBUTE_UNUSED.
3688
9a8cbb09
AM
36892000-07-10 Alan Modra <alan@linuxcare.com.au>
3690
3691 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3692
3693 From Ryan Bradetich <rbradetich@uswest.net>
3694 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 3695
4900fc06
AM
36962000-07-09 Alan Modra <alan@linuxcare.com.au>
3697
3698 Changes to create multiple linker stubs, positioned immediately
3699 before the section where they are required.
3700 * emultempl/hppaelf.em: Include elf32-hppa.h.
3701 (stub_sec, file_chain): Delete.
3702 (hppaelf_create_output_section_statements): Don't make a stub
3703 section here.
3704 (hook_stub_info): New struct.
3705 (hook_in_stub): New function.
3706 (hppaelf_add_stub_section): New function.
3707 (hppaelf_finish): Do nothing for relocateable links. Modify the
3708 call to elf32_hppa_size_stubs. Move code for updating section
3709 layout from here...
3710 (hppaelf_layaout_sections_again): ..to here, a new function.
3711
3712 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3713 broken list handling. Pass in a pointer to the list.
3714 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3715 for above changes.
3716 (hppaelf_before_parse): Prototype.
3717 (hppaelf_set_output_arch): Prototype.
3718 (hppaelf_create_output_section_statements): Prototype.
3719 (hppaelf_delete_padding_statements): Prototype.
3720 (hppaelf_finish): Prototype.
3721
3722 Merge from elf32.em
3723 * emultempl/hppaelf.em: Include ctype.h.
3724 (struct orphan_save): New.
3725 (gld${EMULATION_NAME}_place_orphan): New.
3726 (output_rel_find): New.
3727 (hppaelf_get_script): Update from elf32.em.
3728 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3729 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 3730 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
3731
3732 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3733 ehppalinux.o, sort it. Regenerate dependencies.
3734 (ehppalinux.c): Depend on hppaelf.em
3735 * Makefile.in: Regenerate.
3736
3737 * configure.tgt: targ_emul=hppalinux for hppa*linux
3738
3739 * emulparams/hppalinux.sh: New.
3740 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3741
227aeb07
AM
37422000-07-08 Alan Modra <alan@linuxcare.com.au>
3743
3744 * lexsup.c (parse_args): Copy section name.
3745
28609fd4 37462000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 3747
2ef53d66 3748 * emultempl/pe.em: institute the following search order for
602e90d3
DD
3749 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3750 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3751 static lib (libfoo.a) if none of the above are found.
3752
5f577f7d
DD
37532000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3754
50bbae35 3755 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 3756 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 3757 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
3758 (gld_${EMULATION_NAME}_parse): Handle.
3759 (strhash): New static function.
50bbae35 3760 (compute_dll_image_base): New static function.
5f577f7d
DD
3761 (gld_${EMULATION_NAME}_set_symbols): Use.
3762
9a8cbb09 37632000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
3764
3765 * MAINTAINERS: new
3766
3548145d 37672000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
3768
3769 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3770 * emulparams/elf32btsmip.sh: New file.
3771 * Makefile.am: Add traditional mips target.
3772 * Makefile.in: Rebuild.
3773
67798033
L
37742000-07-01 H.J. Lu <hjl@gnu.org>
3775
3776 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3777 automake to use YLWRAP.
3778 * Makefile.in: Rebuild.
3779
0bdaf48b
AM
37802000-07-01 Alan Modra <alan@linuxcare.com.au>
3781
3782 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3783 (CLEANFILES): Add DEPA.
3784 * Makefile.in: Regenerate.
3785
c9e769c2
TW
37862000-06-30 Timothy Wall <twall@ppc>
3787
3788 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3789 the page in the upper octet of the address.
3790
65aa24b6
NC
37912000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3792
3793 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3794
4667035e
AM
37952000-06-24 Alan Modra <alan@linuxcare.com.au>
3796
3797 * NEWS: arm-elf does --gc-sections too.
3798
1581f8c9
AM
37992000-06-22 Alan Modra <alan@linuxcare.com.au>
3800
3801 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3802 find one.
3803 * Makefile.in: Regenerate.
3804
01580992
L
38052000-06-21 H.J. Lu <hjl@gnu.org>
3806
3807 * Makefile.am: Rebuild dependency.
3808 * Makefile.in: Rebuild.
3809
bbeb2e03
L
38102000-06-20 H.J. Lu <hjl@gnu.org>
3811
3812 * Makefile.am: Rebuild dependency.
3813 * Makefile.in: Rebuild.
3814
74459f0e
TW
38152000-06-20 Timothy Wall <twall@cygnus.com>
3816
3817 * scripttempl/tic54xcoff.sc: New.
3818 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3819 * gen-doc.texi: Add flag for TI COFF.
3820 * ld.texinfo: Add documentation for TI COFF handling switches.
3821 * emultempl/ticoff.em: New. TI COFF handling.
3822 * configure.tgt: Add tic54x target.
3823 * Makefile.am: Add tic54x target.
3824 * Makefile.in: Ditto.
3825
2ab47eed
AM
38262000-06-20 Alan Modra <alan@linuxcare.com.au>
3827
3828 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3829 checking for backslashes.
3830
919e4093
AM
38312000-06-19 Alan Modra <alan@linuxcare.com.au>
3832
3833 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3834
987fd5b4
AM
38352000-06-18 Alan Modra <alan@linuxcare.com.au>
3836
3837 * NEWS: Update list of targets supporting --gc-sections.
3838
3839 * scripttempl/elf.sc: KEEP .eh_frame contents.
3840 * scripttempl/elfd30v.sc: Same here.
3841
60bcf0fa
NC
38422000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3843
3844 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3845 and m68hc11 (elf).
3846 * Makefile.in: Rebuild.
3847 * configure.tgt: Recognize m68hc12 and m68hc11.
3848 * scripttempl/elfm68hc12.sc: New file.
3849 * emulparams/m68hc12elfb: New emulation.
3850 * emulparams/m68hc12elf: New emulation.
3851 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3852 (includes a memory.x script to define the ROM and RAM banks).
3853 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3854 New configuration files for support of Motorola 68hc11
3855
c7c54483
AM
38562000-06-15 Alan Modra <alan@linuxcare.com.au>
3857
3858 * ldmain.c (main): Only change SEC_READONLY for final link.
3859
bcef29e6
L
38602000-06-13 H.J. Lu <hjl@gnu.org>
3861
3862 * configure: Regenerate.
3863
946efd95
DB
38642000-06-08 David O'Brien <obrien@FreeBSD.org>
3865
3866 * configure.in (VERSION): Update to show this is the CVS mainline.
3867
57a6fd07
DB
38682000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3869
3870 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3871 input objects to be ECOFF.
3872 (check_sections): einfo takes %B, not %P, to print a BFD name.
3873
e06cae36
L
38742000-06-05 Michael Matz <matz@ifh.de>
3875
3876 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 3877 version scripts.
e06cae36 3878
d952f17a 3879 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 3880
2f0b56c0
DC
38812000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3882
3883 * emulparams/avr1200.sh (STACK): Define as 0.
3884 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3885 * emulparams/avr4433.sh (STACK): Likewise.
3886 * emulparams/avr44x4.sh (STACK): Likewise.
3887 * emulparams/avr85xx.sh (STACK): Likewise.
3888 * emulparams/avrmega103.sh (STACK): Likewise.
3889 * emulparams/avrmega161.sh (STACK): Likewise.
3890 * emulparams/avrmega603.sh (STACK): Likewise.
3891 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3892 (__stack): Define from ${STACK} for main().
3893
2114f57b
AM
38942000-05-26 Alan Modra <alan@linuxcare.com.au>
3895
3896 * Makefile.am: Update dependencies with "make dep-am"
3897 * Makefile.in: Regenerate.
3898
5af11cab
AM
38992000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3900
3901 * ldmain.c: Include filenames.h.
3902 (set_scripts_dir): Support backslashes in program name.
3903
1f0df59a
NC
39042000-05-22 Igor Shevlyakov <igor@windriver.com>
3905
3906 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
3907 read-only, don't forget to reset SEC_READONLY because it
3908 could be already set.
1f0df59a 3909
176355da
NC
39102000-05-22 Thomas de Lellis <tdel@windriver.com>
3911
50bbae35
AM
3912 * ld.1: Add documentation for new command line option:
3913 --section-start <sectionname>=<sectionorg>
3914 This is a generic version of -Ttext etc. which accepts
3915 any section name as a parameter instead of just text/data/
3916 bss.
3917 * ld.texinfo: More docs.
3918 * NEWS: More docs.
3919 * lexsup.c: (parse_args): Recognize new command line option.
176355da 3920 (ld_options): Add new option.
50bbae35 3921
8c5ff972
L
39222000-05-18 H.J. Lu <hjl@gnu.org>
3923
3924 * lexsup.c (parse_args): `i' == `r', not `q'.
3925
3b16e843 39262000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
3927
3928 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3929
a712da20
NC
39302000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3931 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 3932
a712da20
NC
3933 Add support for '-q' == '--emit-relocs' switch.
3934 * ldmain.c (main): Default to false.
3935 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3936 * NEWS: Describe the emitrelocations switch.
3937 * ld.texinfo: Describe the emitrelocations switch.
3938
690a460e
NC
39392000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3940
a2b64bed 3941 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
3942 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3943 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3944 link options.
50bbae35 3945
c2f1343c
AM
39462000-05-15 David O'Brien <obrien@FreeBSD.org>
3947
3948 * lexsup.c (parse_args): Update the year in the copyright notice.
3949
897083bd
AM
39502000-05-13 Alan Modra <alan@linuxcare.com.au>
3951
3952 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3953 Replace defines with those from intl/libgettext.h to quieten gcc
3954 warnings.
3955
cd4c806a
L
39562000-05-10 H.J. Lu <hjl@gnu.org>
3957
3958 * ldlang.c (open_input_bfds): Don't load the same file within
3959 a group again if the whole archive has been loaded already.
3960
93697284
AM
39612000-05-03 Alan Modra <alan@linuxcare.com.au>
3962
3963 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3964 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3965 strtoul.
3966
3b16e843 39672000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 3968
99a4150f 3969 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 3970
ebd6fc29
JW
3971 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3972 host "ia64-*-linux-gnu*".
3973
a1934524
AM
39742000-04-29 Andreas Jaeger <aj@suse.de>
3975
3976 * ld.h: Correctly check GCC version.
3977
3b16e843 39782000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
3979
3980 * Makefile.am: Add PA64 support. Add missing dependencies for
3981 PA32 elf support.
3982 * Makefile.in: Rebuilt.
3983 * configure.tgt: Add PA64 support (currently disabled).
3984
aea4bd9d
AM
39852000-04-25 Alan Modra <alan@linuxcare.com.au>
3986
3987 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3988 (output_rel_find): New function.
3989 (hold_section, hold_use): Delete.
3990 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3991 hold_interp): Make local to place_orphan.
3992 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3993 rather than place_section to find possible previous use of orphan.
3994 Similarly find the place-holder output sections. Use returned
3995 value from lang_enter_output_section_statement rather than calling
3996 lang_output_section_statement_lookup.
3997 * emultempl/armelf.em: Same here.
3998 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3999
4000 * ldlang.c (lang_enter_output_section_statement): Return output
4001 section statement.
4002 * ldlang.h (lang_enter_output_section_statement): Change
4003 declaration too.
4004
4005 * ldlang.h (lang_output_section_statement): Export it.
4006 * ldlang.c (lang_output_section_statement): Ditto.
4007
2b5fc1f5
NC
40082000-04-24 Nick Clifton <nickc@cygnus.com>
4009
4010 * ld.texinfo (Output Section Data): Add note that section data
4011 commands cannot appear outside of section directives.
4012
d8475ff6
JL
40132000-04-2 Matthew Green <mrg@cygnus.com>
4014
4015 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4016
3b16e843
NC
40172000-04-21 Richard Henderson <rth@cygnus.com>
4018 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
4019
4020 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4021 (eelf64_ia64.c): New rule.
4022 * Makefile.in: Rebuild.
4023 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4024 * emulparams/elf64_ia64.sh: New file.
50bbae35 4025
c9637625
RH
40262000-04-21 Richard Henderson <rth@cygnus.com>
4027
4028 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4029
28ea9521
AM
40302000-04-19 Alan Modra <alan@linuxcare.com.au>
4031
4032 * dep-in.sed: Match space at start of file name, not at end.
4033
20d04697
L
40342000-04-18 H.J. Lu <hjl@gnu.org>
4035
4036 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4037 lang_leave_output_section_statement () after calling
4038 lang_enter_output_section_statement ().
4039 * emultempl/armelf.em: Likewise.
4040
5ba47421
AM
40412000-04-18 Alan Modra <alan@linuxcare.com.au>
4042
4043 * emultempl/elf32.em (struct orphan_save): Add section field.
4044 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4045 better order, and place first orphan section as we did before the
4046 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4047 Don't call make_bfd_section here, let wild_doit do the job for us.
4048 Don't build a statement list when we'll only throw it away.
4049 * emultempl/armelf.em: Ditto.
4050 * emultempl/pe.em: Similarly.
4051
bdbe5705
GK
40522000-04-14 Geoff Keating <geoffk@cygnus.com>
4053
4054 * scripttempl/elfppc.sc: Remove.
4055 * emulparams/elf32ppc.sh: Use elf.sc.
4056 * emulparams/elf32lppc.sh: Use elf.sc.
4057 * emulparams/elf32ppclinux.sh: Use elf.sc.
4058 * emulparams/elf32ppcsim.sh: New file.
4059 * emulparams/elf32lppcsim.sh: New file.
4060 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4061 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4062 * Makefile.in: Regenerate.
4063 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4064
01cc8ff8
AM
40652000-04-14 Alan Modra <alan@linuxcare.com.au>
4066
5ba47421 4067 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 4068 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
4069 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4070 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
4071 Also set all relocateable section start addresses.
4072
6c86c541
GK
40732000-04-13 Geoff Keating <geoffk@cygnus.com>
4074
4075 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4076 Add new BSS_PLT variable for when .plt need not be contained in
4077 the file. Move _etext so that it is also after .fini, and provide
4078 both etext and _etext with a leading underscore. Mark the start
4079 and end of .sbss.
4080
6a345e87
AM
40812000-04-12 Alan Modra <alan@linuxcare.com.au>
4082
4083 * emultempl/elf32.em (struct orphan_save): New.
4084 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4085 hold_interp): Make them struct orphan_save.
4086 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4087 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4088 the end of the relevant section list. Also add associated section
4089 statements to the end of any previous orphan statements.
4090 * emultempl/armelf.em: Similarly.
4091 * emultempl/pe.em: Similarly.
4092
8be86746
AM
40932000-04-11 Alan Modra <alan@linuxcare.com.au>
4094
4095 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4096
3b16e843 40972000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 4098
a2d91340 4099 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 4100 --enable-build-warnings option.
a2d91340
AC
4101 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4102 * Makefile.in, configure: Re-generate.
4103
41b49281
AM
41042000-04-04 Alan Modra <alan@linuxcare.com.au>
4105
8ad3436c
AM
4106 * po/ld.pot: Regenerate.
4107
4108 * lexsup.c (help): Restore translated part of bug string.
4109
41b49281
AM
4110 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4111 (DEP): Quote when passing vars to sub-make. Add warning message
4112 to end.
4113 (DEP1): Rewrite for "gcc -MM".
4114 (CLEANFILES): Add DEP2.
4115 Update dependencies.
4116 * Makefile.in: Regenerate.
4117
c20f4f8c
AM
41182000-04-03 Alan Modra <alan@linuxcare.com.au>
4119
4120 * ld.h: #include "bin-bugs.h"
4121 * lexsup.c (help): Use REPORT_BUGS_TO.
4122
adde6300
AM
41232000-03-27 Denis Chertykov <denisc@overta.ru>
4124
4125 * configure.tgt (avr-*-*): New target support.
4126 * Makefile.am: Likewise.
4127 * scripttempl/elf32avr.sc: New script file.
4128 * emulparams/avr1200.sh: New file.
4129 * emulparams/avr23xx.sh: New file.
4130 * emulparams/avr4433.sh New file.
4131 * emulparams/avr44x4.sh New file.
4132 * emulparams/avr85xx.sh New file.
4133 * emulparams/avrmega103.sh New file.
4134 * emulparams/avrmega161.sh New file.
4135 * emulparams/avrmega603.sh New file.
4136 * Makefile.in: Regenerate.
4137
9282ff41
L
41382000-03-09 Andreas Jaeger <aj@suse.de>
4139
4140 * Makefile.am (check-DEJAGNU): Also unset LANG.
4141 * Makefile.in: Rebuild.
4142
a9998805
ILT
41432000-03-06 Ian Lance Taylor <ian@zembu.com>
4144
4145 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4146 archive.
4147
f9bc20e7
NC
41482000-03-02 H.J. Lu <hjl@gnu.org>
4149
4150 * emulparams/elf32mcore.sh: Include "getopt.h".
4151
4e277b38
ILT
41522000-03-01 Ian Lance Taylor <ian@zembu.com>
4153
4154 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4155
f0c87f88
NC
41562000-03-01 H.J. Lu <hjl@gnu.org>
4157
4158 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4159 * emulparams/shpe.sh: Likewise.
4160
41612000-03-01 Nick Clifton <nickc@cygnus.com>
4162
4163 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4164 to unused parameters.
4165
4166 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4167 functions only used by DLL code.
4168 (_place_orphan): Initialise 'dollar'.
4169
b6f29aaa
L
41702000-03-01 H.J. Lu <hjl@gnu.org>
4171
4172 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4173 indicate if the undefined symbol is a fatal error or not.
4174 Don't delete the output file if "fatal" is false.
4175
af28fce3
L
41762000-02-29 H.J. Lu <hjl@gnu.org>
4177
50bbae35 4178 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
4179 Set LC_COLLATE and LC_ALL to null and export them. It is for
4180 sort which expects the C locale.
4181 Add $(LIBS) to all $(HOSTING_LIBS).
4182 * Makefile.in: Rebuild.
4183
40d109bf
AM
41842000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4185
4186 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4187 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4188 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4189 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4190 find_potential_libraries.
4191
db5be682
JB
41922000-02-28 Jim Blandy <jimb@redhat.com>
4193
4194 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 4195 list entries; the lexer considers commas to be valid part of a
db5be682
JB
4196 filename, so in something like `foo, bar' the comma is considered
4197 part of the first filename, `foo,'.
4198 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4199
3558ff4c
ILT
42002000-02-27 Loren J. Rittle <ljrittle@acm.org>
4201
4202 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4203 host "i[3456]86-*-freebsdelf*".
4204
4eee2681
ILT
42052000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4206
4207 * scripttempl/i386go32.sc: Move misplaced semicolons.
4208
8d75d12d
ILT
42092000-02-25 Ian Lance Taylor <ian@zembu.com>
4210
4211 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4212 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4213 (eelf64hppa.c, ehppaelf.c): Remove targets.
4214 * Makefile.in: Rebuild.
4215
a1836d49
AO
42162000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4217
ad51fb57
AO
4218 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4219 GNU/Linux/sparc, but keep the default as 32.
4220
a1836d49
AO
4221 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4222 it default if sparcv9 or sparc64.
4223
344a211f
NC
42242000-02-24 Nick Clifton <nickc@cygnus.com>
4225
4226 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4227 * Makefile.in: Regenerate.
4228 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4229
4230 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4231 find_potential_libraries.
4232 * ldemul.c (ldemul_find_potential_libraries): New function.
4233
4234 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 4235 exported.
344a211f
NC
4236 (ldfile_open_file): Call ldemul_find_potential_libraries.
4237 * ldfile.h: Add prototype for ldfile_open_file_search.
4238
4239 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4240
4241 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4242 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4243
4244 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4245 (gld_X_find_potential_libraries): New function. Search for
4246 libraries called "*.lib".
4247
a2b64bed 4248 * scripttempl/pe.sc: Add .pdata section.
344a211f 4249
eaba1dd3
RH
42502000-02-23 Richard Henderson <rth@cygnus.com>
4251
4252 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4253 Add and use memory regions.
4254
5b93d8bb
AM
42552000-02-23 Linas Vepstas (linas@linas.org)
4256
4257 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4258
4259 * Makefile.am: Add support for Linux/IBM 370.
4260 * configure.tgt: Likewise.
4261
4262 * Makefile.in: Regenerate.
4263
f6af82bd
AM
42642000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4265
4266 * ldlang.c (print_input_section, print_data_statement,
4267 print_reloc_statement, print_padding_statement, insert_pad,
4268 size_input_section, lang_check_section_addresses,
4269 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 4270 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
4271 (lang_do_assignments): Also change `size' to unsigned.
4272
9e673ad1
RH
42732000-02-16 Richard Henderson <rth@cygnus.com>
4274
4275 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4276
562d3460
TW
42772000-02-16 Timothy Wall <twall@cygnus.com>
4278
4279 * mri.c (mri_draw_tree): Add default LMA region argument to call
4280 to lang_leave_output_section_statement.
4281 * ldlang.h: Update prototypes with LMA region arguments.
4282 * ldlang.c (lang_size_sections): Encapsulate region bounds
4283 checking in os_check_region call.
4284 (os_check_region): New function.
4285 (lang_output_section_statement_lookup): Initialize lma_region.
4286 (lang_leave_output_section_statement): Add LMA region argument.
4287 (lang_leave_overlay): Ditto.
4288 * ldgram.y: Handle LMA region syntax.
4289 * ld.texinfo (Output Section Description): Describe LMA region usage.
4290 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 4291 lma region in call to lang_leave_output_section_statement.
562d3460 4292 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 4293 lma region in call to lang_leave_output_section_statement.
562d3460 4294 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 4295 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
4296
4297
9e4ed18c
TW
42982000-02-04 Timothy Wall <twall@redhat.com>
4299
4300 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4301 octets when calculating section end addresses.
4302
32edc927
TW
43032000-02-04 Timothy Wall <twall@redhat.com>
4304
4305 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4306
4cbfc3ac
TW
43072000-02-03 Timothy Wall <twall@redhat.com>
4308
a2b64bed 4309 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 4310 octet count.
a2b64bed 4311 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
4312 print_reloc_statement, print_padding_statement): Print target
4313 address values and section sizes as bytes, not octets.
4314 (insert_pad) Calculate padding size in octets, and adjust "dot"
4315 by bytes.
4316 (size_input_section) Always adjust "dot" by bytes, not octets.
4317 (lang_check_section_addresses, lang_do_assignments) Adjust
4318 "dot" by bytes, not octets. Use the larger of the directive size
4319 or octets_per_byte for the number of octets actually allocated in
4320 the output section.
4321 (lang_set_startof) Make sure STARTOF returns a target address.
4322 (lang_one_common) Record size changes in octets.
4323 (lang_abs_symbol_at_end_of) Section end symbol's value is
4324 recorded in target bytes.
68b2fc7a 4325 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4cbfc3ac 4326 to be clear about behavior when an octet is smaller than one byte.
50bbae35 4327
305c7206
AM
43282000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4329
4330 * ldcref.c (output_cref): Don't pass message strings to printf
4331 as format arg.
4332 Update copyright.
4333
4334 * ldmisc.c (vfinfo): Same here.
4335 Update copyright.
4336
e1c47aa4
AM
43372000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4338
4339 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4340 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4341 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4342 Add missing NULL initialisers, and comments.
4343
4344 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4345
13392b77
NC
43462000-01-21 Nick Clifton <nickc@cygnus.com>
4347
4348 * ldlang.c (lang_size_sections): Fix typo in comment.
4349
cce4c4c5
NC
43502000-01-18 H.J. Lu <hjl@gnu.org>
4351
4352 * ldlang.c (lang_size_sections): Also update the current
4353 address of a region if the SEC_NEVER_LOAD bit is not set.
4354
0decc840
NC
43552000-01-10 Philip Blundell <pb@futuretv.com>
4356
4357 * configure.tgt (arm*-*-conix*): New target.
4358
4e53152f
NC
43592000-01-07 Nick Clifton <nickc@cygnus.com>
4360
4361 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
4362 line switches with -Wl, (or whatever is appropriate) if it is
4363 being invoked by a comnpiler driver program.
50bbae35 4364 Fix description of the behaviour of the -n command line switch.
4e53152f 4365
3b16e843 43662000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
4367
4368 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4369 (name_list): New.
4370 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4371 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4372 (exclude_name_list): New.
4373 ldlang.c (walk_wild_section): Support list of excluded files.
4374 (print_wild_statement): Likewise.
4375 (lang_add_wild): Likewise.
4376 * ldlang.h (lang_wild_statement_type): Likewise.
4377 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 4378
5aaace27
NC
43792000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4380
870df5dc
NC
4381 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4382 (process_def_file): Use.
4383 (pe_dll_compat_implib): New variable.
4384 (make_one): Use.
50bbae35 4385
870df5dc
NC
4386 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4387 pe_dll_compat_implib.
50bbae35
AM
4388
4389 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
4390 compat-implib options.
4391 (gld_${EMULATION_NAME}_list_options): List new options.
4392 (gld_${EMULATION_NAME}_parse_args): Handle.
4393
50bbae35 4394 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 4395 dll.
50bbae35
AM
4396
4397 * deffilep.y (opt_name): Allow "." in name.
5aaace27 4398
2f6d2f85 4399For older changes see ChangeLog-9899
252b5132
RH
4400\f
4401Local Variables:
4402mode: change-log
4403left-margin: 8
4404fill-column: 74
4405version-control: never
4406End:
This page took 0.413158 seconds and 4 git commands to generate.