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