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