Fix arm aout placement of .bss section
[external/binutils.git] / ld / ChangeLog
1 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
2
3         * scripttempl/armaout.sc: Place .bss section after end of aligned
4         data section to match behaviour of aout code in constructrion of
5         header.
6
7 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
8
9         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
10         startup files for mingw32 dlls to list.
11
12 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
13
14         * emultempl/elf32.em: Fix shell 'if' usage for portability.
15
16 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
17
18         * configure.tgt (targ): Add arm9e-*-elf.
19
20 2001-10-05  H.J. Lu  <hjl@gnu.org>
21
22         * genscripts.sh: Fix a typo in the last change.
23
24 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
25
26         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
27         -z nocombreloc in usage.
28
29 2001-10-03  Jim Blandy  <jimb@redhat.com>
30
31         * genscripts.sh: Include a comment at the top of each generated
32         script, explaining its purpose.
33
34 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
35
36         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
37         * NEWS: Mention -z nocopyreloc.
38         * ld.texinfo (Options): Describe nocopyreloc.
39
40 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
41
42         * configure: Regenerate.
43
44 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
45
46         * ldver.h (ld_program_version): Remove declaration.
47         * lexsup.c (parse_args): Move printing of copyright message..
48         * ldver.c (ldversion): .. to here.
49         Use BFD_VERSION_STRING in place of BFD_VERSION.
50         (ld_program_version): Remove.
51         * Makefile.am (Makefile): Depend on bfd/configure.in.
52         Run "make dep-am".
53         * Makefile.in: Regenerate.
54
55 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
56
57         * Makefile.am: Update dependencies with "make dep-am".
58         * Makefile.in: Regenerate.
59
60 2001-09-29  John Reiser  <jreiser@BitWagon.com>
61
62         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
63         * lexsup.c: Add --no-define-common commandline option.
64         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
65         * ldlex.l: Likewise.
66         * ld.h: Add command_line.inhibit_common_definition.
67         * ldmain.c (main): Initialize.
68         * ld.texinfo: Document.
69
70 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
71
72         * ldmisc.c (USE_STDARG): Remove.
73         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
74         (einfo): Likewise.
75         (minfo): Likewise.
76         (lfinfo): Likewise.
77
78         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
79         declarations.  Update copyright.
80
81 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
82
83         * pe-dll.c: Remove obsoleted declaration of
84         pe_get_data_import_dll_name.
85         (pe_create_import_fixup): Fix thinko.
86
87         * ld.texinfo(enable-auto-import): Clarify the explanation.
88
89 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
90
91         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
92         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
93         DLL_SUPPORT controlled code.
94
95 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
96  
97         * emultempl/pe.em(pe_data_import_dll): Make static.
98         (pe_get_data_import_dll_name): New accessor function.
99         * pe-dll.c(pe_create_import_fixup): call 
100         pe_get_data_import_dll_name() from pe.em, instead of
101         directly accessing pe_data_import_dll variable from pe.em.
102
103 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
104
105         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
106         (def_file_add_directive): Use ISSPACE instead of isspace.
107         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
108         isdigit/isxdigit/isalpha/isalnum.
109         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
110         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
111         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
112         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
113         isalnum.
114         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
115         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
116         isupper/tolower.
117         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
118         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
119         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
120         (ctor_prio): Use ISDIGIT instead of isdigit.
121         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
122         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
123         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
124         isupper/tolower.
125         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
126         (stricpy): Use TOLOWER instead of isupper/tolower.
127         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
128         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
129         (lex_warn_invalid): Use ISPRINT instead of isprint.
130         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
131         (main): For gettext, also set the LC_CTYPE locate facet.
132         (add_keepsyms_file): Use ISSPACE instead of isspace.
133         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
134         (is_num, parse_args): Use ISDIGIT instead of isdigit.
135         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
136         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
137         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
138         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
139         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
140         (quoteput): Use ISSPACE instead of isspace.
141         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
142         instead of isalnum.
143
144 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
145
146         * deffilep.y (def_stash_module): Constify "name" param.
147
148         * pe-dll.c: Replace CONST with const throughout.
149         (quick_symbol): Constify "n1", "n2", "n3" params.
150         (make_singleton_name_thunk): Constify "import" param.  Make
151         "buffer_len" a size_t.
152         (make_import_fixup_entry): Constify "name", "fixup_name",
153         "dll_symname" params.
154         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
155         (pe_get32): Likewise.
156         (pe_implied_import_dll): Likewise.
157
158         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
159         (sort_by_section_name): Likewise.
160
161         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
162         (make_import_fixup): Cast printf arg, rel->address to long rather
163         than int.
164         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
165
166 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
167
168         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
169         defines BufferSize.  Increase buffer size by one.
170
171 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
172
173         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
174
175 2001-09-14  Kevin Lo <kevlo@openbsd.org>
176
177         * configure.tgt: Add arm-openbsd target.
178
179 2001-09-12  H.J. Lu  <hjl@gnu.org>
180
181         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
182         eelf64lppc.o to ...
183         (ALL_64_EMULATIONS): Here.
184         * Makefile.in: Regenerated.
185
186 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
187
188         * emultempl/pe.em(make_import_fixup): change signature to
189         take asection as well as arelec; we need this for proper
190         error reporting.  Only call pe_create_import_fixup() if 
191         there is no attempt to add a constant addend to the reloc;
192         otherwise, report error condition.
193         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
194         since final argument is a pointer to make_import_fixup().
195         Change call to cb() to match make_import_fixup() signature.
196         (make_import_fixup_mark): make buffer_len unsigned.
197         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
198
199 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
200
201         * ld.texinfo: add verbose documentation for auto-import
202         direct-addressing workaround, to compliment the terse 
203         error message.
204
205 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
206
207      * scripttempl/v850.sc: Add gcc_except_table sections.
208
209 Fri Sep  7 11:34:24 2001  Jeffrey A Law  (law@cygnus.com)
210
211         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
212         * emulparams/h8300self.sh: Similarly.
213
214 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
215
216         * ld.texinfo (Options, --stack): Correct default value for stack
217         reserve.
218
219 2001-09-05  Tom Rix <trix@redhat.com>
220
221         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
222         
223 2001-09-03  Andreas Jaeger  <aj@suse.de>
224
225         * emultempl/beos.em: Declare prototypes for comparions functions,
226         adjust definitions.
227
228 2001-09-02  Andreas Jaeger  <aj@suse.de>
229
230         * emultempl/aix.em: Add missing prototype.
231         * emultempl/lnk960.em: Likewise.
232         * emultempl/vanilla.em: Likewise.
233         * emultempl/armcoff.em: Likewise.
234         * emultempl/armelf_oabi.em: Likewise.
235         * emultempl/beos.em: Likewise.
236         * emultempl/gld960c.em: Likewise.
237         * emultempl/gld960.em: Likewise.
238
239         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
240         for prototype declaration.
241
242 2001-08-31  Eric Christopher  <echristo@redhat.com>
243             Jason Eckhardt  <jle@redhat.com>
244
245         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
246
247 2001-08-31  Andreas Jaeger  <aj@suse.de>
248
249         * emultempl/pe.em: Add missing prototypes.
250         (gld_${EMULATION_NAME}_after_open): Remove extra args to
251         pe_find_data_imports.
252         (pr_sym): Add unused attribute.
253
254 2001-08-29  Joel Sherrill <joel@OARcorp.com>
255
256         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
257         default from coff to elf.
258
259 2001-08-29  Jeff Law <law@redhat.com>
260
261         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
262         ARCH specification.
263         * emulparams/h8300self.sh: Similarly.
264
265 Wed Aug 28 13:37:20 2001  J"orn Rennecke <amylaar@redhat.com>
266
267         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
268         eh8300self.o .
269         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
270         * configure.tgt (h8300-*-elf*): New case.
271         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
272         * emulparams/h8300self.sh: New file.
273         * Makefile.in: Regenerated.
274
275 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
276
277         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
278         with macro name.
279
280 2001-08-27  Linus Nordberg  <linus@swox.com>
281             Alan Modra  <amodra@bigpond.net.au>
282
283         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
284         (eelf64ppc.c, eelf64lppc.c): Add make targets.
285         Run "make dep-am"
286         * Makefile.in: Regenerate.
287         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
288         entries to correct alphabetical position.
289         * emulparams/elf64ppc.sh: New.
290         * emulparams/elf64lppc.sh: New.
291
292 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
293
294         * ldmain.c (main): Declare BSIZE as static.
295
296 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
297
298         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
299         into .rel.dyn resp. .rela.dyn if combreloc.
300         (get_script): If .x linker script is equal to .xn, only put it
301         once into the binary.
302         Add .xc and .xsc scripts.
303         (parse_args): Handle -z combreloc and -z nocombreloc.
304         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
305         For .xc and .xsc scripts put all .rel* or .rela* input sections
306         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
307         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
308         is elf.
309         Strip trailing whitespace from script.
310         Generate .xc and .xsc scripts if requested.
311         * ldmain.c (main): Initialize link_info.combreloc and
312         link_info.spare_dynamic_tags.
313         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
314         (ld_options): Add --spare-dynamic-tags option.
315         (parse_args): Likewise.
316         * ld.texinfo: Document -z combreloc and -z nocombreloc.
317         * ldint.texinfo: Document .xc and .xsc linker scripts.
318         * NEWS: Add notes about -z combreloc and SHF_MERGE.
319
320 2001-08-22  H.J. Lu  <hjl@gnu.org>
321
322         * emulparams/elf32fr30.sh: Add a newline.
323
324 2001-08-21  Andreas Jaeger  <aj@suse.de>
325
326         * deffilep.y: Add missing prototypes.
327         * pe-dll.c: Likewise.
328
329 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
330
331         * ldlang.c (insert_pad): Fix typos in last patch.
332
333         * ldlang.c: When traversing lang_statement_union_type lists,
334         consistently use "header.next" rather than "next".
335         * mpw-eppcmac.c: Likewise.
336         * emultempl/beos.em: Likewise.
337         * emultempl/hppaelf.em: Likewise.
338         * emultempl/pe.em: Likewise.
339         * ldlang.h (union lang_statement_union): Remove "next" field.
340
341         * ldlang.c (insert_pad): Use offsetof macro.
342         (lang_size_sections): Always neuter padding statements.
343         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
344
345         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
346         passed to lang_size_sections.
347         (pe_exe_fill_sections): Likewise.
348         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
349         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
350
351 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
352
353         * emultempl/aix.em: Formatting fixes.
354
355 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
356
357         * ldlang.c (insert_pad): Make use of an existing pad statement if
358         available.  Move code calculating alignment, adjusting section
359         alignment power, and adjusting dot to ..
360         (size_input_section): .. here.  Remove unused relax param.
361         (lang_size_sections): Change boolean `relax' param to boolean *.
362         Adjust call to size_input_section.  Make use of insert_pad to
363         place pad after the assignment statement.  If relaxing, zap
364         padding statements.
365         (reset_memory_regions): Reset output_bfd section sizes too.
366         (relax_again): Move to..
367         (lang_process): ..here.  Adjust call to lang_size_sections, and
368         remove duplicated code.
369         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
370
371 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
372
373         * ld.texinfo: Document that fill values now use the four least
374         significant bytes.
375         * emulparams/elf32fr30.sh (NOP): Update.
376         * emulparams/elf32mcore.sh: Likewise.
377         * emulparams/elf64_s390.sh: Likewise.
378         * emulparams/elf_i386.sh: Likewise.
379         * emulparams/elf_i386_be.sh: Likewise.
380         * emulparams/elf_i386_chaos.sh: Likewise.
381         * emulparams/elf_i386_ldso.sh: Likewise.
382         * emulparams/elf_s390.sh: Likewise.
383         * emulparams/elf_x86_64.sh: Likewise.
384         * emulparams/i386moss.sh: Likewise.
385         * emulparams/i386nw.sh: Likewise.
386         * emulparams/m68kelf.sh: Likewise.
387         * scripttempl/elf.sc: Update NOP comment.
388         * scripttempl/elfi370.sc: Likewise.
389         * scripttempl/elfm68hc11.sc: Likewise.
390         * scripttempl/elfm68hc12.sc: Likewise.
391         * scripttempl/nw.sc: Likewise.
392
393 2001-08-15  Tom Rix <trix@redhat.com>
394
395         * ldgram.y (saved_script_handle): Initialize to NULL.
396         * ldmain.c (main): Change check on saved_script_handle.
397
398 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
399
400         * emultempl/elf32.em: Formatting fixes.
401         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
402         looking at sec->owner.
403         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
404         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
405         unused code, and reorganize orphan section placement code.
406
407         * ldlang.c (wild_doit): Rename to lang_add_section.
408         * ldlang.h: Here too.
409         * mpw-elfmips.c: And here.
410         * emultempl/beos.em: And here.
411         * emultempl/elf32.em: And here.
412         * emultempl/hppaelf.em: And here.
413         * emultempl/pe.em: And here.
414
415 2001-08-13  Richard Henderson  <rth@redhat.com>
416
417         * emultempl/needrelax.em: New file.
418         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
419         * Makefile.am (eelf64_ia64.c): Depend on it.
420         * Makefile.in: Rebuild.
421
422 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
423
424         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
425         output_section is set non-NULL.
426
427         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
428         `true' for SEC_EXCLUDE sections so that the generic code doesn't
429         needlessly create an output_section_statement.  Treat a correctly
430         named output_section_statement with NULL bfd_section as compatible.
431
432 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
433
434         * emultempl/generic.em: Support EXTRA_EM_FILE.
435         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
436         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
437         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
438         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
439         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
440         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
441         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
442         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
443         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
444         LDEMUL_FIND_POTENTIAL_LIBRARIES.
445
446 2001-08-12  Richard Henderson  <rth@redhat.com>
447
448         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
449         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
450         scripttempl/v850.sc: Keep .jcr data.
451
452 2001-08-12  H.J. Lu  <hjl@gnu.org>
453             Andrew Haley  <aph@cambridge.redhat.com>
454             Nick Clifton  <nickc@redhat.com>
455
456         * ldgram.y (had_script): Change name to saved_script_handle.
457         Change type to file handle.
458         * ld.h (had_script): Rename and retype.
459         * ldfile.c (ldfile_open_command_file): Save the file handle
460         used in saved_script_handle.
461         * lexsup.c (parse_args): Do not allow -c option to alter
462         saved_script_handle.
463         * ldmain.c (main): Print out the linker script used if
464         --verbose is given.  Check saved_script_handle to obtain the
465         external linker script used, or if NULL, dump the builtin
466         script.
467         * ld.texinfo: Document that --verbose now dumps the linker
468         script used, regardless of whether it was an internal or an
469         external script.
470
471 2001-08-10  Andreas Jaeger  <aj@suse.de>
472
473         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
474         to build warnings.
475         * configure: Regenerate.
476
477 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
478
479         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
480
481         * scripttempl/elf.sc: Move non-text .dynamic section before
482         .plt/.got/.sdata* group.
483         (OTHER_GOT_SECTIONS): Move to immediately after .got.
484         (OTHER_SDATA_SECTIONS): Add.
485         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
486         OTHER_GOT_SECTIONS.
487         * emulparams/crislinux.sh: Likewise.
488         * emulparams/elf32b4300.sh: Likewise.
489         * emulparams/elf32bmip.sh: Likewise.
490         * emulparams/elf32bmipn32.sh: Likewise.
491         * emulparams/elf32bsmip.sh: Likewise.
492         * emulparams/elf32btsmip.sh: Likewise.
493         * emulparams/elf32ebmip.sh: Likewise.
494         * emulparams/elf32elmip.sh: Likewise.
495         * emulparams/elf32l4300.sh: Likewise.
496         * emulparams/elf32lmip.sh: Likewise.
497         * emulparams/elf32lsmip.sh: Likewise.
498         * emulparams/elf32ltsmip.sh: Likewise.
499         * emulparams/elf64bmip.sh: Likewise.
500         * emulparams/elf64btsmip.sh: Likewise.
501         * emulparams/elf64ltsmip.sh: Likewise.
502
503 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
504
505         * genscripts.sh: Source the emulparams script before each output
506         script is generated so that variables like `RELOCATING' may affect
507         variables defined in the emulparams script.
508
509 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
510
511         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
512         order.
513
514         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
515         ie. iterate over wild_statement.section_list.
516         (gld${EMULATION_NAME}_place_orphan): Likewise.
517
518 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
519
520         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
521         .fini[0-4] sections used by _exit
522         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
523         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
524         * scripttempl/elfm68hc11.sc: Likewise.
525
526 2001-08-03  H.J. Lu  <hjl@gnu.org>
527
528         * emultempl/beos.em (init): Add the missing initialization.
529
530 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
531
532         * ld.texinfo (Input Section Basics): Clarify ordering of output
533         sections.
534         * ldlang.c (callback_t): Add wildcard_list param.
535         (walk_wild_section): Remove "section" param.  Rewrite for
536         lang_wild_statement_type change.  Remove unique_section_p test.
537         (walk_wild_file): Remove "section" param.
538         (walk_wild): Remove "section" and "file" params.
539         (lang_gc_wild): Likewise.
540         (wild): Likewise.  Modify for lang_wild_statement_type change.
541         (wild_sort): Likewise.  Add "sec" param.
542         (gc_section_callback): Likewise.
543         (output_section_callback): Likewise.  Do unique_section_p test.
544         (map_input_to_output_sections): Modify call to wild.
545         (lang_gc_sections_1): Likewise.
546         (print_wild_statement): Modify for lang_wild_statement_type
547         change.
548         (lang_add_wild): Replace filename, filenames_sorted param with
549         filespec.  Replace section_name, sections_sorted,
550         exclude_filename_list with section_list.
551         * ldlang.h (lang_add_wild): Here too.
552         (lang_wild_statement_type): Replace section_name, sections_sorted,
553         and exclude_filename_list with section_list.
554         * ldgram.y (current_file): Delete.
555         (%union): Add wildcard_list.
556         (file_NAME_list): Set type to wildcard_list.  Build a linked list
557         rather than calling lang_add_wild for each entry.
558         (input_section_spec_no_keep): Call lang_add_wild here instead.
559         * ld.h (struct wildcard_list): Declare.
560         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
561
562 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
563
564         * ldmain.c (main): initialize link_info.pei386_auto_import
565         * pe-dll.c: new tables for auto-export filtering
566         (auto_export): change API, pass abfd for contextual filtering.
567         Loop thru tables of excluded symbols instead of comparing
568         "by hand".
569
570 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
571
572         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
573         static variable current_sec (static struct sec *). Add
574         forward declaration for add_bfd_to_link.
575         (process_def_file): Don't export undefined symbols. Do not
576         export symbols starting with  "_imp__".  Call auto_export()
577         with new API.
578         (pe_walk_relocs_of_symbol): New function.
579         (generate_reloc): add optional extra debugging
580         (pe_dll_generate_def_file): eliminate extraneous initial blank
581         line in output
582         (make_one): enlarge symtab to make room for __nm__ symbols
583         (DATA auto-import support).
584         (make_singleton_name_thunk): New function.
585         (make_import_fixup_mark): New function.
586         (make_import_fixup_entry): New function.
587         (pe_create_import_fixup): New function.
588         (add_bfd_to_link): Specify that 'name' argument is a CONST
589         char *.
590         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
591         declare new functions pe_walk_relocs_of_symbol and
592         pe_create_import_fixup.
593         * emultempl/pe.em: add new options --enable-auto-import,
594         --disable-auto-import, and --enable-extra-pe-debug.
595         (make_import_fixup): New function.
596         (pe_find_data_imports): New function.
597         (pr_sym): New function.
598         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
599         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
600         CODE.
601
602 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
603
604         * ld.texinfo: add additional documentation for
605         --export-all-symbols.  Document --out-implib,
606         --enable-auto-image-base, --disable-auto-image-base,
607         --dll-search-prefix, --enable-auto-import, and
608         --disable-auto-import.
609         * ldint.texinfo: Add detailed documentation on auto-import
610         implementation.
611
612 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
613
614         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
615         example.
616
617 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
618
619         * Makefile.am: Update dependencies with "make dep-am".
620         * Makefile.in: Regenerate
621
622 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
623
624         * ldcref.c (check_section_sym_xref): New function.
625         (check_nocrossrefs): Call it.
626         (check_nocrossref): Interate over h->refs here instead of..
627         (check_refs): ..here.  Pass in the symbol name, section, and bfd
628         rather than hash_entry pointers.
629         (struct check_refs_info): Keep symbol name rather than hash entry.
630         Remove "same".
631         (check_reloc_refs): Tweak for above changes in check_refs_info.
632         Only report references to section syms when symname is NULL to
633         prevent duplicate messages for the same reloc.
634
635 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
636
637         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
638         available.  Do not print NULL trees.
639         (exp_print_token): Print unknown tokens with values > 126 as
640         decimal values not ASCII characters.
641
642         * ldlang.c (lang_leave_overlay): If a region is specified assign
643         it to all sections inside the overlay unless they have been
644         assigned to the own, non-default, memory region.
645
646         * README: Add header for consistency with other README files.
647
648 2001-07-14  H.J. Lu  <hjl@gnu.org>
649
650         * emultempl/elf32.em (output_prev_sec_find): Never return
651         bfd_abs_section_ptr, bfd_com_section_ptr nor
652         bfd_und_section_ptr.
653
654 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
655
656         * Makefile.am (em32relf.c): Change dependency from generic.em to
657         elf32.em.
658         * Makefile.in: Regenerate.
659
660 2001-07-14  matthew green  <mrg@eterna.com.au>
661
662         * configure.tgt (i386-*-netbsdelf*): New target.
663         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
664
665 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
666
667         * emultempl/elf32.em (output_prev_sec_find): New.
668         (place_orphan): Use it.
669
670 2001-07-11  H.J. Lu  <hjl@gnu.org>
671
672         * ldmain.c (main): Fix typos in the last change.
673
674 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
675
676         * ldmain.c (main): Disallow -F and -f without -shared.
677
678 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
679
680         * emultempl/pe.em (after_open): Check for the output_bfd not
681         having any coff_data structure allocated to it.
682
683 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
684
685         * emultempl/elf32.em: Do not assuming that contents of the buffer
686         returned from basename function will remain unchanged accross other
687         function calls.
688
689 2001-07-03  H.J. Lu  <hjl@gnu.org>
690
691         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
692         2001-07-03. It creates dynamic entries even for static binaries.
693
694 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
695
696         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
697         (DYNAMIC): Use it to reserve few dynamic entries for
698         post-linking tools.
699
700 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
701
702         * emulparams/hppa64linux.sh: New file.
703         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
704         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
705         (ehppa64linux.c): Add rule to make it.
706         Run "make dep-am".
707         * Makefile.in: Regenerate.
708
709 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
710
711         * ld.texinfo (Options, -r): Mention restrictions when using
712         different object formats.
713
714 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
715
716         * ldlang.c (lang_check): Emit fatal error if relocatable link
717         between different object flavours with relocations in input.
718
719 2001-06-19  H.J. Lu  <hjl@gnu.org>
720
721         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
722         (--version-script): Mention the language support.
723
724 2001-06-19  H.J. Lu <hjl@gnu.org>
725
726         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
727
728 2001-06-18  H.J. Lu <hjl@gnu.org>
729
730         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
731         (diststuff): Add $(MANS).
732         * Makefile.in: Regenerated.
733
734         * ld.1: Removed.
735
736 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
737
738         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
739         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
740         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
741         * ld.h (args_type): Remove member export_dynamic.  All users
742         changed to use struct bfd_link_info member.
743
744         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
745         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
746         * Makefile.in: Regenerate.
747
748 2001-06-18  H.J. Lu  <hjl@gnu.org>
749
750         * ldlang.c (init_os): Add the newline to the einfo call.
751         (lang_check): Likewise.
752         (lang_do_version_exports_section): Likewise.
753
754 2001-06-15  H.J. Lu  <hjl@gnu.org>
755
756         * lexsup.c (parse_args); Save optind to report unrecognized
757         option.
758
759 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
760
761         * ldlang.c (lang_check): Emit fatal error if relocatable link
762         between different object flavours.
763
764         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
765         Set new link_info member export_dynamic.
766         * ldmain.c (main): Initialize new link_info member export_dynamic.
767
768 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
769
770         * ldlang.c (walk_wild): Only call walk_wild_file if
771         lookup_name returns something.
772         (lookup_name): If load_symbols fails, return NULL.
773         (load_symbols): Change to a boolean function.
774         (open_input_bfds): If load_symbols fails then do not make the
775         executable.
776
777 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
778
779         * ldlang.c (record_bfd_errors): Remove.
780
781         * emultempl/aix.em: Fix copyright dates.
782
783 2001-06-07  Andreas Jaeger  <aj@suse.de>
784
785         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
786         (TEXT_START_ADDR): Likewise.
787
788 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
789
790         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
791
792 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
793
794         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
795
796 2001-05-31  H.J. Lu  <hjl@gnu.org>
797
798         * ldlang.c (open_input_bfds): Don't change the bfd error
799         handler whilst loading symbols.
800
801 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
802
803         * configure.tgt: Remove i370-mvs architecture, it is not currently
804         supported.
805
806 2001-05-25  H.J. Lu  <hjl@gnu.org>
807
808         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
809         like emulparams/aixppc.sh.
810
811 2001-05-25  H.J. Lu  <hjl@gnu.org>
812
813         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
814         setting of output_filename after bfd_scan_arch.
815         * emultempl/pe.em: Likewise.
816
817 2001-05-25  H.J. Lu  <hjl@gnu.org>
818
819         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
820         like emulparams/aixppc.sh.
821
822         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
823         instead of ${srcdir}/emultempl/stringify.sed.
824
825 2001-05-25  Timothy Wall  <twall@oculustech.com>
826
827         * emulparams/elf64_aix.sh: Change settings to match IBM linker
828         output.
829
830 2001-05-25  Alan Modra  <amodra@one.net.au>
831
832         * configure.host: Replace linuxoldld with linux*oldld.
833         * configure.tgt: Likewise.
834
835 2001-05-24  H.J. Lu  <hjl@gnu.org>
836
837         * emultempl/stringify.sed: Removed again.
838
839 2001-05-24  H.J. Lu  <hjl@gnu.org>
840
841         * emultempl/aix.em (OUTPUT_ARCH): Defined.
842         (gld${EMULATION_NAME}_before_parse): Initialize
843         ldfile_output_architecture, ldfile_output_machine and
844         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
845         * emultempl/beos.em: Likewise.
846         * emultempl/elf32.em: Likewise.
847         * emultempl/linux.em: Likewise.
848         * emultempl/mipsecoff.em: Likewise.
849         * emultempl/pe.em: Likewise.
850         * emultempl/sunos.em: Likewise.
851
852 2001-05-24 Tom Rix <trix@redhat.com>
853
854         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
855         udate import file format.
856         (change_symbol_mode) New, same
857         (is_syscall) New, same
858         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
859         * emulparams/aixppc64.sh : same
860         * emulparams/aixrs6.sh : same
861         * emulparams/ppcmacos.sh : same
862         * emultempl/aix.em : use strtoull to parse options
863         * Makefile.am : add eaixppc64 emulation for xcoff64
864         * Makefile.in : same
865         * configure.tgt : same
866
867         * scripttempl/aix.sc : default text section offset to 0x10000000
868          default data section offset to 0x20000000
869         add .sv3264 and .sv64 pseudo sections
870         loader and debug sections use the currect section offset.
871
872         * emultempl/aix.em : Add xcoff64 support
873         Add -binitfini support
874         (gld${EMULATION_NAME}_before_parse) -binitfini
875         (gld${EMULATION_NAME}_parse_args) same
876         (gld${EMULATION_NAME}_before_allocation) format change for special
877         sections
878
879         * emulparams/aixppc64.sh : New file for xcoff64 support
880
881 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
882
883         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
884         variable to avoid non-portable shell construct.
885
886 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
887
888         * ldmain.c (get_emulation): Add -mips5 command line argument.
889
890 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
891
892         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
893         (ELF_INTERPRETER_NAME): Define it.
894         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
895         it.
896         * configure.tgt (targ_emul, targ_extra_emuls)
897         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
898         as primary, elf_i386 as extra.
899         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
900         (eelf_i386_ldso.c): New rule.
901         * Makefile.in: Rebuilt.
902
903 2001-05-22  Nick Clifton  <nickc@redhat.com>
904
905         * lexsup.c (ld_options):  Allow -I to be an alias for
906         --dynamic-linker.  This is for Solaris compatability.
907         * ld.texinfo: Document that -I can be used.
908         * ld.1: Regenerate.
909
910 2001-05-16  Alan Modra  <amodra@one.net.au>
911
912         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
913         whether an input section is the first one assigned to an output
914         section.
915         Assorted formatting fixes.
916
917 2001-05-14  DJ Delorie  <dj@delorie.com>
918
919         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
920         * Makefile.in: Ditto.
921
922 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
923
924         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
925         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
926         output sections.
927         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
928
929 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
930
931         * ldlang.c (lang_process): Call bfd_merge_sections.
932
933 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
934
935         * ldgram.y: Fix typo.
936
937 2001-05-03  H.J. Lu  <hjl@gnu.org>
938
939         * emultempl/elf32.em: Include "libiberty.h".
940         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
941         basename of the bfd filename.
942         (gld${EMULATION_NAME}_stat_needed): Likewise.
943         (gld${EMULATION_NAME}_try_needed): Likewise.
944         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
945
946 2001-05-02  H.J. Lu  <hjl@gnu.org>
947
948         * emultempl/pe.em: Include <ctype.h>.
949
950 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
951
952         * emulparams/elf32openrisc.sh: New file.
953
954         * Makefile.am: Add OpenRISC target.
955         * Makefile.in: Regenerated.
956
957         * configure.tgt: Add openrisc-*-* mapping.
958
959 2001-05-02  Nick Clifton  <nickc@redhat.com>
960
961         * emultempl/aix.em: Replace buystring with xstrdup.
962         * emultempl/beos.em: Replace buystring with xstrdup.
963
964 2001-05-02  H.J. Lu  <hjl@gnu.org>
965
966         * ldfile.c: Include "libiberty.h".
967         * ldlex.l: Likewise.
968
969         * ldmisc.c (buystring): Removed.
970         * ldmisc.h: Likewise.
971
972         * ldfile.c: Replace buystring with xstrdup.
973         * ldlang.c: Likewise.
974         * ldlex.l: Likewise.
975         * ldmain.c: Likewise.
976         * ldmisc.c: Likewise.
977         * lexsup.c: Likewise.
978         * mpw-eppcmac.c: Likewise.
979
980 2001-04-30  Andreas Jaeger  <aj@suse.de>
981
982         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
983
984 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
985
986         * ldlang.c (load_symbols): Give emulation a chance
987         to process unrecognized file before fatal error is
988         reported, not after.
989
990 2001-04-27  Sean McNeil <sean@mcneil.com>
991
992         * configure.tgt: Add arm-vxworks target.
993         * scripttempl/armcoff.sc: Support .text or .data as a section name
994         prefix.
995         Define _etext.
996
997 2001-04-13  J.T. Conklin  <jtc@redback.com>
998
999         * ld.texinfo: Document --fatal-warnings.
1000         * ld.1: Regenerate.
1001
1002         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
1003         warnings have been turned into errors.
1004         * lexsup.c (OPTION_WARN_FATAL): Define.
1005         (ld_options): Entry for --fatal-warnings.
1006         (parse_args): Handle OPTION_WARN_FATAL.
1007         * ld.h (ld_config_type): Add fatal_warnings field.
1008
1009 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
1010
1011         * ldmain.c (main): Default to discard_sec_merge.
1012         * lexsup.c (OPTION_DISCARD_NONE): Define.
1013         (ld_options): Add --discard-none.
1014         (parse_args): Handle OPTION_DISCARD_NONE.
1015         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
1016         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
1017         all its input sections match.
1018
1019 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
1020
1021         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
1022         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
1023         (eelf32ltsmip.c): New target.
1024         (eelf64btsmip.c): Likewise.
1025         (eelf64ltsmip.c): Likewise.
1026         * Makefile.in: Regenerated.
1027
1028         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
1029         target.
1030         (mips*-*-linux-gnu*): Likewise.
1031
1032         * emulparams/elf32ltsmip.sh: New. Traditional little endian
1033         MIPS taget.
1034         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
1035         target.
1036         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
1037         endian target.
1038
1039 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
1040
1041         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
1042         correct value of __Stext here.
1043         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
1044         .startup section.
1045
1046         * emulparams/crislinux.sh: Remove FIXME.
1047
1048 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
1049
1050         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
1051         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
1052
1053 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
1054
1055         * configure.tgt (cris-*-*): Change default emulation to criself.
1056         (cris-*-*aout*): New rule.
1057
1058 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
1059
1060         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
1061         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
1062
1063 2001-03-26  Andreas Jaeger  <aj@suse.de>
1064
1065         * ld.texinfo (Overview): Fix syntax in texi code.
1066
1067 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1068
1069         * ld.texinfo: Put @c man indications to generate the ld man page.
1070         When generating man, define all the variables.  Define SEEALSO
1071         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
1072         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
1073         (ld.1): Generate from ld.texinfo.
1074         * Makefile.in: Regenerate.
1075
1076 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
1077
1078         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
1079           and '-fdata-sections'. Set the VMA of STABS sections to zero.
1080
1081 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
1082
1083         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
1084         is an absolute path look only for this file and not along the path.
1085
1086 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
1087
1088         * emultempl/elf32.em (OPTION_GROUP): New macro.
1089         Add new option Bgroup to longopts.
1090         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
1091         (gld*_list_options): Add -Bgroup and -z defs.
1092         * ld.1: Document -Bgroup and -z defs.
1093         * ld.texinfo: Likewise.
1094
1095 2001-03-07  Michael Meissner  <meissner@redhat.com>
1096
1097         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
1098         with sections created by -fdata-sections.
1099         (.dynbss,.bss): Ditto.
1100
1101 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
1102
1103         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
1104         after_allocation_default, not gld..._before_allocation.
1105
1106 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
1107
1108         * configure.in (BFD_VERSION): New.
1109         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
1110         * configure: Regenerate.
1111         * Makefile.am: Run "make dep-am"
1112         * Makefile.in: Regenerate.
1113
1114 2001-02-26  Timothy Wall  <twall@cygnus.com>
1115
1116         * emulparams/elf64_aix.sh: Add additional read-only sections;
1117         uncomment lines which are now required.
1118
1119 2001-02-26  H.J. Lu  <hjl@gnu.org>
1120
1121         * ldlang.c (open_input_bfds): Set the bfd error handler so
1122         that problems can be caught whilst loading symbols.
1123         (record_bfd_errors): New function: Report BFD errors and mark
1124         the executable output as being invalid.
1125
1126 2001-02-22  Timothy Wall  <twall@cygnus.com>
1127
1128         * configure.host: Add configuration for ia64-*-aix*.
1129         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
1130         Add dependencies for eelf64_aix.c.
1131         * Makefile.in: Regenerate.
1132         * configure.tgt: Add ia64-*-aix* mapping.
1133         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
1134         * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
1135         AIX-specific test.
1136
1137 2001-02-20  H.J. Lu  <hjl@gnu.org>
1138
1139         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
1140         false if we found the file.
1141
1142 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
1143
1144         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
1145         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
1146
1147 2001-02-18  lars brinkhoff  <lars@nocrew.org>
1148
1149         * Makefile.am: Add PDP-11 target.
1150         * configure.tgt: Likewise.
1151         * emulparams/pdp11.sh: New file.
1152
1153 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
1154
1155         * configure.host: Add a generic FreeBSD configuration entry such that
1156         all [modern] FreeBSD systems on all platforms will look the same.
1157
1158 2001-02-14  H.J. Lu  <hjl@gnu.org>
1159
1160         * configure.tgt: Remove mention of earmelf_linux26.
1161
1162 2001-02-13  Richard Henderson  <rth@redhat.com>
1163
1164         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
1165
1166 2001-02-13  H.J. Lu  <hjl@gnu.org>
1167
1168         * ldexp.h (node_type): Add etree_provided.
1169         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
1170         type to etree_provided if defined by PROVIDE. Allow updating
1171         for etree_provided.
1172         (exp_print_tree): Handle etree_provided.
1173         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
1174         etree_provided.
1175
1176 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
1177
1178         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
1179         .IA_64.unwind.* pattern to unwind table section and
1180         .IA_64.unwind_info* pattern to unwind info section.
1181
1182 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1183
1184         * Makefile.am: Add linux target for S/390.
1185         * Makefile.in: Likewise.
1186         * configure.host: Likewise.
1187         * configure.tgt: Likewise.
1188         * emulparams/elf64_s390.sh: New file.
1189         * emulparams/elf_s390.sh: New file.
1190
1191 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
1192
1193         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
1194         targ_extra_libpath.
1195         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
1196
1197 2001-02-06  Philip Blundell  <philb@gnu.org>
1198
1199         * Makefile.am: Remove mention of earmelf_linux26.
1200         * Makefile.in: Regenerate.
1201
1202 2001-02-04  Philip Blundell  <philb@gnu.org>
1203
1204         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
1205         * emulparams/armelf_linux26.sh: Delete.
1206         * configure.tgt: Remove mention of armelf_linux26 emulation.
1207
1208 2001-02-01  Nick Clifton  <nickc@redhat.com>
1209
1210         * ld.1: Replace occurances of -oformat with --oformat.
1211
1212 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
1213
1214         * ldlang.c (lang_leave_overlay): Don't set lma_region when
1215         load_base is specified.
1216
1217 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
1218
1219         * emultempl/elf32.em: Correct spelling in comments and listed
1220         options.
1221
1222 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
1223
1224         * ldlang.c (lang_leave_overlay): Only set lma_region from the
1225         default for the first section of a group of overlay sections.
1226
1227 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
1228
1229         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
1230         * Makefile.in: Regenerate.
1231         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
1232         Check for null tool_dir.
1233
1234 2001-01-16  Jim Wilson  <wilson@redhat.com>
1235
1236         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
1237         and IA_64.unwind.info.
1238
1239 2001-01-16  H.J. Lu  <hjl@gnu.org>
1240
1241         * ldlang.c (lang_check): Merge the private data only if the
1242         input file has contents.
1243
1244 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
1245
1246         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
1247
1248         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
1249         enabling search for libmilli.  On a relocatable link, make .text
1250         sections unique.
1251         (LDEMUL_AFTER_PARSE): Define.
1252         (hppaelf_finish): Correct spelling of relocatable in comments.
1253
1254         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1255         rummage through the script for sections on the unique list.
1256         Correct length of strncmp for ".note".
1257         (gld${EMULATION_NAME}_check_needed): Rearrange function.
1258
1259         * ldlang.c (unique_section_list): New var.
1260         (unique_section_p): New function.
1261         (walk_wild_section): Don't match sections on unique_section_list.
1262         (lang_add_unique): New function.
1263         Correct spelling of relocatable in comments.
1264
1265         * ldlang.h (struct unique_sections): Declare.
1266         (unique_section_list): Declare.
1267         (unique_section_p): Declare.
1268         (lang_add_unique): Declare.
1269
1270         * lexsup.c (ld_options): Allow --unique to take an optional arg.
1271         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
1272
1273         * ld.texinfo (--unique): Update.
1274
1275 2001-01-13  Nick Clifton  <nickc@redhat.com>
1276
1277         * lexsup.c (parse_args): Remove spurious white space.
1278
1279 2001-01-12  Nick Clifton  <nickc@redhat.com>
1280
1281         * lexsup.c (parse_args): Update copyright date.
1282
1283 2001-01-12  Philip Blundell  <pb@futuretv.com>
1284
1285         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
1286
1287 2001-01-10  Kazu Hirata  <kazu@hxi.com>
1288
1289         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
1290         * scripttempl/h8300h.sc: Fix formatting.
1291         * scripttempl/h8300s.sc: Likewise.
1292         * scripttempl/h8500.sc: Likewise.
1293         * scripttempl/h8500b.sc: Likewise.
1294         * scripttempl/h8500c.sc: Likewise.
1295         * scripttempl/h8500m.sc: Likewise.
1296         * scripttempl/h8500s.sc: Likewise.
1297
1298 2000-01-07  David O'Brien  <obrien@BSDi.com>
1299
1300         * emultempl/elf32.em: Only perform Linux ld hints processing when
1301         targeting Linux.
1302
1303 2001-01-07  Philip Blundell  <philb@gnu.org>
1304
1305         * ld.texinfo (Bug Reporting): Update email address for reports.
1306
1307 2000-12-31  Nick Clifton  <nickc@redhat.com>
1308
1309         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
1310         options by checking for a return value of '?' not -1.
1311
1312 2000-12-28  Nick Clifton  <nickc@redhat.com>
1313
1314         * lexsup.c (struct ld_option): Add new enum value:
1315         EXACTLY_TWO_DASHES.
1316         (ld_options[]): Change -omagic, -output and -oformat options
1317         to be EXACTLY_TWO_DASHES.
1318         (OUTPUT_COUNT): Use ARRAY_SIZE.
1319         (parse_args): Change parameter 'argc' to unsigned.
1320         Place EXACTLY_TWO_DASHES options into new really_longopts
1321         array.
1322         If getopt_long_only fails, try calling getopt_long using the
1323         really_longopts array.
1324         (help): Print a double dash for both EXACTLY_TWO_DASHES and
1325         TWO_DASHES options.
1326
1327         * ldlex.h: Fix prototype of parse_args.
1328
1329         * ld.texinfo: Document that long options starting with 'o'
1330         must be preceeded by two dashes.  Change example of a single
1331         dashed long option from -oformat to -trace-symbol.
1332
1333 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1334
1335         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
1336         (longopts[]): New --no-default-excludes option.
1337         (gld_${EMULATION_NAME}_list_options): Document.
1338         (gld_${EMULATION_NAME}_parse_args): Handle.
1339
1340 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1341
1342         * ldlang.c (new_stat): Revert the last beautification with "innocent"
1343         whitespace, it breaks the K&R C preprocessor.
1344
1345 2000-12-11  DJ Delorie  <dj@redhat.com>
1346
1347         * ld.texinfo: Add notes about --whole-archive and gcc.
1348
1349 2000-11-18  Fred Fish  <fnf@be.com>
1350
1351         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
1352         (ld_options): Entry for --allow-shlib-undefined.
1353         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
1354         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
1355         to false.
1356         * ld.texinfo: Document new command line switch.
1357
1358 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
1359
1360         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
1361         .fixup is actually read/write.
1362         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1363         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1364         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1365
1366 Mon Dec 11 14:50:33 MET 2000  Jan Hubicka  <jh@suse.cz>
1367
1368         * NEWS: Add note about x86_64 architecture.
1369
1370 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
1371
1372         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
1373         Set DWARF2 sections to a VMA of zero.
1374
1375 2000-12-01      Joel Sherrill <joel@OARcorp.com>
1376
1377         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
1378         New targets.
1379         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1380         (sparc*-*-rtems*): Switched from a.out to ELF.
1381
1382 2000-11-30  Jan Hubicka  <jh@suse.cz>
1383
1384         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
1385         (eelf_x86_64.c): New.
1386         * Makefile.in: Regenerate.
1387         * configure.tgt: Add support for x86_64-*-linux-gnu*.
1388         * emulparams/elf_x86_64.sh: New.
1389
1390 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
1391
1392         * emulparams/crislinux.sh (ENTRY): Change back to _start.
1393         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
1394
1395         * scripttempl/crisaout.sc: Change all RELOCATING not related to
1396         merging non-a.out sections into CONSTRUCTING.
1397
1398 2000-11-28  Nick Clifton  <nickc@redhat.com>
1399
1400         * ld.1 (COPYING): Mention that the GNU Free Documentation
1401         License is present in the sources, but not the output, and
1402         also available from the GNU website.
1403         (GNU Free Documentation License): Comment out this section.
1404
1405 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
1406
1407         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
1408         does not use them.
1409
1410 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
1411
1412         * ld.1: Remove old date so it does not give the impression the manpage
1413         is way out of date.
1414
1415 2000-11-24  Nick Clifton  <nickc@redhat.com>
1416
1417         * configure.tgt (xscale-coff): Add target.
1418         (xscale-elf): Add target.
1419
1420 2000-11-24  Fred Fish  <fnf@be.com>
1421
1422         * ldmain.c (main): Remove redundant init of config.make_executable
1423         to true.
1424
1425 2000-11-15  Richard Henderson  <rth@redhat.com>
1426
1427         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
1428
1429 2000-11-14  Kazu Hirata  <kazu@hxi.com>
1430
1431         * scripttempl/h8300.sc: Fix formatting.
1432         * scripttempl/h8300h.sc: Likewise.
1433         * scripttempl/h8300s.sc: Likewise.
1434
1435 Tue Nov 14 00:59:19 2000  Denis Chertykov  <denisc@overta.ru>
1436
1437         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
1438
1439 2000-11-09  Philip Blundell  <pb@futuretv.com>
1440
1441         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
1442         around orphan sections whose names can be represented in C.
1443
1444 2000-11-07  Jim Wilson  <wilson@redhat.com>
1445
1446         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
1447         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
1448
1449 2000-11-06  Nick Clifton  <nickc@redhat.com>
1450
1451         * ld.texinfo: Add GNU Free Documentation License.
1452         * ldint.texinfo: Add GNU Free Documentation License.
1453         * ld.1: Add GNU Free Documentation License.
1454
1455 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
1456
1457         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
1458         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
1459
1460         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
1461         Move 2000-11-02 Makefile.in changes to this file.
1462         * Makefile.in: Regenerate.
1463
1464 2000-11-03  Nick Clifton  <nickc@redhat.com>
1465
1466         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
1467         constructors and destructors.
1468         * scripttempl/h8300h.sc: Ditto.
1469         * scripttempl/h8300s.sc: Ditto.
1470         * scripttempl/h8500.sc: Ditto.
1471         * scripttempl/h8500b.sc: Ditto.
1472         * scripttempl/h8500c.sc: Ditto.
1473         * scripttempl/h8500m.sc: Ditto.
1474         * scripttempl/h8500s.sc: Ditto.
1475         * scripttempl/v850.sc: Ditto.
1476         * scripttempl/w65.sc: Ditto.
1477         * scripttempl/z8000.sc: Ditto.
1478
1479 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
1480
1481         * Makefile.in (e_i386_chaos.c): New rule.
1482         (ALL_EMULATIONS): Added e_i386_chaos.o.
1483         * emulparams/elf_i386_chaos.sh: New file.
1484         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
1485
1486 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
1487
1488         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
1489         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
1490         Fix sed invocation, so that it coped with '/' in Solaris 64bit
1491         library path suffix.
1492         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
1493
1494 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
1495
1496         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
1497         for consecutive sections.
1498
1499 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
1500
1501         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
1502         options.
1503         * ld.texinfo: Added notes about this new option.
1504
1505 2000-10-16  Nick Clifton  <nickc@redhat.com>
1506
1507         * emultempl/pe.em (_after_open): Add tests of return values from
1508         bfd functions.  Emit appropriate error messages if necessary.
1509
1510 2000-10-13  Nick Clifton  <nickc@redhat.com>
1511
1512         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
1513         local variables - they are not used, but leave in the call to
1514         bfd_canonicalize_symtab.
1515         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
1516         pe_dll_search_prefix.
1517
1518 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
1519
1520         * emultempl/pe.em (pe_dll_search_prefix): New variable,
1521         (longopts): New --dll-search-prefix option.
1522         (gld_${EMULATION_NAME}_list_options): Document.
1523         (gld_${EMULATION_NAME}_parse_args): Handle.
1524         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
1525         dynamically, search for a dll named '<prefix><basename>.dll'
1526         in preference to 'lib<basename>.dll' if --dll-search-prefix
1527         is specified.
1528
1529 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
1530
1531         * ldlang.c (section_already_linked): Set kept_section instead of
1532         sec->comdat->sec.
1533
1534 2000-10-10  Kazu Hirata  <kazu@hxi.com>
1535
1536         * deffile.h: Fix formatting.
1537         * lexsup.c: Likewise.
1538         * mri.c: Likewise.
1539
1540 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
1541
1542         * pe-dll.c (make_one): Do not generate code thunk for DATA
1543         exports.
1544         (process_def_file): deduce DATA flag for auto-export sumbols.
1545
1546 2000-10-09  Kazu Hirata  <kazu@hxi.com>
1547
1548         * ld.h: Fix formatting.
1549         * ldcref.c: Likewise.
1550         * ldctor.h: Likewise.
1551         * ldemul.c: Likewise.
1552         * ldemul.h: Likewise.
1553         * ldexp.c: Likewise.
1554         * ldexp.h: Likewise.
1555         * ldfile.c: Likewise.
1556         * ldfile.h: Likewise.
1557         * ldlang.c: Likewise.
1558         * ldlang.h: Likewise.
1559         * ldmain.c: Likewise.
1560         * pe-dll.c: Likewise.
1561
1562         * pe-dll.c: Revert some formatting fixes.
1563
1564 2000-10-08  Kazu Hirata  <kazu@hxi.com>
1565
1566         * pe-dll.c: Fix formatting.
1567
1568 2000-10-05  Kazu Hirata  <kazu@hxi.com>
1569
1570         * ldlang.c: Fix formatting.
1571
1572 2000-10-03  DJ Delorie  <dj@redhat.com>
1573
1574         * pe-dll.c (fill_edata): initialize entire block
1575         (make_one): fill in correct section.
1576
1577 2000-10-03  Kazu Hirata  <kazu@hxi.com>
1578
1579         * ldexp.c: Fix formatting.
1580
1581 2000-10-02  DJ Delorie  <dj@redhat.com>
1582
1583         * emultempl/pe.em (gld_*_after_open): detect case where there two
1584         import libraries for same dll; rename one to ensure proper link
1585         order.
1586
1587         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
1588         typo
1589         (generate_edata): fix typo
1590
1591 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
1592
1593         * scripttempl/crisaout.sc (ENTRY): Now __start.
1594         (.text): Add default setting for __start.
1595         Remove CONSTRUCTORS handling.
1596         (/DISCARD/): Add .gnu.warning.*.
1597         * emulparams/crislinux.sh (ENTRY): Now __start.
1598         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
1599         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
1600         (ENTRY): Now __start.
1601         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
1602         (EXECUTABLE_SYMBOLS): Add default setting for __start.
1603
1604 2000-09-29  Kazu Hirata  <kazu@hxi.com>
1605
1606         * deffile.h: Fix formatting.
1607         * ld.h: Likewise.
1608         * ldcref.c: Likewise.
1609         * ldctor.c: Likewise.
1610         * ldctor.h: Likewise.
1611         * ldemul.c: Likewise.
1612         * ldemul.h: Likewise.
1613         * ldexp.c: Likewise.
1614         * ldexp.h: Likewise.
1615         * ldfile.c: Likewise.
1616         * ldfile.h: Likewise.
1617         * ldlang.c: Likewise.
1618         * ldlang.h: Likewise.
1619         * lexsup.c: Likewise.
1620         * mri.c: Likewise.
1621         * pe-dll.c: Likewise.
1622
1623 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
1624
1625         * pe-dll.c (process_def_file): Uninitialized data wasn't
1626         exported with --export-all-symbols switch.
1627
1628 2000-09-28  DJ Delorie  <dj@redhat.com>
1629
1630         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
1631         noname work properly.
1632
1633 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
1634
1635         * ld.texinfo (HPPA ELF32): New section.
1636
1637         * emultempl/hppaelf.em (group_size): New.
1638         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
1639         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
1640         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
1641         options to prevent abbreviations matching.
1642         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
1643         (PARSE_AND_LIST_ARGS_CASES): Handle it.
1644
1645 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1646
1647         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
1648         on the m68*-*-elf target.  Make it support COFF input objects.
1649
1650 2000-09-21  Kazu Hirata  <kazu@hxi.com>
1651
1652         * ldmain.c: Fix formatting.
1653         * ldmisc.c: Likewise.
1654         * ldver.c: Likewise.
1655         * ldwrite.c: Likewise.
1656
1657 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
1658
1659         * ldwrite.c (clone_section): Silence gcc warnings.
1660
1661 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
1662
1663         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
1664         out of memory failure.
1665
1666         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
1667         (clone_section): Handle out of memory failures.  Rename var to
1668         avoid c++ reserved word.
1669
1670 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
1671
1672         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
1673         stub_name param to stub_sec_name.
1674         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
1675
1676 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1677
1678         * emultempl/m68kelf.em: New file.
1679         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
1680         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
1681         * Makefile.in: Regenerate.
1682
1683 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
1684
1685         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
1686         only as needed.
1687
1688 2000-09-13  Nick Clifton  <nickc@redhat.com>
1689
1690         * ldmain.c (multiple_definition): Disable relaxation if
1691         multiple symbol definitions are encountered - otherwise the
1692         linker could abort with an assertion failure.
1693
1694 2000-09-10  Nick Clifton  <nickc@redhat.com>
1695
1696         * mri.c: Fix formatting.
1697
1698 2000-09-07  H.J. Lu  <hjl@gnu.org>
1699
1700         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
1701         * configure: Rebuild.
1702
1703 2000-09-07  H.J. Lu  <hjl@gnu.org>
1704
1705         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
1706         * Makefile.in: Rebuild.
1707
1708 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
1709
1710         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
1711         broken list handling.  Create __start_SECNAME and __stop_SECNAME
1712         when no place-holder.  Add some comments.  Test both SEC_CODE and
1713         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
1714         Handle case where no output section statement created.
1715
1716 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
1717
1718         * configure.tgt (sh-*-linux*): Added.
1719         * Makefile.am: Added eshelf_linux and eshlelf_linux.
1720         * Makefile.in: Rebuilt.
1721         * emulparams/shelf_linux.sh: New file.
1722         * emulparams/shlelf_linux.sh: New file.
1723
1724 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
1725
1726         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1727         try shuffling sections when the orphan happens to be the place
1728         holder.  Keep count of unique section names generated so we speed
1729         the search for a new name.
1730
1731 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
1732
1733         * configure: Rebuilt with new libtool.m4.
1734
1735 2000-09-05  Nick Clifton  <nickc@redhat.com>
1736
1737         * Makefile.in: Regenerate.
1738         * aclocal.m4: Regenerate.
1739         * configure: Regenerate.
1740         * config.in: Regenerate.
1741         * po/ld.pot: Regenerate.
1742
1743         * ldint.texinfo: Remove CVS revision marker - it foils local
1744         comparisons.
1745
1746         * emultempl/ticoff.em: Remove extraneous comma.
1747
1748 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
1749
1750         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
1751         to stub section flags.
1752         (hppa_for_each_input_file_wrapper): New.
1753         (hppa_lang_for_each_input_file): New.
1754         (lang_for_each_input_file): Define to call above.
1755         (multi_subspace): New.
1756         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
1757         (PARSE_AND_LIST_PROLOGUE): Define.
1758         (PARSE_AND_LIST_LONGOPTS): Define.
1759         (PARSE_AND_LIST_OPTIONS): Define.
1760         (PARSE_AND_LIST_ARGS_CASES): Define.
1761         (hppaelf_finish): Call elf32_hppa_set_gp.
1762         (hppaelf_set_output_arch): Remove.
1763         (LDEMUL_SET_OUTPUT_ARCH): Remove.
1764
1765         * emulparams/hppalinux.sh (ELFSIZE): Define.
1766         (MACHINE): Define.
1767         (OTHER_READONLY_SECTIONS): Define.
1768         (DATA_PLT): Define.
1769         (GENERATE_SHLIB_SCRIPT): Define.
1770
1771         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
1772         to const throughout.  Change `void *' to `PTR' throughout.
1773         (lang_memory_default): Function is local to file, add `static'.
1774
1775         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
1776         (ehppalinux.c): Likewise.
1777         (earmelf.c): Likewise.
1778         (earmelf_linux.c): Likewise.
1779         (earmelf_linux26.c): Likewise.
1780         * Makefile.in: Regenerate.
1781
1782         * ld.h (ld_config_type): Add unique_orphan_sections.
1783         * lexsup.c (OPTION_UNIQUE): Define.
1784         (ld_options): Add "--unique".
1785         (parse_args): Handle it.
1786         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1787         search for an existing output section if unique_orphan_sections is
1788         set.  Make use of bfd_get_unique_section_name rather than
1789         duplicating code here.
1790         * ld.texinfo: Describe --unique.
1791
1792         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
1793         optional arg to split-by-file.
1794         (parse_args): Handle them.
1795         * ld.texinfo: Update description of these options.
1796         * ldwrite.c (clone_section): Pass in the section name.  Replace
1797         local code with bfd_get_unique_section_name.
1798         (split_sections): Tidy code and comments.  Use a list traversal
1799         more appropriate to the list construction.  Handle cooked section
1800         sizes.  Split when split_by_reloc reached rather than exceeded.
1801         Track section size and split when split_by_file reached.  Fix
1802         link_order_tail (even though it's not used).
1803         (ldwrite): Modify condition for calling split_sections to suit
1804         changed split_by_reloc and split_by_file.
1805         * ldmain.c (main): Init config.split_by_reloc and
1806         config.split_by_file to -1.
1807         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
1808         Change split_by_file to bfd_size_type.
1809
1810 2000-09-02  Nick Clifton  <nickc@redhat.com>
1811
1812         * configure.in: Increase version number to 2.10.91.
1813         * NEWS: Mention new ability to support removal of duplicate DWARF2
1814         debug information.
1815         * configure: Regenerate.
1816         * aclocal.m4: Regenerate.
1817         * config.in: Regenerate.
1818
1819 2000-09-02  Daniel Berlin <dberlin@redhat.com>
1820
1821         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
1822         sections.
1823         * scripttempl/elf32avr.sc: Ditto.
1824         * scripttempl/elfd10v.sc: Ditto.
1825         * scripttempl/elfd30v.sc: Ditto.
1826         * scripttempl/elfi370.sc: Ditto.
1827         * scripttempl/elfm68hc11.sc: Ditto.
1828         * scripttempl/elfm68hc12.sc: Ditto.
1829         * scripttempl/elfi386beos.sc: Ditto.
1830         * scripttempl/v850.sc: Ditto.
1831
1832 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
1833
1834         * acinclude.m4: Include libtool and gettext macros from the
1835         top level.
1836         * aclocal.m4, configure: Rebuilt.
1837
1838 2000-08-25  Nick Clifton  <nickc@redhat.com>
1839
1840         * ldlang.c (open_output): When choosing the target for a
1841         particular endianness, do nothing if the target is not
1842         supported.
1843
1844 2000-08-25  H.J. Lu  <hjl@gnu.org>
1845
1846         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
1847         check -rpath nor LD_RUN_PATH for cross link.
1848         * ld.texinfo: Document the change.
1849
1850 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
1851
1852         * NEWS: Mention support for CRIS.
1853
1854 2000-08-23  H.J. Lu  <hjl@gnu.org>
1855
1856         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
1857         the current runpath list from bfd_elf_get_runpath_list ()
1858         before search.
1859
1860 2000-08-22  H.J. Lu  <hjl@gnu.org>
1861
1862         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
1863         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
1864         LD_LIBRARY_PATH for native linker. Display the needed DSO if
1865         trace_file_tries is non-zero.
1866         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
1867         if trace_file_tries is non-zero.
1868
1869         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
1870         * NEWS: Mention it.
1871
1872 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
1873
1874         * NEWS: Mention i860 support.
1875
1876 2000-08-14  Andreas Schwab  <schwab@suse.de>
1877
1878         * scripttempl/elf.sc: Fix last change to use correct comment
1879         syntax.
1880
1881 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
1882
1883         * scripttempl/elf.sc: Add a comment giving the correspondence
1884         between sections, per-datum sections, and linkonce sections.  Make
1885         the comment true even for .bss, .sdata, .sdata2, .sbss, and
1886         .sbss2.
1887
1888 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
1889
1890         * emulparams/elf32_i860.sh: New file.
1891         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
1892         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
1893         (eelf32_i860.c): New rule.
1894         * Makefile.in: Regenerate.
1895
1896 2000-08-10  Nick Clifton  <nickc@cygnus.com>
1897
1898         * emulparams/mipspe.sh (ENTRY): Add definition.
1899
1900 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
1901
1902         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
1903         in error message.
1904
1905 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1906
1907         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
1908         the final size of .bss section.
1909         * scripttempl/elfm68hc12.sc: Likewise.
1910
1911 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
1912
1913         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
1914         gld${EMULATION_NAME}_parse_args for consistency.  Combine
1915         lastoptind and prevoptind vars, and keep track of last optind.
1916         (gld_${EMULATION_NAME}_list_options): Rename to
1917         gld${EMULATION_NAME}_list_options.
1918
1919 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
1920
1921         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
1922         (i586-sco-sysv5uw7.1.0).
1923
1924 2000-07-27  H.J. Lu  <hjl@gnu.org>
1925
1926         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
1927         (PARSE_AND_LIST_PROLOGUE): New.
1928         (PARSE_AND_LIST_LONGOPTS): Likewise.
1929         (PARSE_AND_LIST_OPTIONS): Likewise.
1930         (PARSE_AND_LIST_ARGS_CASES): Likewise.
1931         (PARSE_AND_LIST_EPILOGUE): Likewise.
1932
1933 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
1934
1935         * emultempl/armelf.em: Elide functions common to elf32.em,
1936         ie. most of the file.
1937         (arm_elf_after_open): New.  Do arm specific things then call
1938         gld${EMULATION_NAME}_after_open.
1939         (arm_elf_before_allocation): New.  Call
1940         gld${EMULATION_NAME}_before_allocation then do arm specifics.
1941         (PARSE_AND_LIST_PROLOGUE): Define.
1942         (PARSE_AND_LIST_SHORTOPTS): Define.
1943         (PARSE_AND_LIST_LONGOPTS): Define.
1944         (PARSE_AND_LIST_OPTIONS): Define.
1945         (PARSE_AND_LIST_ARGS_CASES): Define.
1946         (LDEMUL_AFTER_OPEN): Define.
1947         (LDEMUL_BEFORE_ALLOCATION): Define.
1948         (LDEMUL_BEFORE_PARSE): Define.
1949         (LDEMUL_FINISH): Define.
1950
1951         * emultempl/hppaelf.em: Similarly zap most of this file.
1952         (hppaelf_add_stub_section): Prototype.
1953         (hppaelf_layaout_sections_again): Prototype.
1954         (hook_in_stub): Prototype.
1955         (LDEMUL_SET_OUTPUT_ARCH): Define.
1956         (LDEMUL_FINISH): Define.
1957         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1958
1959         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
1960         (EXTRA_EM_FILE): New.
1961         * emulparams/armelf_linux.sh: Likewise.
1962         * emulparams/armelf_linux26.sh: Likewise.
1963         * emulparams/hppalinux.sh: Likewise.
1964         * emulparams/hppaelf.sh: Likewise.
1965         (NOP): Define.
1966
1967         * emultempl/elf32.em: Fix formatting.
1968         (EXTRA_EM_FILE): Source it.
1969         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1970         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1971         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1972         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1973         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1974         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1975         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1976         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1977         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
1978         allow functions in this file to be overridden.
1979         (PARSE_AND_LIST_SHORTOPTS): Handle it.
1980
1981         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
1982
1983         * emultempl/elf32.em: Reorganize file.
1984
1985 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
1986
1987         * emulparams/elf64alpha.sh: Implement "-taso" emulation
1988         specific option to fit 64-bit executable in the lower
1989         31-bit address range.  This is done by changing start
1990         address of .interp (the very first section of executable)
1991         and then setting EF_ALPHA_32BIT elf header flag.
1992
1993 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1994
1995         * emultempl/m68kcoff.em: New file.
1996         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
1997         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
1998         generic.em.
1999         * Makefile.in: Regenerate.
2000
2001 2000-07-20  H.J. Lu  <hjl@gnu.org>
2002
2003         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
2004         and "disable-new-dtags" to stop getopt from treating -d/-e as
2005         abbreviations for these options.
2006
2007 2000-07-20  H.J. Lu  <hjl@gnu.org>
2008
2009         * ld.texinfo: Add documentation for --disable-new-dtags and
2010         --enable-new-dtags.
2011
2012         * ldmain.c (main): Initialize link_info.new_dtags to false.
2013
2014         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
2015         --disable-new-dtags and --enable-new-dtags.
2016         (gld_${EMULATION_NAME}_list_options): Likewise.
2017
2018 2000-07-05  Kenneth Block  <krblock@computer.org>
2019
2020         * lexsup.c: Add optional style to demangle switch
2021         * ld.texinfo: Document optional style to demangle switch.
2022
2023 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
2024
2025         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
2026         ecrislinux.o.
2027         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
2028         Regenerate dependencies.
2029         * Makefile.in: Rebuild.
2030         * configure.tgt (cris-*-*): New target.
2031         * emulparams/crisaout.sh, emulparams/criself.sh,
2032         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
2033         * po/POTFILES.in, po/ld.pot: Regenerate.
2034
2035 2000-07-20  H.J. Lu  <hjl@gnu.org>
2036
2037         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
2038         Print out ignored -z options.
2039
2040 2000-07-19  H.J. Lu  <hjl@gnu.org>
2041
2042         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
2043         (PARSE_AND_LIST_PROLOGUE): New.
2044         (PARSE_AND_LIST_LONGOPTS): Likewise.
2045         (PARSE_AND_LIST_OPTIONS): Likewise.
2046         (PARSE_AND_LIST_ARGS_CASES): Likewise.
2047
2048         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
2049
2050         * lexsup.c (ld_options): Comment out 'z'.
2051         (parse_args): Likewise.
2052
2053         * emultempl/elf32.em: Include "elf/common.h".
2054         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
2055         options.
2056         (gld_${EMULATION_NAME}_list_options): Likewise.
2057
2058         * ld.texinfo: Add documentation for the recognized -z options.
2059
2060 2000-07-19  H.J. Lu  <hjl@gnu.org>
2061
2062         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
2063         bfd_elf_set_dt_needed_soname ().
2064
2065 2000-07-18  DJ Delorie  <dj@cygnus.com>
2066
2067         * pe-dll.c (pe_dll_id_target): check object target name also
2068
2069 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
2070
2071         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
2072         ${INIT_END} if relocating.
2073         (.fini): Likewise ${FINI_START} and ${FINI_END}.
2074
2075 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
2076
2077         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
2078         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
2079         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
2080         errors introduced by the old dynamic lib search order.
2081
2082 2000-07-17  DJ Delorie  <dj@cygnus.com>
2083
2084         * pe-dll.c (process_def_file): auto-export data items also
2085         (pe_process_import_defs): also see if _imp_ form needed
2086
2087 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
2088
2089         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
2090         for dll import libraries
2091
2092 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
2093
2094         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
2095         gcc 2.95.2 and later.
2096
2097 2000-07-11  Kazu Hirata  <kazu@hxi.com>
2098
2099         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
2100         message.
2101
2102 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
2103
2104         * ldemul.h (struct lang_input_statement_struct): Remove forward
2105         declaration.
2106         (struct search_dirs): Likewise.
2107         * ldfile.h (struct lang_input_statement_struct): Likewise.
2108         Protect file from multiple inclusion.
2109         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
2110         declaration from macro to file scope.
2111
2112         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
2113         * ldgram.y: Likewise here.
2114         * ldlang.c: And here.
2115         * ldmain.c: And here.
2116         * mpw-elfmips.c: And here.
2117         * mpw-eppcmac.c: And here.
2118         * emultempl/aix.em: And here.
2119         * emultempl/armcoff.em: And here.
2120         * emultempl/armelf.em: And here.
2121         * emultempl/armelf_oabi.em: And here.
2122         * emultempl/beos.em: And here.
2123         * emultempl/elf32.em: And here.
2124         * emultempl/hppaelf.em: And here.
2125         * emultempl/linux.em: And here.
2126         * emultempl/lnk960.em: And here.
2127         * emultempl/pe.em: And here.
2128         * emultempl/sunos.em: And here.
2129         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
2130         * mpw-idtmips.c: Ditto.
2131         * emultempl/generic.em: Ditto.
2132         * emultempl/gld960.em: Ditto.
2133         * emultempl/gld960c.em: Ditto.
2134         * emultempl/mipsecoff.em: Ditto.
2135         * emultempl/ticoff.em: Ditto.
2136         * emultempl/vanilla.em: Ditto.
2137
2138         * pe-dll.c: Include ldfile.h
2139         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
2140
2141         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
2142         arguments to bfd_elf32_size_dynamic_sections call.
2143         (gldelf32ebmip_place_orphan): Add missing arguments to
2144         lang_leave_output_section_statement call.
2145
2146 2000-07-10  H.J. Lu  <hjl@gnu.org>
2147
2148         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
2149         DLL_SUPPORT.
2150         (strhash): Likewise.
2151         (compute_dll_image_base): Likewise.
2152         (pe_undef_found_sym): Likewise.
2153         (pe_undef_cdecl_match): Likewise.
2154         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
2155         argument "arch" with ATTRIBUTE_UNUSED.
2156
2157 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
2158
2159         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
2160
2161         From  Ryan Bradetich  <rbradetich@uswest.net>
2162         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
2163
2164 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
2165
2166         Changes to create multiple linker stubs, positioned immediately
2167         before the section where they are required.
2168         * emultempl/hppaelf.em: Include elf32-hppa.h.
2169         (stub_sec, file_chain): Delete.
2170         (hppaelf_create_output_section_statements): Don't make a stub
2171         section here.
2172         (hook_stub_info): New struct.
2173         (hook_in_stub): New function.
2174         (hppaelf_add_stub_section): New function.
2175         (hppaelf_finish): Do nothing for relocateable links.  Modify the
2176         call to elf32_hppa_size_stubs.  Move code for updating section
2177         layout from here...
2178         (hppaelf_layaout_sections_again): ..to here, a new function.
2179
2180         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
2181         broken list handling.  Pass in a pointer to the list.
2182         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
2183         for above changes.
2184         (hppaelf_before_parse): Prototype.
2185         (hppaelf_set_output_arch): Prototype.
2186         (hppaelf_create_output_section_statements): Prototype.
2187         (hppaelf_delete_padding_statements): Prototype.
2188         (hppaelf_finish): Prototype.
2189
2190         Merge from elf32.em
2191         * emultempl/hppaelf.em: Include ctype.h.
2192         (struct orphan_save): New.
2193         (gld${EMULATION_NAME}_place_orphan): New.
2194         (output_rel_find): New.
2195         (hppaelf_get_script): Update from elf32.em.
2196         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
2197         Change emulation_name field to "${EMULATION_NAME}".  Add
2198         gld${EMULATION_NAME}_place_orphan.
2199
2200         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
2201         ehppalinux.o, sort it.  Regenerate dependencies.
2202         (ehppalinux.c): Depend on hppaelf.em
2203         * Makefile.in: Regenerate.
2204
2205         * configure.tgt: targ_emul=hppalinux for hppa*linux
2206
2207         * emulparams/hppalinux.sh: New.
2208         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
2209
2210 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
2211
2212         * lexsup.c (parse_args): Copy section name.
2213
2214 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
2215
2216         * emultempl/pe.em: institute the following search order for
2217         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
2218         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
2219         static lib (libfoo.a) if none of the above are found.
2220
2221 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
2222
2223         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
2224         (longopts): New --{enable,disable}-auto-image-base options.
2225         (gld_${EMULATION_NAME}_list_options): Document.
2226         (gld_${EMULATION_NAME}_parse): Handle.
2227         (strhash): New static function.
2228         (compute_dll_image_base): New static function.
2229         (gld_${EMULATION_NAME}_set_symbols): Use.
2230
2231 2000-07-05  DJ Delorie  <dj@redhat.com>
2232
2233         * MAINTAINERS: new
2234
2235 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
2236
2237         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
2238         * emulparams/elf32btsmip.sh: New file.
2239         * Makefile.am: Add traditional mips target.
2240         * Makefile.in: Rebuild.
2241
2242 2000-07-01  H.J. Lu  <hjl@gnu.org>
2243
2244         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
2245         automake to use YLWRAP.
2246         * Makefile.in: Rebuild.
2247
2248 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
2249
2250         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
2251         (CLEANFILES): Add DEPA.
2252         * Makefile.in: Regenerate.
2253
2254 2000-06-30  Timothy Wall  <twall@ppc>
2255
2256         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
2257         the page in the upper octet of the address.
2258
2259 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
2260
2261         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
2262
2263 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
2264
2265         * NEWS: arm-elf does --gc-sections too.
2266
2267 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
2268
2269         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2270         find one.
2271         * Makefile.in: Regenerate.
2272
2273 2000-06-21  H.J. Lu  <hjl@gnu.org>
2274
2275         * Makefile.am: Rebuild dependency.
2276         * Makefile.in: Rebuild.
2277
2278 2000-06-20  H.J. Lu  <hjl@gnu.org>
2279
2280         * Makefile.am: Rebuild dependency.
2281         * Makefile.in: Rebuild.
2282
2283 2000-06-20  Timothy Wall  <twall@cygnus.com>
2284
2285         * scripttempl/tic54xcoff.sc: New.
2286         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
2287         * gen-doc.texi: Add flag for TI COFF.
2288         * ld.texinfo: Add documentation for TI COFF handling switches.
2289         * emultempl/ticoff.em: New. TI COFF handling.
2290         * configure.tgt: Add tic54x target.
2291         * Makefile.am: Add tic54x target.
2292         * Makefile.in: Ditto.
2293
2294 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
2295
2296         * ldmain.c (set_scripts_dir): Correct pointer comparison when
2297         checking for backslashes.
2298
2299 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
2300
2301         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
2302
2303 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
2304
2305         * NEWS: Update list of targets supporting --gc-sections.
2306
2307         * scripttempl/elf.sc: KEEP .eh_frame contents.
2308         * scripttempl/elfd30v.sc: Same here.
2309
2310 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
2311
2312         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
2313         and m68hc11 (elf).
2314         * Makefile.in: Rebuild.
2315         * configure.tgt: Recognize m68hc12 and m68hc11.
2316         * scripttempl/elfm68hc12.sc: New file.
2317         * emulparams/m68hc12elfb: New emulation.
2318         * emulparams/m68hc12elf: New emulation.
2319         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
2320         (includes a memory.x script to define the ROM and RAM banks).
2321         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
2322         New configuration files for support of Motorola 68hc11
2323
2324 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
2325
2326         * ldmain.c (main): Only change SEC_READONLY for final link.
2327
2328 2000-06-13  H.J. Lu  <hjl@gnu.org>
2329
2330         * configure: Regenerate.
2331
2332 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
2333
2334         * configure.in (VERSION): Update to show this is the CVS mainline.
2335
2336 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2337
2338         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
2339         input objects to be ECOFF.
2340         (check_sections): einfo takes %B, not %P, to print a BFD name.
2341
2342 2000-06-05  Michael Matz <matz@ifh.de>
2343
2344         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
2345         version scripts.
2346
2347         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
2348
2349 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
2350
2351         * emulparams/avr1200.sh (STACK): Define as 0.
2352         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
2353         * emulparams/avr4433.sh (STACK): Likewise.
2354         * emulparams/avr44x4.sh (STACK): Likewise.
2355         * emulparams/avr85xx.sh (STACK): Likewise.
2356         * emulparams/avrmega103.sh (STACK): Likewise.
2357         * emulparams/avrmega161.sh (STACK): Likewise.
2358         * emulparams/avrmega603.sh (STACK): Likewise.
2359         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
2360         (__stack): Define from ${STACK} for main().
2361
2362 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
2363
2364         * Makefile.am: Update dependencies with "make dep-am"
2365         * Makefile.in: Regenerate.
2366
2367 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
2368
2369         * ldmain.c: Include filenames.h.
2370         (set_scripts_dir): Support backslashes in program name.
2371
2372 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
2373
2374         * ldmain.c (main): When deciding if ".text" section should be
2375         read-only, don't forget to reset SEC_READONLY because it
2376         could be already set.
2377
2378 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
2379
2380         * ld.1: Add documentation for new command line option:
2381                 --section-start <sectionname>=<sectionorg>
2382         This is a generic version of -Ttext etc. which accepts
2383         any section name as a parameter instead of just text/data/
2384         bss.
2385         * ld.texinfo: More docs.
2386         * NEWS: More docs.
2387         * lexsup.c: (parse_args): Recognize new command line option.
2388         (ld_options): Add new option.
2389
2390 2000-05-18  H.J. Lu  <hjl@gnu.org>
2391
2392         * lexsup.c (parse_args): `i' == `r', not `q'.
2393
2394 Thu May 18 10:47:57 2000  Jeffrey A Law  (law@cygnus.com)
2395
2396         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
2397
2398 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
2399               Rick Gorton          <gorton@scrugs.lkg.dec.com>
2400
2401         Add support for '-q' == '--emit-relocs' switch.
2402         * ldmain.c (main): Default to false.
2403         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
2404         * NEWS: Describe the emitrelocations switch.
2405         * ld.texinfo: Describe the emitrelocations switch.
2406
2407 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
2408
2409         * emultempl/pe.em (_open_dynamic_archive): New function: Search
2410         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
2411         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
2412         link options.
2413
2414 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
2415
2416         * lexsup.c (parse_args): Update the year in the copyright notice.
2417
2418 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
2419
2420         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
2421         Replace defines with those from intl/libgettext.h to quieten gcc
2422         warnings.
2423
2424 2000-05-10  H.J. Lu  <hjl@gnu.org>
2425
2426         * ldlang.c (open_input_bfds): Don't load the same file within
2427         a group again if the whole archive has been loaded already.
2428
2429 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
2430
2431         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
2432         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
2433         strtoul.
2434
2435 Mon May  1 17:34:34 2000  Jim Wilson  <wilson@cygnus.com>
2436
2437         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
2438
2439         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2440         host "ia64-*-linux-gnu*".
2441
2442 2000-04-29  Andreas Jaeger  <aj@suse.de>
2443
2444         * ld.h: Correctly check GCC version.
2445
2446 Tue Apr 25 11:20:43 2000  Jeffrey A Law  (law@cygnus.com)
2447
2448         * Makefile.am: Add PA64 support.  Add missing dependencies for
2449         PA32 elf support.
2450         * Makefile.in: Rebuilt.
2451         * configure.tgt: Add PA64 support (currently disabled).
2452
2453 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
2454
2455         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
2456         (output_rel_find): New function.
2457         (hold_section, hold_use): Delete.
2458         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2459         hold_interp): Make local to place_orphan.
2460         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
2461         rather than place_section to find possible previous use of orphan.
2462         Similarly find the place-holder output sections.  Use returned
2463         value from lang_enter_output_section_statement rather than calling
2464         lang_output_section_statement_lookup.
2465         * emultempl/armelf.em: Same here.
2466         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
2467
2468         * ldlang.c (lang_enter_output_section_statement): Return output
2469         section statement.
2470         * ldlang.h (lang_enter_output_section_statement): Change
2471         declaration too.
2472
2473         * ldlang.h (lang_output_section_statement): Export it.
2474         * ldlang.c (lang_output_section_statement): Ditto.
2475
2476 2000-04-24  Nick Clifton  <nickc@cygnus.com>
2477
2478         * ld.texinfo (Output Section Data): Add note that section data
2479         commands cannot appear outside of section directives.
2480
2481 2000-04-2  Matthew Green  <mrg@cygnus.com>
2482
2483         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
2484
2485 Fri Apr 21 13:20:53 2000  Richard Henderson  <rth@cygnus.com>
2486                           David Mosberger  <davidm@hpl.hp.com>
2487
2488         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
2489         (eelf64_ia64.c): New rule.
2490         * Makefile.in: Rebuild.
2491         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
2492         * emulparams/elf64_ia64.sh: New file.
2493
2494 2000-04-21  Richard Henderson  <rth@cygnus.com>
2495
2496         * scripttempl/elfd30v.sc: Place .gcc_except_table.
2497
2498 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
2499
2500         * dep-in.sed: Match space at start of file name, not at end.
2501
2502 2000-04-18  H.J. Lu  <hjl@gnu.org>
2503
2504         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
2505         lang_leave_output_section_statement () after calling
2506         lang_enter_output_section_statement ().
2507         * emultempl/armelf.em: Likewise.
2508
2509 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
2510
2511         * emultempl/elf32.em (struct orphan_save): Add section field.
2512         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
2513         better order, and place first orphan section as we did before the
2514         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
2515         Don't call make_bfd_section here, let wild_doit do the job for us.
2516         Don't build a statement list when we'll only throw it away.
2517         * emultempl/armelf.em: Ditto.
2518         * emultempl/pe.em: Similarly.
2519
2520 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
2521
2522         * scripttempl/elfppc.sc: Remove.
2523         * emulparams/elf32ppc.sh: Use elf.sc.
2524         * emulparams/elf32lppc.sh: Use elf.sc.
2525         * emulparams/elf32ppclinux.sh: Use elf.sc.
2526         * emulparams/elf32ppcsim.sh: New file.
2527         * emulparams/elf32lppcsim.sh: New file.
2528         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
2529         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
2530         * Makefile.in: Regenerate.
2531         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
2532
2533 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
2534
2535         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
2536         ~SEC_ALLOC sections too.  Init start address of debug sections.
2537         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2538         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2539         Also set all relocateable section start addresses.
2540
2541 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
2542
2543         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
2544         Add new BSS_PLT variable for when .plt need not be contained in
2545         the file.  Move _etext so that it is also after .fini, and provide
2546         both etext and _etext with a leading underscore.  Mark the start
2547         and end of .sbss.
2548
2549 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
2550
2551         * emultempl/elf32.em (struct orphan_save): New.
2552         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2553         hold_interp): Make them struct orphan_save.
2554         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
2555         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
2556         the end of the relevant section list.  Also add associated section
2557         statements to the end of any previous orphan statements.
2558         * emultempl/armelf.em: Similarly.
2559         * emultempl/pe.em: Similarly.
2560
2561 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
2562
2563         * ld.texinfo (Simple Example): Remove extraneous paragraph.
2564
2565 Fri Apr  7 15:56:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>
2566
2567         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
2568         --enable-build-warnings option.
2569         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
2570         * Makefile.in, configure: Re-generate.
2571
2572 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
2573
2574         * po/ld.pot: Regenerate.
2575
2576         * lexsup.c (help): Restore translated part of bug string.
2577
2578         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
2579         (DEP): Quote when passing vars to sub-make.  Add warning message
2580         to end.
2581         (DEP1): Rewrite for "gcc -MM".
2582         (CLEANFILES): Add DEP2.
2583         Update dependencies.
2584         * Makefile.in: Regenerate.
2585
2586 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
2587
2588         * ld.h: #include "bin-bugs.h"
2589         * lexsup.c (help): Use REPORT_BUGS_TO.
2590
2591 2000-03-27  Denis Chertykov  <denisc@overta.ru>
2592
2593         * configure.tgt (avr-*-*): New target support.
2594         * Makefile.am: Likewise.
2595         * scripttempl/elf32avr.sc: New script file.
2596         * emulparams/avr1200.sh: New file.
2597         * emulparams/avr23xx.sh: New file.
2598         * emulparams/avr4433.sh New file.
2599         * emulparams/avr44x4.sh New file.
2600         * emulparams/avr85xx.sh New file.
2601         * emulparams/avrmega103.sh New file.
2602         * emulparams/avrmega161.sh New file.
2603         * emulparams/avrmega603.sh New file.
2604         * Makefile.in: Regenerate.
2605
2606 2000-03-09  Andreas Jaeger  <aj@suse.de>
2607
2608         * Makefile.am (check-DEJAGNU): Also unset LANG.
2609         * Makefile.in: Rebuild.
2610
2611 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
2612
2613         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
2614         archive.
2615
2616 2000-03-02  H.J. Lu  <hjl@gnu.org>
2617
2618         * emulparams/elf32mcore.sh: Include "getopt.h".
2619
2620 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
2621
2622         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
2623
2624 2000-03-01  H.J. Lu  <hjl@gnu.org>
2625
2626         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
2627         * emulparams/shpe.sh: Likewise.
2628
2629 2000-03-01  Nick Clifton  <nickc@cygnus.com>
2630
2631         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
2632         to unused parameters.
2633
2634         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
2635         functions only used by DLL code.
2636         (_place_orphan): Initialise 'dollar'.
2637
2638 2000-03-01  H.J. Lu  <hjl@gnu.org>
2639
2640         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
2641         indicate if the undefined symbol is a fatal error or not.
2642         Don't delete the output file if "fatal" is false.
2643
2644 2000-02-29  H.J. Lu  <hjl@gnu.org>
2645
2646         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
2647         Set LC_COLLATE and LC_ALL to null and export them. It is for
2648         sort which expects the C locale.
2649         Add $(LIBS) to all $(HOSTING_LIBS).
2650         * Makefile.in: Rebuild.
2651
2652 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
2653
2654         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
2655         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
2656         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
2657         (ld_emulation_xfer_struct): Add missing NULL initialiser for
2658         find_potential_libraries.
2659
2660 2000-02-28  Jim Blandy  <jimb@redhat.com>
2661
2662         * ldgram.y (exclude_name_list): Don't require a comma to separate
2663         list entries; the lexer considers commas to be valid part of a
2664         filename, so in something like `foo, bar' the comma is considered
2665         part of the first filename, `foo,'.
2666         * ld.texinfo: Update section on EXCLUDE_FILE lists.
2667
2668 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
2669
2670         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2671         host "i[3456]86-*-freebsdelf*".
2672
2673 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
2674
2675         * scripttempl/i386go32.sc: Move misplaced semicolons.
2676
2677 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
2678
2679         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
2680         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
2681         (eelf64hppa.c, ehppaelf.c): Remove targets.
2682         * Makefile.in: Rebuild.
2683
2684 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
2685
2686         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
2687         GNU/Linux/sparc, but keep the default as 32.
2688
2689         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
2690         it default if sparcv9 or sparc64.
2691
2692 2000-02-24  Nick Clifton  <nickc@cygnus.com>
2693
2694         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
2695         * Makefile.in: Regenerate.
2696         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
2697
2698         * ldemul.h (ld_emulation_xfer_struct): Add new field:
2699         find_potential_libraries.
2700         * ldemul.c (ldemul_find_potential_libraries): New function.
2701
2702         * ldfile.c (ldfile_open_file_search): Allow function to be
2703         exported.
2704         (ldfile_open_file): Call ldemul_find_potential_libraries.
2705         * ldfile.h: Add prototype for ldfile_open_file_search.
2706
2707         * pe-dll.c: Add support for ARM, MIPS and SH targets.
2708
2709         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
2710         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
2711
2712         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
2713         (gld_X_find_potential_libraries): New function.  Search for
2714         libraries called "*.lib".
2715
2716         * scripttempl/pe.sc: Add .pdata section.
2717
2718 2000-02-23  Richard Henderson  <rth@cygnus.com>
2719
2720         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
2721         Add and use memory regions.
2722
2723 2000-02-23  Linas Vepstas (linas@linas.org)
2724
2725         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
2726
2727         * Makefile.am: Add support for Linux/IBM 370.
2728         * configure.tgt: Likewise.
2729
2730         * Makefile.in: Regenerate.
2731
2732 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
2733
2734         * ldlang.c (print_input_section, print_data_statement,
2735         print_reloc_statement, print_padding_statement, insert_pad,
2736         size_input_section, lang_check_section_addresses,
2737         lang_size_sections, lang_do_assignments, lang_set_startof,
2738         lang_one_common): Change `opb' to unsigned.
2739         (lang_do_assignments): Also change `size' to unsigned.
2740
2741 2000-02-16  Richard Henderson  <rth@cygnus.com>
2742
2743         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
2744
2745 2000-02-16  Timothy Wall  <twall@cygnus.com>
2746
2747         * mri.c (mri_draw_tree): Add default LMA region argument to call
2748         to lang_leave_output_section_statement.
2749         * ldlang.h: Update prototypes with LMA region arguments.
2750         * ldlang.c (lang_size_sections): Encapsulate region bounds
2751         checking in os_check_region call.
2752         (os_check_region): New function.
2753         (lang_output_section_statement_lookup): Initialize lma_region.
2754         (lang_leave_output_section_statement): Add LMA region argument.
2755         (lang_leave_overlay): Ditto.
2756         * ldgram.y: Handle LMA region syntax.
2757         * ld.texinfo (Output Section Description): Describe LMA region usage.
2758         * emultempl/armelf.em (gld$place_orphan): Add default value for
2759         lma region in call to lang_leave_output_section_statement.
2760         * emultempl/elf32.em (gld$place_orphan): Add default value for
2761         lma region in call to lang_leave_output_section_statement.
2762         * emultempl/pe.em (gld$place_orphan): Add default value for
2763         lma region in call to lang_leave_output_section_statement.
2764
2765
2766 2000-02-04  Timothy Wall  <twall@redhat.com>
2767
2768         * ldlang.c (lang_check_section_addresses): Use bytes instead of
2769         octets when calculating section end addresses.
2770
2771 2000-02-04  Timothy Wall  <twall@redhat.com>
2772
2773         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
2774
2775 2000-02-03  Timothy Wall <twall@redhat.com>
2776
2777         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
2778         octet count.
2779         * ldlang.c (print_input_section, print_data_statement,
2780         print_reloc_statement, print_padding_statement): Print target
2781         address values and section sizes as bytes, not octets.
2782         (insert_pad) Calculate padding size in octets, and adjust "dot"
2783         by bytes.
2784         (size_input_section) Always adjust "dot" by bytes, not octets.
2785         (lang_check_section_addresses, lang_do_assignments) Adjust
2786         "dot" by bytes, not octets.  Use the larger of the directive size
2787         or octets_per_byte for the number of octets actually allocated in
2788         the output section.
2789         (lang_set_startof) Make sure STARTOF returns a target address.
2790         (lang_one_common) Record size changes in octets.
2791         (lang_abs_symbol_at_end_of) Section end symbol's value is
2792         recorded in target bytes.
2793         * ld.texinfo:   Updated description of BYTE, SHORT, LONG, etc.
2794         to be clear about behavior when an octet is smaller than one byte.
2795
2796 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
2797
2798         * ldcref.c (output_cref): Don't pass message strings to printf
2799         as format arg.
2800         Update copyright.
2801
2802         * ldmisc.c (vfinfo): Same here.
2803         Update copyright.
2804
2805 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
2806
2807         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
2808         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
2809         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
2810         Add missing NULL initialisers, and comments.
2811
2812         * testsuite/ld-srec/sr3.cc (__rethrow): New.
2813
2814 2000-01-21  Nick Clifton  <nickc@cygnus.com>
2815
2816         * ldlang.c (lang_size_sections): Fix typo in comment.
2817
2818 2000-01-18  H.J. Lu  <hjl@gnu.org>
2819
2820         * ldlang.c (lang_size_sections): Also update the current
2821         address of a region if the SEC_NEVER_LOAD bit is not set.
2822
2823 2000-01-10  Philip Blundell  <pb@futuretv.com>
2824
2825         * configure.tgt (arm*-*-conix*): New target.
2826
2827 2000-01-07  Nick Clifton  <nickc@cygnus.com>
2828
2829         * ld.texinfo (Options): Remind users to preceed linker command
2830         line switches with -Wl, (or whatever is appropriate) if it is
2831         being invoked by a comnpiler driver program.
2832         Fix description of the behaviour of the -n command line switch.
2833
2834 Wed Jan  5 08:02:12 2000  Catherine Moore  <clm@cygnus.com>
2835
2836         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
2837         (name_list): New.
2838         * ld.texinfo (EXCLUDE_FILE): Update documentation.
2839         * ldgram.y (wildcard_spec): Support a list of excluded_files.
2840         (exclude_name_list): New.
2841         ldlang.c (walk_wild_section): Support list of excluded files.
2842         (print_wild_statement): Likewise.
2843         (lang_add_wild): Likewise.
2844         * ldlang.h (lang_wild_statement_type): Likewise.
2845         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
2846
2847 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
2848
2849         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
2850         (process_def_file): Use.
2851         (pe_dll_compat_implib): New variable.
2852         (make_one): Use.
2853
2854         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
2855         pe_dll_compat_implib.
2856
2857         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
2858         compat-implib options.
2859         (gld_${EMULATION_NAME}_list_options): List new options.
2860         (gld_${EMULATION_NAME}_parse_args): Handle.
2861
2862         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
2863         dll.
2864
2865         * deffilep.y (opt_name): Allow "." in name.
2866
2867 For older changes see ChangeLog-9899
2868 \f
2869 Local Variables:
2870 mode: change-log
2871 left-margin: 8
2872 fill-column: 74
2873 version-control: never
2874 End: