2002-06-20 Michal Ludvig <mludvig@suse.cz>
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
7d0a848e
CD
12002-06-18 Chris Demetriou <cgd@broadcom.com>
2
3 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
4 section flags for SEC_DATA, rather than for SEC_CODE being unset.
5
8505f884
CD
62002-06-18 Chris Demetriou <cgd@broadcom.com>
7
8 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
9 format specifier used to print BFD name.
10
7d553a40
DB
112002-06-18 Dave Brolley <brolley@redhat.com>
12
13 From Catherine Moore, Michael Meissner, Jim Blandy:
14 * emulparams/elf32frv.sh: New file.
15 * configure.tgt: Support frv-*-*.
16 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
17 (eelf32frv.c): New target.
18
82434356
TR
192002-06-17 Tom Rix <trix@redhat.com>
20
21 * emultempl/elf32.em: gld*_get_script: Check for
22 GENERATE_COMBRELOC_SCRIPT.
23 * scripttempl/elfd10v.sc : Fix STACK and INSN.
24 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
25
5d9b5481
JR
26Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
27
28 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
29
c4bb8067
L
302002-06-12 H.J. Lu <hjl@gnu.org>
31
32 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
33 false if xvec doesn't match.
34
e052cfbe
RS
352002-06-10 Richard Sandiford <rsandifo@redhat.com>
36
37 * ldlang.c (lang_size_sections_1): Skip removed output sections.
38
4da711b1
AM
392002-06-08 Alan Modra <amodra@bigpond.net.au>
40
41 * ldexp.c: Replace CONST with const.
42 * ldfile.c: Likewise.
43 * ldfile.h: Likewise.
44 * ldlex.l: Likewise.
45 * mri.c: Likewise.
46 * pe-dll.h: Likewise.
47
eb95bb9a
AM
482002-06-07 Alan Modra <amodra@bigpond.net.au>
49
50 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
51
e0076ab3
NC
522002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
53
54 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
55 to -1 == implicit enable.
56 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
57 initialize link_info.pei386_auto_import to -1 == implicit
58 enable.
59 (gld_${EMULATION_NAME}_parse_args): When processing
60 --enable-auto-import and --disable-auto-import options, use
61 '1' and '0' instead of 'true' and 'false'.
62 (pe_find_data_imports): Only issue message about auto-import
63 when the feature is implicitly enabled. Downgrade message to
64 informational instead of warning.
65
f13a5424
AM
662002-06-07 Alan Modra <amodra@bigpond.net.au>
67
68 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
69
1abffd82
JL
702002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
71
72 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
73 HOSTING_CRT0 and HOSTING_LIBS.
74
e0076ab3 752002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
7a33bc10
JR
76
77 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
78
4a5e698d
JT
792002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
80
81 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
82 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
83
1d475d82
AM
842002-06-05 Alan Modra <amodra@bigpond.net.au>
85
86 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
87 SEC_EXCLUDE sections when doing a relocatable link.
88
5b0e55b6
JT
892002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
90
91 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
92 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
93 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
94 (eshlelf64_nbsd.c): New rules.
95 * Makefile.in: Regenerate.
96 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
97 (sh64-*-netbsd*): New targets.
98 * emulparams/shelf32_nbsd.sh: New file.
99 * emulparams/shelf64_nbsd.sh: New file.
100 * emulparams/shlelf32_nbsd.sh: New file.
101 * emulparams/shlelf64_nbsd.sh: New file.
102
9ad85d9b
AM
1032002-06-04 Alan Modra <amodra@bigpond.net.au>
104
105 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
106
0c9b4fee
MM
1072002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
108
109 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
110 C++ constructors/destructors, loosely based on the m68hc11 port.
111
2c538bde
AM
1122002-05-31 Alan Modra <amodra@bigpond.net.au>
113
114 * Makefile.in: Regenerate.
115 * aclocal.m4: Regenerate.
116 * config.in: Regenerate.
117 * configure: Regenerate.
118
a0cb91c6
AM
1192002-05-31 Graeme Peterson <gp@qnx.com>
120
121 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
122 (ei386nto.c): Add rule.
123 * Makefile.in: Regenerate.
124 * configure.tgt: Add i[3456]86-*-nto-qnx*.
125 * emulparams/i386nto.sh: New file.
126
37020578
JT
1272002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
128
129 * NEWS: Add entry for VAX ELF support.
130
ab68f3e0
JT
1312002-05-29 Matt Thomas <matt@3am-software.com>
132 Jason Thorpe <thorpej@wasabisystems.com>
133
134 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
135 (eelf32vax.c)
136 (evaxnbsd.c): New rules.
137 * Makefile.in: Regenerate.
138 * configure.tgt (vax-*-netbsdelf*)
139 (vax-*-netbsdaout*)
140 (vax-*-netbsd*): New targets.
141 * emulparams/elf32vax.sh: New file.
142 * emulparams/vaxnbsd.sh: New file.
143
8afb0e02
NC
1442002-05-29 Adam Nemet <anemet@lnxw.com>
145
146 * emultempl/armelf.em (arm_elf_after_open): Don't determine
147 bfd_for_interwork, instead add glue sections to each input bfd.
148 (bfd_for_interwork): New global.
149 (arm_elf_set_bfd_for_interworking): New function.
150 (arm_elf_before_allocation): Use it.
151
d172d4ba
NC
1522002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
153
154 * Makefile.am: Add DLX make target.
155 * configure.tgt: Add DLX configuration.
156 * Makefile.in: Regenerate.
157 * emulparams/elf32_dlx.sh: New file
158 * scripttempl/dlx.sc: New file
159
b4477fa8
NC
1602002-05-27 Per Lundberg <per@caleb.dnsalias.org>
161
162 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
163 * Makefile.in: Regenerate.
164 * emulparams/elf_chaos.sh: Use elf_chaos script.
165 * scripttempl/elf_chaos.sc: New file.
166
ee3cc2e2
RS
1672002-05-27 Richard Sandiford <rsandifo@redhat.com>
168
169 * ldlang.c (lang_size_sections_1): Move check for conflicting load
170 addresses and regions from here...
171 (lang_get_regions): ...to this new function.
172 (lang_leave_output_section_statement): Use lang_get_regions.
173 (lang_leave_overlay): Likewise.
174 * mri.c (mri_draw_tree): Pass null as last argument to
175 lang_leave_output_section_statement.
176 * emultempl/elf32.em (gld*_place_orphan): Likewise.
177 * emultempl/mmo.em (mmo_place_orphan): Likewise.
178 * emultempl/pe.em (gld*_place_orphan): Likewise.
179
aa501e5c
JT
1802002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
181
182 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
183
658957db
KH
1842002-05-25 Kazu Hirata <kazu@cs.umass.edu>
185
186 * ldemul.c: Fix formatting.
187 * ldfile.c: Likewise.
188 * pe-dll.c: Likewise.
189 * pe-dll.h: Likewise.
190
3511b595
AM
1912002-05-25 Alan Modra <amodra@bigpond.net.au>
192
0d6d936f
AM
193 * ldlang.c (lang_process): Formatting, grammar.
194
3511b595
AM
195 * ldlex.l: Use #include "" instead of <> for local header files.
196
436e8db0
NC
1972002-05-24 TAMURA Kent <kent@netbsd.org>
198
199 * configure.tgt: Add a target for i386-netbsdpe.
200
13ae64f3
JJ
2012002-05-23 Jakub Jelinek <jakub@redhat.com>
202
203 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
204 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
205 output section if necessary. Handle .tbss.
206 (lang_size_sections): Clear _raw_size for .tbss section
207 (it allocates space in PT_TLS segment only).
208 * ldwrite.c (build_link_order): Build link order for .tbss too.
209
68b2fc7a
AM
2102002-05-23 Alan Modra <amodra@bigpond.net.au>
211
212 * configure.in: Correct spelling of AC_PREREQ.
213
70b0be79
CF
2142002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
215
216 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
217 default.
218 (autofilter_objlist): Add crtbegin.o, crtend.o.
219
2202002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
221
222 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
223 (longopts): Add new option --exclude-libs.
224 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
225 (gld_${EMULATION_NAME}_parse_args): Use it.
226 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
227 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
228 from whole archives.
229 (pe_dll_add_excludes): Set excludes->type.
230 (auto_export): Add new variable libname and set to archive basename if
231 abfd. Use it when filtering default and user-specified libarary
232 excludes. Let string "ALL" mean all libs when filtering user-specified
233 libs.
234 * ld.texinfo: Document --exclude-libs.
235
fac1652d
AM
2362002-05-22 Alan Modra <amodra@bigpond.net.au>
237
238 * ldemul.c (ldemul_new_vers_pattern): New function.
239 * ldemul.h (ldemul_new_vers_pattern): Declare.
240 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
241 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
242 * emultempl/ppc64elf.em (dotsyms): New static var.
243 (gld${EMULATION_NAME}_new_vers_pattern): New function.
244 (LDEMUL_NEW_VERS_PATTERN): Define.
245 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
246 (PARSE_AND_LIST_LONGOPTS): Likewise.
247 (PARSE_AND_LIST_ARGS_CASES): Handle them.
248 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
249 initialiser.
250 * emultempl/armcoff.em: Likewise.
251 * emultempl/armelf_oabi.em: Likewise.
252 * emultempl/beos.em: Likewise.
253 * emultempl/elf32.em: Likewise.
254 * emultempl/generic.em: Likewise.
255 * emultempl/gld960.em: Likewise.
256 * emultempl/gld960c.em: Likewise.
257 * emultempl/linux.em: Likewise.
258 * emultempl/lnk960.em: Likewise.
259 * emultempl/m68kcoff.em: Likewise.
260 * emultempl/mipsecoff.em: Likewise.
261 * emultempl/pe.em: Likewise.
262 * emultempl/sunos.em: Likewise.
263 * emultempl/ticoff.em: Likewise.
264 * emultempl/vanilla.em: Likewise.
265
eb3d6bb8
AM
2662002-05-22 Alan Modra <amodra@bigpond.net.au>
267
268 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
269 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
270 (LIB_SEARCH_DIRS): No need to use "tr".
271 (COMPILE_IN): Only set for native targets.
272 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
273 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
274 * configure.tgt (powerpc*): Set tdir_*.
275 (powerpcle*): Correct targ_extra_emuls.
276 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
277 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
278
54f24647
AM
2792002-05-22 Alan Modra <amodra@bigpond.net.au>
280
281 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
282 calling lang_add_entry.
283
aa713662
L
2842002-05-21 H.J. Lu (hjl@gnu.org)
285
286 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
287 "-z muldefs".
288 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
289
290 * ld.texinfo: Updated for --allow-multiple-definition and
291 "-z muldefs".
292
293 * ldmain.c (main): Initialize the allow_multiple_definition
294 field to false.
295
296 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
297 (ld_options): Add --allow-multiple-definition.
298 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
299
658f2588
JT
3002002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
301
302 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
303 (earmelfb_nbsd.c): New rule.
304 * Makefile.in: Regenerate.
305 * configure.tgt (armeb-*-netbsdelf*): New target.
306 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
307 (arm-*-netbsd*): Likewise.
308 * emulparams/armelfb_nbsd.sh: New file.
309
ca10c62d
TR
3102002-05-18 Tom Rix <trix@redhat.com>
311
312 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
313 support.
314
fae1e84f
MM
3152002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
316
317 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
318 * Makefile.in: Regenerate.
319 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
320
7c8bf1e8
MM
3212002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
322
323 * emulparams/avr1.sh: New file.
324 * emulparams/avr2.sh: New file.
325 * emulparams/avr3.sh: New file.
326 * emulparams/avr4.sh: New file.
327 * emulparams/avr5.sh: New file.
328 * scripttempl/avr.sc: New file.
329
c2c01aa7
AM
3302002-05-15 Alan Modra <amodra@bigpond.net.au>
331
332 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
333 (lang_place_orphans): Abort if just_syms_flag.
334
f1f0d9ab
TR
3352002-05-10 Tom Rix <trix@redhat.com>
336
337 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
338 architecture and machine information in the output bfd.
339 (gld*_before_parse): Remove old arch and machine code.
340 (choose_target): Rename to gld*_choose_target.
341 (rtld): Change type to int.
342 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
343 objects in XCOFF archives.
344 * ldfile.h: Update copyright date.
345
f4d73366
JJ
3462002-05-10 Jakub Jelinek <jakub@redhat.com>
347
348 * ldmain.c (main): Enable -z combreloc by default.
349
d3d8a9ee
NC
3502002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
351
352 * Makefile.am: Honour DESTDIR.
353 * Makefile.in: Regenerate.
354
9f88b410
RS
3552002-05-07 Richard Sandiford <rsandifo@redhat.com>
356
357 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
358 (lang_enter_overlay): Remove the last two parameters.
359 (lang_leave_overlay): Take them here instead.
360 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
361 (section): Pass LMA and crossref flag to lang_leave_overlay rather
362 than lang_enter_overlay.
363 * ldlang.c (lang_memory_region_lookup): Return null for null names.
364 (lang_output_section_statement_lookup): Initialize update_dot_tree.
365 (lang_size_sections_1): Evaluate it.
366 (lang_leave_output_section_statement): Rework LMA lookup.
367 (overlay_lma, overlay_nocrossrefs): Remove.
3511b595 368 (lang_enter_overlay): Remove LMA and crossref arguments.
9f88b410
RS
369 (lang_enter_overlay_section): Don't set the LMA here.
370 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
371 assignment to the last section's update_dot_tree. Unconditionally
372 use the load and run-time regions specified in the OVERLAY statement.
373 Likewise the first section's LMA. Only set the other sections' LMAs
374 when no load region is given.
375
b9a743c8
NC
3762002-05-06 Nick Clifton <nickc@redhat.com>
377
378 * po/sv.po: New translation.
379
a3d60be3
AM
3802002-05-04 Alan Modra <amodra@bigpond.net.au>
381
382 * emultempl/hppaelf.em (build_section_lists): New function.
383 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
384 and build_section_lists.
385
b7a26f91
KH
3862002-05-03 Kazu Hirata <kazu@cs.umass.edu>
387
388 * ld.h: Fix formatting.
389 * ldexp.c: Likewise.
390 * ldfile.c: Likewise.
391 * ldlang.c: Likewise.
392 * ldmain.c: Likewise.
393 * lexsup.c: Likewise.
394 * pe-dll.c: Likewise.
395
805fc799
AM
3962002-05-02 Alan Modra <amodra@bigpond.net.au>
397
398 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
399 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
400 (build_section_lists): Do output_section tests here.
401
cc7e59b2
TR
4022002-04-30 Tom Rix <trix@redhat.com>
403
404 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
405
9c1d81c1
AM
4062002-05-01 Alan Modra <amodra@bigpond.net.au>
407
408 Long branch stubs, multiple stub sections.
409 * emultempl/ppc64elf.em: Include ldctor.h.
410 (stub_file): New var.
411 (group_size): New var.
412 (ppc_create_output_section_statements): New function.
413 (struct hook_stub_info): New.
414 (hook_in_stub): New function.
415 (ppc_add_stub_section): New function.
416 (ppc_layout_sections_again): New function.
417 (build_section_lists): New function.
418 (gld${EMULATION_NAME}_finish): Rewrite.
419 (real_func): New var.
420 (ppc_for_each_input_file_wrapper): New function.
421 (ppc_lang_for_each_input_file): New function.
422 (lang_for_each_input_file): Define.
423 (PARSE_AND_LIST_PROLOGUE): Define.
424 (PARSE_AND_LIST_LONGOPTS): Define.
425 (PARSE_AND_LIST_OPTIONS): Define.
426 (PARSE_AND_LIST_ARGS_CASES): Define.
427 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
428
aa67bccf
TR
4292002-04-30 Tom Rix <trix@redhat.com>
430
431 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
432 -blibpath, -bnolibpath support.
433
94349e12
MM
4342002-04-30 Mark Mitchell <mark@codesourcery.com>
435
436 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
437 (eelf32ppcwindiss.c): New target.
438 * Makefile.in: Regenerated.
439 * configure.tgt: Add support for powerpc-*-windiss.
440 * emulparams/elf32ppcwindiss.sh: New file.
441
7b17f854
RS
4422002-04-30 Richard Sandiford <rsandifo@redhat.com>
443
444 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
445 * ldexp.c (exp_print_token): Add "infix_p" argument.
446 (exp_print_tree): Update accordingly.
447
596dafeb
AM
4482002-04-28 Alan Modra <amodra@bigpond.net.au>
449
450 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
451 * Makefile.in: Regenerate.
452 * mpw-elfmips.c: Delete.
453 * mpw-eppcmac.c: Delete.
454 * mpw-esh.c: Delete.
455 * mpw-idtmips.c: Delete.
456
a44d7f9c
JR
457Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
458
459 * emulparams/shelf32.sh (MACHINE): Now sh5.
460
944cd72c
TS
4612002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
462
463 * ldgram.y: Fix syntax warning.
464
5835c212
NC
4652002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
466
467 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
468 to prevent "-n" from being taken as an abbreviation for
469 "--no-pipeline-knowledge".
470
024531e2
AM
4712002-04-08 Alan Modra <amodra@bigpond.net.au>
472
d08a14c3
AM
473 * ldlang.c (lang_size_sections_1): Don't complain about
474 SEC_NEVER_LOAD sections having no memory region specified.
475
024531e2
AM
476 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
477
c657a1f0
MG
4782002-04-07 matthew green <mrg@redhat.com>
479
480 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
481
61bef6f1
AM
4822002-04-04 Alan Modra <amodra@bigpond.net.au>
483
484 * dep-in.sed: Cope with absolute paths.
485 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
486 Run "make dep-am".
487 * Makefile.in: Regenerate.
488
49ba2791
TS
4892002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
490
491 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
492
50e60fb5
JJ
4932002-04-03 Jakub Jelinek <jakub@redhat.com>
494
495 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
496 is smaller than maximum, round dot up to common page boundary.
497
6f12f4ca
AM
4982002-03-28 Alan Modra <amodra@bigpond.net.au>
499
500 * configure.host: Set up for generic hosts first, then tweak as
501 necessary in more specific targets.
502 (HOSTING_LIBS): Include libgcc_eh.a if found.
503
a8f1f017
AJ
5042002-03-23 Andreas Jaeger <aj@suse.de>
505
506 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
507
1d3fdf38
AM
5082002-03-21 Alan Modra <amodra@bigpond.net.au>
509
510 * Makefile.am: Run "make dep-am".
511 * Makefile.in: Regenerate.
512
79b1faa8
AM
5132002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
514
515 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
516
fcf0e35b
AM
5172002-03-20 Alan Modra <amodra@bigpond.net.au>
518
519 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
520 add the symbol to the linker hash table immediately.
521 (lang_place_undefineds): Split symbol creation out..
522 (insert_undefined): ..to here.
523
fed2999d
DB
5242002-03-18 David O'Brien <obrien@FreeBSD.org>
525
526 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
527 the contents of the buffer returned from basename function will are
528 getting overwritten while still being used.
529
beb43bb9
JH
530Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
531 Andreas Jaeger <aj@suse.de>
532 Andreas Schwab <schwab@suse.de>
533
534 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
535 * elf_x86_64.sh (ARCH): Set to i386:x86-64
536 set libraries to default to lib64 paths.
537
eb1e0e80
NC
5382002-03-18 Tom Rix <trix@redhat.com>
539
540 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
541 * configure.tgt : Same.
542 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
543 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
544 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
545 emulation parameters for better -b32, -b64 support.
546 * emulparms/aixrs6.sh : Same.
547 * emulparms/ppcmacos.sh : Same.
548 * emultempl/aix.em (choose_target) : Use new emulation parameters
549 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
550 * Makefile.in : Regenerate.
551
a1c259a1
NC
5522002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
553
554 * po/fr.po: Updated version.
555
862120bd
AM
5562002-03-18 Alan Modra <amodra@bigpond.net.au>
557
558 * ldmain.c (main): Move .text readonly flag fudges from here..
559 * ldlang.c (lang_process): ..to here.
560
d35a52e2
AM
5612002-03-14 Alan Modra <amodra@bigpond.net.au>
562
563 * ldlang.c (lang_check): Remove the word size check added in last
564 change. Treat emitrelocations case as for relocatable links.
565
9ce88e60
NC
5662002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
567
568 * po/fr.po: Updated version.
569
30cba025
AM
5702002-03-13 Alan Modra <amodra@bigpond.net.au>
571
572 * ldlang.c (lang_check): Do relocatable link checks first, so that
573 warn_mismatch can't override. Check compatible and word size too.
574
84ec0e6d
DJ
5752002-03-07 Daniel Jacobowitz <drow@mvista.com>
576
577 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
578
2d13d8c5
JJ
5792002-03-05 Jakub Jelinek <jakub@redhat.com>
580
581 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
582 DATA_SEGMENT_ALIGN.
583
b5090659
L
5842002-03-04 H.J. Lu <hjl@gnu.org>
585
586 * scripttempl/elf.sc: Put .preinit_array, .init_array and
587 .fini_array in the data segment.
588
f42ce16e
AM
5892002-03-04 Alan Modra <amodra@bigpond.net.au>
590
591 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
592
de77b6ac
RH
5932002-03-01 David Mosberger <davidm@hpl.hp.com>
594
595 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
596 .init_array, and .fini_array.
597
997e08c0
AS
5982002-02-20 Andreas Schwab <schwab@suse.de>
599
600 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
601 .IA64_unwind* in a relocatable link.
602
9a66911f
NC
6032002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
604
605 * NEWS: Mark 2.12 branch.
606
d86bcc10
MS
6072002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
608
609 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
610 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
611
69f284c7
TR
6122002-02-18 Tom Rix <trix@redhat.com>
613
614 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
615 (gld*_before_allocation): Same.
a8f1f017 616 (gld*_create_output_section_statements): Generate
69f284c7
TR
617 __rtinit if run time linking. Add librtl.a to the link.
618 (gld*_read_file): Clean.
619
82bd7b59
AM
6202002-02-18 Alan Modra <amodra@bigpond.net.au>
621
622 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
623
ac3e50bf
DB
6242002-02-18 David O'Brien <obrien@FreeBSD.org>
625
6a7f963b 626 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
ac3e50bf
DB
627 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
628 and eelf64alpha_fbsd.
6a7f963b 629 * Makefile.in: Regenerate.
ac3e50bf
DB
630 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
631 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
632 use a FreeBSD-specific emulation rather than the psABI one.
633 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
634 for all FreeBSD ELF systems.
635 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
636 emulation.
637 * emulparams/elf32ppc_fbsd.sh: Likewise.
638 * emulparams/elf64_ia64_fbsd.sh: Likewise.
639 * emulparams/elf64_sparc_fbsd.sh: Likewise.
640 * emulparams/elf64alpha_fbsd.sh: Likewise.
641 * emulparams/elf_i386_fbsd.sh: Likewise.
642 * emulparams/elf_x86_64_fbsd.sh: Likewise.
643
6ad738c5
NC
6442002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
645
646 * po/tr.po: Updated version.
647
9673c93c
AM
6482002-02-18 Alan Modra <amodra@bigpond.net.au>
649
650 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
651 (FILL): Likewise.
652
1c5e6447
HPN
6532002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
654
655 * emultempl/mmo.em (mmo_after_open): Don't call
656 _bfd_mmix_check_all_relocs when producing ELF output.
657
8bb57516
RH
6582002-02-15 Richard Henderson <rth@redhat.com>
659
de77b6ac 660 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
8bb57516
RH
661 definition. Emit a unop+nop pair.
662
49fda6c8
HPN
6632002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
664
83c2d653
HPN
665 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
666 for presence of .MMIX.reg_contents.linker_allocated before early
667 exit.
668
49fda6c8
HPN
669 * NEWS: Mention support for MMIX.
670
2c382fb6
AM
6712002-02-15 Alan Modra <amodra@bigpond.net.au>
672
673 Support arbitrary length fill patterns.
a139d329
AM
674 * ld.texinfo (Output Section Fill): Describe fill expressions.
675 (FILL): Refer to the above.
2c382fb6
AM
676 * ldexp.h (etree_value_type): Add "str" field.
677 (union etree_union): Add "str" to "value" struct.
678 (exp_bigintop): Declare.
679 (exp_get_fill): Declare.
680 * ldexp.c: Include "safe-ctype.h".
681 (exp_intop): Set value.str to NULL.
682 (exp_bigintop): New function.
683 (new_rel): Pass in "str", and set new.str from it.
684 (new_rel_from_section): Set new.str to NULL.
685 (fold_name): Adjust calls to new_rel.
686 (exp_fold_tree): Likewise.
687 (exp_get_fill): New function.
688 * ldgram.y (struct big_int bigint, fill_type *fill): New.
689 (INT): Returns a "bigint". Adjust all code handling INTs.
690 (fill_opt): Returns a "fill".
691 (fill_exp): Split out of fill_opt, use for FILL.
692 * ldlang.h (struct _fill_type): New.
693 (fill_type): Move typedef to ldexp.h.
694 (lang_output_section_statement_type): "fill" is now a pointer.
695 (lang_fill_statement_type): Likewise.
696 (lang_padding_statement_type): Likewise.
697 (lang_add_fill): Now takes a "fill_type *" param.
698 (lang_leave_output_section_statement): Likewise.
699 (lang_do_assignments): Likewise.
700 (lang_size_sections): Likewise.
701 (lang_leave_overlay_section): Likewise.
702 (lang_leave_overlay): Likewise.
703 * ldlang.c: Include ldgram.h after ldexp.h.
704 (lang_output_section_statement_lookup): Adjust for fill_type change.
705 (print_fill_statement): Likewise.
706 (print_padding_statement): Likewise.
707 (insert_pad): Now takes a "fill_type *" arg.
708 (size_input_section): Likewise.
709 (lang_size_sections_1): Likewise.
710 (lang_size_sections): Likewise.
711 (lang_do_assignments): Likewise.
712 (lang_add_fill): Likewise.
713 (lang_leave_output_section_statement): Likewise.
714 (lang_leave_overlay_section): Likewise.
715 (lang_leave_overlay): Likewise.
716 Adjust all callers of the above function.
717 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
718 starting with "0X" as well as "0x". Return bigint.str for hex
719 numbers starting with "0x" or "0X", zero bigint.str otherwise.
720 Always use base 16 for numbers starting with "$".
721 * ldmain.c: Include ldgram.h after ldexp.h.
722 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
723 of bfd_fill_link_order.
724 * pe-dll.c: Adjust lang_do_assignments calls.
725 * emultempl/elf32.em: Likewise.
726 * emultempl/hppaelf.em: Likewise.
727 * emultempl/ppc64elf.em: Likewise.
728 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
729 lang_add_assignment call.
730 * emultempl/pe.em: Likewise.
731
313e35ee
AM
7322002-02-14 Phil Edwards <pme@gcc.gnu.org>
733
a139d329 734 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
313e35ee
AM
735 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
736 the pattern in question is not a regexp.
737 * ldlang.c: Likewise.
738 * ldlang.h: Likewise.
739 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
740
2d20f7bf
JJ
7412002-02-12 Jakub Jelinek <jakub@redhat.com>
742
743 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
744 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
745 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
746 * ldexp.c (exp_data_seg): New variable.
747 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
748 (fold_binary): Handle DATA_SEGMENT_ALIGN.
749 (exp_fold_tree): Handle DATA_SEGMENT_END.
750 Pass allocation_done when recursing instead of hardcoding
751 lang_allocating_phase_enum.
752 * ldexp.h (exp_data_seg): New.
753 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
754 (lang_size_sections): New.
755 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
756 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
757 if COMMONPAGESIZE is defined.
758 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
759 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
760 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
761 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
762 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
763 libraries only.
764
06880219
AM
7652002-02-11 Alan Modra <amodra@bigpond.net.au>
766
767 * Makefile.in: Regenerate.
768
37b0ac0f
DJ
7692002-02-10 Daniel Jacobowitz <drow@mvista.com>
770
771 * lexsup.c: Remove strtoul declaration.
772
4e5bae56
DJ
7732002-02-10 Daniel Jacobowitz <drow@mvista.com>
774
775 * ldmain.c: Add prototype for main ().
776 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
777 * emultempl/lnk960.em (lnk960_choose_target): Function should
778 take two arguments.
779
1e281515
AM
7802002-02-10 Alan Modra <amodra@bigpond.net.au>
781
782 * ldlang.c (entry_section): New initialised variable.
783 (lang_finish): Use it.
784 * ldlang.h (entry_section): Declare.
785 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
786 entry_section to ".opd".
787
f92d92ff 7882002-02-09 Chris Demetriou <cgd@broadcom.com>
0a9c1c8e
CD
789
790 * ld.texinfo (Options): Add back in -nostdlib documentation,
791 which had been inadvertently removed.
792
74c44237
HPN
7932002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
794
795 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
796 register section vma to a sane value after emitting error. Make
797 fatal conditions cause program exit when emitting message.
798
5e37cc46
NC
7992002-02-08 Ivan Guzvinec <ivang@opencores.org>
800
801 * configure.tgt: Add or32-*-rtems target.
802
2d92cb7d
AO
8032002-02-08 Alexandre Oliva <aoliva@redhat.com>
804
805 Contribute sh64-elf.
806 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
807 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
808 in OTHER_RELOCATABLE_SECTIONS.
809 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
810 * emulparams/shelf32.sh (STACK_ADDR): Define.
811 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
812 (OTHER_SECTIONS): this. Removed stack settings.
813 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
814 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
815 2001-03-12 DJ Delorie <dj@redhat.com>
816 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
817 relaxing if any shmedia or mixed sections are found.
818 2001-03-07 DJ Delorie <dj@redhat.com>
819 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
820 einfo. Gracefully decline to output to non-elf formats.
821 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
822 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
823 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
824 * emulparams/shelf32.sh: Ditto.
825 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
826 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
827 comment.
828 2001-01-10 Ben Elliston <bje@redhat.com>
829 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
830 non-portable shell constructs. From Hans-Peter Nilsson.
831 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
832 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
833 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
834 dependencies to the shell script include chain.
835 * Makefile.in: Regenerate.
836 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
837 * emultempl/sh64elf.em: Update and tweak comments.
838 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
839 make a .cranges section SEC_IN_MEMORY.
840 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
841 * emultempl/sh64elf.em
842 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
843 .cranges section found to be necessary; continue and set stored
844 section contents flags for sections with non-mixed contents.
845 Use a struct sh64_section_data container and sh64_elf_section_data
846 to store contents-type flags.
847 Remove unused update of "isec".
848 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
849 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
850 access contents-type flags. Assert that the associated container
851 is initialized. Use that container, not elf_gp_size, to hold size
852 of linker-generated cranges contents.
853 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
854 * emultempl/sh64elf.em
855 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
856 there's already a .cranges section. When section flag difference
857 is found, don't NULL-check cranges a second time. Tweak comments.
858 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
859 merging, not max size, as size of ld-generated .cranges contents.
860 Don't set ELF section flags in output section. When checking for
861 needed .cranges descriptors, don't use a variable; compare
862 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
863 comments.
864 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
865 * emultempl/sh64elf.em: New file.
866 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
867 * Makefile.in: Regenerate.
868 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
869 (OTHER_RELOCATING_SECTIONS): Ditto.
870 (EXTRA_EM_FILE): New, set to sh64elf if not set.
871 * emulparams/shlelf32.sh: Stub out all settings except
872 OUTPUT_FORMAT. Source shelf32.sh.
873 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
874 OTHER_RELOCATING_SECTIONS.
875 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
876 * emulparams/shlelf64.sh: Stub out all settings except
877 OUTPUT_FORMAT. Source shelf64.sh.
878 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
879 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
880 .cranges section.
881 (DATA_START_SYMBOLS): Define, provide ___data.
882 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
883 for consecutive .data section.
884 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
885 section after .data section.
886 * emulparams/shlelf64.sh: Ditto.
887 * emulparams/shelf32.sh: Ditto.
888 (ALIGNMENT): Define to 8.
889 * emulparams/shelf32.sh: Ditto.
890 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
891 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
892 built-in linker scripts.
893 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
894 * emulparams/shlelf64.sh: New.
895 * emulparams/shelf64.sh: New.
896 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
897 targ_extra_emuls.
898 * Makefile.am: Add support for shlelf64 and shelf64.
899 * Makefile.in: Regenerate.
900 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
901 * configure.tgt (sh64-*-elf*): Add shelf as default.
902 Add shlelf to targ_extra_emuls.
903 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
904 * emulparams/shelf32.sh: New file.
905 * emulparams/shlelf32.sh: New file.
906 * Makefile.am: Add support for shlelf32 and shelf32.
907 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
908 * Makefile.in: Regenerate.
909
e3dc8847
HPN
9102002-02-05 Hans-Peter Nilsson <hp@axis.com>
911
912 * ldlang.c (lang_reset_memory_regions): Rename from
913 reset_memory_regions. Change all callers. Make public.
914 * ldlang.h (lang_reset_memory_regions): Prototype.
915 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
916 lang_reset_memory_regions before lang_size_sections.
126730bd
HPN
917 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
918 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
e3dc8847 919
8017dbcb
HPN
9202002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
921
922 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
923 arithmetic when checking for too many global registers.
924
006336b8
JT
9252002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
926
927 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
928 (ehppanbsd.c): New rule.
929 * Makefile.in: Regenerate.
930 * configure.tgt (hppa*-*-netbsd*): New target.
931 * emulparams/hppalinux.sh: Add comment to check other files
932 that source this file it is modified, and list which
933 files that do.
934 * emulparams/hppanbsd.sh: New file.
935
da1f2fec
GK
9362002-02-01 Geoffrey Keating <geoffk@redhat.com>
937
938 * scripttempl/xstormy16.sc: Don't allocate extra space for the
939 stack.
940
48fa4a5d
HPN
9412002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
942
943 Support on-demand global register allocation from
944 R_MMIX_BASE_PLUS_OFFSET relocs.
945 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
946 mmix_set_reg_section_vma. Call
947 _bfd_mmix_finalize_linker_allocated_gregs.
948 (mmix_before_allocation): New function.
949 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
950 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
951 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
952 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
953 before .MMIX.reg_contents.
954 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
955 (mmo_after_open): New function.
956 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
957 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
958 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
959
3b16e843
NC
9602002-01-31 Ivan Guzvinec <ivang@opencores.org>
961
962 * emulparams/or32.sh: New file.
963 * emulparams/or32elf.sh: New file.
964 * scripttempl/or32.sc: New file.
965 * configure.tgt : Add support for or32.
966 * configure: Regenerate
967 * Makefile.am: Add support for or32.
968 * Makefile.in: Regenerate.
969 * NEWS: Mention support for or32.
970 * po/ld.pot: Regenerate.
971
f744d540 9722002-01-29 Chris Demetriou <cgd@broadcom.com>
313e35ee 973 Mitch Lichtenberg <mpl@broadcom.com>
f744d540
CD
974
975 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
976 * emultempl/mipself.em: New file to handle MIPS ELF embedded
977 reloc creation (ld --embedded-relocs).
978
4867be41
DJ
9792002-01-27 Daniel Jacobowitz <drow@mvista.com>
980
981 * configure: Regenerated.
982
cd8e197b
HPN
9832002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
984
985 * Makefile.am (install): Depend on install-info.
986 * Makefile.in: Regenerate.
987
9cb61eab
AM
9882002-01-26 Christian Rose <menthos@menthos.com>
989
990 * ldmain.c (main): Use full sentences to ease translation.
991
1caa7b23
NC
9922002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
993
994 * po/fr.po: Updated version.
995
1ddbd152
NC
9962002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
997
998 * po/es.po: Updated version.
999
1e84433f
AJ
10002002-01-25 Andreas Jaeger <aj@suse.de>
1001
1002 * ldlex.l (yy_input): Correct error check.
1003
6d39955e
AM
10042002-01-25 Alan Modra <amodra@bigpond.net.au>
1005
1006 * ldmisc.c (demangle): Put back dots when string not demangled.
1007
a9ed1e1b
RH
10082002-01-22 Richard Henderson <rth@redhat.com>
1009
1010 * emulparams/elf64alpha.sh (NOP): Use unop.
1011
968ec2b9
AJ
10122002-01-21 Andreas Jaeger <aj@suse.de>
1013
1014 * ldlex.l: Use fread instead of read.
1015
9596feea
JT
10162002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1017
1018 * configure.tgt (ia64-*-netbsd*): New target.
1019
493a6d47
L
10202002-01-21 H.J. Lu <hjl@gnu.org>
1021
1022 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1023 0.
1024 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1025
2a538ba5
AJ
10262002-01-18 Andreas Jaeger <aj@suse.de>
1027
1028 * ldver.c (ldversion): Update year.
1029
328577ad
NC
10302002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1031
1032 * po/ld.pot: Regenerate.
1033
1f808cd5
AM
10342002-01-16 Alan Modra <amodra@bigpond.net.au>
1035
1036 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1037 * Makefile.in: Regenerate.
1038 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1039 * emultempl/ppc64elf.em: New file.
1040
335c5610
DD
10412002-01-15 DJ Delorie <dj@redhat.com>
1042
1043 * scripttempl/pe.sc: Add support for constructor priorities.
1044
c40bbade
DC
10452002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1046
1047 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1048 * emulparams/avr23xx.sh: Likewise.
1049 * emulparams/avr4433.sh: Likewise.
1050 * emulparams/avr44x4.sh: Likewise.
1051 * emulparams/avr85xx.sh: Likewise.
1052 * emulparams/avrmega103.sh: Likewise.
1053 * emulparams/avrmega161.sh: Likewise.
1054 * emulparams/avrmega603.sh: Likewise.
1055 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1056
34efb449
AO
10572002-01-08 Alexandre Oliva <aoliva@redhat.com>
1058
1059 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1060 archive is excluded.
1061
8d05742f
JT
10622002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1063
1064 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2a538ba5 1065 (eshelf_nbsd.c): New rule.
8d05742f
JT
1066 (eshlelf_nbsd.c): New rule.
1067 * Makefile.in: Regenerate.
1068 * configure.tgt (sh*le-*-netbsdelf*): New target.
1069 (sh*-*-netbsdelf*): New target.
1070 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1071 * ld/emulparams/shelf_nbsd.sh: New emulation.
1072 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1073
be2d1673
NC
10742002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1075
1076 * po/es.po: New file: Spanish translation.
1077 * configure.in (ALL_LINGUAS): Add es.
1078 * configure: Regenerate.
1079
dbab7a7b
NC
10802002-01-06 John Marshall <jmarshall@acm.org>
1081
1082 * ld.texinfo: Note that --emit-relocs is currently only
1083 implemented for ELF.
1084
3dfe7a8c
AM
10852002-01-05 Alan Modra <amodra@bigpond.net.au>
1086
1087 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1088 of bfd_section_list_remove and bfd_section_list_insert macros.
1089 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1090 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1091
8a8b2d4b
AJ
10922002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1093
1094 * configure.tgt (x86_64-*-netbsd*): New target.
1095
9a4c7f16
TR
10962001-12-21 Tom Rix <trix@redhat.com>
1097
8a8b2d4b 1098 (gld*_create_output_section_statements): New function.
9a4c7f16
TR
1099 For -binitfini support.
1100 * emultempl/aix.em (gld*_before_parse): Fix comment.
1101 * emultempl/aix.em (gld*_parse_args): Fix comment.
1102
3695c299
AM
11032001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1104
cf86e6df
AM
1105 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1106 mips*el-*-netbsd*.
1107 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1108
3695c299
AM
1109 * configure.tgt (arm-*-netbsdelf*): Add target.
1110 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1111 * emulparams/armelf_nbsd.sh: Added.
1112 * Makefile.am: Add rules for earmelf_nbsd.
1113 * Makefile.in: Regenerate.
1114
97cb79ae
AJ
11152001-12-19 Andreas Jaeger <aj@suse.de>,
1116 Susanne Oberhauser <froh@suse.de>
1117
1118 * configure.host: Add rules for x86_64-*linux-gnu. Change
1119 s390x-linux entry to use gcc to report configuration, replace gcc
1120 with $CC in s390-linux
1121
9d201f2f
AJ
11222001-12-19 Andreas Jaeger <aj@suse.de>
1123
1124 * ld.texinfo (VERSION): Fix markup.
1125
0b69cd08
MG
11262001-12-18 matthew green <mrg@eterna.com.au>
1127
1128 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1129 (m68kelfnbsd.c): New rule.
1130 * Makefile.in: Regenerate.
1131 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1132 (m68*-*-netbsd*4k*): .. this.
1133 (m68*-*-netbsdelf*): New target.
1134 (m68*-*-netbsd*): Also include ELF support.
1135 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1136 * emulparams/m68kelfnbsd.sh: New emulation.
1137
6b9b879a
JJ
11382001-12-18 Jakub Jelinek <jakub@redhat.com>
1139
1140 * ldgram.y (vers_node): Support anonymous version tags.
1141 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1142 tag is not defined together with non-anonymous versions.
1143 * ld.texinfo: Document it.
1144
9fc877ed
NC
11452001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1146
1147 * po/tr.po: New file: Turkish translation.
1148 * configure.in (ALL_LINGUAS): Add tr.
1149 * configure: Regenerate.
1150
fc18a3f3
RH
11512001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1152
1153 * Makefile.am: Add rules for eelf64alpha_nbsd.
1154 * Makefile.in: Regenerate.
1155 * configure.tgt (alpha*-*-netbsd*): Set
1156 targ_emul to elf64alpha_nbsd.
1157 * emulparams/elf64alpha_nbsd.sh: Added.
1158
76f63e91
AM
11592001-12-17 Alan Modra <amodra@bigpond.net.au>
1160
1161 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1162 section_tail when fiddling with section list.
1163 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1164 broken into separate strings to make translation easier.
1165 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1166 fiddling with section list.
1167 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1168
d03b89bd
HPN
11692001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1170
1171 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1172
320fec9a
AM
11732001-12-15 Alan Modra <amodra@bigpond.net.au>
1174
1175 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1176
65765700
JJ
11772001-12-13 Jakub Jelinek <jakub@redhat.com>
1178
1179 * emultempl/elf32.em (finish): Supply output_bfd
1180 to bfd_elf*_discard_info.
1181 (OPTION_EH_FRAME_HDR): Define.
1182 (longopts): Add --eh-frame-hdr.
1183 (parse_args): Handle it.
1184 (list_options): Add --eh-frame-hdr to help.
1185 * emultempl/hppaelf.em (finish): Supply output_bfd
1186 to bfd_elf*_discard_info.
1187 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1188
89894c62
AM
11892001-12-13 Alan Modra <amodra@bigpond.net.au>
1190
1191 * lexsup.c (parse_args): Don't pass shortopts to second call to
1192 getopt functions. Restore optind rather than decrementing before
1193 second call. Remove errind as it now duplicates last_optind.
1194
583f1926
CF
11952001-12-11 Christopher Faylor <cgf@redhat.com>
1196
1197 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1198
93fbbb04
GK
11992001-12-07 Geoffrey Keating <geoffk@redhat.com>
1200 Richard Henderson <rth@redhat.com>
1201
1202 * Makefile.am: Add support for xstormy16.
1203 * configure.tgt: Add support for xstormy16.
1204 * Makefile.in: Regenerate.
1205 * emulparams/elf32xstormy16.sh: New file.
1206 * scripttempl/xstormy16.sc: New file.
1207
583f1926
CF
12082001-10-01 Christopher Faylor <cgf@cygnus.com>
1209
fc18a3f3
RH
1210 * Makefile.in (LIB_PATH): Make configurable.
1211 (GENSCRIPTS): Set LIB_PATH in environment.
1212 * configure.in: Substitute LIB_PATH.
1213 * configure: Regenerate.
1214 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1215 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
583f1926 1216
ff291a48
NC
12172001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1218
1219 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1220 describing the -N option so that it is easier to translate into
1221 foreign languages.
1222
e3c8793a
NC
12232001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1224
1225 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1226 statements describing a single option with a single, newline
1227 escaped fprintf. This allows better translation into other
1228 languages.
9d201f2f 1229
fc18a3f3
RH
1230 * ldmain.c (add_archive_element): Combine multiple strings
1231 into a single string to permit better translation into other
1232 languages.
e3c8793a 1233
f2eab0af
TR
12342001-12-05 Tom Rix <trix@redhat.com>
1235
1236 * Makefile.am: Remove eaixppc64.
9d201f2f 1237 * Makefile.in: Regenerate.
f2eab0af 1238
249172c3
TR
12392001-12-04 Tom Rix <trix@redhat.com>
1240
9d201f2f 1241 * emultempl/aix.em (choose_target): Change default target to
249172c3
TR
1242 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1243 warning.
1244 (gld*_read_file): Fix typo.
1245 (change_symbol_mode): Add prototype.
1246 (is_syscall): Same.
9d201f2f 1247
249172c3
TR
1248 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1249 * emulparams/aixrs6.sh : Same.
1250 * emulparams/ppcmacos.sh : Same.
1251 * emulparams/aixppc64.sh : Delete file.
1252 * emultempl/aix.em : Formatting changes.
1253
5b5cd1b0
HPN
12542001-12-04 Hans-Peter Nilsson <hp@axis.com>
1255
1256 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1257 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1258 __Sbss.
1259 (OTHER_END_SYMBOLS): Fix formatting.
1260 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1261 (OTHER_END_SYMBOLS): Fix formatting.
1262
7cecdbff
AM
12632001-12-04 Alan Modra <amodra@bigpond.net.au>
1264
1265 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1266
742aeb63 12672001-12-02 Tom Rix <trix@redhat.com>
7cecdbff 1268
742aeb63 1269 * configure.tgt : Remove eaixppc64 emulations.
7cecdbff 1270 * Makefile.in : Remove eaixppc64.c
742aeb63
TR
1271 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1272 (ldemul_default_target): Same.
1273 * emultempl/gld960.em (gld960_choose_target): Same.
7cecdbff
AM
1274 * emultempl/gld960c.em (gld960_choose_target): Same.
1275 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
742aeb63
TR
1276 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1277 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1278 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
7cecdbff 1279 * emultempl/aix.em (choose_target): New function. Handle emulation of
742aeb63
TR
1280 -b32 and -b64.
1281
48459341
L
12822001-11-27 H.J. Lu <hjl@gnu.org>
1283
1284 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1285 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1286 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1287 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1288 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1289 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1290 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1291 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1292
7cecdbff 1293 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
48459341
L
1294 is not empty.
1295 (SDATA): Likewise.
1296 (REL_SDATA): Likewise.
1297 (REL_SBSS): Likewise.
1298 (REL_SDATA2): Likewise.
1299 (REL_SBSS2): Likewise.
1300 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1301 (SDATA2): Likewise.
1302
ecfdd20c
SC
13032001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1304
1305 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1306 destructor in rom.
7cecdbff 1307 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
ecfdd20c 1308
da54c6eb
L
13092001-11-22 H.J. Lu <hjl@gnu.org>
1310
1311 * Makefile.in: Regenerated with automake based on automake
1312 1.4-8 in RedHat 7.1.
1313
465bc359
AM
13142001-11-22 Alan Modra <amodra@bigpond.net.au>
1315
1316 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1317 (config.status): Delete rule.
1318 Add extra dependencies to cover sourced emulparams files.
1319 * Makefile.in: Regenerate.
1320
1321 * scripttempl/elf.sc: Order <section>, <section>.* and
1322 corresponding linkonce sections as seen in input files.
1323 Formatting fixes. Zero vma of all sections if not relocating.
1324 (STACK): Define and insert if STACK_ADDR defined.
1325 (OTHER_RELOCATING_SECTIONS): Delete.
1326 (OTHER_END_SYMBOLS): Define.
1327 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1328 (OTHER_READWRITE_SECTIONS): Likewise.
1329 (OTHER_GOT_SECTIONS): Likewise.
1330 (OTHER_SDATA_SECTIONS): Likewise.
1331 (OTHER_BSS_SECTIONS): Likewise.
1332 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1333 (OTHER_READWRITE_SECTIONS): Likewise.
1334 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1335 (OTHER_READWRITE_SECTIONS): Likewise
1336
1337 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1338 (STACK_ADDR): Define.
1339 * emulparams/armelf_oabi.sh: As for armelf.sh.
1340 * emulparams/elf32mcore.sh: As for armelf.sh.
1341 * emulparams/h8300elf.sh: As for armelf.sh.
1342 * emulparams/mn10200.sh: As for armelf.sh.
1343 * emulparams/shelf.sh: As for armelf.sh.
1344
1345 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1346 (OTHER_END_SYMBOLS): Define.
1347 * emulparams/m32relf.sh: As for elf32fr30.sh.
1348 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1349 * emulparams/h8300self.sh: As for elf32fr30.sh.
1350
1351 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1352 defines with RELOCATING test.
1353 (OTHER_SDATA_SECTIONS): Likewise.
1354 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1355 (OTHER_END_SYMBOLS): ..this.
1356 * emulparams/crislinux.sh: As for criself.sh.
1357
1358 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1359 if not relocating.
1360 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1361 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1362 normal and linkonce sections as seen in input files.
1363 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1364 (TEXT_DYNAMIC): Likewise.
1365 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1366 (OTHER_SDATA_SECTIONS): Likewise.
1367 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1368 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1369 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1370 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1371 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1372 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1373 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1374 sections as seen in input files.
1375 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1376 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1377 if not relocating.
1378 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1379 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1380 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1381 (OTHER_SECTIONS): Instead, use this..
1382 (OTHER_END_SYMBOLS): ..and this.
1383
1384 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1385 * emulparams/elf32bsmip.sh: Likewise.
1386 * emulparams/elf32btsmip.sh: Likewise.
1387 * emulparams/elf32ebmip.sh: Likewise.
1388 * emulparams/elf32lmip.sh: Likewise.
1389 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1390 * emulparams/elf32lsmip.sh: Likewise.
1391 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1392 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1393 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1394 * emulparams/elf64btsmip.sh: Likewise.
1395 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1396 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1397 * emulparams/elf32ppclinux.sh: Likewise.
1398 * emulparams/elf32ppcsim.sh: Likewise.
1399 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1400 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1401 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1402 * emulparams/h8300self.sh: Likewise.
1403 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1404 * emulparams/sh.sh: Comment.
1405 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1406 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1407 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1408
abc6ab0a
AM
14092001-11-21 David Heine <dlheine@tensilica.com>
1410 Alan Modra <amodra@bigpond.net.au>
1411
1412 * ldlang.c (map_input_to_output_sections): Replace "break"
1413 accidentally removed with 2001-08-03 change.
1414 (lang_gc_sections_1): Likewise.
1415
2181f54f
AM
14162001-11-21 Alan Modra <amodra@bigpond.net.au>
1417
1418 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1419
ca0b5847
AM
14202001-11-20 Angela Marie Thomas <angela@redhat.com>
1421
1422 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2181f54f
AM
1423 of false when calling lang_size_sections.
1424 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
ca0b5847 1425
c56feb2b
AM
14262001-11-15 Alan Modra <amodra@bigpond.net.au>
1427
1428 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1429 function when LDEMUL_FINISH isn't set to the same name. Don't
1430 call ${LDEMUL_FINISH}.
1431 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1432 * emultempl/armelf.em (arm_elf_finish): Call
1433 gld${EMULATION_NAME}_finish.
1434 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1435 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1436 hppaelf_layout_sections_again if necessary.
1437 (need_laying_out): New var.
1438 (hppaelf_layaout_sections_again): Rename to
1439 hppaelf_layout_sections_again. Clear need_laying_out.
1440 (PARSE_AND_LIST_OPTIONS): Format text.
1441
a48ca7f2
L
14422001-11-14 H.J. Lu <hjl@gnu.org>
1443
1444 * emultempl/armelf.em (arm_elf_finish): Renamed from
1445 gld${EMULATION_NAME}_finish.
1446 (LDEMUL_FINISH): Set to arm_elf_finish.
1447
73d074b4
DJ
14482001-11-14 Daniel Jacobowitz <drow@mvista.com>
1449
1450 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1451 (struct ld_emulation_xfer_struct): Use it.
1452
3b16e843 14532001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
fc65c602 1454
465bc359 1455 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
fc65c602
JL
1456 additional symbols referenced by newer crt0.o files from HP.
1457
f11b7027
NC
14582001-11-12 Anthony Green <green@redhat.com>
1459
1460 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1461
3bf2994f
AM
14622001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1463
1464 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1465 * Makefile.in: Regenerate.
1466
ff5dcc92
SC
14672001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1468
1469 * ld.texinfo: Use @command for commands, @option for options.
1470 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1471 the page man title.
1472 * Makefile.in: Rebuild.
1473
9fb9af6e
CD
14742001-11-04 Chris Demetriou <cgd@broadcom.com>
1475
1476 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1477 Add support for targets.
2181f54f 1478
3c62831e
NC
14792001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1480
1481 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1482 * configure: Regernate.
1483 * po/fr.po: New file.
1484 * po/sv.po: New file.
1485
3a9091c4
NC
14862001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1487
1488 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1489 as little endian default and to support big endian.
2181f54f 1490
361b220e
CD
14912001-11-01 Chris Demetriou <cgd@broadcom.com>
1492
1493 * ld.texinfo (Options): Document new option, -nostdlib.
1494 * lexsup.c (OPTION_NOSTDLIB): New definition.
1495 (ld_options): Add entry for "nostdlib".
1496 (parse_args): Handle OPTIONS_NOSTDLIB.
1497 * ldfile.c (ldfile_add_library_path): Don't add directories
1498 to the search path if they weren't specified on the command line
1499 and -nostdlib was specified.
1500 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1501
210a7bd1
NC
15022001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1503
1504 * lexsup.c (parse_args): Prevent infinite parsing loop when
1505 "-rpath.a" is specified on the command line.
1506 Replace calls to fprintf with calls to einfo.
1507
114283d8
NC
15082001-10-31 John Marshall <jmarshall@acm.org>
1509
1510 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1511 appear only once across all the linker scripts involved in a link
1512 invocation no longer applies. Make the documentation reflect
1513 that.
1514
7649aa50
NC
15152001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1516
1517 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1518 targets.
1519 (sh-*-linux*): Added targ_extra_libpath.
1520
6e814ff8
AM
15212001-10-31 David Heine <dlheine@tensilica.com>
1522
1523 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1524 for padding statements.
1525
3c3bdf30
NC
15262001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1527
1528 * configure.tgt (mmix-*-*): New target.
1529 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1530 Add dependencies to match.
1531 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1532 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1533 scripttempl/mmo.sc: New files.
1534 * gen-doc.texi: @set MMIX.
1535 * ld.texinfo: Ditto.
6e814ff8 1536 [MMIX] Add MMIX node.
3c3bdf30
NC
1537 * Makefile.in: Regenerate.
1538
ca0c1d3e
KH
15392001-10-29 Kazu Hirata <kazu@hxi.com>
1540
1541 * ldlang.c: Fix a comment typo.
1542
1a3d33ce
AM
15432001-10-23 Alan Modra <amodra@bigpond.net.au>
1544
1545 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1546 entries, and match *-*-linux*.
1547
b47c4208
AM
15482001-10-20 Alan Modra <amodra@bigpond.net.au>
1549
1550 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1551 with ldlex_script, ldlex_popstate.
1552 (ifile_p1): Likewise.
1553 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1554 correct slot.
1555 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1556 to 1. Don't BEGIN(SCRIPT).
1557 (lex_redirect): Similarly.
1558 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1559
fd521b47
NC
15602001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1561
1562 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1563 __EH_FRAME_END__ and accept eh frames into data section.
1564 Add ctor and dtor sections.
1565
59d28a94
DD
15662001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1567
1568 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1569 (auto-export): Fix indentation.
1570
663dd378
DD
15712001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1572
1573 * pe-dll.c (autofilter_objectlist): Add startup objects
1574 for profiling.
1575 (auto-export): Constify char * p.
6e814ff8 1576 Extract file basename and use strcmp rather than ststr
663dd378
DD
1577 for object lookup.
1578
31d677f9
CD
15792001-10-18 Chris Demetriou <cgd@broadcom.com>
1580
1581 * ldmain.c (get_emulation): Improve comment about the handling
1582 of -mipsN options.
1583
aa200fe8
AM
15842001-10-17 Alan Modra <amodra@bigpond.net.au>
1585
1586 * po/POTFILES.in: Regenerate.
1587
146e7110
AM
15882001-10-16 Vassili Karpov <malc@pulsesoft.com>
1589
1590 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1591 -z nocopyreloc and -z nocombreloc usage strings.
1592
b4330e85
NC
15932001-10-12 Vassili Karpov <malc@pulsesoft.com>
1594
146e7110 1595 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
b4330e85
NC
1596 in usage.
1597
5af8a2fb
NC
15982001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1599
1600 * scripttempl/armaout.sc: Place .bss section after end of aligned
1601 data section to match behaviour of aout code in constructrion of
1602 header.
1603
5b784096
DD
16042001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1605
1606 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1607 startup files for mingw32 dlls to list.
1608
61585df2
CD
16092001-10-10 Chris Demetriou <cgd@broadcom.com>
1610
1611 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1612
45cf6f3e
AH
16132001-10-08 Aldy Hernandez <aldyh@redhat.com>
1614
1615 * configure.tgt (targ): Add arm9e-*-elf.
1616
e24d7c12
L
16172001-10-05 H.J. Lu <hjl@gnu.org>
1618
1619 * genscripts.sh: Fix a typo in the last change.
1620
ec38dd05
JJ
16212001-10-05 Jakub Jelinek <jakub@redhat.com>
1622
1623 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1624 -z nocombreloc in usage.
1625
cedd6b0d
JB
16262001-10-03 Jim Blandy <jimb@redhat.com>
1627
1628 * genscripts.sh: Include a comment at the top of each generated
1629 script, explaining its purpose.
1630
8bd621d8
AM
16312001-10-03 Vassili Karpov <malc@pulsesoft.com>
1632
1633 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1634 * NEWS: Mention -z nocopyreloc.
1635 * ld.texinfo (Options): Describe nocopyreloc.
1636
fcd8210c
AM
16372001-10-03 Alan Modra <amodra@bigpond.net.au>
1638
1639 * configure: Regenerate.
1640
d32820f2
AM
16412001-10-02 Alan Modra <amodra@bigpond.net.au>
1642
1643 * ldver.h (ld_program_version): Remove declaration.
1644 * lexsup.c (parse_args): Move printing of copyright message..
1645 * ldver.c (ldversion): .. to here.
1646 Use BFD_VERSION_STRING in place of BFD_VERSION.
1647 (ld_program_version): Remove.
1648 * Makefile.am (Makefile): Depend on bfd/configure.in.
1649 Run "make dep-am".
1650 * Makefile.in: Regenerate.
1651
af46bcdc
HPN
16522001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1653
1654 * Makefile.am: Update dependencies with "make dep-am".
1655 * Makefile.in: Regenerate.
1656
4818e05f 16572001-09-29 John Reiser <jreiser@BitWagon.com>
862517b6 1658
4818e05f
AM
1659 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1660 * lexsup.c: Add --no-define-common commandline option.
1661 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1662 * ldlex.l: Likewise.
1663 * ld.h: Add command_line.inhibit_common_definition.
1664 * ldmain.c (main): Initialize.
1665 * ld.texinfo: Document.
862517b6 1666
d5e0ebeb
AM
16672001-09-26 Alan Modra <amodra@bigpond.net.au>
1668
1669 * ldmisc.c (USE_STDARG): Remove.
1670 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1671 (einfo): Likewise.
1672 (minfo): Likewise.
1673 (lfinfo): Likewise.
1674
1675 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1676 declarations. Update copyright.
1677
2f8d8971
NC
16782001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1679
85c77458
NC
1680 * pe-dll.c: Remove obsoleted declaration of
1681 pe_get_data_import_dll_name.
1682 (pe_create_import_fixup): Fix thinko.
1683
2f8d8971
NC
1684 * ld.texinfo(enable-auto-import): Clarify the explanation.
1685
16862001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1687
1688 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1689 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1690 DLL_SUPPORT controlled code.
1691
72358f65 16922001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
146e7110 1693
72358f65
NC
1694 * emultempl/pe.em(pe_data_import_dll): Make static.
1695 (pe_get_data_import_dll_name): New accessor function.
146e7110 1696 * pe-dll.c(pe_create_import_fixup): call
72358f65
NC
1697 pe_get_data_import_dll_name() from pe.em, instead of
1698 directly accessing pe_data_import_dll variable from pe.em.
1699
3882b010
L
17002001-09-18 Bruno Haible <haible@clisp.cons.org>
1701
1702 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1703 (def_file_add_directive): Use ISSPACE instead of isspace.
1704 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1705 isdigit/isxdigit/isalpha/isalnum.
1706 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1707 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1708 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1709 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1710 isalnum.
1711 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1712 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1713 isupper/tolower.
1714 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1715 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1716 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1717 (ctor_prio): Use ISDIGIT instead of isdigit.
1718 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1719 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1720 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1721 isupper/tolower.
1722 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1723 (stricpy): Use TOLOWER instead of isupper/tolower.
1724 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1725 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1726 (lex_warn_invalid): Use ISPRINT instead of isprint.
1727 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1728 (main): For gettext, also set the LC_CTYPE locate facet.
1729 (add_keepsyms_file): Use ISSPACE instead of isspace.
1730 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1731 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1732 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1733 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1734 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1735 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1736 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1737 (quoteput): Use ISSPACE instead of isspace.
1738 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1739 instead of isalnum.
1740
db09f25b
AM
17412001-09-18 Alan Modra <amodra@bigpond.net.au>
1742
1743 * deffilep.y (def_stash_module): Constify "name" param.
1744
1745 * pe-dll.c: Replace CONST with const throughout.
1746 (quick_symbol): Constify "n1", "n2", "n3" params.
1747 (make_singleton_name_thunk): Constify "import" param. Make
1748 "buffer_len" a size_t.
1749 (make_import_fixup_entry): Constify "name", "fixup_name",
1750 "dll_symname" params.
1751 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1752 (pe_get32): Likewise.
1753 (pe_implied_import_dll): Likewise.
1754
1755 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1756 (sort_by_section_name): Likewise.
1757
1758 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1759 (make_import_fixup): Cast printf arg, rel->address to long rather
1760 than int.
1761 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1762
74699268
AM
17632001-09-15 Alan Modra <amodra@bigpond.net.au>
1764
1765 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1766 defines BufferSize. Increase buffer size by one.
1767
775cabad
NC
17682001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1769
1770 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1771
056a1d49
NC
17722001-09-14 Kevin Lo <kevlo@openbsd.org>
1773
1774 * configure.tgt: Add arm-openbsd target.
1775
a7d792bb
L
17762001-09-12 H.J. Lu <hjl@gnu.org>
1777
1778 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1779 eelf64lppc.o to ...
1780 (ALL_64_EMULATIONS): Here.
1781 * Makefile.in: Regenerated.
1782
0d888aac
CW
17832001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1784
1785 * emultempl/pe.em(make_import_fixup): change signature to
1786 take asection as well as arelec; we need this for proper
146e7110 1787 error reporting. Only call pe_create_import_fixup() if
0d888aac
CW
1788 there is no attempt to add a constant addend to the reloc;
1789 otherwise, report error condition.
1790 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1791 since final argument is a pointer to make_import_fixup().
1792 Change call to cb() to match make_import_fixup() signature.
1793 (make_import_fixup_mark): make buffer_len unsigned.
1794 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1795
17962001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1797
1798 * ld.texinfo: add verbose documentation for auto-import
146e7110 1799 direct-addressing workaround, to compliment the terse
0d888aac
CW
1800 error message.
1801
cedacdc0
CM
18022001-09-12 Andrew MacLeod <amacleod@redhat.com>
1803
146e7110 1804 * scripttempl/v850.sc: Add gcc_except_table sections.
cedacdc0 1805
3b16e843 18062001-09-11 Jeffrey A Law (law@cygnus.com)
38be0bb1
JL
1807
1808 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1809 * emulparams/h8300self.sh: Similarly.
1810
559e4713
NC
18112001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1812
1813 * ld.texinfo (Options, --stack): Correct default value for stack
1814 reserve.
1815
1fdf0249
TR
18162001-09-05 Tom Rix <trix@redhat.com>
1817
1818 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
146e7110 1819
9b5799b8
AJ
18202001-09-03 Andreas Jaeger <aj@suse.de>
1821
1822 * emultempl/beos.em: Declare prototypes for comparions functions,
1823 adjust definitions.
1824
48f6162b
AJ
18252001-09-02 Andreas Jaeger <aj@suse.de>
1826
1827 * emultempl/aix.em: Add missing prototype.
1828 * emultempl/lnk960.em: Likewise.
1829 * emultempl/vanilla.em: Likewise.
1830 * emultempl/armcoff.em: Likewise.
1831 * emultempl/armelf_oabi.em: Likewise.
1832 * emultempl/beos.em: Likewise.
1833 * emultempl/gld960c.em: Likewise.
1834 * emultempl/gld960.em: Likewise.
1835
1836 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1837 for prototype declaration.
1838
39e5585e
EC
18392001-08-31 Eric Christopher <echristo@redhat.com>
1840 Jason Eckhardt <jle@redhat.com>
1841
1842 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1843
3fc90ddb
AJ
18442001-08-31 Andreas Jaeger <aj@suse.de>
1845
1846 * emultempl/pe.em: Add missing prototypes.
1847 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1848 pe_find_data_imports.
1849 (pr_sym): Add unused attribute.
1850
d43ded80
PB
18512001-08-29 Joel Sherrill <joel@OARcorp.com>
1852
39e5585e 1853 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
1854 default from coff to elf.
1855
3946dd2f
JL
18562001-08-29 Jeff Law <law@redhat.com>
1857
1858 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1859 ARCH specification.
1860 * emulparams/h8300self.sh: Similarly.
1861
3b16e843 18622001-08-28 J"orn Rennecke <amylaar@redhat.com>
8af6dd41
JR
1863
1864 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1865 eh8300self.o .
1866 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1867 * configure.tgt (h8300-*-elf*): New case.
1868 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1869 * emulparams/h8300self.sh: New file.
1870 * Makefile.in: Regenerated.
1871
70d0c6e9
NC
18722001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1873
1874 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1875 with macro name.
1876
5c67d4bb
AM
18772001-08-27 Linus Nordberg <linus@swox.com>
1878 Alan Modra <amodra@bigpond.net.au>
1879
1880 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1881 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1882 Run "make dep-am"
1883 * Makefile.in: Regenerate.
1884 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1885 entries to correct alphabetical position.
1886 * emulparams/elf64ppc.sh: New.
1887 * emulparams/elf64lppc.sh: New.
1888
08131015
NC
18892001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1890
1891 * ldmain.c (main): Declare BSIZE as static.
1892
db6751f2
JJ
18932001-08-23 Jakub Jelinek <jakub@redhat.com>
1894
1895 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1896 into .rel.dyn resp. .rela.dyn if combreloc.
1897 (get_script): If .x linker script is equal to .xn, only put it
1898 once into the binary.
1899 Add .xc and .xsc scripts.
1900 (parse_args): Handle -z combreloc and -z nocombreloc.
1901 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1902 For .xc and .xsc scripts put all .rel* or .rela* input sections
1903 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1904 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1905 is elf.
1906 Strip trailing whitespace from script.
1907 Generate .xc and .xsc scripts if requested.
1908 * ldmain.c (main): Initialize link_info.combreloc and
1909 link_info.spare_dynamic_tags.
1910 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1911 (ld_options): Add --spare-dynamic-tags option.
1912 (parse_args): Likewise.
1913 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1914 * ldint.texinfo: Document .xc and .xsc linker scripts.
1915 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1916
63d069c0
L
19172001-08-22 H.J. Lu <hjl@gnu.org>
1918
1919 * emulparams/elf32fr30.sh: Add a newline.
1920
948f9114
AJ
19212001-08-21 Andreas Jaeger <aj@suse.de>
1922
1923 * deffilep.y: Add missing prototypes.
1924 * pe-dll.c: Likewise.
1925
ae7fb08f
AM
19262001-08-20 Alan Modra <amodra@bigpond.net.au>
1927
2af02257
AM
1928 * ldlang.c (insert_pad): Fix typos in last patch.
1929
1930 * ldlang.c: When traversing lang_statement_union_type lists,
1931 consistently use "header.next" rather than "next".
1932 * mpw-eppcmac.c: Likewise.
1933 * emultempl/beos.em: Likewise.
1934 * emultempl/hppaelf.em: Likewise.
1935 * emultempl/pe.em: Likewise.
1936 * ldlang.h (union lang_statement_union): Remove "next" field.
1937
c0c330a7
AM
1938 * ldlang.c (insert_pad): Use offsetof macro.
1939 (lang_size_sections): Always neuter padding statements.
1940 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1941
ae7fb08f
AM
1942 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1943 passed to lang_size_sections.
1944 (pe_exe_fill_sections): Likewise.
1945 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1946 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1947
fab80407
AM
19482001-08-18 Alan Modra <amodra@bigpond.net.au>
1949
1950 * emultempl/aix.em: Formatting fixes.
1951
b3327aad
AM
19522001-08-18 Alan Modra <amodra@bigpond.net.au>
1953
1954 * ldlang.c (insert_pad): Make use of an existing pad statement if
1955 available. Move code calculating alignment, adjusting section
1956 alignment power, and adjusting dot to ..
1957 (size_input_section): .. here. Remove unused relax param.
1958 (lang_size_sections): Change boolean `relax' param to boolean *.
1959 Adjust call to size_input_section. Make use of insert_pad to
1960 place pad after the assignment statement. If relaxing, zap
1961 padding statements.
1962 (reset_memory_regions): Reset output_bfd section sizes too.
1963 (relax_again): Move to..
1964 (lang_process): ..here. Adjust call to lang_size_sections, and
1965 remove duplicated code.
1966 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1967
563e308f
AM
19682001-08-17 Alan Modra <amodra@bigpond.net.au>
1969
1970 * ld.texinfo: Document that fill values now use the four least
1971 significant bytes.
1972 * emulparams/elf32fr30.sh (NOP): Update.
1973 * emulparams/elf32mcore.sh: Likewise.
1974 * emulparams/elf64_s390.sh: Likewise.
1975 * emulparams/elf_i386.sh: Likewise.
1976 * emulparams/elf_i386_be.sh: Likewise.
1977 * emulparams/elf_i386_chaos.sh: Likewise.
1978 * emulparams/elf_i386_ldso.sh: Likewise.
1979 * emulparams/elf_s390.sh: Likewise.
1980 * emulparams/elf_x86_64.sh: Likewise.
1981 * emulparams/i386moss.sh: Likewise.
1982 * emulparams/i386nw.sh: Likewise.
1983 * emulparams/m68kelf.sh: Likewise.
1984 * scripttempl/elf.sc: Update NOP comment.
1985 * scripttempl/elfi370.sc: Likewise.
1986 * scripttempl/elfm68hc11.sc: Likewise.
1987 * scripttempl/elfm68hc12.sc: Likewise.
1988 * scripttempl/nw.sc: Likewise.
1989
b90e1c6f
TR
19902001-08-15 Tom Rix <trix@redhat.com>
1991
1992 * ldgram.y (saved_script_handle): Initialize to NULL.
1993 * ldmain.c (main): Change check on saved_script_handle.
948f9114 1994
39dcfe18
AM
19952001-08-14 Alan Modra <amodra@bigpond.net.au>
1996
cde43e70
AM
1997 * emultempl/elf32.em: Formatting fixes.
1998 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1999 looking at sec->owner.
2000 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2001 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2002 unused code, and reorganize orphan section placement code.
2003
39dcfe18
AM
2004 * ldlang.c (wild_doit): Rename to lang_add_section.
2005 * ldlang.h: Here too.
2006 * mpw-elfmips.c: And here.
2007 * emultempl/beos.em: And here.
2008 * emultempl/elf32.em: And here.
2009 * emultempl/hppaelf.em: And here.
2010 * emultempl/pe.em: And here.
2011
908d20b3
RH
20122001-08-13 Richard Henderson <rth@redhat.com>
2013
2014 * emultempl/needrelax.em: New file.
2015 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2016 * Makefile.am (eelf64_ia64.c): Depend on it.
2017 * Makefile.in: Rebuild.
2018
0f33d40b
AM
20192001-08-13 Alan Modra <amodra@bigpond.net.au>
2020
22af9fd3
AM
2021 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2022 output_section is set non-NULL.
2023
0f33d40b
AM
2024 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2025 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2026 needlessly create an output_section_statement. Treat a correctly
2027 named output_section_statement with NULL bfd_section as compatible.
2028
55ab6103
HPN
20292001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2030
2031 * emultempl/generic.em: Support EXTRA_EM_FILE.
2032 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2033 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2034 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2035 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2036 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2037 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2038 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2039 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2040 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2041 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2042
24098abb
RH
20432001-08-12 Richard Henderson <rth@redhat.com>
2044
2045 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2046 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2047 scripttempl/v850.sc: Keep .jcr data.
2048
b9a8de1e 20492001-08-12 H.J. Lu <hjl@gnu.org>
146e7110
AM
2050 Andrew Haley <aph@cambridge.redhat.com>
2051 Nick Clifton <nickc@redhat.com>
b9a8de1e 2052
146e7110 2053 * ldgram.y (had_script): Change name to saved_script_handle.
b9a8de1e
NC
2054 Change type to file handle.
2055 * ld.h (had_script): Rename and retype.
2056 * ldfile.c (ldfile_open_command_file): Save the file handle
2057 used in saved_script_handle.
2058 * lexsup.c (parse_args): Do not allow -c option to alter
2059 saved_script_handle.
2060 * ldmain.c (main): Print out the linker script used if
2061 --verbose is given. Check saved_script_handle to obtain the
2062 external linker script used, or if NULL, dump the builtin
2063 script.
2064 * ld.texinfo: Document that --verbose now dumps the linker
2065 script used, regardless of whether it was an internal or an
2066 external script.
2067
0218d1e4
AJ
20682001-08-10 Andreas Jaeger <aj@suse.de>
2069
2070 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2071 to build warnings.
2072 * configure: Regenerate.
2073
5253f23b
AM
20742001-08-09 Alan Modra <amodra@bigpond.net.au>
2075
73810896
AM
2076 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2077
5253f23b
AM
2078 * scripttempl/elf.sc: Move non-text .dynamic section before
2079 .plt/.got/.sdata* group.
2080 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2081 (OTHER_SDATA_SECTIONS): Add.
2082 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2083 OTHER_GOT_SECTIONS.
2084 * emulparams/crislinux.sh: Likewise.
2085 * emulparams/elf32b4300.sh: Likewise.
2086 * emulparams/elf32bmip.sh: Likewise.
2087 * emulparams/elf32bmipn32.sh: Likewise.
2088 * emulparams/elf32bsmip.sh: Likewise.
2089 * emulparams/elf32btsmip.sh: Likewise.
2090 * emulparams/elf32ebmip.sh: Likewise.
2091 * emulparams/elf32elmip.sh: Likewise.
2092 * emulparams/elf32l4300.sh: Likewise.
2093 * emulparams/elf32lmip.sh: Likewise.
2094 * emulparams/elf32lsmip.sh: Likewise.
2095 * emulparams/elf32ltsmip.sh: Likewise.
2096 * emulparams/elf64bmip.sh: Likewise.
2097 * emulparams/elf64btsmip.sh: Likewise.
2098 * emulparams/elf64ltsmip.sh: Likewise.
2099
179c732c
AM
21002001-08-08 Alan Modra <amodra@bigpond.net.au>
2101
2102 * genscripts.sh: Source the emulparams script before each output
2103 script is generated so that variables like `RELOCATING' may affect
2104 variables defined in the emulparams script.
2105
3fd36710
AM
21062001-08-04 Alan Modra <amodra@bigpond.net.au>
2107
20713691
AM
2108 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2109 order.
2110
3fd36710
AM
2111 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2112 ie. iterate over wild_statement.section_list.
2113 (gld${EMULATION_NAME}_place_orphan): Likewise.
2114
de0b1853
SC
21152001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2116
2117 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2118 .fini[0-4] sections used by _exit
2119 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2120 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2121 * scripttempl/elfm68hc11.sc: Likewise.
2122
ff7e6f88
L
21232001-08-03 H.J. Lu <hjl@gnu.org>
2124
2125 * emultempl/beos.em (init): Add the missing initialization.
2126
b6bf44ba
AM
21272001-08-03 Alan Modra <amodra@bigpond.net.au>
2128
2129 * ld.texinfo (Input Section Basics): Clarify ordering of output
2130 sections.
2131 * ldlang.c (callback_t): Add wildcard_list param.
2132 (walk_wild_section): Remove "section" param. Rewrite for
2133 lang_wild_statement_type change. Remove unique_section_p test.
2134 (walk_wild_file): Remove "section" param.
2135 (walk_wild): Remove "section" and "file" params.
2136 (lang_gc_wild): Likewise.
2137 (wild): Likewise. Modify for lang_wild_statement_type change.
2138 (wild_sort): Likewise. Add "sec" param.
2139 (gc_section_callback): Likewise.
2140 (output_section_callback): Likewise. Do unique_section_p test.
2141 (map_input_to_output_sections): Modify call to wild.
2142 (lang_gc_sections_1): Likewise.
2143 (print_wild_statement): Modify for lang_wild_statement_type
2144 change.
2145 (lang_add_wild): Replace filename, filenames_sorted param with
2146 filespec. Replace section_name, sections_sorted,
2147 exclude_filename_list with section_list.
2148 * ldlang.h (lang_add_wild): Here too.
2149 (lang_wild_statement_type): Replace section_name, sections_sorted,
2150 and exclude_filename_list with section_list.
2151 * ldgram.y (current_file): Delete.
2152 (%union): Add wildcard_list.
2153 (file_NAME_list): Set type to wildcard_list. Build a linked list
2154 rather than calling lang_add_wild for each entry.
2155 (input_section_spec_no_keep): Call lang_add_wild here instead.
2156 * ld.h (struct wildcard_list): Declare.
2157 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2158
b044cda1
CW
21592001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2160
2161 * ldmain.c (main): initialize link_info.pei386_auto_import
2162 * pe-dll.c: new tables for auto-export filtering
2163 (auto_export): change API, pass abfd for contextual filtering.
b6bf44ba 2164 Loop thru tables of excluded symbols instead of comparing
b044cda1
CW
2165 "by hand".
2166
21672001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2168
b6bf44ba
AM
2169 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2170 static variable current_sec (static struct sec *). Add
b044cda1 2171 forward declaration for add_bfd_to_link.
b6bf44ba
AM
2172 (process_def_file): Don't export undefined symbols. Do not
2173 export symbols starting with "_imp__". Call auto_export()
b044cda1
CW
2174 with new API.
2175 (pe_walk_relocs_of_symbol): New function.
2176 (generate_reloc): add optional extra debugging
b6bf44ba 2177 (pe_dll_generate_def_file): eliminate extraneous initial blank
b044cda1 2178 line in output
b6bf44ba 2179 (make_one): enlarge symtab to make room for __nm__ symbols
b044cda1
CW
2180 (DATA auto-import support).
2181 (make_singleton_name_thunk): New function.
2182 (make_import_fixup_mark): New function.
2183 (make_import_fixup_entry): New function.
2184 (pe_create_import_fixup): New function.
b6bf44ba 2185 (add_bfd_to_link): Specify that 'name' argument is a CONST
b044cda1 2186 char *.
b6bf44ba
AM
2187 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2188 declare new functions pe_walk_relocs_of_symbol and
b044cda1
CW
2189 pe_create_import_fixup.
2190 * emultempl/pe.em: add new options --enable-auto-import,
2191 --disable-auto-import, and --enable-extra-pe-debug.
2192 (make_import_fixup): New function.
2193 (pe_find_data_imports): New function.
2194 (pr_sym): New function.
b6bf44ba 2195 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
b044cda1
CW
2196 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2197 CODE.
2198
21992001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
b6bf44ba 2200
b044cda1
CW
2201 * ld.texinfo: add additional documentation for
2202 --export-all-symbols. Document --out-implib,
2203 --enable-auto-image-base, --disable-auto-image-base,
b6bf44ba
AM
2204 --dll-search-prefix, --enable-auto-import, and
2205 --disable-auto-import.
b044cda1
CW
2206 * ldint.texinfo: Add detailed documentation on auto-import
2207 implementation.
2208
156e34dd
NC
22092001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2210
2211 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2212 example.
2213
d6231427
AM
22142001-07-24 Alan Modra <amodra@bigpond.net.au>
2215
2216 * Makefile.am: Update dependencies with "make dep-am".
2217 * Makefile.in: Regenerate
2218
e14ec88b
AM
22192001-07-23 Alan Modra <amodra@bigpond.net.au>
2220
2221 * ldcref.c (check_section_sym_xref): New function.
2222 (check_nocrossrefs): Call it.
2223 (check_nocrossref): Interate over h->refs here instead of..
2224 (check_refs): ..here. Pass in the symbol name, section, and bfd
2225 rather than hash_entry pointers.
2226 (struct check_refs_info): Keep symbol name rather than hash entry.
2227 Remove "same".
2228 (check_reloc_refs): Tweak for above changes in check_refs_info.
2229 Only report references to section syms when symname is NULL to
2230 prevent duplicate messages for the same reloc.
2231
1b577b00
NC
22322001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2233
c7d701b0
NC
2234 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2235 available. Do not print NULL trees.
2236 (exp_print_token): Print unknown tokens with values > 126 as
2237 decimal values not ASCII characters.
2238
1545243b
NC
2239 * ldlang.c (lang_leave_overlay): If a region is specified assign
2240 it to all sections inside the overlay unless they have been
2241 assigned to the own, non-default, memory region.
2242
1b577b00
NC
2243 * README: Add header for consistency with other README files.
2244
5030876b
L
22452001-07-14 H.J. Lu <hjl@gnu.org>
2246
2247 * emultempl/elf32.em (output_prev_sec_find): Never return
2248 bfd_abs_section_ptr, bfd_com_section_ptr nor
2249 bfd_und_section_ptr.
2250
18c7a9a5
NC
22512001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2252
22af9fd3 2253 * Makefile.am (em32relf.c): Change dependency from generic.em to
18c7a9a5
NC
2254 elf32.em.
2255 * Makefile.in: Regenerate.
2256
9ffecff1
MG
22572001-07-14 matthew green <mrg@eterna.com.au>
2258
2259 * configure.tgt (i386-*-netbsdelf*): New target.
2260 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2261
95500e1c
JJ
22622001-07-13 Jakub Jelinek <jakub@redhat.com>
2263
2264 * emultempl/elf32.em (output_prev_sec_find): New.
2265 (place_orphan): Use it.
2266
e97cb84f
L
22672001-07-11 H.J. Lu <hjl@gnu.org>
2268
2269 * ldmain.c (main): Fix typos in the last change.
2270
7333607e
JJ
22712001-07-11 Jakub Jelinek <jakub@redhat.com>
2272
2273 * ldmain.c (main): Disallow -F and -f without -shared.
2274
d29d80f2
NC
22752001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2276
2277 * emultempl/pe.em (after_open): Check for the output_bfd not
2278 having any coff_data structure allocated to it.
2279
c2a1a436
DB
22802001-07-09 David O'Brien <obrien@FreeBSD.org>
2281
2282 * emultempl/elf32.em: Do not assuming that contents of the buffer
2283 returned from basename function will remain unchanged accross other
2284 function calls.
2285
63653551
L
22862001-07-03 H.J. Lu <hjl@gnu.org>
2287
2288 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2289 2001-07-03. It creates dynamic entries even for static binaries.
2290
d303a449
L
22912001-07-03 Jakub Jelinek <jakub@redhat.com>
2292
2293 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2294 (DYNAMIC): Use it to reserve few dynamic entries for
2295 post-linking tools.
2296
9f22353f
AM
22972001-06-27 Alan Modra <amodra@bigpond.net.au>
2298
2299 * emulparams/hppa64linux.sh: New file.
2300 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2301 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2302 (ehppa64linux.c): Add rule to make it.
2303 Run "make dep-am".
2304 * Makefile.in: Regenerate.
2305
62bf86b4
HPN
23062001-06-21 Hans-Peter Nilsson <hp@axis.com>
2307
2308 * ld.texinfo (Options, -r): Mention restrictions when using
2309 different object formats.
2310
429d935d
HPN
23112001-06-19 Hans-Peter Nilsson <hp@axis.com>
2312
2313 * ldlang.c (lang_check): Emit fatal error if relocatable link
2314 between different object flavours with relocations in input.
2315
cb840a31
L
23162001-06-19 H.J. Lu <hjl@gnu.org>
2317
2318 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2319 (--version-script): Mention the language support.
2320
9bf03acc
L
23212001-06-19 H.J. Lu <hjl@gnu.org>
2322
2323 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2324
c45021f2
NC
23252001-06-18 H.J. Lu <hjl@gnu.org>
2326
b6bf44ba
AM
2327 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2328 (diststuff): Add $(MANS).
2329 * Makefile.in: Regenerated.
c45021f2 2330
b6bf44ba 2331 * ld.1: Removed.
c45021f2 2332
6caa99ab
HPN
23332001-06-18 Hans-Peter Nilsson <hp@axis.com>
2334
605d9b3a
HPN
2335 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2336 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2337 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2338 * ld.h (args_type): Remove member export_dynamic. All users
2339 changed to use struct bfd_link_info member.
2340
6caa99ab
HPN
2341 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2342 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2343 * Makefile.in: Regenerate.
2344
6f9efd97
L
23452001-06-18 H.J. Lu <hjl@gnu.org>
2346
2347 * ldlang.c (init_os): Add the newline to the einfo call.
2348 (lang_check): Likewise.
2349 (lang_do_version_exports_section): Likewise.
2350
5af9fd8b
L
23512001-06-15 H.J. Lu <hjl@gnu.org>
2352
2353 * lexsup.c (parse_args); Save optind to report unrecognized
2354 option.
2355
2a096f04
HPN
23562001-06-15 Hans-Peter Nilsson <hp@axis.com>
2357
7e66c3f5
HPN
2358 * ldlang.c (lang_check): Emit fatal error if relocatable link
2359 between different object flavours.
2360
2a096f04
HPN
2361 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2362 Set new link_info member export_dynamic.
2363 * ldmain.c (main): Initialize new link_info member export_dynamic.
2364
6770ec8c
NC
23652001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2366
2367 * ldlang.c (walk_wild): Only call walk_wild_file if
2368 lookup_name returns something.
b6bf44ba 2369 (lookup_name): If load_symbols fails, return NULL.
22af9fd3 2370 (load_symbols): Change to a boolean function.
b6bf44ba 2371 (open_input_bfds): If load_symbols fails then do not make the
6770ec8c
NC
2372 executable.
2373
8529105a
AM
23742001-06-08 Alan Modra <amodra@bigpond.net.au>
2375
2376 * ldlang.c (record_bfd_errors): Remove.
2377
2378 * emultempl/aix.em: Fix copyright dates.
2379
8f3aa7a0
AJ
23802001-06-07 Andreas Jaeger <aj@suse.de>
2381
2382 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2383 (TEXT_START_ADDR): Likewise.
2384
3277f888
AM
23852001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2386
2387 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2388
3763134d
DD
23892001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2390
2391 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2392
5929ebc0
L
23932001-05-31 H.J. Lu <hjl@gnu.org>
2394
2395 * ldlang.c (open_input_bfds): Don't change the bfd error
2396 handler whilst loading symbols.
2397
c04a062d
NC
23982001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2399
2400 * configure.tgt: Remove i370-mvs architecture, it is not currently
2401 supported.
2402
96fcab3e
L
24032001-05-25 H.J. Lu <hjl@gnu.org>
2404
2405 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2406 like emulparams/aixppc.sh.
2407
db8d4f23
L
24082001-05-25 H.J. Lu <hjl@gnu.org>
2409
2410 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2411 setting of output_filename after bfd_scan_arch.
2412 * emultempl/pe.em: Likewise.
2413
5f642101
L
24142001-05-25 H.J. Lu <hjl@gnu.org>
2415
2416 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2417 like emulparams/aixppc.sh.
2418
2419 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2420 instead of ${srcdir}/emultempl/stringify.sed.
2421
64e9ece0
TW
24222001-05-25 Timothy Wall <twall@oculustech.com>
2423
2424 * emulparams/elf64_aix.sh: Change settings to match IBM linker
8f3aa7a0 2425 output.
64e9ece0 2426
c709b096
AM
24272001-05-25 Alan Modra <amodra@one.net.au>
2428
2429 * configure.host: Replace linuxoldld with linux*oldld.
2430 * configure.tgt: Likewise.
2431
6cbdcc6f
L
24322001-05-24 H.J. Lu <hjl@gnu.org>
2433
2434 * emultempl/stringify.sed: Removed again.
2435
86af25fe
L
24362001-05-24 H.J. Lu <hjl@gnu.org>
2437
2438 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2439 (gld${EMULATION_NAME}_before_parse): Initialize
2440 ldfile_output_architecture, ldfile_output_machine and
2441 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2442 * emultempl/beos.em: Likewise.
2443 * emultempl/elf32.em: Likewise.
2444 * emultempl/linux.em: Likewise.
2445 * emultempl/mipsecoff.em: Likewise.
2446 * emultempl/pe.em: Likewise.
2447 * emultempl/sunos.em: Likewise.
2448
3b1b01cf
TR
24492001-05-24 Tom Rix <trix@redhat.com>
2450
8f3aa7a0 2451 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3b1b01cf
TR
2452 udate import file format.
2453 (change_symbol_mode) New, same
2454 (is_syscall) New, same
2455 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2456 * emulparams/aixppc64.sh : same
2457 * emulparams/aixrs6.sh : same
2458 * emulparams/ppcmacos.sh : same
2459 * emultempl/aix.em : use strtoull to parse options
2460 * Makefile.am : add eaixppc64 emulation for xcoff64
2461 * Makefile.in : same
2462 * configure.tgt : same
2463
2464 * scripttempl/aix.sc : default text section offset to 0x10000000
146e7110 2465 default data section offset to 0x20000000
3b1b01cf 2466 add .sv3264 and .sv64 pseudo sections
8f3aa7a0 2467 loader and debug sections use the currect section offset.
3b1b01cf
TR
2468
2469 * emultempl/aix.em : Add xcoff64 support
2470 Add -binitfini support
8f3aa7a0 2471 (gld${EMULATION_NAME}_before_parse) -binitfini
3b1b01cf 2472 (gld${EMULATION_NAME}_parse_args) same
8f3aa7a0 2473 (gld${EMULATION_NAME}_before_allocation) format change for special
3b1b01cf
TR
2474 sections
2475
2476 * emulparams/aixppc64.sh : New file for xcoff64 support
8f3aa7a0 2477
57e6abd2
AO
24782001-05-23 Alexandre Oliva <aoliva@redhat.com>
2479
2480 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2481 variable to avoid non-portable shell construct.
2482
d1cf510e
NC
24832001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2484
2485 * ldmain.c (get_emulation): Add -mips5 command line argument.
2486
506eee22
NC
24872001-05-22 Alexandre Oliva <aoliva@redhat.com>
2488
2489 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2490 (ELF_INTERPRETER_NAME): Define it.
2491 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2492 it.
2493 * configure.tgt (targ_emul, targ_extra_emuls)
2494 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2495 as primary, elf_i386 as extra.
2496 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2497 (eelf_i386_ldso.c): New rule.
2498 * Makefile.in: Rebuilt.
2499
25002001-05-22 Nick Clifton <nickc@redhat.com>
2501
2502 * lexsup.c (ld_options): Allow -I to be an alias for
2503 --dynamic-linker. This is for Solaris compatability.
2504 * ld.texinfo: Document that -I can be used.
2505 * ld.1: Regenerate.
2506
d1778b88
AM
25072001-05-16 Alan Modra <amodra@one.net.au>
2508
2509 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2510 whether an input section is the first one assigned to an output
2511 section.
2512 Assorted formatting fixes.
2513
02649152
DD
25142001-05-14 DJ Delorie <dj@delorie.com>
2515
2516 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2517 * Makefile.in: Ditto.
2518
579f31ac
JJ
25192001-05-11 Jakub Jelinek <jakub@redhat.com>
2520
2521 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2522 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2523 output sections.
2524 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2525
8550eb6e
JJ
25262001-05-11 Jakub Jelinek <jakub@redhat.com>
2527
2528 * ldlang.c (lang_process): Call bfd_merge_sections.
2529
8e5a525c
AM
25302001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2531
2532 * ldgram.y: Fix typo.
2533
1c9acd94
L
25342001-05-03 H.J. Lu <hjl@gnu.org>
2535
2536 * emultempl/elf32.em: Include "libiberty.h".
2537 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2538 basename of the bfd filename.
2539 (gld${EMULATION_NAME}_stat_needed): Likewise.
2540 (gld${EMULATION_NAME}_try_needed): Likewise.
2541 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2542
14fe918e
L
25432001-05-02 H.J. Lu <hjl@gnu.org>
2544
2545 * emultempl/pe.em: Include <ctype.h>.
2546
c7e40348
NC
25472001-05-02 Johan Rydberg <jrydberg@opencores.org>
2548
b6bf44ba 2549 * emulparams/elf32openrisc.sh: New file.
c7e40348 2550
b6bf44ba
AM
2551 * Makefile.am: Add OpenRISC target.
2552 * Makefile.in: Regenerated.
c7e40348 2553
b6bf44ba 2554 * configure.tgt: Add openrisc-*-* mapping.
c7e40348
NC
2555
25562001-05-02 Nick Clifton <nickc@redhat.com>
2557
2558 * emultempl/aix.em: Replace buystring with xstrdup.
2559 * emultempl/beos.em: Replace buystring with xstrdup.
8f3aa7a0 2560
d1b2b2dc
L
25612001-05-02 H.J. Lu <hjl@gnu.org>
2562
2563 * ldfile.c: Include "libiberty.h".
2564 * ldlex.l: Likewise.
2565
2566 * ldmisc.c (buystring): Removed.
2567 * ldmisc.h: Likewise.
2568
2569 * ldfile.c: Replace buystring with xstrdup.
2570 * ldlang.c: Likewise.
2571 * ldlex.l: Likewise.
2572 * ldmain.c: Likewise.
2573 * ldmisc.c: Likewise.
2574 * lexsup.c: Likewise.
2575 * mpw-eppcmac.c: Likewise.
2576
35714f2a
AJ
25772001-04-30 Andreas Jaeger <aj@suse.de>
2578
2579 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2580
884fb58e
NC
25812001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2582
b6bf44ba
AM
2583 * ldlang.c (load_symbols): Give emulation a chance
2584 to process unrecognized file before fatal error is
2585 reported, not after.
884fb58e 2586
87748b32
NC
25872001-04-27 Sean McNeil <sean@mcneil.com>
2588
2589 * configure.tgt: Add arm-vxworks target.
2590 * scripttempl/armcoff.sc: Support .text or .data as a section name
2591 prefix.
2592 Define _etext.
35714f2a 2593
7ce691ae
C
25942001-04-13 J.T. Conklin <jtc@redback.com>
2595
2596 * ld.texinfo: Document --fatal-warnings.
2597 * ld.1: Regenerate.
2598
2599 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
35714f2a 2600 warnings have been turned into errors.
7ce691ae
C
2601 * lexsup.c (OPTION_WARN_FATAL): Define.
2602 (ld_options): Entry for --fatal-warnings.
2603 (parse_args): Handle OPTION_WARN_FATAL.
2604 * ld.h (ld_config_type): Add fatal_warnings field.
2605
f5fa8ca2
JJ
26062001-04-13 Jakub Jelinek <jakub@redhat.com>
2607
2608 * ldmain.c (main): Default to discard_sec_merge.
2609 * lexsup.c (OPTION_DISCARD_NONE): Define.
2610 (ld_options): Add --discard-none.
2611 (parse_args): Handle OPTION_DISCARD_NONE.
2612 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2613 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2614 all its input sections match.
2615
fdec3cfc
L
26162001-04-05 Steven J. Hill <sjhill@cotw.com>
2617
2618 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2619 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2620 (eelf32ltsmip.c): New target.
2621 (eelf64btsmip.c): Likewise.
2622 (eelf64ltsmip.c): Likewise.
2623 * Makefile.in: Regenerated.
2624
2625 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2626 target.
2627 (mips*-*-linux-gnu*): Likewise.
2628
2629 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2630 MIPS taget.
35714f2a 2631 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
fdec3cfc
L
2632 target.
2633 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2634 endian target.
2635
589bad82
HPN
26362001-04-05 Hans-Peter Nilsson <hp@axis.com>
2637
2638 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2639 correct value of __Stext here.
2640 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2641 .startup section.
2642
2643 * emulparams/crislinux.sh: Remove FIXME.
2644
94202e16
AM
26452001-04-02 Alan Modra <alan@linuxcare.com.au>
2646
2647 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2648 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2649
1268a053
HPN
26502001-03-27 Hans-Peter Nilsson <hp@axis.com>
2651
2652 * configure.tgt (cris-*-*): Change default emulation to criself.
2653 (cris-*-*aout*): New rule.
2654
d85e9ff7
AM
26552001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2656
2657 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2658 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2659
0879a67a
AJ
26602001-03-26 Andreas Jaeger <aj@suse.de>
2661
2662 * ld.texinfo (Overview): Fix syntax in texi code.
2663
0285c67d
NC
26642001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2665
2666 * ld.texinfo: Put @c man indications to generate the ld man page.
2667 When generating man, define all the variables. Define SEEALSO
2668 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2669 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2670 (ld.1): Generate from ld.texinfo.
2671 * Makefile.in: Regenerate.
2672
c20ec07b
NC
26732001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2674
2675 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
146e7110 2676 and '-fdata-sections'. Set the VMA of STABS sections to zero.
c20ec07b 2677
cc5ce052
UD
26782001-03-17 Ulrich Drepper <drepper@redhat.com>
2679
2680 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2681 is an absolute path look only for this file and not along the path.
2682
a1ab1d2a
UD
26832001-03-17 Ulrich Drepper <drepper@redhat.com>
2684
2685 * emultempl/elf32.em (OPTION_GROUP): New macro.
2686 Add new option Bgroup to longopts.
2687 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2688 (gld*_list_options): Add -Bgroup and -z defs.
2689 * ld.1: Document -Bgroup and -z defs.
2690 * ld.texinfo: Likewise.
2691
788fca5a
MM
26922001-03-07 Michael Meissner <meissner@redhat.com>
2693
2694 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2695 with sections created by -fdata-sections.
2696 (.dynbss,.bss): Ditto.
2697
1c7566d1
AM
26982001-03-05 Alan Modra <alan@linuxcare.com.au>
2699
2700 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2701 after_allocation_default, not gld..._before_allocation.
2702
27b7e12d
AM
27032001-02-27 Alan Modra <alan@linuxcare.com.au>
2704
2705 * configure.in (BFD_VERSION): New.
2706 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2707 * configure: Regenerate.
2708 * Makefile.am: Run "make dep-am"
2709 * Makefile.in: Regenerate.
2710
2bc551c7
TW
27112001-02-26 Timothy Wall <twall@cygnus.com>
2712
2713 * emulparams/elf64_aix.sh: Add additional read-only sections;
2714 uncomment lines which are now required.
2715
1276aefa
NC
27162001-02-26 H.J. Lu <hjl@gnu.org>
2717
2718 * ldlang.c (open_input_bfds): Set the bfd error handler so
b6bf44ba
AM
2719 that problems can be caught whilst loading symbols.
2720 (record_bfd_errors): New function: Report BFD errors and mark
2721 the executable output as being invalid.
1276aefa 2722
41c49998
TW
27232001-02-22 Timothy Wall <twall@cygnus.com>
2724
2725 * configure.host: Add configuration for ia64-*-aix*.
2726 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2727 Add dependencies for eelf64_aix.c.
2728 * Makefile.in: Regenerate.
2729 * configure.tgt: Add ia64-*-aix* mapping.
2730 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
a2b64bed 2731 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
0879a67a
AJ
2732 AIX-specific test.
2733
78f85fd7
L
27342001-02-20 H.J. Lu <hjl@gnu.org>
2735
2736 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2737 false if we found the file.
2738
1ac7e077 27392001-02-18 David O'Brien <obrien@FreeBSD.org>
fb33b906
DB
2740
2741 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2742 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2743
e135f41b
NC
27442001-02-18 lars brinkhoff <lars@nocrew.org>
2745
2746 * Makefile.am: Add PDP-11 target.
2747 * configure.tgt: Likewise.
2748 * emulparams/pdp11.sh: New file.
2749
a842aceb
DB
27502001-02-17 David O'Brien <obrien@FreeBSD.org>
2751
2752 * configure.host: Add a generic FreeBSD configuration entry such that
2753 all [modern] FreeBSD systems on all platforms will look the same.
2754
24174db0
L
27552001-02-14 H.J. Lu <hjl@gnu.org>
2756
2757 * configure.tgt: Remove mention of earmelf_linux26.
2758
30c3c13a
RH
27592001-02-13 Richard Henderson <rth@redhat.com>
2760
2761 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2762
b46a87b1
L
27632001-02-13 H.J. Lu <hjl@gnu.org>
2764
2765 * ldexp.h (node_type): Add etree_provided.
2766 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2767 type to etree_provided if defined by PROVIDE. Allow updating
0879a67a 2768 for etree_provided.
b46a87b1
L
2769 (exp_print_tree): Handle etree_provided.
2770 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2771 etree_provided.
2772
f3988fd9
RH
27732001-02-09 David Mosberger <davidm@hpl.hp.com>
2774
2775 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2776 .IA_64.unwind.* pattern to unwind table section and
2777 .IA_64.unwind_info* pattern to unwind info section.
2778
a85d7ed0
NC
27792001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2780
2781 * Makefile.am: Add linux target for S/390.
2782 * Makefile.in: Likewise.
2783 * configure.host: Likewise.
2784 * configure.tgt: Likewise.
2785 * emulparams/elf64_s390.sh: New file.
2786 * emulparams/elf_s390.sh: New file.
2787
780248c4
JJ
27882001-02-09 Jakub Jelinek <jakub@redhat.com>
2789
2790 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2791 targ_extra_libpath.
2792 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2793
0e2534bd
PB
27942001-02-06 Philip Blundell <philb@gnu.org>
2795
2796 * Makefile.am: Remove mention of earmelf_linux26.
2797 * Makefile.in: Regenerate.
2798
46c1ea57
PB
27992001-02-04 Philip Blundell <philb@gnu.org>
2800
2801 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2802 * emulparams/armelf_linux26.sh: Delete.
2803 * configure.tgt: Remove mention of armelf_linux26 emulation.
2804
0088edd2
NC
28052001-02-01 Nick Clifton <nickc@redhat.com>
2806
2807 * ld.1: Replace occurances of -oformat with --oformat.
2808
02aa14fb
AM
28092001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2810
2811 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2812 load_base is specified.
2813
f813923c
HPN
28142001-01-24 Hans-Peter Nilsson <hp@axis.com>
2815
2816 * emultempl/elf32.em: Correct spelling in comments and listed
2817 options.
2818
c1eb1488
AM
28192001-01-23 Alan Modra <alan@linuxcare.com.au>
2820
2821 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2822 default for the first section of a group of overlay sections.
2823
d9fc3714
AM
28242001-01-22 Alan Modra <alan@linuxcare.com.au>
2825
2826 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2827 * Makefile.in: Regenerate.
2828 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2829 Check for null tool_dir.
2830
6be0ca94
JW
28312001-01-16 Jim Wilson <wilson@redhat.com>
2832
2833 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2834 and IA_64.unwind.info.
2835
b9247304
L
28362001-01-16 H.J. Lu <hjl@gnu.org>
2837
2838 * ldlang.c (lang_check): Merge the private data only if the
2839 input file has contents.
2840
577a0623
AM
28412001-01-14 Alan Modra <alan@linuxcare.com.au>
2842
d952f17a
AM
2843 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2844
ffd6e9de
AM
2845 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2846 enabling search for libmilli. On a relocatable link, make .text
2847 sections unique.
2848 (LDEMUL_AFTER_PARSE): Define.
2849 (hppaelf_finish): Correct spelling of relocatable in comments.
2850
577a0623
AM
2851 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2852 rummage through the script for sections on the unique list.
2853 Correct length of strncmp for ".note".
2854 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2855
2856 * ldlang.c (unique_section_list): New var.
2857 (unique_section_p): New function.
2858 (walk_wild_section): Don't match sections on unique_section_list.
2859 (lang_add_unique): New function.
ffd6e9de 2860 Correct spelling of relocatable in comments.
577a0623
AM
2861
2862 * ldlang.h (struct unique_sections): Declare.
2863 (unique_section_list): Declare.
2864 (unique_section_p): Declare.
2865 (lang_add_unique): Declare.
2866
2867 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2868 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2869
2870 * ld.texinfo (--unique): Update.
2871
b7ed8fad
NC
28722001-01-13 Nick Clifton <nickc@redhat.com>
2873
2874 * lexsup.c (parse_args): Remove spurious white space.
2875
d0398d6a
NC
28762001-01-12 Nick Clifton <nickc@redhat.com>
2877
2878 * lexsup.c (parse_args): Update copyright date.
2879
350fdb00
PB
28802001-01-12 Philip Blundell <pb@futuretv.com>
2881
2882 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2883
60c6797e
KH
28842001-01-10 Kazu Hirata <kazu@hxi.com>
2885
2886 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2887 * scripttempl/h8300h.sc: Fix formatting.
2888 * scripttempl/h8300s.sc: Likewise.
69f06969
KH
2889 * scripttempl/h8500.sc: Likewise.
2890 * scripttempl/h8500b.sc: Likewise.
2891 * scripttempl/h8500c.sc: Likewise.
2892 * scripttempl/h8500m.sc: Likewise.
2893 * scripttempl/h8500s.sc: Likewise.
60c6797e 2894
482e8b32
DB
28952000-01-07 David O'Brien <obrien@BSDi.com>
2896
2897 * emultempl/elf32.em: Only perform Linux ld hints processing when
2898 targeting Linux.
2899
d7ed7ca6
PB
29002001-01-07 Philip Blundell <philb@gnu.org>
2901
2902 * ld.texinfo (Bug Reporting): Update email address for reports.
2903
0fc3347a
NC
29042000-12-31 Nick Clifton <nickc@redhat.com>
2905
2906 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2907 options by checking for a return value of '?' not -1.
2908
e4897a32
NC
29092000-12-28 Nick Clifton <nickc@redhat.com>
2910
2911 * lexsup.c (struct ld_option): Add new enum value:
2912 EXACTLY_TWO_DASHES.
2913 (ld_options[]): Change -omagic, -output and -oformat options
2914 to be EXACTLY_TWO_DASHES.
2915 (OUTPUT_COUNT): Use ARRAY_SIZE.
2916 (parse_args): Change parameter 'argc' to unsigned.
2917 Place EXACTLY_TWO_DASHES options into new really_longopts
2918 array.
2919 If getopt_long_only fails, try calling getopt_long using the
2920 really_longopts array.
2921 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2922 TWO_DASHES options.
2923
2924 * ldlex.h: Fix prototype of parse_args.
2925
2926 * ld.texinfo: Document that long options starting with 'o'
2927 must be preceeded by two dashes. Change example of a single
2928 dashed long option from -oformat to -trace-symbol.
2929
1122a5fc
NC
29302000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2931
2932 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2933 (longopts[]): New --no-default-excludes option.
2934 (gld_${EMULATION_NAME}_list_options): Document.
2935 (gld_${EMULATION_NAME}_parse_args): Handle.
2936
037849a9
NC
29372000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2938
2939 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2940 whitespace, it breaks the K&R C preprocessor.
2941
7ec229ce
DD
29422000-12-11 DJ Delorie <dj@redhat.com>
2943
2944 * ld.texinfo: Add notes about --whole-archive and gcc.
2945
b79e8c78
NC
29462000-11-18 Fred Fish <fnf@be.com>
2947
2948 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2949 (ld_options): Entry for --allow-shlib-undefined.
2950 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2951 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2952 to false.
2953 * ld.texinfo: Document new command line switch.
d952f17a 2954
9a8e2505
GK
29552000-12-12 Geoffrey Keating <geoffk@redhat.com>
2956
2957 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2958 .fixup is actually read/write.
2959 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2960 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2961 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2962
3b16e843 29632000-12-11 Jan Hubicka <jh@suse.cz>
b8355149
JH
2964
2965 * NEWS: Add note about x86_64 architecture.
2966
93b63cd3
DD
29672000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2968
2969 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2970 Set DWARF2 sections to a VMA of zero.
2971
68b2fc7a 29722000-12-01 Joel Sherrill <joel@OARcorp.com>
24f6971a 2973
d952f17a 2974 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
24f6971a
NC
2975 New targets.
2976 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2977 (sparc*-*-rtems*): Switched from a.out to ELF.
2978
2be3aa03
NC
29792000-11-30 Jan Hubicka <jh@suse.cz>
2980
2981 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2982 (eelf_x86_64.c): New.
2983 * Makefile.in: Regenerate.
2984 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2985 * emulparams/elf_x86_64.sh: New.
2986
8c899858
HPN
29872000-11-30 Hans-Peter Nilsson <hp@axis.com>
2988
2989 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2990 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2991
2992 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2993 merging non-a.out sections into CONSTRUCTING.
2994
e47b9e39
NC
29952000-11-28 Nick Clifton <nickc@redhat.com>
2996
2997 * ld.1 (COPYING): Mention that the GNU Free Documentation
2998 License is present in the sources, but not the output, and
2999 also available from the GNU website.
3000 (GNU Free Documentation License): Comment out this section.
3001
ad95f82a
DB
30022000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3003
3004 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3005 does not use them.
3006
fd89e65f
DB
30072000-11-25 David O'Brien <obrien@FreeBSD.org>
3008
3009 * ld.1: Remove old date so it does not give the impression the manpage
3010 is way out of date.
3011
077b8428
NC
30122000-11-24 Nick Clifton <nickc@redhat.com>
3013
3014 * configure.tgt (xscale-coff): Add target.
3015 (xscale-elf): Add target.
3016
49425d28
NC
30172000-11-24 Fred Fish <fnf@be.com>
3018
d952f17a
AM
3019 * ldmain.c (main): Remove redundant init of config.make_executable
3020 to true.
49425d28 3021
d3480244
RH
30222000-11-15 Richard Henderson <rth@redhat.com>
3023
3024 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3025
1ce7de8b
KH
30262000-11-14 Kazu Hirata <kazu@hxi.com>
3027
3028 * scripttempl/h8300.sc: Fix formatting.
3029 * scripttempl/h8300h.sc: Likewise.
3030 * scripttempl/h8300s.sc: Likewise.
3031
3b16e843 30322000-11-14 Denis Chertykov <denisc@overta.ru>
208d5cd0
DC
3033
3034 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3035
2e418547
PB
30362000-11-09 Philip Blundell <pb@futuretv.com>
3037
3038 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3039 around orphan sections whose names can be represented in C.
3040
c940e6fc
JW
30412000-11-07 Jim Wilson <wilson@redhat.com>
3042
3043 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3044 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3045
704c465c
NC
30462000-11-06 Nick Clifton <nickc@redhat.com>
3047
3048 * ld.texinfo: Add GNU Free Documentation License.
3049 * ldint.texinfo: Add GNU Free Documentation License.
cf055d54 3050 * ld.1: Add GNU Free Documentation License.
704c465c 3051
dca7760f
AM
30522000-11-05 Alan Modra <alan@linuxcare.com.au>
3053
3054 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3055 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3056
3057 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3058 Move 2000-11-02 Makefile.in changes to this file.
3059 * Makefile.in: Regenerate.
3060
40a633d5
NC
30612000-11-03 Nick Clifton <nickc@redhat.com>
3062
3063 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3064 constructors and destructors.
3065 * scripttempl/h8300h.sc: Ditto.
3066 * scripttempl/h8300s.sc: Ditto.
3067 * scripttempl/h8500.sc: Ditto.
3068 * scripttempl/h8500b.sc: Ditto.
3069 * scripttempl/h8500c.sc: Ditto.
3070 * scripttempl/h8500m.sc: Ditto.
3071 * scripttempl/h8500s.sc: Ditto.
3072 * scripttempl/v850.sc: Ditto.
3073 * scripttempl/w65.sc: Ditto.
3074 * scripttempl/z8000.sc: Ditto.
3075
59ff2774
NC
30762000-11-02 Per Lundberg <plundis@chaosdev.org>
3077
3078 * Makefile.in (e_i386_chaos.c): New rule.
3079 (ALL_EMULATIONS): Added e_i386_chaos.o.
3080 * emulparams/elf_i386_chaos.sh: New file.
3081 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3082
645571e1
JJ
30832000-10-20 Jakub Jelinek <jakub@redhat.com>
3084
3085 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3086 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3087 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3088 library path suffix.
3089 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3090
c5975a45
HPN
30912000-10-18 Hans-Peter Nilsson <hp@axis.com>
3092
3093 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3094 for consecutive sections.
3095
ea20a7da
CC
30962000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3097
d952f17a
AM
3098 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3099 options.
3100 * ld.texinfo: Added notes about this new option.
ea20a7da 3101
6e45556a
NC
31022000-10-16 Nick Clifton <nickc@redhat.com>
3103
3104 * emultempl/pe.em (_after_open): Add tests of return values from
3105 bfd functions. Emit appropriate error messages if necessary.
3106
b9a69188
NC
31072000-10-13 Nick Clifton <nickc@redhat.com>
3108
3109 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
102c86f8
NC
3110 local variables - they are not used, but leave in the call to
3111 bfd_canonicalize_symtab.
b9a69188
NC
3112 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3113 pe_dll_search_prefix.
3114
627427de 31152000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
d952f17a 3116
627427de
DD
3117 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3118 (longopts): New --dll-search-prefix option.
3119 (gld_${EMULATION_NAME}_list_options): Document.
3120 (gld_${EMULATION_NAME}_parse_args): Handle.
3121 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3122 dynamically, search for a dll named '<prefix><basename>.dll'
3123 in preference to 'lib<basename>.dll' if --dll-search-prefix
3124 is specified.
3125
24376d1b
AM
31262000-10-12 Alan Modra <alan@linuxcare.com.au>
3127
3128 * ldlang.c (section_already_linked): Set kept_section instead of
3129 sec->comdat->sec.
3130
e47d05ad
KH
31312000-10-10 Kazu Hirata <kazu@hxi.com>
3132
3133 * deffile.h: Fix formatting.
3134 * lexsup.c: Likewise.
3135 * mri.c: Likewise.
3136
23a87948
DD
31372000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3138
3139 * pe-dll.c (make_one): Do not generate code thunk for DATA
3140 exports.
3141 (process_def_file): deduce DATA flag for auto-export sumbols.
3142
86b1cc60
KH
31432000-10-09 Kazu Hirata <kazu@hxi.com>
3144
89cdebba
KH
3145 * ld.h: Fix formatting.
3146 * ldcref.c: Likewise.
3147 * ldctor.h: Likewise.
3148 * ldemul.c: Likewise.
3149 * ldemul.h: Likewise.
3150 * ldexp.c: Likewise.
3151 * ldexp.h: Likewise.
3152 * ldfile.c: Likewise.
3153 * ldfile.h: Likewise.
3154 * ldlang.c: Likewise.
3155 * ldlang.h: Likewise.
3156 * ldmain.c: Likewise.
7bfd51a3
KH
3157 * pe-dll.c: Likewise.
3158
3159 * pe-dll.c: Revert some formatting fixes.
86b1cc60 3160
d643799d
KH
31612000-10-08 Kazu Hirata <kazu@hxi.com>
3162
3163 * pe-dll.c: Fix formatting.
3164
08da4cac
KH
31652000-10-05 Kazu Hirata <kazu@hxi.com>
3166
3167 * ldlang.c: Fix formatting.
3168
c2a94a7a
DD
31692000-10-03 DJ Delorie <dj@redhat.com>
3170
3171 * pe-dll.c (fill_edata): initialize entire block
3172 (make_one): fill in correct section.
3173
8c95a62e
KH
31742000-10-03 Kazu Hirata <kazu@hxi.com>
3175
3176 * ldexp.c: Fix formatting.
3177
486e80e2
DD
31782000-10-02 DJ Delorie <dj@redhat.com>
3179
3180 * emultempl/pe.em (gld_*_after_open): detect case where there two
3181 import libraries for same dll; rename one to ensure proper link
3182 order.
3183
3184 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3185 typo
3186 (generate_edata): fix typo
3187
24dd9f75
HPN
31882000-09-29 Hans-Peter Nilsson <hp@axis.com>
3189
3190 * scripttempl/crisaout.sc (ENTRY): Now __start.
3191 (.text): Add default setting for __start.
3192 Remove CONSTRUCTORS handling.
3193 (/DISCARD/): Add .gnu.warning.*.
3194 * emulparams/crislinux.sh (ENTRY): Now __start.
3195 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3196 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3197 (ENTRY): Now __start.
3198 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3199 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3200
4de2d33d
KH
32012000-09-29 Kazu Hirata <kazu@hxi.com>
3202
5cc18311
KH
3203 * deffile.h: Fix formatting.
3204 * ld.h: Likewise.
3205 * ldcref.c: Likewise.
4de2d33d 3206 * ldctor.c: Likewise.
5cc18311 3207 * ldctor.h: Likewise.
4de2d33d 3208 * ldemul.c: Likewise.
5cc18311 3209 * ldemul.h: Likewise.
4de2d33d 3210 * ldexp.c: Likewise.
5cc18311 3211 * ldexp.h: Likewise.
4de2d33d 3212 * ldfile.c: Likewise.
5cc18311 3213 * ldfile.h: Likewise.
4de2d33d 3214 * ldlang.c: Likewise.
5cc18311
KH
3215 * ldlang.h: Likewise.
3216 * lexsup.c: Likewise.
3217 * mri.c: Likewise.
3218 * pe-dll.c: Likewise.
4de2d33d 3219
45b1f63c
DD
32202000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3221
3222 * pe-dll.c (process_def_file): Uninitialized data wasn't
3223 exported with --export-all-symbols switch.
d952f17a 3224
45b1f63c
DD
32252000-09-28 DJ Delorie <dj@redhat.com>
3226
3227 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3228 noname work properly.
3229
47d89dba
AM
32302000-09-28 Alan Modra <alan@linuxcare.com.au>
3231
3232 * ld.texinfo (HPPA ELF32): New section.
3233
3234 * emultempl/hppaelf.em (group_size): New.
3235 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3236 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3237 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3238 options to prevent abbreviations matching.
3239 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3240 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3241
36bdbeec
NC
32422000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3243
3244 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3245 on the m68*-*-elf target. Make it support COFF input objects.
3246
6d5e62f8
KH
32472000-09-21 Kazu Hirata <kazu@hxi.com>
3248
3249 * ldmain.c: Fix formatting.
3250 * ldmisc.c: Likewise.
3251 * ldver.c: Likewise.
3252 * ldwrite.c: Likewise.
3253
e2eb67d9
AM
32542000-09-21 Alan Modra <alan@linuxcare.com.au>
3255
3256 * ldwrite.c (clone_section): Silence gcc warnings.
3257
b3ea3584
AM
32582000-09-20 Alan Modra <alan@linuxcare.com.au>
3259
3260 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3261 out of memory failure.
3262
3263 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3264 (clone_section): Handle out of memory failures. Rename var to
3265 avoid c++ reserved word.
3266
25f72752
AM
32672000-09-18 Alan Modra <alan@linuxcare.com.au>
3268
3269 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3270 stub_name param to stub_sec_name.
3271 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3272
0752970e
NC
32732000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3274
3275 * emultempl/m68kelf.em: New file.
3276 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3277 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3278 * Makefile.in: Regenerate.
3279
92b7e9d8
AM
32802000-09-15 Alan Modra <alan@linuxcare.com.au>
3281
3282 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3283 only as needed.
3284
9b14b192
NC
32852000-09-13 Nick Clifton <nickc@redhat.com>
3286
3287 * ldmain.c (multiple_definition): Disable relaxation if
3288 multiple symbol definitions are encountered - otherwise the
3289 linker could abort with an assertion failure.
3290
891fa266
NC
32912000-09-10 Nick Clifton <nickc@redhat.com>
3292
3293 * mri.c: Fix formatting.
3294
5d64ca4e
L
32952000-09-07 H.J. Lu <hjl@gnu.org>
3296
3297 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3298 * configure: Rebuild.
3299
dd94604f
L
33002000-09-07 H.J. Lu <hjl@gnu.org>
3301
3302 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3303 * Makefile.in: Rebuild.
3304
71bfc0ae
AM
33052000-09-07 Alan Modra <alan@linuxcare.com.au>
3306
3307 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3308 broken list handling. Create __start_SECNAME and __stop_SECNAME
3309 when no place-holder. Add some comments. Test both SEC_CODE and
3310 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
ed15ac6a 3311 Handle case where no output section statement created.
71bfc0ae 3312
4a428502
AO
33132000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3314
3315 * configure.tgt (sh-*-linux*): Added.
3316 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3317 * Makefile.in: Rebuilt.
3318 * emulparams/shelf_linux.sh: New file.
3319 * emulparams/shlelf_linux.sh: New file.
3320
f9989030
AM
33212000-09-06 Alan Modra <alan@linuxcare.com.au>
3322
3323 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3324 try shuffling sections when the orphan happens to be the place
3325 holder. Keep count of unique section names generated so we speed
3326 the search for a new name.
3327
58cccadb
AO
33282000-09-06 Alexandre Oliva <aoliva@redhat.com>
3329
3330 * configure: Rebuilt with new libtool.m4.
3331
5b343f5a
NC
33322000-09-05 Nick Clifton <nickc@redhat.com>
3333
3334 * Makefile.in: Regenerate.
3335 * aclocal.m4: Regenerate.
3336 * configure: Regenerate.
3337 * config.in: Regenerate.
3338 * po/ld.pot: Regenerate.
3339
3340 * ldint.texinfo: Remove CVS revision marker - it foils local
3341 comparisons.
3342
3343 * emultempl/ticoff.em: Remove extraneous comma.
50bbae35 3344
a854a4a7
AM
33452000-09-05 Alan Modra <alan@linuxcare.com.au>
3346
3231d22e
AM
3347 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3348 to stub section flags.
3349 (hppa_for_each_input_file_wrapper): New.
3350 (hppa_lang_for_each_input_file): New.
3351 (lang_for_each_input_file): Define to call above.
3352 (multi_subspace): New.
3353 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3354 (PARSE_AND_LIST_PROLOGUE): Define.
3355 (PARSE_AND_LIST_LONGOPTS): Define.
3356 (PARSE_AND_LIST_OPTIONS): Define.
3357 (PARSE_AND_LIST_ARGS_CASES): Define.
3358 (hppaelf_finish): Call elf32_hppa_set_gp.
3359 (hppaelf_set_output_arch): Remove.
3360 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3361
3362 * emulparams/hppalinux.sh (ELFSIZE): Define.
3363 (MACHINE): Define.
3364 (OTHER_READONLY_SECTIONS): Define.
3365 (DATA_PLT): Define.
3366 (GENERATE_SHLIB_SCRIPT): Define.
3367
5f992e62
AM
3368 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3369 to const throughout. Change `void *' to `PTR' throughout.
3370 (lang_memory_default): Function is local to file, add `static'.
3371
3372 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3373 (ehppalinux.c): Likewise.
3374 (earmelf.c): Likewise.
3375 (earmelf_linux.c): Likewise.
3376 (earmelf_linux26.c): Likewise.
3377 * Makefile.in: Regenerate.
3378
a854a4a7
AM
3379 * ld.h (ld_config_type): Add unique_orphan_sections.
3380 * lexsup.c (OPTION_UNIQUE): Define.
3381 (ld_options): Add "--unique".
3382 (parse_args): Handle it.
3383 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3384 search for an existing output section if unique_orphan_sections is
3385 set. Make use of bfd_get_unique_section_name rather than
3386 duplicating code here.
3387 * ld.texinfo: Describe --unique.
3388
3389 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3390 optional arg to split-by-file.
3391 (parse_args): Handle them.
3392 * ld.texinfo: Update description of these options.
3393 * ldwrite.c (clone_section): Pass in the section name. Replace
3394 local code with bfd_get_unique_section_name.
3395 (split_sections): Tidy code and comments. Use a list traversal
3396 more appropriate to the list construction. Handle cooked section
3397 sizes. Split when split_by_reloc reached rather than exceeded.
3398 Track section size and split when split_by_file reached. Fix
3399 link_order_tail (even though it's not used).
3400 (ldwrite): Modify condition for calling split_sections to suit
3401 changed split_by_reloc and split_by_file.
3402 * ldmain.c (main): Init config.split_by_reloc and
3403 config.split_by_file to -1.
3404 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3405 Change split_by_file to bfd_size_type.
3406
18e03609
NC
34072000-09-02 Nick Clifton <nickc@redhat.com>
3408
3409 * configure.in: Increase version number to 2.10.91.
3410 * NEWS: Mention new ability to support removal of duplicate DWARF2
3411 debug information.
3412 * configure: Regenerate.
3413 * aclocal.m4: Regenerate.
3414 * config.in: Regenerate.
3415
3a9d486c
NC
34162000-09-02 Daniel Berlin <dberlin@redhat.com>
3417
3418 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3419 sections.
a2b64bed 3420 * scripttempl/elf32avr.sc: Ditto.
3a9d486c
NC
3421 * scripttempl/elfd10v.sc: Ditto.
3422 * scripttempl/elfd30v.sc: Ditto.
3423 * scripttempl/elfi370.sc: Ditto.
3424 * scripttempl/elfm68hc11.sc: Ditto.
3425 * scripttempl/elfm68hc12.sc: Ditto.
3426 * scripttempl/elfi386beos.sc: Ditto.
3427 * scripttempl/v850.sc: Ditto.
50bbae35 3428
ac48eca1
AO
34292000-08-31 Alexandre Oliva <aoliva@redhat.com>
3430
3431 * acinclude.m4: Include libtool and gettext macros from the
3432 top level.
3433 * aclocal.m4, configure: Rebuilt.
3434
c13b1b77
NC
34352000-08-25 Nick Clifton <nickc@redhat.com>
3436
3437 * ldlang.c (open_output): When choosing the target for a
3438 particular endianness, do nothing if the target is not
3439 supported.
3440
dcb0bd0e
L
34412000-08-25 H.J. Lu <hjl@gnu.org>
3442
3443 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3444 check -rpath nor LD_RUN_PATH for cross link.
3445 * ld.texinfo: Document the change.
3446
5bcac8a4
HPN
34472000-08-24 Hans-Peter Nilsson <hp@axis.com>
3448
3449 * NEWS: Mention support for CRIS.
3450
6dd8c765
L
34512000-08-23 H.J. Lu <hjl@gnu.org>
3452
3453 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3454 the current runpath list from bfd_elf_get_runpath_list ()
3455 before search.
3456
ec4eb78a
L
34572000-08-22 H.J. Lu <hjl@gnu.org>
3458
3459 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3460 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3461 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3462 trace_file_tries is non-zero.
3463 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3464 if trace_file_tries is non-zero.
3465
3466 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
a8175964 3467 * NEWS: Mention it.
ec4eb78a 3468
22b36938
JE
34692000-08-14 Jason Eckhardt <jle@cygnus.com>
3470
3471 * NEWS: Mention i860 support.
3472
d73e9da0
AS
34732000-08-14 Andreas Schwab <schwab@suse.de>
3474
3475 * scripttempl/elf.sc: Fix last change to use correct comment
50bbae35 3476 syntax.
d73e9da0 3477
9ac4db9c
GK
34782000-08-10 Geoff Keating <geoffk@cygnus.com>
3479
3480 * scripttempl/elf.sc: Add a comment giving the correspondence
3481 between sections, per-datum sections, and linkonce sections. Make
3482 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3483 .sbss2.
3484
165589e4
JE
34852000-08-10 Jason Eckhardt <jle@cygnus.com>
3486
3487 * emulparams/elf32_i860.sh: New file.
3488 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3489 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3490 (eelf32_i860.c): New rule.
3491 * Makefile.in: Regenerate.
3492
345a835d
NC
34932000-08-10 Nick Clifton <nickc@cygnus.com>
3494
3495 * emulparams/mipspe.sh (ENTRY): Add definition.
3496
e374f1d9
NC
34972000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3498
3499 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3500 in error message.
3501
236d5abf
NC
35022000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3503
3504 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3505 the final size of .bss section.
3506 * scripttempl/elfm68hc12.sc: Likewise.
3507
4b209b22
AM
35082000-08-04 Alan Modra <alan@linuxcare.com.au>
3509
3510 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3511 gld${EMULATION_NAME}_parse_args for consistency. Combine
3512 lastoptind and prevoptind vars, and keep track of last optind.
3513 (gld_${EMULATION_NAME}_list_options): Rename to
3514 gld${EMULATION_NAME}_list_options.
3515
28423a68
AM
35162000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3517
3518 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3519 (i586-sco-sysv5uw7.1.0).
3520
b2009ff7
L
35212000-07-27 H.J. Lu <hjl@gnu.org>
3522
3523 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3524 (PARSE_AND_LIST_PROLOGUE): New.
3525 (PARSE_AND_LIST_LONGOPTS): Likewise.
3526 (PARSE_AND_LIST_OPTIONS): Likewise.
3527 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3528 (PARSE_AND_LIST_EPILOGUE): Likewise.
3529
04925e1e
AM
35302000-07-28 Alan Modra <alan@linuxcare.com.au>
3531
41392f03
AM
3532 * emultempl/armelf.em: Elide functions common to elf32.em,
3533 ie. most of the file.
3534 (arm_elf_after_open): New. Do arm specific things then call
3535 gld${EMULATION_NAME}_after_open.
3536 (arm_elf_before_allocation): New. Call
3537 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3538 (PARSE_AND_LIST_PROLOGUE): Define.
3539 (PARSE_AND_LIST_SHORTOPTS): Define.
3540 (PARSE_AND_LIST_LONGOPTS): Define.
3541 (PARSE_AND_LIST_OPTIONS): Define.
3542 (PARSE_AND_LIST_ARGS_CASES): Define.
3543 (LDEMUL_AFTER_OPEN): Define.
3544 (LDEMUL_BEFORE_ALLOCATION): Define.
3545 (LDEMUL_BEFORE_PARSE): Define.
3546 (LDEMUL_FINISH): Define.
3547
3548 * emultempl/hppaelf.em: Similarly zap most of this file.
3549 (hppaelf_add_stub_section): Prototype.
3550 (hppaelf_layaout_sections_again): Prototype.
3551 (hook_in_stub): Prototype.
3552 (LDEMUL_SET_OUTPUT_ARCH): Define.
3553 (LDEMUL_FINISH): Define.
3554 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3555
3556 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3557 (EXTRA_EM_FILE): New.
3558 * emulparams/armelf_linux.sh: Likewise.
3559 * emulparams/armelf_linux26.sh: Likewise.
3560 * emulparams/hppalinux.sh: Likewise.
3561 * emulparams/hppaelf.sh: Likewise.
3562 (NOP): Define.
3563
3564 * emultempl/elf32.em: Fix formatting.
3565 (EXTRA_EM_FILE): Source it.
3566 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3567 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3568 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3569 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3570 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3571 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3572 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3573 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3574 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3575 allow functions in this file to be overridden.
3576 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3577
3578 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3579
04925e1e
AM
3580 * emultempl/elf32.em: Reorganize file.
3581
88cdf297
NC
35822000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3583
3584 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3585 specific option to fit 64-bit executable in the lower
3586 31-bit address range. This is done by changing start
3587 address of .interp (the very first section of executable)
3588 and then setting EF_ALPHA_32BIT elf header flag.
3589
20bccb34
NC
35902000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3591
3592 * emultempl/m68kcoff.em: New file.
3593 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3594 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3595 generic.em.
3596 * Makefile.in: Regenerate.
3597
699845ef
L
35982000-07-20 H.J. Lu <hjl@gnu.org>
3599
3600 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3601 and "disable-new-dtags" to stop getopt from treating -d/-e as
3602 abbreviations for these options.
3603
6c1439be
L
36042000-07-20 H.J. Lu <hjl@gnu.org>
3605
3606 * ld.texinfo: Add documentation for --disable-new-dtags and
3607 --enable-new-dtags.
3608
3609 * ldmain.c (main): Initialize link_info.new_dtags to false.
3610
3611 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3612 --disable-new-dtags and --enable-new-dtags.
3613 (gld_${EMULATION_NAME}_list_options): Likewise.
3614
28c309a2
NC
36152000-07-05 Kenneth Block <krblock@computer.org>
3616
a2b64bed
NC
3617 * lexsup.c: Add optional style to demangle switch
3618 * ld.texinfo: Document optional style to demangle switch.
50bbae35 3619
9d06555c
HPN
36202000-07-20 Hans-Peter Nilsson <hp@axis.com>
3621
3622 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3623 ecrislinux.o.
3624 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3625 Regenerate dependencies.
3626 * Makefile.in: Rebuild.
3627 * configure.tgt (cris-*-*): New target.
3628 * emulparams/crisaout.sh, emulparams/criself.sh,
3629 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3630 * po/POTFILES.in, po/ld.pot: Regenerate.
3631
19e3be22
L
36322000-07-20 H.J. Lu <hjl@gnu.org>
3633
3634 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3635 Print out ignored -z options.
3636
e0ee487b
L
36372000-07-19 H.J. Lu <hjl@gnu.org>
3638
19e3be22
L
3639 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3640 (PARSE_AND_LIST_PROLOGUE): New.
3641 (PARSE_AND_LIST_LONGOPTS): Likewise.
3642 (PARSE_AND_LIST_OPTIONS): Likewise.
3643 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3644
3645 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3646
3647 * lexsup.c (ld_options): Comment out 'z'.
3648 (parse_args): Likewise.
3649
3650 * emultempl/elf32.em: Include "elf/common.h".
3651 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3652 options.
3653 (gld_${EMULATION_NAME}_list_options): Likewise.
3654
3655 * ld.texinfo: Add documentation for the recognized -z options.
e0ee487b 3656
49e56c49
L
36572000-07-19 H.J. Lu <hjl@gnu.org>
3658
3659 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3660 bfd_elf_set_dt_needed_soname ().
3661
9d68bc82
DD
36622000-07-18 DJ Delorie <dj@cygnus.com>
3663
3664 * pe-dll.c (pe_dll_id_target): check object target name also
3665
53db15ed
HPN
36662000-07-18 Hans-Peter Nilsson <hp@axis.com>
3667
3668 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3669 ${INIT_END} if relocating.
3670 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3671
0ad8cf4c
DD
36722000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3673
a2b64bed 3674 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
0ad8cf4c
DD
3675 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3676 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3677 errors introduced by the old dynamic lib search order.
3678
874c8c99
DD
36792000-07-17 DJ Delorie <dj@cygnus.com>
3680
3681 * pe-dll.c (process_def_file): auto-export data items also
3682 (pe_process_import_defs): also see if _imp_ form needed
3683
5b4cf3f4
DD
36842000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3685
3686 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3687 for dll import libraries
3688
062739d1
NC
36892000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3690
3691 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
d952f17a 3692 gcc 2.95.2 and later.
062739d1 3693
1c64c4ed
NC
36942000-07-11 Kazu Hirata <kazu@hxi.com>
3695
50bbae35
AM
3696 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3697 message.
1c64c4ed 3698
b71e2778
AM
36992000-07-10 Alan Modra <alan@linuxcare.com.au>
3700
3701 * ldemul.h (struct lang_input_statement_struct): Remove forward
3702 declaration.
3703 (struct search_dirs): Likewise.
3704 * ldfile.h (struct lang_input_statement_struct): Likewise.
3705 Protect file from multiple inclusion.
3706 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3707 declaration from macro to file scope.
3708
3709 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3710 * ldgram.y: Likewise here.
3711 * ldlang.c: And here.
3712 * ldmain.c: And here.
3713 * mpw-elfmips.c: And here.
3714 * mpw-eppcmac.c: And here.
3715 * emultempl/aix.em: And here.
3716 * emultempl/armcoff.em: And here.
3717 * emultempl/armelf.em: And here.
3718 * emultempl/armelf_oabi.em: And here.
3719 * emultempl/beos.em: And here.
3720 * emultempl/elf32.em: And here.
3721 * emultempl/hppaelf.em: And here.
3722 * emultempl/linux.em: And here.
3723 * emultempl/lnk960.em: And here.
3724 * emultempl/pe.em: And here.
3725 * emultempl/sunos.em: And here.
3726 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3727 * mpw-idtmips.c: Ditto.
3728 * emultempl/generic.em: Ditto.
3729 * emultempl/gld960.em: Ditto.
3730 * emultempl/gld960c.em: Ditto.
3731 * emultempl/mipsecoff.em: Ditto.
3732 * emultempl/ticoff.em: Ditto.
3733 * emultempl/vanilla.em: Ditto.
3734
3735 * pe-dll.c: Include ldfile.h
3736 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3737
3738 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3739 arguments to bfd_elf32_size_dynamic_sections call.
3740 (gldelf32ebmip_place_orphan): Add missing arguments to
3741 lang_leave_output_section_statement call.
3742
2ef53d66
L
37432000-07-10 H.J. Lu <hjl@gnu.org>
3744
3745 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3746 DLL_SUPPORT.
3747 (strhash): Likewise.
3748 (compute_dll_image_base): Likewise.
3749 (pe_undef_found_sym): Likewise.
3750 (pe_undef_cdecl_match): Likewise.
3751 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3752 argument "arch" with ATTRIBUTE_UNUSED.
3753
9a8cbb09
AM
37542000-07-10 Alan Modra <alan@linuxcare.com.au>
3755
3756 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3757
3758 From Ryan Bradetich <rbradetich@uswest.net>
3759 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
50bbae35 3760
4900fc06
AM
37612000-07-09 Alan Modra <alan@linuxcare.com.au>
3762
3763 Changes to create multiple linker stubs, positioned immediately
3764 before the section where they are required.
3765 * emultempl/hppaelf.em: Include elf32-hppa.h.
3766 (stub_sec, file_chain): Delete.
3767 (hppaelf_create_output_section_statements): Don't make a stub
3768 section here.
3769 (hook_stub_info): New struct.
3770 (hook_in_stub): New function.
3771 (hppaelf_add_stub_section): New function.
3772 (hppaelf_finish): Do nothing for relocateable links. Modify the
3773 call to elf32_hppa_size_stubs. Move code for updating section
3774 layout from here...
3775 (hppaelf_layaout_sections_again): ..to here, a new function.
3776
3777 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3778 broken list handling. Pass in a pointer to the list.
3779 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3780 for above changes.
3781 (hppaelf_before_parse): Prototype.
3782 (hppaelf_set_output_arch): Prototype.
3783 (hppaelf_create_output_section_statements): Prototype.
3784 (hppaelf_delete_padding_statements): Prototype.
3785 (hppaelf_finish): Prototype.
3786
3787 Merge from elf32.em
3788 * emultempl/hppaelf.em: Include ctype.h.
3789 (struct orphan_save): New.
3790 (gld${EMULATION_NAME}_place_orphan): New.
3791 (output_rel_find): New.
3792 (hppaelf_get_script): Update from elf32.em.
3793 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3794 Change emulation_name field to "${EMULATION_NAME}". Add
50bbae35 3795 gld${EMULATION_NAME}_place_orphan.
4900fc06
AM
3796
3797 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3798 ehppalinux.o, sort it. Regenerate dependencies.
3799 (ehppalinux.c): Depend on hppaelf.em
3800 * Makefile.in: Regenerate.
3801
3802 * configure.tgt: targ_emul=hppalinux for hppa*linux
3803
3804 * emulparams/hppalinux.sh: New.
3805 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3806
227aeb07
AM
38072000-07-08 Alan Modra <alan@linuxcare.com.au>
3808
3809 * lexsup.c (parse_args): Copy section name.
3810
28609fd4 38112000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
602e90d3 3812
2ef53d66 3813 * emultempl/pe.em: institute the following search order for
602e90d3
DD
3814 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3815 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3816 static lib (libfoo.a) if none of the above are found.
3817
5f577f7d
DD
38182000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3819
50bbae35 3820 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5f577f7d 3821 (longopts): New --{enable,disable}-auto-image-base options.
50bbae35 3822 (gld_${EMULATION_NAME}_list_options): Document.
5f577f7d
DD
3823 (gld_${EMULATION_NAME}_parse): Handle.
3824 (strhash): New static function.
50bbae35 3825 (compute_dll_image_base): New static function.
5f577f7d
DD
3826 (gld_${EMULATION_NAME}_set_symbols): Use.
3827
9a8cbb09 38282000-07-05 DJ Delorie <dj@redhat.com>
302ab118
DD
3829
3830 * MAINTAINERS: new
3831
3548145d 38322000-07-01 Koundinya K <kk@ddeorg.soft.net>
50bbae35
AM
3833
3834 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3835 * emulparams/elf32btsmip.sh: New file.
3836 * Makefile.am: Add traditional mips target.
3837 * Makefile.in: Rebuild.
3838
67798033
L
38392000-07-01 H.J. Lu <hjl@gnu.org>
3840
3841 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3842 automake to use YLWRAP.
3843 * Makefile.in: Rebuild.
3844
0bdaf48b
AM
38452000-07-01 Alan Modra <alan@linuxcare.com.au>
3846
3847 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3848 (CLEANFILES): Add DEPA.
3849 * Makefile.in: Regenerate.
3850
c9e769c2
TW
38512000-06-30 Timothy Wall <twall@ppc>
3852
3853 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3854 the page in the upper octet of the address.
3855
65aa24b6
NC
38562000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3857
3858 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3859
4667035e
AM
38602000-06-24 Alan Modra <alan@linuxcare.com.au>
3861
3862 * NEWS: arm-elf does --gc-sections too.
3863
1581f8c9
AM
38642000-06-22 Alan Modra <alan@linuxcare.com.au>
3865
3866 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3867 find one.
3868 * Makefile.in: Regenerate.
3869
01580992
L
38702000-06-21 H.J. Lu <hjl@gnu.org>
3871
3872 * Makefile.am: Rebuild dependency.
3873 * Makefile.in: Rebuild.
3874
bbeb2e03
L
38752000-06-20 H.J. Lu <hjl@gnu.org>
3876
3877 * Makefile.am: Rebuild dependency.
3878 * Makefile.in: Rebuild.
3879
74459f0e
TW
38802000-06-20 Timothy Wall <twall@cygnus.com>
3881
3882 * scripttempl/tic54xcoff.sc: New.
3883 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3884 * gen-doc.texi: Add flag for TI COFF.
3885 * ld.texinfo: Add documentation for TI COFF handling switches.
3886 * emultempl/ticoff.em: New. TI COFF handling.
3887 * configure.tgt: Add tic54x target.
3888 * Makefile.am: Add tic54x target.
3889 * Makefile.in: Ditto.
3890
2ab47eed
AM
38912000-06-20 Alan Modra <alan@linuxcare.com.au>
3892
3893 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3894 checking for backslashes.
3895
919e4093
AM
38962000-06-19 Alan Modra <alan@linuxcare.com.au>
3897
3898 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3899
987fd5b4
AM
39002000-06-18 Alan Modra <alan@linuxcare.com.au>
3901
3902 * NEWS: Update list of targets supporting --gc-sections.
3903
3904 * scripttempl/elf.sc: KEEP .eh_frame contents.
3905 * scripttempl/elfd30v.sc: Same here.
3906
60bcf0fa
NC
39072000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3908
3909 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3910 and m68hc11 (elf).
3911 * Makefile.in: Rebuild.
3912 * configure.tgt: Recognize m68hc12 and m68hc11.
3913 * scripttempl/elfm68hc12.sc: New file.
3914 * emulparams/m68hc12elfb: New emulation.
3915 * emulparams/m68hc12elf: New emulation.
3916 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3917 (includes a memory.x script to define the ROM and RAM banks).
3918 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3919 New configuration files for support of Motorola 68hc11
3920
c7c54483
AM
39212000-06-15 Alan Modra <alan@linuxcare.com.au>
3922
3923 * ldmain.c (main): Only change SEC_READONLY for final link.
3924
bcef29e6
L
39252000-06-13 H.J. Lu <hjl@gnu.org>
3926
3927 * configure: Regenerate.
3928
946efd95
DB
39292000-06-08 David O'Brien <obrien@FreeBSD.org>
3930
3931 * configure.in (VERSION): Update to show this is the CVS mainline.
3932
57a6fd07
DB
39332000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3934
3935 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3936 input objects to be ECOFF.
3937 (check_sections): einfo takes %B, not %P, to print a BFD name.
3938
e06cae36
L
39392000-06-05 Michael Matz <matz@ifh.de>
3940
3941 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
d952f17a 3942 version scripts.
e06cae36 3943
d952f17a 3944 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
e06cae36 3945
2f0b56c0
DC
39462000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3947
3948 * emulparams/avr1200.sh (STACK): Define as 0.
3949 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3950 * emulparams/avr4433.sh (STACK): Likewise.
3951 * emulparams/avr44x4.sh (STACK): Likewise.
3952 * emulparams/avr85xx.sh (STACK): Likewise.
3953 * emulparams/avrmega103.sh (STACK): Likewise.
3954 * emulparams/avrmega161.sh (STACK): Likewise.
3955 * emulparams/avrmega603.sh (STACK): Likewise.
3956 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3957 (__stack): Define from ${STACK} for main().
3958
2114f57b
AM
39592000-05-26 Alan Modra <alan@linuxcare.com.au>
3960
3961 * Makefile.am: Update dependencies with "make dep-am"
3962 * Makefile.in: Regenerate.
3963
5af11cab
AM
39642000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3965
3966 * ldmain.c: Include filenames.h.
3967 (set_scripts_dir): Support backslashes in program name.
3968
1f0df59a
NC
39692000-05-22 Igor Shevlyakov <igor@windriver.com>
3970
3971 * ldmain.c (main): When deciding if ".text" section should be
50bbae35
AM
3972 read-only, don't forget to reset SEC_READONLY because it
3973 could be already set.
1f0df59a 3974
176355da
NC
39752000-05-22 Thomas de Lellis <tdel@windriver.com>
3976
50bbae35
AM
3977 * ld.1: Add documentation for new command line option:
3978 --section-start <sectionname>=<sectionorg>
3979 This is a generic version of -Ttext etc. which accepts
3980 any section name as a parameter instead of just text/data/
3981 bss.
3982 * ld.texinfo: More docs.
3983 * NEWS: More docs.
3984 * lexsup.c: (parse_args): Recognize new command line option.
176355da 3985 (ld_options): Add new option.
50bbae35 3986
8c5ff972
L
39872000-05-18 H.J. Lu <hjl@gnu.org>
3988
3989 * lexsup.c (parse_args): `i' == `r', not `q'.
3990
3b16e843 39912000-05-18 Jeffrey A Law (law@cygnus.com)
0b76fe77
JL
3992
3993 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3994
a712da20
NC
39952000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3996 Rick Gorton <gorton@scrugs.lkg.dec.com>
50bbae35 3997
a712da20
NC
3998 Add support for '-q' == '--emit-relocs' switch.
3999 * ldmain.c (main): Default to false.
4000 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4001 * NEWS: Describe the emitrelocations switch.
4002 * ld.texinfo: Describe the emitrelocations switch.
4003
690a460e
NC
40042000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4005
a2b64bed 4006 * emultempl/pe.em (_open_dynamic_archive): New function: Search
690a460e
NC
4007 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4008 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4009 link options.
50bbae35 4010
c2f1343c
AM
40112000-05-15 David O'Brien <obrien@FreeBSD.org>
4012
4013 * lexsup.c (parse_args): Update the year in the copyright notice.
4014
897083bd
AM
40152000-05-13 Alan Modra <alan@linuxcare.com.au>
4016
4017 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4018 Replace defines with those from intl/libgettext.h to quieten gcc
4019 warnings.
4020
cd4c806a
L
40212000-05-10 H.J. Lu <hjl@gnu.org>
4022
4023 * ldlang.c (open_input_bfds): Don't load the same file within
4024 a group again if the whole archive has been loaded already.
4025
93697284
AM
40262000-05-03 Alan Modra <alan@linuxcare.com.au>
4027
4028 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4029 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4030 strtoul.
4031
3b16e843 40322000-05-01 Jim Wilson <wilson@cygnus.com>
ebd6fc29 4033
99a4150f 4034 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
50bbae35 4035
ebd6fc29
JW
4036 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4037 host "ia64-*-linux-gnu*".
4038
a1934524
AM
40392000-04-29 Andreas Jaeger <aj@suse.de>
4040
4041 * ld.h: Correctly check GCC version.
4042
3b16e843 40432000-04-25 Jeffrey A Law (law@cygnus.com)
730a39a0
JL
4044
4045 * Makefile.am: Add PA64 support. Add missing dependencies for
4046 PA32 elf support.
4047 * Makefile.in: Rebuilt.
4048 * configure.tgt: Add PA64 support (currently disabled).
4049
aea4bd9d
AM
40502000-04-25 Alan Modra <alan@linuxcare.com.au>
4051
4052 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4053 (output_rel_find): New function.
4054 (hold_section, hold_use): Delete.
4055 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4056 hold_interp): Make local to place_orphan.
4057 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4058 rather than place_section to find possible previous use of orphan.
4059 Similarly find the place-holder output sections. Use returned
4060 value from lang_enter_output_section_statement rather than calling
4061 lang_output_section_statement_lookup.
4062 * emultempl/armelf.em: Same here.
4063 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4064
4065 * ldlang.c (lang_enter_output_section_statement): Return output
4066 section statement.
4067 * ldlang.h (lang_enter_output_section_statement): Change
4068 declaration too.
4069
4070 * ldlang.h (lang_output_section_statement): Export it.
4071 * ldlang.c (lang_output_section_statement): Ditto.
4072
2b5fc1f5
NC
40732000-04-24 Nick Clifton <nickc@cygnus.com>
4074
4075 * ld.texinfo (Output Section Data): Add note that section data
4076 commands cannot appear outside of section directives.
4077
d8475ff6
JL
40782000-04-2 Matthew Green <mrg@cygnus.com>
4079
4080 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4081
3b16e843
NC
40822000-04-21 Richard Henderson <rth@cygnus.com>
4083 David Mosberger <davidm@hpl.hp.com>
800eeca4
JW
4084
4085 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4086 (eelf64_ia64.c): New rule.
4087 * Makefile.in: Rebuild.
4088 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4089 * emulparams/elf64_ia64.sh: New file.
50bbae35 4090
c9637625
RH
40912000-04-21 Richard Henderson <rth@cygnus.com>
4092
4093 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4094
28ea9521
AM
40952000-04-19 Alan Modra <alan@linuxcare.com.au>
4096
4097 * dep-in.sed: Match space at start of file name, not at end.
4098
20d04697
L
40992000-04-18 H.J. Lu <hjl@gnu.org>
4100
4101 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4102 lang_leave_output_section_statement () after calling
4103 lang_enter_output_section_statement ().
4104 * emultempl/armelf.em: Likewise.
4105
5ba47421
AM
41062000-04-18 Alan Modra <alan@linuxcare.com.au>
4107
4108 * emultempl/elf32.em (struct orphan_save): Add section field.
4109 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4110 better order, and place first orphan section as we did before the
4111 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4112 Don't call make_bfd_section here, let wild_doit do the job for us.
4113 Don't build a statement list when we'll only throw it away.
4114 * emultempl/armelf.em: Ditto.
4115 * emultempl/pe.em: Similarly.
4116
bdbe5705
GK
41172000-04-14 Geoff Keating <geoffk@cygnus.com>
4118
4119 * scripttempl/elfppc.sc: Remove.
4120 * emulparams/elf32ppc.sh: Use elf.sc.
4121 * emulparams/elf32lppc.sh: Use elf.sc.
4122 * emulparams/elf32ppclinux.sh: Use elf.sc.
4123 * emulparams/elf32ppcsim.sh: New file.
4124 * emulparams/elf32lppcsim.sh: New file.
4125 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4126 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4127 * Makefile.in: Regenerate.
4128 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4129
01cc8ff8
AM
41302000-04-14 Alan Modra <alan@linuxcare.com.au>
4131
5ba47421 4132 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
01cc8ff8 4133 ~SEC_ALLOC sections too. Init start address of debug sections.
5ba47421
AM
4134 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4135 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
01cc8ff8
AM
4136 Also set all relocateable section start addresses.
4137
6c86c541
GK
41382000-04-13 Geoff Keating <geoffk@cygnus.com>
4139
4140 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4141 Add new BSS_PLT variable for when .plt need not be contained in
4142 the file. Move _etext so that it is also after .fini, and provide
4143 both etext and _etext with a leading underscore. Mark the start
4144 and end of .sbss.
4145
6a345e87
AM
41462000-04-12 Alan Modra <alan@linuxcare.com.au>
4147
4148 * emultempl/elf32.em (struct orphan_save): New.
4149 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4150 hold_interp): Make them struct orphan_save.
4151 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4152 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4153 the end of the relevant section list. Also add associated section
4154 statements to the end of any previous orphan statements.
4155 * emultempl/armelf.em: Similarly.
4156 * emultempl/pe.em: Similarly.
4157
8be86746
AM
41582000-04-11 Alan Modra <alan@linuxcare.com.au>
4159
4160 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4161
3b16e843 41622000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
50bbae35 4163
a2d91340 4164 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
50bbae35 4165 --enable-build-warnings option.
a2d91340
AC
4166 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4167 * Makefile.in, configure: Re-generate.
4168
41b49281
AM
41692000-04-04 Alan Modra <alan@linuxcare.com.au>
4170
8ad3436c
AM
4171 * po/ld.pot: Regenerate.
4172
4173 * lexsup.c (help): Restore translated part of bug string.
4174
41b49281
AM
4175 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4176 (DEP): Quote when passing vars to sub-make. Add warning message
4177 to end.
4178 (DEP1): Rewrite for "gcc -MM".
4179 (CLEANFILES): Add DEP2.
4180 Update dependencies.
4181 * Makefile.in: Regenerate.
4182
c20f4f8c
AM
41832000-04-03 Alan Modra <alan@linuxcare.com.au>
4184
4185 * ld.h: #include "bin-bugs.h"
4186 * lexsup.c (help): Use REPORT_BUGS_TO.
4187
adde6300
AM
41882000-03-27 Denis Chertykov <denisc@overta.ru>
4189
4190 * configure.tgt (avr-*-*): New target support.
4191 * Makefile.am: Likewise.
4192 * scripttempl/elf32avr.sc: New script file.
4193 * emulparams/avr1200.sh: New file.
4194 * emulparams/avr23xx.sh: New file.
4195 * emulparams/avr4433.sh New file.
4196 * emulparams/avr44x4.sh New file.
4197 * emulparams/avr85xx.sh New file.
4198 * emulparams/avrmega103.sh New file.
4199 * emulparams/avrmega161.sh New file.
4200 * emulparams/avrmega603.sh New file.
4201 * Makefile.in: Regenerate.
4202
9282ff41
L
42032000-03-09 Andreas Jaeger <aj@suse.de>
4204
4205 * Makefile.am (check-DEJAGNU): Also unset LANG.
4206 * Makefile.in: Rebuild.
4207
a9998805
ILT
42082000-03-06 Ian Lance Taylor <ian@zembu.com>
4209
4210 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4211 archive.
4212
f9bc20e7
NC
42132000-03-02 H.J. Lu <hjl@gnu.org>
4214
4215 * emulparams/elf32mcore.sh: Include "getopt.h".
4216
4e277b38
ILT
42172000-03-01 Ian Lance Taylor <ian@zembu.com>
4218
4219 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4220
f0c87f88
NC
42212000-03-01 H.J. Lu <hjl@gnu.org>
4222
4223 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4224 * emulparams/shpe.sh: Likewise.
4225
42262000-03-01 Nick Clifton <nickc@cygnus.com>
4227
4228 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4229 to unused parameters.
4230
4231 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4232 functions only used by DLL code.
4233 (_place_orphan): Initialise 'dollar'.
4234
b6f29aaa
L
42352000-03-01 H.J. Lu <hjl@gnu.org>
4236
4237 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4238 indicate if the undefined symbol is a fatal error or not.
4239 Don't delete the output file if "fatal" is false.
4240
af28fce3
L
42412000-02-29 H.J. Lu <hjl@gnu.org>
4242
50bbae35 4243 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
af28fce3
L
4244 Set LC_COLLATE and LC_ALL to null and export them. It is for
4245 sort which expects the C locale.
4246 Add $(LIBS) to all $(HOSTING_LIBS).
4247 * Makefile.in: Rebuild.
4248
40d109bf
AM
42492000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4250
4251 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4252 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4253 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4254 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4255 find_potential_libraries.
4256
db5be682
JB
42572000-02-28 Jim Blandy <jimb@redhat.com>
4258
4259 * ldgram.y (exclude_name_list): Don't require a comma to separate
50bbae35 4260 list entries; the lexer considers commas to be valid part of a
db5be682
JB
4261 filename, so in something like `foo, bar' the comma is considered
4262 part of the first filename, `foo,'.
4263 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4264
3558ff4c
ILT
42652000-02-27 Loren J. Rittle <ljrittle@acm.org>
4266
4267 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4268 host "i[3456]86-*-freebsdelf*".
4269
4eee2681
ILT
42702000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4271
4272 * scripttempl/i386go32.sc: Move misplaced semicolons.
4273
8d75d12d
ILT
42742000-02-25 Ian Lance Taylor <ian@zembu.com>
4275
4276 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4277 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4278 (eelf64hppa.c, ehppaelf.c): Remove targets.
4279 * Makefile.in: Rebuild.
4280
a1836d49
AO
42812000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4282
ad51fb57
AO
4283 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4284 GNU/Linux/sparc, but keep the default as 32.
4285
a1836d49
AO
4286 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4287 it default if sparcv9 or sparc64.
4288
344a211f
NC
42892000-02-24 Nick Clifton <nickc@cygnus.com>
4290
4291 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4292 * Makefile.in: Regenerate.
4293 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4294
4295 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4296 find_potential_libraries.
4297 * ldemul.c (ldemul_find_potential_libraries): New function.
4298
4299 * ldfile.c (ldfile_open_file_search): Allow function to be
50bbae35 4300 exported.
344a211f
NC
4301 (ldfile_open_file): Call ldemul_find_potential_libraries.
4302 * ldfile.h: Add prototype for ldfile_open_file_search.
4303
4304 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4305
4306 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4307 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4308
4309 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4310 (gld_X_find_potential_libraries): New function. Search for
4311 libraries called "*.lib".
4312
a2b64bed 4313 * scripttempl/pe.sc: Add .pdata section.
344a211f 4314
eaba1dd3
RH
43152000-02-23 Richard Henderson <rth@cygnus.com>
4316
4317 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4318 Add and use memory regions.
4319
5b93d8bb
AM
43202000-02-23 Linas Vepstas (linas@linas.org)
4321
4322 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4323
4324 * Makefile.am: Add support for Linux/IBM 370.
4325 * configure.tgt: Likewise.
4326
4327 * Makefile.in: Regenerate.
4328
f6af82bd
AM
43292000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4330
4331 * ldlang.c (print_input_section, print_data_statement,
4332 print_reloc_statement, print_padding_statement, insert_pad,
4333 size_input_section, lang_check_section_addresses,
4334 lang_size_sections, lang_do_assignments, lang_set_startof,
50bbae35 4335 lang_one_common): Change `opb' to unsigned.
f6af82bd
AM
4336 (lang_do_assignments): Also change `size' to unsigned.
4337
9e673ad1
RH
43382000-02-16 Richard Henderson <rth@cygnus.com>
4339
4340 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4341
562d3460
TW
43422000-02-16 Timothy Wall <twall@cygnus.com>
4343
4344 * mri.c (mri_draw_tree): Add default LMA region argument to call
4345 to lang_leave_output_section_statement.
4346 * ldlang.h: Update prototypes with LMA region arguments.
4347 * ldlang.c (lang_size_sections): Encapsulate region bounds
4348 checking in os_check_region call.
4349 (os_check_region): New function.
4350 (lang_output_section_statement_lookup): Initialize lma_region.
4351 (lang_leave_output_section_statement): Add LMA region argument.
4352 (lang_leave_overlay): Ditto.
4353 * ldgram.y: Handle LMA region syntax.
4354 * ld.texinfo (Output Section Description): Describe LMA region usage.
4355 * emultempl/armelf.em (gld$place_orphan): Add default value for
01cc8ff8 4356 lma region in call to lang_leave_output_section_statement.
562d3460 4357 * emultempl/elf32.em (gld$place_orphan): Add default value for
01cc8ff8 4358 lma region in call to lang_leave_output_section_statement.
562d3460 4359 * emultempl/pe.em (gld$place_orphan): Add default value for
01cc8ff8 4360 lma region in call to lang_leave_output_section_statement.
50bbae35
AM
4361
4362
9e4ed18c
TW
43632000-02-04 Timothy Wall <twall@redhat.com>
4364
4365 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4366 octets when calculating section end addresses.
4367
32edc927
TW
43682000-02-04 Timothy Wall <twall@redhat.com>
4369
4370 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4371
4cbfc3ac
TW
43722000-02-03 Timothy Wall <twall@redhat.com>
4373
a2b64bed 4374 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4cbfc3ac 4375 octet count.
a2b64bed 4376 * ldlang.c (print_input_section, print_data_statement,
4cbfc3ac
TW
4377 print_reloc_statement, print_padding_statement): Print target
4378 address values and section sizes as bytes, not octets.
4379 (insert_pad) Calculate padding size in octets, and adjust "dot"
4380 by bytes.
4381 (size_input_section) Always adjust "dot" by bytes, not octets.
4382 (lang_check_section_addresses, lang_do_assignments) Adjust
4383 "dot" by bytes, not octets. Use the larger of the directive size
4384 or octets_per_byte for the number of octets actually allocated in
4385 the output section.
4386 (lang_set_startof) Make sure STARTOF returns a target address.
4387 (lang_one_common) Record size changes in octets.
4388 (lang_abs_symbol_at_end_of) Section end symbol's value is
4389 recorded in target bytes.
68b2fc7a 4390 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4cbfc3ac 4391 to be clear about behavior when an octet is smaller than one byte.
50bbae35 4392
305c7206
AM
43932000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4394
4395 * ldcref.c (output_cref): Don't pass message strings to printf
4396 as format arg.
4397 Update copyright.
4398
4399 * ldmisc.c (vfinfo): Same here.
4400 Update copyright.
4401
e1c47aa4
AM
44022000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4403
4404 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4405 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4406 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4407 Add missing NULL initialisers, and comments.
4408
4409 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4410
13392b77
NC
44112000-01-21 Nick Clifton <nickc@cygnus.com>
4412
4413 * ldlang.c (lang_size_sections): Fix typo in comment.
4414
cce4c4c5
NC
44152000-01-18 H.J. Lu <hjl@gnu.org>
4416
4417 * ldlang.c (lang_size_sections): Also update the current
4418 address of a region if the SEC_NEVER_LOAD bit is not set.
4419
0decc840
NC
44202000-01-10 Philip Blundell <pb@futuretv.com>
4421
4422 * configure.tgt (arm*-*-conix*): New target.
4423
4e53152f
NC
44242000-01-07 Nick Clifton <nickc@cygnus.com>
4425
4426 * ld.texinfo (Options): Remind users to preceed linker command
fa19fce0
NC
4427 line switches with -Wl, (or whatever is appropriate) if it is
4428 being invoked by a comnpiler driver program.
50bbae35 4429 Fix description of the behaviour of the -n command line switch.
4e53152f 4430
3b16e843 44312000-01-05 Catherine Moore <clm@cygnus.com>
18625d54
CM
4432
4433 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4434 (name_list): New.
4435 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4436 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4437 (exclude_name_list): New.
4438 ldlang.c (walk_wild_section): Support list of excluded files.
4439 (print_wild_statement): Likewise.
4440 (lang_add_wild): Likewise.
4441 * ldlang.h (lang_wild_statement_type): Likewise.
4442 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6ddeca85 4443
5aaace27
NC
44442000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4445
870df5dc
NC
4446 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4447 (process_def_file): Use.
4448 (pe_dll_compat_implib): New variable.
4449 (make_one): Use.
50bbae35 4450
870df5dc
NC
4451 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4452 pe_dll_compat_implib.
50bbae35
AM
4453
4454 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
870df5dc
NC
4455 compat-implib options.
4456 (gld_${EMULATION_NAME}_list_options): List new options.
4457 (gld_${EMULATION_NAME}_parse_args): Handle.
4458
50bbae35 4459 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5aaace27 4460 dll.
50bbae35
AM
4461
4462 * deffilep.y (opt_name): Allow "." in name.
5aaace27 4463
2f6d2f85 4464For older changes see ChangeLog-9899
252b5132
RH
4465\f
4466Local Variables:
4467mode: change-log
4468left-margin: 8
4469fill-column: 74
4470version-control: never
4471End:
This page took 0.3735 seconds and 4 git commands to generate.