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