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