OSDN Git Service

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