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