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