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