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