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