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