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