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