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