Updates for fixing tic4x arch tagging of its object files.
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
2
3 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
4 * Makefile.in: Regenerate
5 * configure.tgt: Added extra target emulations
6 * emulparams/tic3xcoff.sh: Remove old settings
7 * emulparams/tic4xcoff.sh: Ditto
8 * emulparams/tic3xcoff-onchip.sh: Added new
9 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
10 * scripttempl/tic3xcoff.sc: Remove
11
12 2003-01-17 Andreas Jaeger <aj@suse.de>
13
14 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
15 skip ':'.
16
17 2003-01-16 Alan Modra <amodra@bigpond.net.au>
18
19 * Makefile.in: Regenerate.
20
21 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
22
23 * ld/ld.texinfo (node WIN32): Some clarifications
24 and formatting fixups.
25
26 2003-01-09 Chris Demetriou <cgd@broadcom.com>
27
28 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
29 order, and handle (ignore) -mips32r2.
30
31 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
32
33 * ldmain.c (main): Make sure ld_sysroot is initialized.
34
35 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
36
37 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
38
39 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
40 (GENSCRIPTS): Add @use_sysroot@.
41 * Makefile.in: Regenerated.
42 * configure.host: Move setting of NATIVE_LIB_DIRS to...
43 * configure.tgt: ... here. Use ${target} instead of ${host}
44 for NATIVE_LIB_DIRS.
45 * configure.in: Add --with-sysroot.
46 * configure: Regenerated.
47 * genscripts.sh: Accept use_sysroot option. Set new variables
48 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
49 $use_sysroot. Don't search $tool_lib if $use_sysroot.
50 * ldfile.c (ldfile_add_library_path): Handle leading '='.
51 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
52 (ld_sysroot): New variable.
53 (main): Initialize ld_sysroot.
54 * ldmain.h (ld_sysroot): New extern.
55 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
56 searching $EMULATION_LIBPATH.
57 (gld${EMULATION_NAME}_add_sysroot): New function.
58 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
59 (gld${EMULATION_NAME}_after_open): Likewise. Only search
60 environment variables if $NATIVE.
61 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
62 * NEWS: Mention --with-sysroot.
63
64 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
65 instead of setting LIB_PATH.
66 * emulparams/elf32ppc.sh: Likewise.
67 * emulparams/elf64_s390.sh: Likewise.
68 * emulparams/elf64_sparc.sh: Likewise.
69 * emulparams/elf64ppc.sh: Likewise.
70 * emulparams/elf_x86_64.sh: Likewise.
71
72 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
73 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
74
75 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
76
77 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
78
79 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
80
81 * Makefile.am (ldmain.o): Pass BINDIR.
82 * Makefile.in: Regenerated.
83 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
84 search path.
85
86 2003-01-02 Ben Elliston <bje@redhat.com>
87
88 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
89 (eelf32iq2000.c): New target.
90 * Makefile.in: Regenerate.
91 * configure.tgt: Handle iq2000-*-elf.
92 * emulparams/elf32iq10.sh: New file.
93 * emulparams/elf32iq2000.sh: New file.
94 * scripttempl/iq2000.sc: New file.
95
96 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
97
98 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
99 and _pei386_runtime_relocator to the exclude list.
100
101 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
102
103 * ldfile.c: Fix comment typos.
104 * ldlang.c: Likewise.
105 * mri.c: Likewise.
106 * pe-dll.c: Likewise.
107
108 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
109
110 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
111 * Makefile.am (ld.1): Depend on configdoc.texi
112 and ldver.texi.
113 * Makefile.in: Regenerated.
114
115 2002-12-24 Dmitry Diky <diwil@mail.ru>
116
117 * Makefile.am: Add msp430 target.
118 * configure.tgt: Likewise.
119 * Makefile.in: Regenerate.
120 * emulparams/msp430x???.sh: New files. Linker script parameters
121 for various msp430 configurations.
122 * gen-doc.texi: Enable msp430 documenation.
123 * ld.texinfo: Document msp430 sections.
124 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
125 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
126
127 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
128 Charles Wilson <cwilson@ece.gatech.edu>
129
130 * ld/config.in (HAVE_REALPATH): New entry.
131 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
132
133 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
134
135 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
136 symbols'.
137
138 2002-12-23 Alan Modra <amodra@bigpond.net.au>
139
140 * ldmain.c (main): Init "strip_discarded".
141 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
142 (OPTION_NO_STRIP_DISCARDED): Define.
143 (ld_options): Add "strip-discarded" and "no-strip-discarded".
144 (parse_args): Handle them.
145
146 2002-12-23 Nick Clifton <nickc@redhat.com>
147
148 * ld.h (struct args_type): Add new field
149 'accept_unknown_input_architecture'.
150 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
151 to false.
152 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
153 bfd_arch_get_compatible.
154 * ldfile.c (ldfile_try_open_bfd): Likewise.
155 * lexsup.c (ld_options): Add new command line switch
156 --accept-unknown-input-architecture and its inverse.
157 (parse_args): Handle --accept-unknown-input-architecture.
158 * ld.texinfo: Document new linker option.
159 * NEWS: Mention new linker option.
160
161 2002-12-20 Alan Modra <amodra@bigpond.net.au>
162
163 * ldmain.c (main): Re-order link_info initialization. Init all
164 fields.
165
166 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
167
168 * ld.texinfo: Clarify and extend the documentation
169 in the Machine Dependent, WIN32 section.
170
171 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
172
173 * ld.texinfo: Add win32 machine depending section.
174 * gen-doc.texi: Enable win32 machine depending section.
175
176 * configure.host: Add win32 library search path.
177
178 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
179
180 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
181 import when auto-import is disabled.
182
183 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
184
185 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
186 account for trailing '\0'.
187
188 2002-12-17 Nick Clifton <nickc@redhat.com>
189
190 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
191 so that it is not confused with -c.
192
193 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
194 Charles Wilson <cwilson@ece.gatech.edu>
195
196 * configure.in: Add check for realpath function.
197 * configure: Regenerate.
198 * config.in: Regenerate.
199 * aclocal.m4: Regenerate.
200 * deffile.h: Add .data field to def_file_import
201 structure.
202 * pe-dll.c (pe_proces_import_defs): Use .data field of
203 def_file_import structure to initialize flag_data field of
204 def_file_export structure.
205 (pe_implied_import_dll): New variables exp_funcbase and
206 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
207 not filename (which may be a symlink). Scan the sections and
208 initialize [data|bss]_[start|end]. When scanning the export
209 table, skip _nm_ symbols, and mark any symbols whose rva indicates
210 that it is in the .bss or .data sections as data.
211 * sysdep.h: Include limits.h and sys/param.h, and define
212 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
213 exists, NULL otherwise.
214 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
215 pe_process_import_defs before pe_find_data_imports, so that
216 auto-import will check the virtual implib as well as "real"
217 implibs.
218 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
219 symlinks to their target; check that the target's extension is
220 .dll before calling pe_implied_import_dll(), not the filename
221 itself (which may be a symlink).
222
223 2002-12-10 Alan Modra <amodra@bigpond.net.au>
224
225 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
226 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
227 list too.
228
229 2002-12-08 Alan Modra <amodra@bigpond.net.au>
230
231 * ldlang.h: Formatting.
232
233 2002-12-07 Alan Modra <amodra@bigpond.net.au>
234
235 * ldlang.c (init_os): Ensure sections mentioned in load_base
236 are initialized.
237
238 2002-12-05 Alan Modra <amodra@bigpond.net.au>
239
240 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
241 load_base for orphans that follow a section with load_base set.
242
243 2002-12-01 H.J. Lu <hjl@gnu.org>
244
245 * ld.texinfo: Remove the extra `;' in sample version script.
246
247 2002-11-30 Alan Modra <amodra@bigpond.net.au>
248
249 * configure.host: Correct dynamic-linker for powerpc64 hosts.
250
251 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
252 * Makefile.in: Regenerate.
253
254 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
255 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
256 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
257 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
258 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
259 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
260 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
261 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
262 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
263 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
264 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
265 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
266 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
267
268 2002-11-27 David O'Brien <obrien@FreeBSD.org>
269
270 * configure.host: Fix generic FreeBSD configuration entry.
271
272 2002-11-27 H.J. Lu <hjl@gnu.org>
273
274 * ld.texinfo: Add the missing `;' to sample version scripts.
275
276 2002-11-20 Alan Modra <amodra@bigpond.net.au>
277
278 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
279
280 2002-11-14 Egor Duda <deo@logos-m.ru>
281
282 * ldmain.c (main): Make runtime relocs disabled by default. Remove
283 assignment which has no effect.
284 * pe-dll.h (pe_create_import_fixup): Change prototype.
285 * pe-dll.c (make_runtime_pseudo_reloc): New function.
286 (pe_create_runtime_relocator_reference): Ditto.
287 (pe_create_import_fixup): Handle relocations with non-zero addends.
288 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
289 --disable-runtime-pseudo-reloc.
290 (make_import_fixup): Handle relocations with non-zero addends. Create
291 an external reference to _pei386_runtime_relocator symbol if at least
292 one pseudo reloc was created.
293 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
294 --disable-runtime-pseudo-reloc options.
295
296 2002-11-12 Earl Chew <earl_chew@agilent.com>
297
298 * ldlang.c (lang_add_section): Discard debugging sections that have
299 been marked SEC_EXCLUDE.
300
301 2002-11-12 Nick Clifton <nickc@redhat.com>
302
303 * configure.in (ALL_LINGUAS): Add da.
304 * configure: Regenerate.
305 * po/da.po: New Danish translation.
306
307 2002-11-12 Alan Modra <amodra@bigpond.net.au>
308
309 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
310 (LDEMUL_BEFORE_ALLOCATION): Define.
311 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
312 linking.
313 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
314
315 2002-11-11 Christopher Faylor <cgf@redhat.com>
316
317 * configure.tgt (LIB_PATH): Default to searching w32api directory under
318 cygwin.
319
320 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
321
322 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
323 of restricted auto-export libs.
324
325 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
326
327 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
328 creative library naming instances like, e.g., libstdc++-2.a.
329
330 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
331
332 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
333 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
334
335 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
336
337 * deffilep.y (def_lex): Handle '@' as first character of an ID.
338 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
339 (make_one): Don't prefix decorated fastcall symbols with '_'.
340 (pe_process_import_defs): Likewise.
341 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
342 symbols to cdecl names or vise-versa.
343
344 2002-10-13 Eric Kohl <ekohl@rz-online.de>
345
346 * pe-dll.c (process_def_file): Handle fastcall symbols when
347 generating undecorated aliases. Don't prefix decorated fastcall
348 symbols with '_'.
349 (fill_exported_offsets): Don't prefix decorated fastcall symbols
350 with '_'.
351
352 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
353
354 * emultempl/aix.em: Use include <> for generated headers.
355 * emultempl/beos.em: Likewise.
356 * emultempl/elf32.em: Likewise.
357 * emultempl/pe.em: Likewise.
358 * ldctor.c: Likewise.
359 * ldexp.c: Likewise.
360 * ldfile.c: Likewise.
361 * ldlang.c: Likewise.
362 * ldlex.c: Likewise.
363 * ldlex.l: Likewise.
364 * ldmain.c: Likewise.
365 * ldmisc.c: Likewise.
366 * ldwrite.c: Likewise.
367 * lexsup.c: Likewise.
368 * mri.c: Likewise.
369 * pe-dll.c: Likewise.
370
371 2002-10-23 Jakub Jelinek <jakub@redhat.com>
372
373 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
374 sections into .rel{,a}.dyn.
375
376 2002-10-23 Nick Clifton <nickc@redhat.com>
377
378 * lexsup.c (OPTION_NO_OMAGIC): Define.
379 (ld_options): Add "no-omagic" option.
380 (parse_args): Parse --no-omagic.
381 * ld.texinfo: Document --no-omagic.
382 * NEWS: Mention new option.
383
384 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
385
386 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
387 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
388
389 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
390
391 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
392 emulation name. Set LIB_PATH only for native tools, and
393 search the ABI-specific versions of NATIVE_LIB_DIRS before the
394 .../lib variants, not instead of them. Mostly copied from...
395 * emulparams/elf32ppc.sh: ... here. Fixed typo.
396 * emulparams/elf64bmip-defs.sh: Backed out.
397 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
398 * emulparams/elf64btsmip.sh: Likewise.
399 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
400 TEXT_DYNAMIC): Removed.
401
402 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
403
404 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
405 (GENERATE_SHLIB_SCRIPT): Set to yes.
406 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
407 * emulparams/elf32bmipn32.sh: here.
408 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
409 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
410 * emulparams/elf64bmip-defs.sh: New file. Extend
411 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
412 * emulparams/elf64bmip.sh: Bring in definitions from
413 elf64bmip-defs.sh.
414 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
415 settings.
416 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
417 * emulparams/elf64btsmip.sh: Bring in definitions from
418 elf64bmip-defs.sh.
419 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
420 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
421
422 2002-10-16 Jakub Jelinek <jakub@redhat.com>
423
424 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
425 (s390-*-linux*): Add elf64_s390 emulation if want64.
426 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
427 genscript.sh changes.
428 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
429 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
430
431 2002-10-15 Alan Modra <amodra@bigpond.net.au>
432
433 * ldlang.c (load_symbols): Revert last change.
434
435 2002-10-14 Alan Modra <amodra@bigpond.net.au>
436
437 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
438 just_syms_flag.
439 (lang_reasonable_defaults): Don't compare against false.
440 (size_input_section): Likewise.
441 (lang_size_sections_1): Likewise.
442 (lang_do_assignments): Likewise.
443 (lang_add_output): Likewise.
444
445 * Makefile.am: Run "make dep-am".
446 * Makefile.in: Regenerate.
447 * ldver.c: #include "bfdver.h".
448
449 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
450
451 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
452 .finiN section.
453 * scripttempl/elfm68hc12.sc: Likewise.
454
455 2002-10-11 Alan Modra <amodra@bigpond.net.au>
456
457 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
458
459 * ldgram.y (memory_spec): Provide empty action.
460 (section <NAME>): Likewise.
461
462 2002-10-10 Jakub Jelinek <jakub@redhat.com>
463
464 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
465 they have OUTPUT_FORMAT not matching actual output format.
466 * ldlang.c (lang_get_output_target): New function.
467 (open_output): Use it.
468 * ldlang.h (lang_get_output_target): New prototype.
469
470 2002-10-10 Alan Modra <amodra@bigpond.net.au>
471
472 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
473 when orphan is .rel, .rela when orphan is .rela.
474 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
475 first. Remove outsecname var.
476
477 2002-10-09 Richard Shann <richard.shann@superh.com>
478 Stephen Clarke <stephen.clarke@superh.com>
479
480 * Makefile.am: Add eshelf32_linux.o and
481 eshlelf32_linux.o, new emulations for sh64 Linux.
482 * Makefile.in: Regenerate.
483 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
484 * emulparams/shelf32_linux.sh: New file.
485 * emulparams/shlelf32_linux.sh: New file.
486
487 2002-10-08 H.J. Lu <hjl@gnu.org>
488
489 * ldlang.c (lang_file_exist): Removed.
490 (new_afile): Revert the last change.
491 * ldlang.h (lang_file_exist): Removed.
492 * lexsup.c (parse_args): Revert the last change.
493
494 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
495
496 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
497 auto-import symbols.
498 (make_one): Create _nm_<symbol> for data only.
499
500 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
501
502 * ldlang.c (lang_file_exist): New function.
503 (new_afile): Abort if the filename to be added matches the linker
504 output filename.
505 * ldlang.h: Add prototype for lang_file_exist.
506 * lexsup.c (parse_args): Abort if the output filename matches
507 one of the input filenames.
508
509 2002-10-02 Alan Modra <amodra@bigpond.net.au>
510
511 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
512
513 2002-09-30 Alan Modra <amodra@bigpond.net.au>
514
515 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
516 * scripttempl/elfm68hc11.sc: Likewise.
517 * scripttempl/elfm68hc12.sc: Likewise.
518
519 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
520 reloc sections just before .rel.plt/.rela.plt.
521 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
522 Only put loadable reloc sections in hold_rel.
523
524 2002-09-29 H.J. Lu <hjl@gnu.org>
525
526 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
527
528 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
529
530 From "Anita Kulkarni" <AnitaK@kpit.com>
531 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
532 sections.
533
534 2002-09-25 Alan Modra <amodra@bigpond.net.au>
535
536 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
537 TARGET_PAGE_SIZE.
538 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
539 SEGMENT_SIZE alignment.
540 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
541 (SEGMENT_SIZE): Define.
542
543 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
544 (fold_binary): Correct abs - non-abs case.
545 (fold_trinary): New. Split out from exp_fold_tree.
546
547 2002-09-24 Alan Modra <amodra@bigpond.net.au>
548
549 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
550 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
551 for start of .data, instead align up to 256M boundary.
552 * scripttempl/aix.sc: Likewise.
553
554 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
555
556 * scripttempl/i386go32.sc: Handle bss unique sections.
557
558 2002-09-21 Alan Modra <amodra@bigpond.net.au>
559
560 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
561
562 2002-09-17 Stan Cox <scox@redhat.com>
563
564 * emulparams/elf32bmipn32-defs.sh: New file.
565 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
566 * emulparams/elf32btsmipn32.sh: Likewise.
567 * emulparams/elf64bmip.sh: Likewise.
568 * emulparams/elf64btsmip.sh: Likewise.
569
570 2002-09-16 Bruno Haible <bruno@clisp.org>
571
572 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
573 elf32-i386-freebsd.
574 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
575 elf64-alpha-freebsd.
576
577 2002-09-11 Nick Clifton <nickc@redhat.com>
578
579 * NEWS: New TI port supports both C4x and C3x series of DSPs.
580
581 * po/tr.po: Updated Turkish translation.
582
583 2002-09-06 Jeffrey A Law (law@redhat.com)
584
585 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
586
587 2002-09-02 Nick Clifton <nickc@redhat.com>
588
589 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
590 __ep.
591 * emulparams/v850.sh (TEMPLATE_NAME): Define.
592
593 2002-08-30 Nick Clifton <nickc@redhat.com>
594
595 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
596 used. Change INSN to start at 0x01000000 and extend for
597 256K (ignoring holes). Start the STACK on a word aligned
598 boundary.
599 (.rodata): Start it at the READONLY_START_ADDR.
600
601 2002-08-30 Alan Modra <amodra@bigpond.net.au>
602
603 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
604
605 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
606
607 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
608 added makefile targets for this file.
609 * Makefile.in: Regenerate.
610 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
611 * NEWS: Mention new port.
612
613 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
614
615 * emulparams/tic3xcoff.sh: New file.
616 * emulparams/tic4xcoff.sh: New file.
617 * scripttempl/tic3xcoff.sc: New file.
618 * scripttempl/tic4xcoff.sc: New file.
619
620 2002-08-28 Alan Modra <amodra@bigpond.net.au>
621
622 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
623 strtoul and strtoull with bfd_scan_vma.
624 (gld${EMULATION_NAME}_read_file): Likewise.
625
626 2002-08-28 Alan Modra <amodra@bigpond.net.au>
627
628 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
629
630 2002-08-27 Egor Duda <deo@logos-m.ru>
631
632 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
633 Add symbols for application to access them.
634
635 2002-08-27 Nick Clifton <nickc@redhat.com>
636
637 * emultempl/armelf.em: Revert this patch, it is not needed.
638
639 2002-08-22 Adam Nemet <anemet@lnxw.com>
640
641 2002-08-20 Dan Kegel <dank@kegel.com>
642
643 * configure.in: added --with-lib-path argument to ld's configure
644 to set LIB_PATH.
645 * ld/NEWS: Document new switch.
646 * ld/README: Mention new switch.
647 * configure: Regenerate.
648 * Makefile.in: Regenerate.
649
650 Based on this patch:
651 2001-04-25 Christopher Faylor <cgf@cygnus.com>
652
653 * Makefile.in (LIB_PATH): Make configurable.
654 (GENSCRIPTS): Set LIB_PATH in environment.
655 * configure.in: Substitute LIB_PATH.
656
657 2002-08-22 Adam Nemet <anemet@lnxw.com>
658
659 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
660 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
661 depending on the type of the function.
662 (arm_elf_convert_thumb_symbol_to_address): New function.
663
664 2002-08-22 Graeme Peterson <gp@qnx.com>
665
666 * Makefile.am: Add esh{l}elf_nto.o files.
667 * Makefile.in: Regenerate.
668 * configure.tgt: Add support for sh-**-nto* targets.
669 * emulparams/shelf_nto.sh: New file.
670 * emulparams/shlelf_nto.sh: New file.
671
672 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
673
674 * ldlang.c (offsetof): Define if not defined.
675
676 2002-08-14 H.J. Lu <hjl@gnu.org>
677
678 * configure.tgt: Always enable 64bit emulations for 32bit
679 Linux/mips.
680
681 2002-08-13 Alan Modra <amodra@bigpond.net.au>
682
683 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
684 (MAXPAGESIZE): Set to 1.
685
686 * ld.h (ALIGN_N): Delete.
687 * ldexp.h (align_n): Declare.
688 * ldexp.c (align_n): New function.
689 (fold_binary): Use align_n instead of ALIGN_N.
690 (exp_fold_tree): Likewise.
691 * ldlang.c (lang_size_sections_1): Likewise.
692 (lang_one_common): Likewise.
693 * ld.texinfo (ALIGN): Remove power of 2 restriction.
694
695 2002-07-31 Graeme Peterson <gp@qnx.com>
696
697 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
698 * Makefile.am: Add eelf32{l}ppcnto.o files.
699 * Makefile.in: Regenerate.
700 * emulparams/elf32lppcnto.sh: New file.
701 * emulparams/elf32ppcnto.sh: New file.
702
703 2002-08-07 H.J. Lu <hjl@gnu.org>
704
705 * ld.texinfo: Document --no-undefined-version.
706
707 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
708 `script.' fields to 0.
709
710 * ldmain.c (main): Initialize the allow_undefined_version to
711 true.
712
713 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
714 (ld_options): Add --no-undefined-version.
715 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
716
717 2002-08-07 Nick Clifton <nickc@redhat.com>
718
719 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
720 an interworking bfd if there are input bfds. (107501)
721
722 2002-08-06 Alan Modra <amodra@bigpond.net.au>
723
724 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
725 2002-05-10 change.
726
727 2002-08-01 Nick Clifton <nickc@redhat.com>
728
729 * emulparams/armelf.sh: Revert previous delta.
730 * scripttempl/elf.sc: Revert previous delta.
731
732 2002-07-31 H.J. Lu <hjl@gnu.org>
733
734 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
735 --enable-64-bit-bfd.
736
737 2002-07-31 H.J. Lu <hjl@gnu.org>
738
739 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
740 64bit BFD is selected.
741
742 2002-07-31 H.J. Lu <hjl@gnu.org>
743
744 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
745 if 64bit BFD is selected.
746
747 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
748
749 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
750 link_info.common_skip_ar_aymbols.
751 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
752
753 * ldmain.c (main): Initialize new field
754 link_info.common_skip_ar_aymbols.
755
756 2002-07-31 Adam Nemet <anemet@lnxw.com>
757
758 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
759 to .plt.thumb.
760 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
761 used.
762
763 2002-07-31 Nick Clifton <nickc@redhat.com>
764
765 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
766 of the PDP-11 and 2.11BSD a.out support.
767
768 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
769
770 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
771 for n32 ABI support.
772 * Makefile.in: Regenerate.
773 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
774 n32 ABI emulations for these 64 bit targets.
775 * emulparams/elf32bmipn32.sh: Expand comment.
776 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
777 n32 ABI.
778 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
779
780 2002-07-30 Graeme Peterson <gp@qnx.com>
781
782 * configure.tgt: Add support for arm-*-nto target.
783 * Makefile.am: Add earmnto.o file.
784 * Makefile.in: Regenerate.
785 * NEWS: Mention port of ARM support to QNX.
786 * emulparams/armnto.sh: New file.
787
788 2002-07-30 Jakub Jelinek <jakub@redhat.com>
789
790 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
791 for relocatable link.
792 (lang_size_sections_1): Don't make .tbss zero size for relocatable
793 link.
794
795 2002-07-26 Bernd Schmidt <bernds@redhat.com>
796
797 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
798 (STACK_ADDR): New.
799
800 2002-07-25 Nick Clifton <nickc@redhat.com>
801
802 * po/sv.po: Updated Swedish translation.
803 * po/es.po: Updated Spanish translation.
804 * po/fr.po: Updated French translation.
805
806 2002-07-24 Nick Clifton <nickc@redhat.com>
807
808 * po/sv.po: Updated Swedish translation.
809 * po/es.po: Updated Spanish translation.
810
811 2002-07-23 Nick Clifton <nickc@redhat.com>
812
813 * po/fr.po: Updated French translation.
814
815 2002-07-20 Alan Modra <amodra@bigpond.net.au>
816
817 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
818 bomb on /DISCARD/ input section.
819 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
820 * emultempl/mmo.em (mmo_place_orphan): Likewise.
821
822 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
823
824 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
825 output section.
826
827 2002-07-16 Denis Chertykov <denisc@overta.ru>
828 Nick Clifton <nickc@redhat.com>
829 Frank Ch. Eigler <fche@redhat.com>
830 John Healy <jhealy@redhat.com>
831
832 * configure.tgt: Add support for ip2k-elf.
833 * Makefile.am: Add support for ip2k-elf.
834 * Makefile.in: Regenerate.
835 * emulparams/elf32ip2k.sh: New file.
836 * scripttempl/ip2k.sc: New file
837 * NEWS: Mention support for new port.
838
839 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
840
841 * NEWS: Add 'Changes in 2.13'.
842
843 2002-07-14 H.J. Lu <hjl@gnu.org>
844
845 * ld.texinfo: Document a .symver takes precedence over a
846 version script.
847
848 2002-07-12 Alan Modra <amodra@bigpond.net.au>
849
850 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
851 (COMMONPAGESIZE): Define.
852
853 2002-07-09 Alan Modra <amodra@bigpond.net.au>
854
855 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
856
857 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
858
859 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
860 powerpc-*-openbsd* and sparc64-*-openbsd*.
861 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
862 * Makefile.in: Regenerate.
863 * emulparams/hppaobsd.sh: New file.
864
865 2002-07-05 Alan Modra <amodra@bigpond.net.au>
866
867 * ldlang.c (print_wild_statement): Fix output formatting.
868
869 2002-07-04 Alan Modra <amodra@bigpond.net.au>
870
871 * ldlang.c: (strip_excluded_output_sections): New function.
872 (lang_process): Call it.
873 (lang_size_sections_1): Revert 2002-06-10 change.
874
875 2002-07-03 Alan Modra <amodra@bigpond.net.au>
876
877 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
878 Run "make dep-am".
879 * Makefile.in: Regenerate.
880
881 2002-07-02 Alan Modra <amodra@bigpond.net.au>
882
883 * ldfile.c (ldfile_try_open_bfd): Formatting.
884
885 * ldmisc.c (demangle): Move so that it doesn't intrude between
886 vfinfo comment and body. Add comment.
887
888 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
889
890 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
891
892 2002-07-01 Alan Modra <amodra@bigpond.net.au>
893
894 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
895 * ldlang.c (entry_sym): Likewise.
896 (ldlang_undef_chain_list_type): Likewise.
897 (lang_finish): Adjust references to entry_symbol.
898 (lang_add_entry): Likewise.
899 (lang_gc_sections): Use link_info.gc_sym_list.
900 (lang_process): Set link_info.gc_sym_list.
901 * ldlex.l: Include bfdlink.h.
902 * ldmain.c (main): Init link_info.gc_sym_list.
903 * emultempl/aix.em: Adjust references to entry_symbol.
904 * emultempl/armcoff.em: Likewise.
905 * emultempl/armelf.em: Likewise.
906 * emultempl/pe.em: Likewise.
907 * emultempl/ppc64elf.em (ppc_after_open): New function.
908 (LDEMUL_AFTER_OPEN): Define.
909 * emulparams/elf64ppc.sh: KEEP .opd sections.
910
911 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
912
913 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
914 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
915 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
916 (EEPROM_START_ADDR): Define.
917 (EEPROM_MEMORY): Define.
918 * emulparams/m68hc12elf.sh: Likewise.
919 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
920 section to put soft registers in .page0.
921 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
922
923 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
924
925 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
926 section. Add ${RELOCATING-0}.
927
928 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
929
930 * emulparams/shelf.sh (STACK_ADDR): Don't define.
931 (OTHER_SECTIONS): Define.
932 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
933 (OTHER_SECTIONS): Undef.
934
935 2002-06-26 Alan Modra <amodra@bigpond.net.au>
936
937 * ldmisc.c (demangle): Restore dots stripped from sym name.
938
939 2002-06-25 H.J. Lu <hjl@gnu.org>
940
941 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
942 * Makefile.in: Regenerated.
943
944 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
945
946 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
947 the size of attached object files, to allow make the object files
948 available via FTP or HTTP and to mention that the mail will be
949 sent to a mailing list.
950
951 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
952
953 * ld/configure.host (romp): Drop support.
954
955 2002-06-18 Chris Demetriou <cgd@broadcom.com>
956
957 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
958 section flags for SEC_DATA, rather than for SEC_CODE being unset.
959
960 2002-06-18 Chris Demetriou <cgd@broadcom.com>
961
962 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
963 format specifier used to print BFD name.
964
965 2002-06-18 Dave Brolley <brolley@redhat.com>
966
967 From Catherine Moore, Michael Meissner, Jim Blandy:
968 * emulparams/elf32frv.sh: New file.
969 * configure.tgt: Support frv-*-*.
970 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
971 (eelf32frv.c): New target.
972
973 2002-06-17 Tom Rix <trix@redhat.com>
974
975 * emultempl/elf32.em: gld*_get_script: Check for
976 GENERATE_COMBRELOC_SCRIPT.
977 * scripttempl/elfd10v.sc : Fix STACK and INSN.
978 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
979
980 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
981
982 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
983
984 2002-06-12 H.J. Lu <hjl@gnu.org>
985
986 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
987 false if xvec doesn't match.
988
989 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
990
991 * ldlang.c (lang_size_sections_1): Skip removed output sections.
992
993 2002-06-08 Alan Modra <amodra@bigpond.net.au>
994
995 * ldexp.c: Replace CONST with const.
996 * ldfile.c: Likewise.
997 * ldfile.h: Likewise.
998 * ldlex.l: Likewise.
999 * mri.c: Likewise.
1000 * pe-dll.h: Likewise.
1001
1002 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1003
1004 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1005
1006 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1007
1008 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1009 to -1 == implicit enable.
1010 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1011 initialize link_info.pei386_auto_import to -1 == implicit
1012 enable.
1013 (gld_${EMULATION_NAME}_parse_args): When processing
1014 --enable-auto-import and --disable-auto-import options, use
1015 '1' and '0' instead of 'true' and 'false'.
1016 (pe_find_data_imports): Only issue message about auto-import
1017 when the feature is implicitly enabled. Downgrade message to
1018 informational instead of warning.
1019
1020 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1021
1022 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1023
1024 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1025
1026 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1027 HOSTING_CRT0 and HOSTING_LIBS.
1028
1029 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1030
1031 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1032
1033 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1034
1035 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1036 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1037
1038 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1039
1040 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1041 SEC_EXCLUDE sections when doing a relocatable link.
1042
1043 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1044
1045 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1046 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1047 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1048 (eshlelf64_nbsd.c): New rules.
1049 * Makefile.in: Regenerate.
1050 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1051 (sh64-*-netbsd*): New targets.
1052 * emulparams/shelf32_nbsd.sh: New file.
1053 * emulparams/shelf64_nbsd.sh: New file.
1054 * emulparams/shlelf32_nbsd.sh: New file.
1055 * emulparams/shlelf64_nbsd.sh: New file.
1056
1057 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1058
1059 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1060
1061 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1062
1063 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1064 C++ constructors/destructors, loosely based on the m68hc11 port.
1065
1066 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1067
1068 * Makefile.in: Regenerate.
1069 * aclocal.m4: Regenerate.
1070 * config.in: Regenerate.
1071 * configure: Regenerate.
1072
1073 2002-05-31 Graeme Peterson <gp@qnx.com>
1074
1075 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1076 (ei386nto.c): Add rule.
1077 * Makefile.in: Regenerate.
1078 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1079 * emulparams/i386nto.sh: New file.
1080
1081 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1082
1083 * NEWS: Add entry for VAX ELF support.
1084
1085 2002-05-29 Matt Thomas <matt@3am-software.com>
1086 Jason Thorpe <thorpej@wasabisystems.com>
1087
1088 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1089 (eelf32vax.c)
1090 (evaxnbsd.c): New rules.
1091 * Makefile.in: Regenerate.
1092 * configure.tgt (vax-*-netbsdelf*)
1093 (vax-*-netbsdaout*)
1094 (vax-*-netbsd*): New targets.
1095 * emulparams/elf32vax.sh: New file.
1096 * emulparams/vaxnbsd.sh: New file.
1097
1098 2002-05-29 Adam Nemet <anemet@lnxw.com>
1099
1100 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1101 bfd_for_interwork, instead add glue sections to each input bfd.
1102 (bfd_for_interwork): New global.
1103 (arm_elf_set_bfd_for_interworking): New function.
1104 (arm_elf_before_allocation): Use it.
1105
1106 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1107
1108 * Makefile.am: Add DLX make target.
1109 * configure.tgt: Add DLX configuration.
1110 * Makefile.in: Regenerate.
1111 * emulparams/elf32_dlx.sh: New file
1112 * scripttempl/dlx.sc: New file
1113
1114 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1115
1116 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1117 * Makefile.in: Regenerate.
1118 * emulparams/elf_chaos.sh: Use elf_chaos script.
1119 * scripttempl/elf_chaos.sc: New file.
1120
1121 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1122
1123 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1124 addresses and regions from here...
1125 (lang_get_regions): ...to this new function.
1126 (lang_leave_output_section_statement): Use lang_get_regions.
1127 (lang_leave_overlay): Likewise.
1128 * mri.c (mri_draw_tree): Pass null as last argument to
1129 lang_leave_output_section_statement.
1130 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1131 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1132 * emultempl/pe.em (gld*_place_orphan): Likewise.
1133
1134 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1135
1136 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1137
1138 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1139
1140 * ldemul.c: Fix formatting.
1141 * ldfile.c: Likewise.
1142 * pe-dll.c: Likewise.
1143 * pe-dll.h: Likewise.
1144
1145 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1146
1147 * ldlang.c (lang_process): Formatting, grammar.
1148
1149 * ldlex.l: Use #include "" instead of <> for local header files.
1150
1151 2002-05-24 TAMURA Kent <kent@netbsd.org>
1152
1153 * configure.tgt: Add a target for i386-netbsdpe.
1154
1155 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1156
1157 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1158 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1159 output section if necessary. Handle .tbss.
1160 (lang_size_sections): Clear _raw_size for .tbss section
1161 (it allocates space in PT_TLS segment only).
1162 * ldwrite.c (build_link_order): Build link order for .tbss too.
1163
1164 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1165
1166 * configure.in: Correct spelling of AC_PREREQ.
1167
1168 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1169
1170 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1171 default.
1172 (autofilter_objlist): Add crtbegin.o, crtend.o.
1173
1174 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1175
1176 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1177 (longopts): Add new option --exclude-libs.
1178 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1179 (gld_${EMULATION_NAME}_parse_args): Use it.
1180 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1181 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1182 from whole archives.
1183 (pe_dll_add_excludes): Set excludes->type.
1184 (auto_export): Add new variable libname and set to archive basename if
1185 abfd. Use it when filtering default and user-specified libarary
1186 excludes. Let string "ALL" mean all libs when filtering user-specified
1187 libs.
1188 * ld.texinfo: Document --exclude-libs.
1189
1190 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1191
1192 * ldemul.c (ldemul_new_vers_pattern): New function.
1193 * ldemul.h (ldemul_new_vers_pattern): Declare.
1194 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1195 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1196 * emultempl/ppc64elf.em (dotsyms): New static var.
1197 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1198 (LDEMUL_NEW_VERS_PATTERN): Define.
1199 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1200 (PARSE_AND_LIST_LONGOPTS): Likewise.
1201 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1202 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1203 initialiser.
1204 * emultempl/armcoff.em: Likewise.
1205 * emultempl/armelf_oabi.em: Likewise.
1206 * emultempl/beos.em: Likewise.
1207 * emultempl/elf32.em: Likewise.
1208 * emultempl/generic.em: Likewise.
1209 * emultempl/gld960.em: Likewise.
1210 * emultempl/gld960c.em: Likewise.
1211 * emultempl/linux.em: Likewise.
1212 * emultempl/lnk960.em: Likewise.
1213 * emultempl/m68kcoff.em: Likewise.
1214 * emultempl/mipsecoff.em: Likewise.
1215 * emultempl/pe.em: Likewise.
1216 * emultempl/sunos.em: Likewise.
1217 * emultempl/ticoff.em: Likewise.
1218 * emultempl/vanilla.em: Likewise.
1219
1220 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1221
1222 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1223 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1224 (LIB_SEARCH_DIRS): No need to use "tr".
1225 (COMPILE_IN): Only set for native targets.
1226 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1227 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1228 * configure.tgt (powerpc*): Set tdir_*.
1229 (powerpcle*): Correct targ_extra_emuls.
1230 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1231 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1232
1233 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1234
1235 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1236 calling lang_add_entry.
1237
1238 2002-05-21 H.J. Lu (hjl@gnu.org)
1239
1240 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1241 "-z muldefs".
1242 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1243
1244 * ld.texinfo: Updated for --allow-multiple-definition and
1245 "-z muldefs".
1246
1247 * ldmain.c (main): Initialize the allow_multiple_definition
1248 field to false.
1249
1250 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1251 (ld_options): Add --allow-multiple-definition.
1252 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1253
1254 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1255
1256 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1257 (earmelfb_nbsd.c): New rule.
1258 * Makefile.in: Regenerate.
1259 * configure.tgt (armeb-*-netbsdelf*): New target.
1260 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1261 (arm-*-netbsd*): Likewise.
1262 * emulparams/armelfb_nbsd.sh: New file.
1263
1264 2002-05-18 Tom Rix <trix@redhat.com>
1265
1266 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1267 support.
1268
1269 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1270
1271 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1272 * Makefile.in: Regenerate.
1273 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1274
1275 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1276
1277 * emulparams/avr1.sh: New file.
1278 * emulparams/avr2.sh: New file.
1279 * emulparams/avr3.sh: New file.
1280 * emulparams/avr4.sh: New file.
1281 * emulparams/avr5.sh: New file.
1282 * scripttempl/avr.sc: New file.
1283
1284 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1285
1286 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1287 (lang_place_orphans): Abort if just_syms_flag.
1288
1289 2002-05-10 Tom Rix <trix@redhat.com>
1290
1291 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1292 architecture and machine information in the output bfd.
1293 (gld*_before_parse): Remove old arch and machine code.
1294 (choose_target): Rename to gld*_choose_target.
1295 (rtld): Change type to int.
1296 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1297 objects in XCOFF archives.
1298 * ldfile.h: Update copyright date.
1299
1300 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1301
1302 * ldmain.c (main): Enable -z combreloc by default.
1303
1304 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1305
1306 * Makefile.am: Honour DESTDIR.
1307 * Makefile.in: Regenerate.
1308
1309 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1310
1311 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1312 (lang_enter_overlay): Remove the last two parameters.
1313 (lang_leave_overlay): Take them here instead.
1314 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1315 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1316 than lang_enter_overlay.
1317 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1318 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1319 (lang_size_sections_1): Evaluate it.
1320 (lang_leave_output_section_statement): Rework LMA lookup.
1321 (overlay_lma, overlay_nocrossrefs): Remove.
1322 (lang_enter_overlay): Remove LMA and crossref arguments.
1323 (lang_enter_overlay_section): Don't set the LMA here.
1324 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1325 assignment to the last section's update_dot_tree. Unconditionally
1326 use the load and run-time regions specified in the OVERLAY statement.
1327 Likewise the first section's LMA. Only set the other sections' LMAs
1328 when no load region is given.
1329
1330 2002-05-06 Nick Clifton <nickc@redhat.com>
1331
1332 * po/sv.po: New translation.
1333
1334 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1335
1336 * emultempl/hppaelf.em (build_section_lists): New function.
1337 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1338 and build_section_lists.
1339
1340 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1341
1342 * ld.h: Fix formatting.
1343 * ldexp.c: Likewise.
1344 * ldfile.c: Likewise.
1345 * ldlang.c: Likewise.
1346 * ldmain.c: Likewise.
1347 * lexsup.c: Likewise.
1348 * pe-dll.c: Likewise.
1349
1350 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1351
1352 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1353 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1354 (build_section_lists): Do output_section tests here.
1355
1356 2002-04-30 Tom Rix <trix@redhat.com>
1357
1358 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1359
1360 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1361
1362 Long branch stubs, multiple stub sections.
1363 * emultempl/ppc64elf.em: Include ldctor.h.
1364 (stub_file): New var.
1365 (group_size): New var.
1366 (ppc_create_output_section_statements): New function.
1367 (struct hook_stub_info): New.
1368 (hook_in_stub): New function.
1369 (ppc_add_stub_section): New function.
1370 (ppc_layout_sections_again): New function.
1371 (build_section_lists): New function.
1372 (gld${EMULATION_NAME}_finish): Rewrite.
1373 (real_func): New var.
1374 (ppc_for_each_input_file_wrapper): New function.
1375 (ppc_lang_for_each_input_file): New function.
1376 (lang_for_each_input_file): Define.
1377 (PARSE_AND_LIST_PROLOGUE): Define.
1378 (PARSE_AND_LIST_LONGOPTS): Define.
1379 (PARSE_AND_LIST_OPTIONS): Define.
1380 (PARSE_AND_LIST_ARGS_CASES): Define.
1381 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1382
1383 2002-04-30 Tom Rix <trix@redhat.com>
1384
1385 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1386 -blibpath, -bnolibpath support.
1387
1388 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1389
1390 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1391 (eelf32ppcwindiss.c): New target.
1392 * Makefile.in: Regenerated.
1393 * configure.tgt: Add support for powerpc-*-windiss.
1394 * emulparams/elf32ppcwindiss.sh: New file.
1395
1396 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1397
1398 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1399 * ldexp.c (exp_print_token): Add "infix_p" argument.
1400 (exp_print_tree): Update accordingly.
1401
1402 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1403
1404 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1405 * Makefile.in: Regenerate.
1406 * mpw-elfmips.c: Delete.
1407 * mpw-eppcmac.c: Delete.
1408 * mpw-esh.c: Delete.
1409 * mpw-idtmips.c: Delete.
1410
1411 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1412
1413 * emulparams/shelf32.sh (MACHINE): Now sh5.
1414
1415 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1416
1417 * ldgram.y: Fix syntax warning.
1418
1419 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1420
1421 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1422 to prevent "-n" from being taken as an abbreviation for
1423 "--no-pipeline-knowledge".
1424
1425 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1426
1427 * ldlang.c (lang_size_sections_1): Don't complain about
1428 SEC_NEVER_LOAD sections having no memory region specified.
1429
1430 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1431
1432 2002-04-07 matthew green <mrg@redhat.com>
1433
1434 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1435
1436 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1437
1438 * dep-in.sed: Cope with absolute paths.
1439 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1440 Run "make dep-am".
1441 * Makefile.in: Regenerate.
1442
1443 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1444
1445 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1446
1447 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1448
1449 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1450 is smaller than maximum, round dot up to common page boundary.
1451
1452 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1453
1454 * configure.host: Set up for generic hosts first, then tweak as
1455 necessary in more specific targets.
1456 (HOSTING_LIBS): Include libgcc_eh.a if found.
1457
1458 2002-03-23 Andreas Jaeger <aj@suse.de>
1459
1460 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1461
1462 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1463
1464 * Makefile.am: Run "make dep-am".
1465 * Makefile.in: Regenerate.
1466
1467 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1468
1469 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1470
1471 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1472
1473 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1474 add the symbol to the linker hash table immediately.
1475 (lang_place_undefineds): Split symbol creation out..
1476 (insert_undefined): ..to here.
1477
1478 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1479
1480 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1481 the contents of the buffer returned from basename function will are
1482 getting overwritten while still being used.
1483
1484 2002-03-18 Jan Hubicka <jh@suse.cz>
1485 Andreas Jaeger <aj@suse.de>
1486 Andreas Schwab <schwab@suse.de>
1487
1488 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1489 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1490 set libraries to default to lib64 paths.
1491
1492 2002-03-18 Tom Rix <trix@redhat.com>
1493
1494 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1495 * configure.tgt : Same.
1496 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1497 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1498 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1499 emulation parameters for better -b32, -b64 support.
1500 * emulparms/aixrs6.sh : Same.
1501 * emulparms/ppcmacos.sh : Same.
1502 * emultempl/aix.em (choose_target) : Use new emulation parameters
1503 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1504 * Makefile.in : Regenerate.
1505
1506 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1507
1508 * po/fr.po: Updated version.
1509
1510 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1511
1512 * ldmain.c (main): Move .text readonly flag fudges from here..
1513 * ldlang.c (lang_process): ..to here.
1514
1515 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1516
1517 * ldlang.c (lang_check): Remove the word size check added in last
1518 change. Treat emitrelocations case as for relocatable links.
1519
1520 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1521
1522 * po/fr.po: Updated version.
1523
1524 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1525
1526 * ldlang.c (lang_check): Do relocatable link checks first, so that
1527 warn_mismatch can't override. Check compatible and word size too.
1528
1529 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1530
1531 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1532
1533 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1534
1535 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1536 DATA_SEGMENT_ALIGN.
1537
1538 2002-03-04 H.J. Lu <hjl@gnu.org>
1539
1540 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1541 .fini_array in the data segment.
1542
1543 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1544
1545 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1546
1547 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1548
1549 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1550 .init_array, and .fini_array.
1551
1552 2002-02-20 Andreas Schwab <schwab@suse.de>
1553
1554 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1555 .IA64_unwind* in a relocatable link.
1556
1557 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1558
1559 * NEWS: Mark 2.12 branch.
1560
1561 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1562
1563 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1564 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1565
1566 2002-02-18 Tom Rix <trix@redhat.com>
1567
1568 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1569 (gld*_before_allocation): Same.
1570 (gld*_create_output_section_statements): Generate
1571 __rtinit if run time linking. Add librtl.a to the link.
1572 (gld*_read_file): Clean.
1573
1574 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1575
1576 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1577
1578 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1579
1580 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1581 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1582 and eelf64alpha_fbsd.
1583 * Makefile.in: Regenerate.
1584 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1585 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1586 use a FreeBSD-specific emulation rather than the psABI one.
1587 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1588 for all FreeBSD ELF systems.
1589 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1590 emulation.
1591 * emulparams/elf32ppc_fbsd.sh: Likewise.
1592 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1593 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1594 * emulparams/elf64alpha_fbsd.sh: Likewise.
1595 * emulparams/elf_i386_fbsd.sh: Likewise.
1596 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1597
1598 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1599
1600 * po/tr.po: Updated version.
1601
1602 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1603
1604 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1605 (FILL): Likewise.
1606
1607 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1608
1609 * emultempl/mmo.em (mmo_after_open): Don't call
1610 _bfd_mmix_check_all_relocs when producing ELF output.
1611
1612 2002-02-15 Richard Henderson <rth@redhat.com>
1613
1614 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1615 definition. Emit a unop+nop pair.
1616
1617 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1618
1619 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1620 for presence of .MMIX.reg_contents.linker_allocated before early
1621 exit.
1622
1623 * NEWS: Mention support for MMIX.
1624
1625 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1626
1627 Support arbitrary length fill patterns.
1628 * ld.texinfo (Output Section Fill): Describe fill expressions.
1629 (FILL): Refer to the above.
1630 * ldexp.h (etree_value_type): Add "str" field.
1631 (union etree_union): Add "str" to "value" struct.
1632 (exp_bigintop): Declare.
1633 (exp_get_fill): Declare.
1634 * ldexp.c: Include "safe-ctype.h".
1635 (exp_intop): Set value.str to NULL.
1636 (exp_bigintop): New function.
1637 (new_rel): Pass in "str", and set new.str from it.
1638 (new_rel_from_section): Set new.str to NULL.
1639 (fold_name): Adjust calls to new_rel.
1640 (exp_fold_tree): Likewise.
1641 (exp_get_fill): New function.
1642 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1643 (INT): Returns a "bigint". Adjust all code handling INTs.
1644 (fill_opt): Returns a "fill".
1645 (fill_exp): Split out of fill_opt, use for FILL.
1646 * ldlang.h (struct _fill_type): New.
1647 (fill_type): Move typedef to ldexp.h.
1648 (lang_output_section_statement_type): "fill" is now a pointer.
1649 (lang_fill_statement_type): Likewise.
1650 (lang_padding_statement_type): Likewise.
1651 (lang_add_fill): Now takes a "fill_type *" param.
1652 (lang_leave_output_section_statement): Likewise.
1653 (lang_do_assignments): Likewise.
1654 (lang_size_sections): Likewise.
1655 (lang_leave_overlay_section): Likewise.
1656 (lang_leave_overlay): Likewise.
1657 * ldlang.c: Include ldgram.h after ldexp.h.
1658 (lang_output_section_statement_lookup): Adjust for fill_type change.
1659 (print_fill_statement): Likewise.
1660 (print_padding_statement): Likewise.
1661 (insert_pad): Now takes a "fill_type *" arg.
1662 (size_input_section): Likewise.
1663 (lang_size_sections_1): Likewise.
1664 (lang_size_sections): Likewise.
1665 (lang_do_assignments): Likewise.
1666 (lang_add_fill): Likewise.
1667 (lang_leave_output_section_statement): Likewise.
1668 (lang_leave_overlay_section): Likewise.
1669 (lang_leave_overlay): Likewise.
1670 Adjust all callers of the above function.
1671 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1672 starting with "0X" as well as "0x". Return bigint.str for hex
1673 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1674 Always use base 16 for numbers starting with "$".
1675 * ldmain.c: Include ldgram.h after ldexp.h.
1676 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1677 of bfd_fill_link_order.
1678 * pe-dll.c: Adjust lang_do_assignments calls.
1679 * emultempl/elf32.em: Likewise.
1680 * emultempl/hppaelf.em: Likewise.
1681 * emultempl/ppc64elf.em: Likewise.
1682 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1683 lang_add_assignment call.
1684 * emultempl/pe.em: Likewise.
1685
1686 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1687
1688 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1689 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1690 the pattern in question is not a regexp.
1691 * ldlang.c: Likewise.
1692 * ldlang.h: Likewise.
1693 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1694
1695 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1696
1697 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1698 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1699 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1700 * ldexp.c (exp_data_seg): New variable.
1701 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1702 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1703 (exp_fold_tree): Handle DATA_SEGMENT_END.
1704 Pass allocation_done when recursing instead of hardcoding
1705 lang_allocating_phase_enum.
1706 * ldexp.h (exp_data_seg): New.
1707 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1708 (lang_size_sections): New.
1709 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1710 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1711 if COMMONPAGESIZE is defined.
1712 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1713 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1714 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1715 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1716 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1717 libraries only.
1718
1719 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1720
1721 * Makefile.in: Regenerate.
1722
1723 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1724
1725 * lexsup.c: Remove strtoul declaration.
1726
1727 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1728
1729 * ldmain.c: Add prototype for main ().
1730 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1731 * emultempl/lnk960.em (lnk960_choose_target): Function should
1732 take two arguments.
1733
1734 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1735
1736 * ldlang.c (entry_section): New initialised variable.
1737 (lang_finish): Use it.
1738 * ldlang.h (entry_section): Declare.
1739 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1740 entry_section to ".opd".
1741
1742 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1743
1744 * ld.texinfo (Options): Add back in -nostdlib documentation,
1745 which had been inadvertently removed.
1746
1747 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1748
1749 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1750 register section vma to a sane value after emitting error. Make
1751 fatal conditions cause program exit when emitting message.
1752
1753 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1754
1755 * configure.tgt: Add or32-*-rtems target.
1756
1757 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1758
1759 Contribute sh64-elf.
1760 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1761 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1762 in OTHER_RELOCATABLE_SECTIONS.
1763 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1764 * emulparams/shelf32.sh (STACK_ADDR): Define.
1765 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1766 (OTHER_SECTIONS): this. Removed stack settings.
1767 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1768 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1769 2001-03-12 DJ Delorie <dj@redhat.com>
1770 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1771 relaxing if any shmedia or mixed sections are found.
1772 2001-03-07 DJ Delorie <dj@redhat.com>
1773 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1774 einfo. Gracefully decline to output to non-elf formats.
1775 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1776 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1777 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1778 * emulparams/shelf32.sh: Ditto.
1779 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1780 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1781 comment.
1782 2001-01-10 Ben Elliston <bje@redhat.com>
1783 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1784 non-portable shell constructs. From Hans-Peter Nilsson.
1785 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1786 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1787 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1788 dependencies to the shell script include chain.
1789 * Makefile.in: Regenerate.
1790 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1791 * emultempl/sh64elf.em: Update and tweak comments.
1792 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1793 make a .cranges section SEC_IN_MEMORY.
1794 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1795 * emultempl/sh64elf.em
1796 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1797 .cranges section found to be necessary; continue and set stored
1798 section contents flags for sections with non-mixed contents.
1799 Use a struct sh64_section_data container and sh64_elf_section_data
1800 to store contents-type flags.
1801 Remove unused update of "isec".
1802 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1803 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1804 access contents-type flags. Assert that the associated container
1805 is initialized. Use that container, not elf_gp_size, to hold size
1806 of linker-generated cranges contents.
1807 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1808 * emultempl/sh64elf.em
1809 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1810 there's already a .cranges section. When section flag difference
1811 is found, don't NULL-check cranges a second time. Tweak comments.
1812 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1813 merging, not max size, as size of ld-generated .cranges contents.
1814 Don't set ELF section flags in output section. When checking for
1815 needed .cranges descriptors, don't use a variable; compare
1816 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1817 comments.
1818 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1819 * emultempl/sh64elf.em: New file.
1820 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1821 * Makefile.in: Regenerate.
1822 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1823 (OTHER_RELOCATING_SECTIONS): Ditto.
1824 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1825 * emulparams/shlelf32.sh: Stub out all settings except
1826 OUTPUT_FORMAT. Source shelf32.sh.
1827 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1828 OTHER_RELOCATING_SECTIONS.
1829 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1830 * emulparams/shlelf64.sh: Stub out all settings except
1831 OUTPUT_FORMAT. Source shelf64.sh.
1832 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1833 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1834 .cranges section.
1835 (DATA_START_SYMBOLS): Define, provide ___data.
1836 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1837 for consecutive .data section.
1838 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1839 section after .data section.
1840 * emulparams/shlelf64.sh: Ditto.
1841 * emulparams/shelf32.sh: Ditto.
1842 (ALIGNMENT): Define to 8.
1843 * emulparams/shelf32.sh: Ditto.
1844 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1845 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1846 built-in linker scripts.
1847 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1848 * emulparams/shlelf64.sh: New.
1849 * emulparams/shelf64.sh: New.
1850 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1851 targ_extra_emuls.
1852 * Makefile.am: Add support for shlelf64 and shelf64.
1853 * Makefile.in: Regenerate.
1854 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1855 * configure.tgt (sh64-*-elf*): Add shelf as default.
1856 Add shlelf to targ_extra_emuls.
1857 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1858 * emulparams/shelf32.sh: New file.
1859 * emulparams/shlelf32.sh: New file.
1860 * Makefile.am: Add support for shlelf32 and shelf32.
1861 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1862 * Makefile.in: Regenerate.
1863
1864 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1865
1866 * ldlang.c (lang_reset_memory_regions): Rename from
1867 reset_memory_regions. Change all callers. Make public.
1868 * ldlang.h (lang_reset_memory_regions): Prototype.
1869 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1870 lang_reset_memory_regions before lang_size_sections.
1871 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1872 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1873
1874 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1875
1876 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1877 arithmetic when checking for too many global registers.
1878
1879 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1880
1881 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1882 (ehppanbsd.c): New rule.
1883 * Makefile.in: Regenerate.
1884 * configure.tgt (hppa*-*-netbsd*): New target.
1885 * emulparams/hppalinux.sh: Add comment to check other files
1886 that source this file it is modified, and list which
1887 files that do.
1888 * emulparams/hppanbsd.sh: New file.
1889
1890 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1891
1892 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1893 stack.
1894
1895 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1896
1897 Support on-demand global register allocation from
1898 R_MMIX_BASE_PLUS_OFFSET relocs.
1899 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1900 mmix_set_reg_section_vma. Call
1901 _bfd_mmix_finalize_linker_allocated_gregs.
1902 (mmix_before_allocation): New function.
1903 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1904 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1905 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1906 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1907 before .MMIX.reg_contents.
1908 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1909 (mmo_after_open): New function.
1910 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1911 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1912 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1913
1914 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1915
1916 * emulparams/or32.sh: New file.
1917 * emulparams/or32elf.sh: New file.
1918 * scripttempl/or32.sc: New file.
1919 * configure.tgt : Add support for or32.
1920 * configure: Regenerate
1921 * Makefile.am: Add support for or32.
1922 * Makefile.in: Regenerate.
1923 * NEWS: Mention support for or32.
1924 * po/ld.pot: Regenerate.
1925
1926 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1927 Mitch Lichtenberg <mpl@broadcom.com>
1928
1929 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1930 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1931 reloc creation (ld --embedded-relocs).
1932
1933 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1934
1935 * configure: Regenerated.
1936
1937 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1938
1939 * Makefile.am (install): Depend on install-info.
1940 * Makefile.in: Regenerate.
1941
1942 2002-01-26 Christian Rose <menthos@menthos.com>
1943
1944 * ldmain.c (main): Use full sentences to ease translation.
1945
1946 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1947
1948 * po/fr.po: Updated version.
1949
1950 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1951
1952 * po/es.po: Updated version.
1953
1954 2002-01-25 Andreas Jaeger <aj@suse.de>
1955
1956 * ldlex.l (yy_input): Correct error check.
1957
1958 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1959
1960 * ldmisc.c (demangle): Put back dots when string not demangled.
1961
1962 2002-01-22 Richard Henderson <rth@redhat.com>
1963
1964 * emulparams/elf64alpha.sh (NOP): Use unop.
1965
1966 2002-01-21 Andreas Jaeger <aj@suse.de>
1967
1968 * ldlex.l: Use fread instead of read.
1969
1970 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1971
1972 * configure.tgt (ia64-*-netbsd*): New target.
1973
1974 2002-01-21 H.J. Lu <hjl@gnu.org>
1975
1976 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1977 0.
1978 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1979
1980 2002-01-18 Andreas Jaeger <aj@suse.de>
1981
1982 * ldver.c (ldversion): Update year.
1983
1984 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1985
1986 * po/ld.pot: Regenerate.
1987
1988 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1989
1990 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1991 * Makefile.in: Regenerate.
1992 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1993 * emultempl/ppc64elf.em: New file.
1994
1995 2002-01-15 DJ Delorie <dj@redhat.com>
1996
1997 * scripttempl/pe.sc: Add support for constructor priorities.
1998
1999 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2000
2001 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2002 * emulparams/avr23xx.sh: Likewise.
2003 * emulparams/avr4433.sh: Likewise.
2004 * emulparams/avr44x4.sh: Likewise.
2005 * emulparams/avr85xx.sh: Likewise.
2006 * emulparams/avrmega103.sh: Likewise.
2007 * emulparams/avrmega161.sh: Likewise.
2008 * emulparams/avrmega603.sh: Likewise.
2009 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2010
2011 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2012
2013 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2014 archive is excluded.
2015
2016 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2017
2018 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2019 (eshelf_nbsd.c): New rule.
2020 (eshlelf_nbsd.c): New rule.
2021 * Makefile.in: Regenerate.
2022 * configure.tgt (sh*le-*-netbsdelf*): New target.
2023 (sh*-*-netbsdelf*): New target.
2024 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2025 * ld/emulparams/shelf_nbsd.sh: New emulation.
2026 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2027
2028 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2029
2030 * po/es.po: New file: Spanish translation.
2031 * configure.in (ALL_LINGUAS): Add es.
2032 * configure: Regenerate.
2033
2034 2002-01-06 John Marshall <jmarshall@acm.org>
2035
2036 * ld.texinfo: Note that --emit-relocs is currently only
2037 implemented for ELF.
2038
2039 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2040
2041 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2042 of bfd_section_list_remove and bfd_section_list_insert macros.
2043 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2044 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2045
2046 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2047
2048 * configure.tgt (x86_64-*-netbsd*): New target.
2049
2050 2001-12-21 Tom Rix <trix@redhat.com>
2051
2052 (gld*_create_output_section_statements): New function.
2053 For -binitfini support.
2054 * emultempl/aix.em (gld*_before_parse): Fix comment.
2055 * emultempl/aix.em (gld*_parse_args): Fix comment.
2056
2057 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2058
2059 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2060 mips*el-*-netbsd*.
2061 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2062
2063 * configure.tgt (arm-*-netbsdelf*): Add target.
2064 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2065 * emulparams/armelf_nbsd.sh: Added.
2066 * Makefile.am: Add rules for earmelf_nbsd.
2067 * Makefile.in: Regenerate.
2068
2069 2001-12-19 Andreas Jaeger <aj@suse.de>,
2070 Susanne Oberhauser <froh@suse.de>
2071
2072 * configure.host: Add rules for x86_64-*linux-gnu. Change
2073 s390x-linux entry to use gcc to report configuration, replace gcc
2074 with $CC in s390-linux
2075
2076 2001-12-19 Andreas Jaeger <aj@suse.de>
2077
2078 * ld.texinfo (VERSION): Fix markup.
2079
2080 2001-12-18 matthew green <mrg@eterna.com.au>
2081
2082 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2083 (m68kelfnbsd.c): New rule.
2084 * Makefile.in: Regenerate.
2085 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2086 (m68*-*-netbsd*4k*): .. this.
2087 (m68*-*-netbsdelf*): New target.
2088 (m68*-*-netbsd*): Also include ELF support.
2089 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2090 * emulparams/m68kelfnbsd.sh: New emulation.
2091
2092 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2093
2094 * ldgram.y (vers_node): Support anonymous version tags.
2095 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2096 tag is not defined together with non-anonymous versions.
2097 * ld.texinfo: Document it.
2098
2099 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2100
2101 * po/tr.po: New file: Turkish translation.
2102 * configure.in (ALL_LINGUAS): Add tr.
2103 * configure: Regenerate.
2104
2105 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2106
2107 * Makefile.am: Add rules for eelf64alpha_nbsd.
2108 * Makefile.in: Regenerate.
2109 * configure.tgt (alpha*-*-netbsd*): Set
2110 targ_emul to elf64alpha_nbsd.
2111 * emulparams/elf64alpha_nbsd.sh: Added.
2112
2113 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2114
2115 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2116 section_tail when fiddling with section list.
2117 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2118 broken into separate strings to make translation easier.
2119 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2120 fiddling with section list.
2121 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2122
2123 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2124
2125 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2126
2127 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2128
2129 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2130
2131 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2132
2133 * emultempl/elf32.em (finish): Supply output_bfd
2134 to bfd_elf*_discard_info.
2135 (OPTION_EH_FRAME_HDR): Define.
2136 (longopts): Add --eh-frame-hdr.
2137 (parse_args): Handle it.
2138 (list_options): Add --eh-frame-hdr to help.
2139 * emultempl/hppaelf.em (finish): Supply output_bfd
2140 to bfd_elf*_discard_info.
2141 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2142
2143 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2144
2145 * lexsup.c (parse_args): Don't pass shortopts to second call to
2146 getopt functions. Restore optind rather than decrementing before
2147 second call. Remove errind as it now duplicates last_optind.
2148
2149 2001-12-11 Christopher Faylor <cgf@redhat.com>
2150
2151 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2152
2153 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2154 Richard Henderson <rth@redhat.com>
2155
2156 * Makefile.am: Add support for xstormy16.
2157 * configure.tgt: Add support for xstormy16.
2158 * Makefile.in: Regenerate.
2159 * emulparams/elf32xstormy16.sh: New file.
2160 * scripttempl/xstormy16.sc: New file.
2161
2162 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2163
2164 * Makefile.in (LIB_PATH): Make configurable.
2165 (GENSCRIPTS): Set LIB_PATH in environment.
2166 * configure.in: Substitute LIB_PATH.
2167 * configure: Regenerate.
2168 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2169 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2170
2171 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2172
2173 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2174 describing the -N option so that it is easier to translate into
2175 foreign languages.
2176
2177 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2178
2179 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2180 statements describing a single option with a single, newline
2181 escaped fprintf. This allows better translation into other
2182 languages.
2183
2184 * ldmain.c (add_archive_element): Combine multiple strings
2185 into a single string to permit better translation into other
2186 languages.
2187
2188 2001-12-05 Tom Rix <trix@redhat.com>
2189
2190 * Makefile.am: Remove eaixppc64.
2191 * Makefile.in: Regenerate.
2192
2193 2001-12-04 Tom Rix <trix@redhat.com>
2194
2195 * emultempl/aix.em (choose_target): Change default target to
2196 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2197 warning.
2198 (gld*_read_file): Fix typo.
2199 (change_symbol_mode): Add prototype.
2200 (is_syscall): Same.
2201
2202 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2203 * emulparams/aixrs6.sh : Same.
2204 * emulparams/ppcmacos.sh : Same.
2205 * emulparams/aixppc64.sh : Delete file.
2206 * emultempl/aix.em : Formatting changes.
2207
2208 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2209
2210 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2211 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2212 __Sbss.
2213 (OTHER_END_SYMBOLS): Fix formatting.
2214 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2215 (OTHER_END_SYMBOLS): Fix formatting.
2216
2217 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2218
2219 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2220
2221 2001-12-02 Tom Rix <trix@redhat.com>
2222
2223 * configure.tgt : Remove eaixppc64 emulations.
2224 * Makefile.in : Remove eaixppc64.c
2225 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2226 (ldemul_default_target): Same.
2227 * emultempl/gld960.em (gld960_choose_target): Same.
2228 * emultempl/gld960c.em (gld960_choose_target): Same.
2229 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2230 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2231 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2232 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2233 * emultempl/aix.em (choose_target): New function. Handle emulation of
2234 -b32 and -b64.
2235
2236 2001-11-27 H.J. Lu <hjl@gnu.org>
2237
2238 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2239 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2240 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2241 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2242 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2243 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2244 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2245 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2246
2247 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2248 is not empty.
2249 (SDATA): Likewise.
2250 (REL_SDATA): Likewise.
2251 (REL_SBSS): Likewise.
2252 (REL_SDATA2): Likewise.
2253 (REL_SBSS2): Likewise.
2254 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2255 (SDATA2): Likewise.
2256
2257 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2258
2259 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2260 destructor in rom.
2261 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2262
2263 2001-11-22 H.J. Lu <hjl@gnu.org>
2264
2265 * Makefile.in: Regenerated with automake based on automake
2266 1.4-8 in RedHat 7.1.
2267
2268 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2269
2270 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2271 (config.status): Delete rule.
2272 Add extra dependencies to cover sourced emulparams files.
2273 * Makefile.in: Regenerate.
2274
2275 * scripttempl/elf.sc: Order <section>, <section>.* and
2276 corresponding linkonce sections as seen in input files.
2277 Formatting fixes. Zero vma of all sections if not relocating.
2278 (STACK): Define and insert if STACK_ADDR defined.
2279 (OTHER_RELOCATING_SECTIONS): Delete.
2280 (OTHER_END_SYMBOLS): Define.
2281 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2282 (OTHER_READWRITE_SECTIONS): Likewise.
2283 (OTHER_GOT_SECTIONS): Likewise.
2284 (OTHER_SDATA_SECTIONS): Likewise.
2285 (OTHER_BSS_SECTIONS): Likewise.
2286 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2287 (OTHER_READWRITE_SECTIONS): Likewise.
2288 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2289 (OTHER_READWRITE_SECTIONS): Likewise
2290
2291 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2292 (STACK_ADDR): Define.
2293 * emulparams/armelf_oabi.sh: As for armelf.sh.
2294 * emulparams/elf32mcore.sh: As for armelf.sh.
2295 * emulparams/h8300elf.sh: As for armelf.sh.
2296 * emulparams/mn10200.sh: As for armelf.sh.
2297 * emulparams/shelf.sh: As for armelf.sh.
2298
2299 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2300 (OTHER_END_SYMBOLS): Define.
2301 * emulparams/m32relf.sh: As for elf32fr30.sh.
2302 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2303 * emulparams/h8300self.sh: As for elf32fr30.sh.
2304
2305 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2306 defines with RELOCATING test.
2307 (OTHER_SDATA_SECTIONS): Likewise.
2308 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2309 (OTHER_END_SYMBOLS): ..this.
2310 * emulparams/crislinux.sh: As for criself.sh.
2311
2312 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2313 if not relocating.
2314 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2315 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2316 normal and linkonce sections as seen in input files.
2317 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2318 (TEXT_DYNAMIC): Likewise.
2319 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2320 (OTHER_SDATA_SECTIONS): Likewise.
2321 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2322 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2323 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2324 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2325 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2326 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2327 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2328 sections as seen in input files.
2329 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2330 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2331 if not relocating.
2332 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2333 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2334 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2335 (OTHER_SECTIONS): Instead, use this..
2336 (OTHER_END_SYMBOLS): ..and this.
2337
2338 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2339 * emulparams/elf32bsmip.sh: Likewise.
2340 * emulparams/elf32btsmip.sh: Likewise.
2341 * emulparams/elf32ebmip.sh: Likewise.
2342 * emulparams/elf32lmip.sh: Likewise.
2343 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2344 * emulparams/elf32lsmip.sh: Likewise.
2345 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2346 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2347 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2348 * emulparams/elf64btsmip.sh: Likewise.
2349 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2350 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2351 * emulparams/elf32ppclinux.sh: Likewise.
2352 * emulparams/elf32ppcsim.sh: Likewise.
2353 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2354 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2355 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2356 * emulparams/h8300self.sh: Likewise.
2357 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2358 * emulparams/sh.sh: Comment.
2359 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2360 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2361 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2362
2363 2001-11-21 David Heine <dlheine@tensilica.com>
2364 Alan Modra <amodra@bigpond.net.au>
2365
2366 * ldlang.c (map_input_to_output_sections): Replace "break"
2367 accidentally removed with 2001-08-03 change.
2368 (lang_gc_sections_1): Likewise.
2369
2370 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2371
2372 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2373
2374 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2375
2376 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2377 of false when calling lang_size_sections.
2378 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2379
2380 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2381
2382 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2383 function when LDEMUL_FINISH isn't set to the same name. Don't
2384 call ${LDEMUL_FINISH}.
2385 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2386 * emultempl/armelf.em (arm_elf_finish): Call
2387 gld${EMULATION_NAME}_finish.
2388 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2389 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2390 hppaelf_layout_sections_again if necessary.
2391 (need_laying_out): New var.
2392 (hppaelf_layaout_sections_again): Rename to
2393 hppaelf_layout_sections_again. Clear need_laying_out.
2394 (PARSE_AND_LIST_OPTIONS): Format text.
2395
2396 2001-11-14 H.J. Lu <hjl@gnu.org>
2397
2398 * emultempl/armelf.em (arm_elf_finish): Renamed from
2399 gld${EMULATION_NAME}_finish.
2400 (LDEMUL_FINISH): Set to arm_elf_finish.
2401
2402 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2403
2404 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2405 (struct ld_emulation_xfer_struct): Use it.
2406
2407 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2408
2409 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2410 additional symbols referenced by newer crt0.o files from HP.
2411
2412 2001-11-12 Anthony Green <green@redhat.com>
2413
2414 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2415
2416 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2417
2418 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2419 * Makefile.in: Regenerate.
2420
2421 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2422
2423 * ld.texinfo: Use @command for commands, @option for options.
2424 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2425 the page man title.
2426 * Makefile.in: Rebuild.
2427
2428 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2429
2430 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2431 Add support for targets.
2432
2433 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2434
2435 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2436 * configure: Regernate.
2437 * po/fr.po: New file.
2438 * po/sv.po: New file.
2439
2440 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2441
2442 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2443 as little endian default and to support big endian.
2444
2445 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2446
2447 * ld.texinfo (Options): Document new option, -nostdlib.
2448 * lexsup.c (OPTION_NOSTDLIB): New definition.
2449 (ld_options): Add entry for "nostdlib".
2450 (parse_args): Handle OPTIONS_NOSTDLIB.
2451 * ldfile.c (ldfile_add_library_path): Don't add directories
2452 to the search path if they weren't specified on the command line
2453 and -nostdlib was specified.
2454 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2455
2456 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2457
2458 * lexsup.c (parse_args): Prevent infinite parsing loop when
2459 "-rpath.a" is specified on the command line.
2460 Replace calls to fprintf with calls to einfo.
2461
2462 2001-10-31 John Marshall <jmarshall@acm.org>
2463
2464 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2465 appear only once across all the linker scripts involved in a link
2466 invocation no longer applies. Make the documentation reflect
2467 that.
2468
2469 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2470
2471 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2472 targets.
2473 (sh-*-linux*): Added targ_extra_libpath.
2474
2475 2001-10-31 David Heine <dlheine@tensilica.com>
2476
2477 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2478 for padding statements.
2479
2480 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2481
2482 * configure.tgt (mmix-*-*): New target.
2483 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2484 Add dependencies to match.
2485 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2486 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2487 scripttempl/mmo.sc: New files.
2488 * gen-doc.texi: @set MMIX.
2489 * ld.texinfo: Ditto.
2490 [MMIX] Add MMIX node.
2491 * Makefile.in: Regenerate.
2492
2493 2001-10-29 Kazu Hirata <kazu@hxi.com>
2494
2495 * ldlang.c: Fix a comment typo.
2496
2497 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2498
2499 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2500 entries, and match *-*-linux*.
2501
2502 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2503
2504 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2505 with ldlex_script, ldlex_popstate.
2506 (ifile_p1): Likewise.
2507 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2508 correct slot.
2509 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2510 to 1. Don't BEGIN(SCRIPT).
2511 (lex_redirect): Similarly.
2512 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2513
2514 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2515
2516 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2517 __EH_FRAME_END__ and accept eh frames into data section.
2518 Add ctor and dtor sections.
2519
2520 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2521
2522 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2523 (auto-export): Fix indentation.
2524
2525 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2526
2527 * pe-dll.c (autofilter_objectlist): Add startup objects
2528 for profiling.
2529 (auto-export): Constify char * p.
2530 Extract file basename and use strcmp rather than ststr
2531 for object lookup.
2532
2533 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2534
2535 * ldmain.c (get_emulation): Improve comment about the handling
2536 of -mipsN options.
2537
2538 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2539
2540 * po/POTFILES.in: Regenerate.
2541
2542 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2543
2544 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2545 -z nocopyreloc and -z nocombreloc usage strings.
2546
2547 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2548
2549 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2550 in usage.
2551
2552 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2553
2554 * scripttempl/armaout.sc: Place .bss section after end of aligned
2555 data section to match behaviour of aout code in constructrion of
2556 header.
2557
2558 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2559
2560 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2561 startup files for mingw32 dlls to list.
2562
2563 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2564
2565 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2566
2567 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2568
2569 * configure.tgt (targ): Add arm9e-*-elf.
2570
2571 2001-10-05 H.J. Lu <hjl@gnu.org>
2572
2573 * genscripts.sh: Fix a typo in the last change.
2574
2575 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2576
2577 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2578 -z nocombreloc in usage.
2579
2580 2001-10-03 Jim Blandy <jimb@redhat.com>
2581
2582 * genscripts.sh: Include a comment at the top of each generated
2583 script, explaining its purpose.
2584
2585 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2586
2587 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2588 * NEWS: Mention -z nocopyreloc.
2589 * ld.texinfo (Options): Describe nocopyreloc.
2590
2591 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2592
2593 * configure: Regenerate.
2594
2595 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2596
2597 * ldver.h (ld_program_version): Remove declaration.
2598 * lexsup.c (parse_args): Move printing of copyright message..
2599 * ldver.c (ldversion): .. to here.
2600 Use BFD_VERSION_STRING in place of BFD_VERSION.
2601 (ld_program_version): Remove.
2602 * Makefile.am (Makefile): Depend on bfd/configure.in.
2603 Run "make dep-am".
2604 * Makefile.in: Regenerate.
2605
2606 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2607
2608 * Makefile.am: Update dependencies with "make dep-am".
2609 * Makefile.in: Regenerate.
2610
2611 2001-09-29 John Reiser <jreiser@BitWagon.com>
2612
2613 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2614 * lexsup.c: Add --no-define-common commandline option.
2615 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2616 * ldlex.l: Likewise.
2617 * ld.h: Add command_line.inhibit_common_definition.
2618 * ldmain.c (main): Initialize.
2619 * ld.texinfo: Document.
2620
2621 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2622
2623 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2624
2625 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2626
2627 * ldmisc.c (USE_STDARG): Remove.
2628 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2629 (einfo): Likewise.
2630 (minfo): Likewise.
2631 (lfinfo): Likewise.
2632
2633 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2634 declarations. Update copyright.
2635
2636 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2637
2638 * pe-dll.c: Remove obsoleted declaration of
2639 pe_get_data_import_dll_name.
2640 (pe_create_import_fixup): Fix thinko.
2641
2642 * ld.texinfo(enable-auto-import): Clarify the explanation.
2643
2644 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2645
2646 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2647 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2648 DLL_SUPPORT controlled code.
2649
2650 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2651
2652 * emultempl/pe.em(pe_data_import_dll): Make static.
2653 (pe_get_data_import_dll_name): New accessor function.
2654 * pe-dll.c(pe_create_import_fixup): call
2655 pe_get_data_import_dll_name() from pe.em, instead of
2656 directly accessing pe_data_import_dll variable from pe.em.
2657
2658 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2659
2660 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2661 (def_file_add_directive): Use ISSPACE instead of isspace.
2662 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2663 isdigit/isxdigit/isalpha/isalnum.
2664 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2665 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2666 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2667 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2668 isalnum.
2669 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2670 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2671 isupper/tolower.
2672 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2673 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2674 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2675 (ctor_prio): Use ISDIGIT instead of isdigit.
2676 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2677 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2678 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2679 isupper/tolower.
2680 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2681 (stricpy): Use TOLOWER instead of isupper/tolower.
2682 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2683 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2684 (lex_warn_invalid): Use ISPRINT instead of isprint.
2685 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2686 (main): For gettext, also set the LC_CTYPE locate facet.
2687 (add_keepsyms_file): Use ISSPACE instead of isspace.
2688 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2689 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2690 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2691 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2692 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2693 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2694 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2695 (quoteput): Use ISSPACE instead of isspace.
2696 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2697 instead of isalnum.
2698
2699 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2700
2701 * deffilep.y (def_stash_module): Constify "name" param.
2702
2703 * pe-dll.c: Replace CONST with const throughout.
2704 (quick_symbol): Constify "n1", "n2", "n3" params.
2705 (make_singleton_name_thunk): Constify "import" param. Make
2706 "buffer_len" a size_t.
2707 (make_import_fixup_entry): Constify "name", "fixup_name",
2708 "dll_symname" params.
2709 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2710 (pe_get32): Likewise.
2711 (pe_implied_import_dll): Likewise.
2712
2713 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2714 (sort_by_section_name): Likewise.
2715
2716 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2717 (make_import_fixup): Cast printf arg, rel->address to long rather
2718 than int.
2719 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2720
2721 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2722
2723 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2724 defines BufferSize. Increase buffer size by one.
2725
2726 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2727
2728 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2729
2730 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2731
2732 * configure.tgt: Add arm-openbsd target.
2733
2734 2001-09-12 H.J. Lu <hjl@gnu.org>
2735
2736 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2737 eelf64lppc.o to ...
2738 (ALL_64_EMULATIONS): Here.
2739 * Makefile.in: Regenerated.
2740
2741 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2742
2743 * emultempl/pe.em(make_import_fixup): change signature to
2744 take asection as well as arelec; we need this for proper
2745 error reporting. Only call pe_create_import_fixup() if
2746 there is no attempt to add a constant addend to the reloc;
2747 otherwise, report error condition.
2748 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2749 since final argument is a pointer to make_import_fixup().
2750 Change call to cb() to match make_import_fixup() signature.
2751 (make_import_fixup_mark): make buffer_len unsigned.
2752 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2753
2754 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2755
2756 * ld.texinfo: add verbose documentation for auto-import
2757 direct-addressing workaround, to compliment the terse
2758 error message.
2759
2760 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2761
2762 * scripttempl/v850.sc: Add gcc_except_table sections.
2763
2764 2001-09-11 Jeffrey A Law (law@cygnus.com)
2765
2766 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2767 * emulparams/h8300self.sh: Similarly.
2768
2769 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2770
2771 * ld.texinfo (Options, --stack): Correct default value for stack
2772 reserve.
2773
2774 2001-09-05 Tom Rix <trix@redhat.com>
2775
2776 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2777
2778 2001-09-03 Andreas Jaeger <aj@suse.de>
2779
2780 * emultempl/beos.em: Declare prototypes for comparions functions,
2781 adjust definitions.
2782
2783 2001-09-02 Andreas Jaeger <aj@suse.de>
2784
2785 * emultempl/aix.em: Add missing prototype.
2786 * emultempl/lnk960.em: Likewise.
2787 * emultempl/vanilla.em: Likewise.
2788 * emultempl/armcoff.em: Likewise.
2789 * emultempl/armelf_oabi.em: Likewise.
2790 * emultempl/beos.em: Likewise.
2791 * emultempl/gld960c.em: Likewise.
2792 * emultempl/gld960.em: Likewise.
2793
2794 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2795 for prototype declaration.
2796
2797 2001-08-31 Eric Christopher <echristo@redhat.com>
2798 Jason Eckhardt <jle@redhat.com>
2799
2800 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2801
2802 2001-08-31 Andreas Jaeger <aj@suse.de>
2803
2804 * emultempl/pe.em: Add missing prototypes.
2805 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2806 pe_find_data_imports.
2807 (pr_sym): Add unused attribute.
2808
2809 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2810
2811 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2812 default from coff to elf.
2813
2814 2001-08-29 Jeff Law <law@redhat.com>
2815
2816 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2817 ARCH specification.
2818 * emulparams/h8300self.sh: Similarly.
2819
2820 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2821
2822 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2823 eh8300self.o .
2824 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2825 * configure.tgt (h8300-*-elf*): New case.
2826 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2827 * emulparams/h8300self.sh: New file.
2828 * Makefile.in: Regenerated.
2829
2830 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2831
2832 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2833 with macro name.
2834
2835 2001-08-27 Linus Nordberg <linus@swox.com>
2836 Alan Modra <amodra@bigpond.net.au>
2837
2838 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2839 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2840 Run "make dep-am"
2841 * Makefile.in: Regenerate.
2842 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2843 entries to correct alphabetical position.
2844 * emulparams/elf64ppc.sh: New.
2845 * emulparams/elf64lppc.sh: New.
2846
2847 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2848
2849 * ldmain.c (main): Declare BSIZE as static.
2850
2851 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2852
2853 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2854 into .rel.dyn resp. .rela.dyn if combreloc.
2855 (get_script): If .x linker script is equal to .xn, only put it
2856 once into the binary.
2857 Add .xc and .xsc scripts.
2858 (parse_args): Handle -z combreloc and -z nocombreloc.
2859 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2860 For .xc and .xsc scripts put all .rel* or .rela* input sections
2861 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2862 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2863 is elf.
2864 Strip trailing whitespace from script.
2865 Generate .xc and .xsc scripts if requested.
2866 * ldmain.c (main): Initialize link_info.combreloc and
2867 link_info.spare_dynamic_tags.
2868 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2869 (ld_options): Add --spare-dynamic-tags option.
2870 (parse_args): Likewise.
2871 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2872 * ldint.texinfo: Document .xc and .xsc linker scripts.
2873 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2874
2875 2001-08-22 H.J. Lu <hjl@gnu.org>
2876
2877 * emulparams/elf32fr30.sh: Add a newline.
2878
2879 2001-08-21 Andreas Jaeger <aj@suse.de>
2880
2881 * deffilep.y: Add missing prototypes.
2882 * pe-dll.c: Likewise.
2883
2884 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2885
2886 * ldlang.c (insert_pad): Fix typos in last patch.
2887
2888 * ldlang.c: When traversing lang_statement_union_type lists,
2889 consistently use "header.next" rather than "next".
2890 * mpw-eppcmac.c: Likewise.
2891 * emultempl/beos.em: Likewise.
2892 * emultempl/hppaelf.em: Likewise.
2893 * emultempl/pe.em: Likewise.
2894 * ldlang.h (union lang_statement_union): Remove "next" field.
2895
2896 * ldlang.c (insert_pad): Use offsetof macro.
2897 (lang_size_sections): Always neuter padding statements.
2898 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2899
2900 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2901 passed to lang_size_sections.
2902 (pe_exe_fill_sections): Likewise.
2903 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2904 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2905
2906 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2907
2908 * emultempl/aix.em: Formatting fixes.
2909
2910 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2911
2912 * ldlang.c (insert_pad): Make use of an existing pad statement if
2913 available. Move code calculating alignment, adjusting section
2914 alignment power, and adjusting dot to ..
2915 (size_input_section): .. here. Remove unused relax param.
2916 (lang_size_sections): Change boolean `relax' param to boolean *.
2917 Adjust call to size_input_section. Make use of insert_pad to
2918 place pad after the assignment statement. If relaxing, zap
2919 padding statements.
2920 (reset_memory_regions): Reset output_bfd section sizes too.
2921 (relax_again): Move to..
2922 (lang_process): ..here. Adjust call to lang_size_sections, and
2923 remove duplicated code.
2924 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2925
2926 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2927
2928 * ld.texinfo: Document that fill values now use the four least
2929 significant bytes.
2930 * emulparams/elf32fr30.sh (NOP): Update.
2931 * emulparams/elf32mcore.sh: Likewise.
2932 * emulparams/elf64_s390.sh: Likewise.
2933 * emulparams/elf_i386.sh: Likewise.
2934 * emulparams/elf_i386_be.sh: Likewise.
2935 * emulparams/elf_i386_chaos.sh: Likewise.
2936 * emulparams/elf_i386_ldso.sh: Likewise.
2937 * emulparams/elf_s390.sh: Likewise.
2938 * emulparams/elf_x86_64.sh: Likewise.
2939 * emulparams/i386moss.sh: Likewise.
2940 * emulparams/i386nw.sh: Likewise.
2941 * emulparams/m68kelf.sh: Likewise.
2942 * scripttempl/elf.sc: Update NOP comment.
2943 * scripttempl/elfi370.sc: Likewise.
2944 * scripttempl/elfm68hc11.sc: Likewise.
2945 * scripttempl/elfm68hc12.sc: Likewise.
2946 * scripttempl/nw.sc: Likewise.
2947
2948 2001-08-15 Tom Rix <trix@redhat.com>
2949
2950 * ldgram.y (saved_script_handle): Initialize to NULL.
2951 * ldmain.c (main): Change check on saved_script_handle.
2952
2953 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2954
2955 * emultempl/elf32.em: Formatting fixes.
2956 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2957 looking at sec->owner.
2958 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2959 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2960 unused code, and reorganize orphan section placement code.
2961
2962 * ldlang.c (wild_doit): Rename to lang_add_section.
2963 * ldlang.h: Here too.
2964 * mpw-elfmips.c: And here.
2965 * emultempl/beos.em: And here.
2966 * emultempl/elf32.em: And here.
2967 * emultempl/hppaelf.em: And here.
2968 * emultempl/pe.em: And here.
2969
2970 2001-08-13 Richard Henderson <rth@redhat.com>
2971
2972 * emultempl/needrelax.em: New file.
2973 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2974 * Makefile.am (eelf64_ia64.c): Depend on it.
2975 * Makefile.in: Rebuild.
2976
2977 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2978
2979 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2980 output_section is set non-NULL.
2981
2982 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2983 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2984 needlessly create an output_section_statement. Treat a correctly
2985 named output_section_statement with NULL bfd_section as compatible.
2986
2987 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2988
2989 * emultempl/generic.em: Support EXTRA_EM_FILE.
2990 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2991 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2992 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2993 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2994 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2995 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2996 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2997 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2998 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2999 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3000
3001 2001-08-12 Richard Henderson <rth@redhat.com>
3002
3003 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3004 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3005 scripttempl/v850.sc: Keep .jcr data.
3006
3007 2001-08-12 H.J. Lu <hjl@gnu.org>
3008 Andrew Haley <aph@cambridge.redhat.com>
3009 Nick Clifton <nickc@redhat.com>
3010
3011 * ldgram.y (had_script): Change name to saved_script_handle.
3012 Change type to file handle.
3013 * ld.h (had_script): Rename and retype.
3014 * ldfile.c (ldfile_open_command_file): Save the file handle
3015 used in saved_script_handle.
3016 * lexsup.c (parse_args): Do not allow -c option to alter
3017 saved_script_handle.
3018 * ldmain.c (main): Print out the linker script used if
3019 --verbose is given. Check saved_script_handle to obtain the
3020 external linker script used, or if NULL, dump the builtin
3021 script.
3022 * ld.texinfo: Document that --verbose now dumps the linker
3023 script used, regardless of whether it was an internal or an
3024 external script.
3025
3026 2001-08-10 Andreas Jaeger <aj@suse.de>
3027
3028 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3029 to build warnings.
3030 * configure: Regenerate.
3031
3032 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3033
3034 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3035
3036 * scripttempl/elf.sc: Move non-text .dynamic section before
3037 .plt/.got/.sdata* group.
3038 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3039 (OTHER_SDATA_SECTIONS): Add.
3040 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3041 OTHER_GOT_SECTIONS.
3042 * emulparams/crislinux.sh: Likewise.
3043 * emulparams/elf32b4300.sh: Likewise.
3044 * emulparams/elf32bmip.sh: Likewise.
3045 * emulparams/elf32bmipn32.sh: Likewise.
3046 * emulparams/elf32bsmip.sh: Likewise.
3047 * emulparams/elf32btsmip.sh: Likewise.
3048 * emulparams/elf32ebmip.sh: Likewise.
3049 * emulparams/elf32elmip.sh: Likewise.
3050 * emulparams/elf32l4300.sh: Likewise.
3051 * emulparams/elf32lmip.sh: Likewise.
3052 * emulparams/elf32lsmip.sh: Likewise.
3053 * emulparams/elf32ltsmip.sh: Likewise.
3054 * emulparams/elf64bmip.sh: Likewise.
3055 * emulparams/elf64btsmip.sh: Likewise.
3056 * emulparams/elf64ltsmip.sh: Likewise.
3057
3058 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3059
3060 * genscripts.sh: Source the emulparams script before each output
3061 script is generated so that variables like `RELOCATING' may affect
3062 variables defined in the emulparams script.
3063
3064 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3065
3066 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3067 order.
3068
3069 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3070 ie. iterate over wild_statement.section_list.
3071 (gld${EMULATION_NAME}_place_orphan): Likewise.
3072
3073 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3074
3075 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3076 .fini[0-4] sections used by _exit
3077 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3078 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3079 * scripttempl/elfm68hc11.sc: Likewise.
3080
3081 2001-08-03 H.J. Lu <hjl@gnu.org>
3082
3083 * emultempl/beos.em (init): Add the missing initialization.
3084
3085 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3086
3087 * ld.texinfo (Input Section Basics): Clarify ordering of output
3088 sections.
3089 * ldlang.c (callback_t): Add wildcard_list param.
3090 (walk_wild_section): Remove "section" param. Rewrite for
3091 lang_wild_statement_type change. Remove unique_section_p test.
3092 (walk_wild_file): Remove "section" param.
3093 (walk_wild): Remove "section" and "file" params.
3094 (lang_gc_wild): Likewise.
3095 (wild): Likewise. Modify for lang_wild_statement_type change.
3096 (wild_sort): Likewise. Add "sec" param.
3097 (gc_section_callback): Likewise.
3098 (output_section_callback): Likewise. Do unique_section_p test.
3099 (map_input_to_output_sections): Modify call to wild.
3100 (lang_gc_sections_1): Likewise.
3101 (print_wild_statement): Modify for lang_wild_statement_type
3102 change.
3103 (lang_add_wild): Replace filename, filenames_sorted param with
3104 filespec. Replace section_name, sections_sorted,
3105 exclude_filename_list with section_list.
3106 * ldlang.h (lang_add_wild): Here too.
3107 (lang_wild_statement_type): Replace section_name, sections_sorted,
3108 and exclude_filename_list with section_list.
3109 * ldgram.y (current_file): Delete.
3110 (%union): Add wildcard_list.
3111 (file_NAME_list): Set type to wildcard_list. Build a linked list
3112 rather than calling lang_add_wild for each entry.
3113 (input_section_spec_no_keep): Call lang_add_wild here instead.
3114 * ld.h (struct wildcard_list): Declare.
3115 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3116
3117 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3118
3119 * ldmain.c (main): initialize link_info.pei386_auto_import
3120 * pe-dll.c: new tables for auto-export filtering
3121 (auto_export): change API, pass abfd for contextual filtering.
3122 Loop thru tables of excluded symbols instead of comparing
3123 "by hand".
3124
3125 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3126
3127 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3128 static variable current_sec (static struct sec *). Add
3129 forward declaration for add_bfd_to_link.
3130 (process_def_file): Don't export undefined symbols. Do not
3131 export symbols starting with "_imp__". Call auto_export()
3132 with new API.
3133 (pe_walk_relocs_of_symbol): New function.
3134 (generate_reloc): add optional extra debugging
3135 (pe_dll_generate_def_file): eliminate extraneous initial blank
3136 line in output
3137 (make_one): enlarge symtab to make room for __nm__ symbols
3138 (DATA auto-import support).
3139 (make_singleton_name_thunk): New function.
3140 (make_import_fixup_mark): New function.
3141 (make_import_fixup_entry): New function.
3142 (pe_create_import_fixup): New function.
3143 (add_bfd_to_link): Specify that 'name' argument is a CONST
3144 char *.
3145 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3146 declare new functions pe_walk_relocs_of_symbol and
3147 pe_create_import_fixup.
3148 * emultempl/pe.em: add new options --enable-auto-import,
3149 --disable-auto-import, and --enable-extra-pe-debug.
3150 (make_import_fixup): New function.
3151 (pe_find_data_imports): New function.
3152 (pr_sym): New function.
3153 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3154 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3155 CODE.
3156
3157 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3158
3159 * ld.texinfo: add additional documentation for
3160 --export-all-symbols. Document --out-implib,
3161 --enable-auto-image-base, --disable-auto-image-base,
3162 --dll-search-prefix, --enable-auto-import, and
3163 --disable-auto-import.
3164 * ldint.texinfo: Add detailed documentation on auto-import
3165 implementation.
3166
3167 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3168
3169 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3170 example.
3171
3172 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3173
3174 * Makefile.am: Update dependencies with "make dep-am".
3175 * Makefile.in: Regenerate
3176
3177 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3178
3179 * ldcref.c (check_section_sym_xref): New function.
3180 (check_nocrossrefs): Call it.
3181 (check_nocrossref): Interate over h->refs here instead of..
3182 (check_refs): ..here. Pass in the symbol name, section, and bfd
3183 rather than hash_entry pointers.
3184 (struct check_refs_info): Keep symbol name rather than hash entry.
3185 Remove "same".
3186 (check_reloc_refs): Tweak for above changes in check_refs_info.
3187 Only report references to section syms when symname is NULL to
3188 prevent duplicate messages for the same reloc.
3189
3190 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3191
3192 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3193 available. Do not print NULL trees.
3194 (exp_print_token): Print unknown tokens with values > 126 as
3195 decimal values not ASCII characters.
3196
3197 * ldlang.c (lang_leave_overlay): If a region is specified assign
3198 it to all sections inside the overlay unless they have been
3199 assigned to the own, non-default, memory region.
3200
3201 * README: Add header for consistency with other README files.
3202
3203 2001-07-14 H.J. Lu <hjl@gnu.org>
3204
3205 * emultempl/elf32.em (output_prev_sec_find): Never return
3206 bfd_abs_section_ptr, bfd_com_section_ptr nor
3207 bfd_und_section_ptr.
3208
3209 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3210
3211 * Makefile.am (em32relf.c): Change dependency from generic.em to
3212 elf32.em.
3213 * Makefile.in: Regenerate.
3214
3215 2001-07-14 matthew green <mrg@eterna.com.au>
3216
3217 * configure.tgt (i386-*-netbsdelf*): New target.
3218 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3219
3220 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3221
3222 * emultempl/elf32.em (output_prev_sec_find): New.
3223 (place_orphan): Use it.
3224
3225 2001-07-11 H.J. Lu <hjl@gnu.org>
3226
3227 * ldmain.c (main): Fix typos in the last change.
3228
3229 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3230
3231 * ldmain.c (main): Disallow -F and -f without -shared.
3232
3233 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3234
3235 * emultempl/pe.em (after_open): Check for the output_bfd not
3236 having any coff_data structure allocated to it.
3237
3238 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3239
3240 * emultempl/elf32.em: Do not assuming that contents of the buffer
3241 returned from basename function will remain unchanged accross other
3242 function calls.
3243
3244 2001-07-03 H.J. Lu <hjl@gnu.org>
3245
3246 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3247 2001-07-03. It creates dynamic entries even for static binaries.
3248
3249 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3250
3251 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3252 (DYNAMIC): Use it to reserve few dynamic entries for
3253 post-linking tools.
3254
3255 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3256
3257 * emulparams/hppa64linux.sh: New file.
3258 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3259 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3260 (ehppa64linux.c): Add rule to make it.
3261 Run "make dep-am".
3262 * Makefile.in: Regenerate.
3263
3264 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3265
3266 * ld.texinfo (Options, -r): Mention restrictions when using
3267 different object formats.
3268
3269 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3270
3271 * ldlang.c (lang_check): Emit fatal error if relocatable link
3272 between different object flavours with relocations in input.
3273
3274 2001-06-19 H.J. Lu <hjl@gnu.org>
3275
3276 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3277 (--version-script): Mention the language support.
3278
3279 2001-06-19 H.J. Lu <hjl@gnu.org>
3280
3281 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3282
3283 2001-06-18 H.J. Lu <hjl@gnu.org>
3284
3285 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3286 (diststuff): Add $(MANS).
3287 * Makefile.in: Regenerated.
3288
3289 * ld.1: Removed.
3290
3291 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3292
3293 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3294 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3295 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3296 * ld.h (args_type): Remove member export_dynamic. All users
3297 changed to use struct bfd_link_info member.
3298
3299 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3300 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3301 * Makefile.in: Regenerate.
3302
3303 2001-06-18 H.J. Lu <hjl@gnu.org>
3304
3305 * ldlang.c (init_os): Add the newline to the einfo call.
3306 (lang_check): Likewise.
3307 (lang_do_version_exports_section): Likewise.
3308
3309 2001-06-15 H.J. Lu <hjl@gnu.org>
3310
3311 * lexsup.c (parse_args); Save optind to report unrecognized
3312 option.
3313
3314 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3315
3316 * ldlang.c (lang_check): Emit fatal error if relocatable link
3317 between different object flavours.
3318
3319 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3320 Set new link_info member export_dynamic.
3321 * ldmain.c (main): Initialize new link_info member export_dynamic.
3322
3323 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3324
3325 * ldlang.c (walk_wild): Only call walk_wild_file if
3326 lookup_name returns something.
3327 (lookup_name): If load_symbols fails, return NULL.
3328 (load_symbols): Change to a boolean function.
3329 (open_input_bfds): If load_symbols fails then do not make the
3330 executable.
3331
3332 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3333
3334 * ldlang.c (record_bfd_errors): Remove.
3335
3336 * emultempl/aix.em: Fix copyright dates.
3337
3338 2001-06-07 Andreas Jaeger <aj@suse.de>
3339
3340 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3341 (TEXT_START_ADDR): Likewise.
3342
3343 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3344
3345 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3346
3347 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3348
3349 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3350
3351 2001-05-31 H.J. Lu <hjl@gnu.org>
3352
3353 * ldlang.c (open_input_bfds): Don't change the bfd error
3354 handler whilst loading symbols.
3355
3356 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3357
3358 * configure.tgt: Remove i370-mvs architecture, it is not currently
3359 supported.
3360
3361 2001-05-25 H.J. Lu <hjl@gnu.org>
3362
3363 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3364 like emulparams/aixppc.sh.
3365
3366 2001-05-25 H.J. Lu <hjl@gnu.org>
3367
3368 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3369 setting of output_filename after bfd_scan_arch.
3370 * emultempl/pe.em: Likewise.
3371
3372 2001-05-25 H.J. Lu <hjl@gnu.org>
3373
3374 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3375 like emulparams/aixppc.sh.
3376
3377 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3378 instead of ${srcdir}/emultempl/stringify.sed.
3379
3380 2001-05-25 Timothy Wall <twall@oculustech.com>
3381
3382 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3383 output.
3384
3385 2001-05-25 Alan Modra <amodra@one.net.au>
3386
3387 * configure.host: Replace linuxoldld with linux*oldld.
3388 * configure.tgt: Likewise.
3389
3390 2001-05-24 H.J. Lu <hjl@gnu.org>
3391
3392 * emultempl/stringify.sed: Removed again.
3393
3394 2001-05-24 H.J. Lu <hjl@gnu.org>
3395
3396 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3397 (gld${EMULATION_NAME}_before_parse): Initialize
3398 ldfile_output_architecture, ldfile_output_machine and
3399 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3400 * emultempl/beos.em: Likewise.
3401 * emultempl/elf32.em: Likewise.
3402 * emultempl/linux.em: Likewise.
3403 * emultempl/mipsecoff.em: Likewise.
3404 * emultempl/pe.em: Likewise.
3405 * emultempl/sunos.em: Likewise.
3406
3407 2001-05-24 Tom Rix <trix@redhat.com>
3408
3409 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3410 udate import file format.
3411 (change_symbol_mode) New, same
3412 (is_syscall) New, same
3413 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3414 * emulparams/aixppc64.sh : same
3415 * emulparams/aixrs6.sh : same
3416 * emulparams/ppcmacos.sh : same
3417 * emultempl/aix.em : use strtoull to parse options
3418 * Makefile.am : add eaixppc64 emulation for xcoff64
3419 * Makefile.in : same
3420 * configure.tgt : same
3421
3422 * scripttempl/aix.sc : default text section offset to 0x10000000
3423 default data section offset to 0x20000000
3424 add .sv3264 and .sv64 pseudo sections
3425 loader and debug sections use the currect section offset.
3426
3427 * emultempl/aix.em : Add xcoff64 support
3428 Add -binitfini support
3429 (gld${EMULATION_NAME}_before_parse) -binitfini
3430 (gld${EMULATION_NAME}_parse_args) same
3431 (gld${EMULATION_NAME}_before_allocation) format change for special
3432 sections
3433
3434 * emulparams/aixppc64.sh : New file for xcoff64 support
3435
3436 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3437
3438 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3439 variable to avoid non-portable shell construct.
3440
3441 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3442
3443 * ldmain.c (get_emulation): Add -mips5 command line argument.
3444
3445 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3446
3447 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3448 (ELF_INTERPRETER_NAME): Define it.
3449 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3450 it.
3451 * configure.tgt (targ_emul, targ_extra_emuls)
3452 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3453 as primary, elf_i386 as extra.
3454 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3455 (eelf_i386_ldso.c): New rule.
3456 * Makefile.in: Rebuilt.
3457
3458 2001-05-22 Nick Clifton <nickc@redhat.com>
3459
3460 * lexsup.c (ld_options): Allow -I to be an alias for
3461 --dynamic-linker. This is for Solaris compatability.
3462 * ld.texinfo: Document that -I can be used.
3463 * ld.1: Regenerate.
3464
3465 2001-05-16 Alan Modra <amodra@one.net.au>
3466
3467 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3468 whether an input section is the first one assigned to an output
3469 section.
3470 Assorted formatting fixes.
3471
3472 2001-05-14 DJ Delorie <dj@delorie.com>
3473
3474 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3475 * Makefile.in: Ditto.
3476
3477 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3478
3479 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3480 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3481 output sections.
3482 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3483
3484 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3485
3486 * ldlang.c (lang_process): Call bfd_merge_sections.
3487
3488 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3489
3490 * ldgram.y: Fix typo.
3491
3492 2001-05-03 H.J. Lu <hjl@gnu.org>
3493
3494 * emultempl/elf32.em: Include "libiberty.h".
3495 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3496 basename of the bfd filename.
3497 (gld${EMULATION_NAME}_stat_needed): Likewise.
3498 (gld${EMULATION_NAME}_try_needed): Likewise.
3499 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3500
3501 2001-05-02 H.J. Lu <hjl@gnu.org>
3502
3503 * emultempl/pe.em: Include <ctype.h>.
3504
3505 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3506
3507 * emulparams/elf32openrisc.sh: New file.
3508
3509 * Makefile.am: Add OpenRISC target.
3510 * Makefile.in: Regenerated.
3511
3512 * configure.tgt: Add openrisc-*-* mapping.
3513
3514 2001-05-02 Nick Clifton <nickc@redhat.com>
3515
3516 * emultempl/aix.em: Replace buystring with xstrdup.
3517 * emultempl/beos.em: Replace buystring with xstrdup.
3518
3519 2001-05-02 H.J. Lu <hjl@gnu.org>
3520
3521 * ldfile.c: Include "libiberty.h".
3522 * ldlex.l: Likewise.
3523
3524 * ldmisc.c (buystring): Removed.
3525 * ldmisc.h: Likewise.
3526
3527 * ldfile.c: Replace buystring with xstrdup.
3528 * ldlang.c: Likewise.
3529 * ldlex.l: Likewise.
3530 * ldmain.c: Likewise.
3531 * ldmisc.c: Likewise.
3532 * lexsup.c: Likewise.
3533 * mpw-eppcmac.c: Likewise.
3534
3535 2001-04-30 Andreas Jaeger <aj@suse.de>
3536
3537 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3538
3539 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3540
3541 * ldlang.c (load_symbols): Give emulation a chance
3542 to process unrecognized file before fatal error is
3543 reported, not after.
3544
3545 2001-04-27 Sean McNeil <sean@mcneil.com>
3546
3547 * configure.tgt: Add arm-vxworks target.
3548 * scripttempl/armcoff.sc: Support .text or .data as a section name
3549 prefix.
3550 Define _etext.
3551
3552 2001-04-13 J.T. Conklin <jtc@redback.com>
3553
3554 * ld.texinfo: Document --fatal-warnings.
3555 * ld.1: Regenerate.
3556
3557 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3558 warnings have been turned into errors.
3559 * lexsup.c (OPTION_WARN_FATAL): Define.
3560 (ld_options): Entry for --fatal-warnings.
3561 (parse_args): Handle OPTION_WARN_FATAL.
3562 * ld.h (ld_config_type): Add fatal_warnings field.
3563
3564 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3565
3566 * ldmain.c (main): Default to discard_sec_merge.
3567 * lexsup.c (OPTION_DISCARD_NONE): Define.
3568 (ld_options): Add --discard-none.
3569 (parse_args): Handle OPTION_DISCARD_NONE.
3570 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3571 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3572 all its input sections match.
3573
3574 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3575
3576 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3577 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3578 (eelf32ltsmip.c): New target.
3579 (eelf64btsmip.c): Likewise.
3580 (eelf64ltsmip.c): Likewise.
3581 * Makefile.in: Regenerated.
3582
3583 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3584 target.
3585 (mips*-*-linux-gnu*): Likewise.
3586
3587 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3588 MIPS taget.
3589 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3590 target.
3591 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3592 endian target.
3593
3594 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3595
3596 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3597 correct value of __Stext here.
3598 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3599 .startup section.
3600
3601 * emulparams/crislinux.sh: Remove FIXME.
3602
3603 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3604
3605 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3606 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3607
3608 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3609
3610 * configure.tgt (cris-*-*): Change default emulation to criself.
3611 (cris-*-*aout*): New rule.
3612
3613 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3614
3615 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3616 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3617
3618 2001-03-26 Andreas Jaeger <aj@suse.de>
3619
3620 * ld.texinfo (Overview): Fix syntax in texi code.
3621
3622 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3623
3624 * ld.texinfo: Put @c man indications to generate the ld man page.
3625 When generating man, define all the variables. Define SEEALSO
3626 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3627 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3628 (ld.1): Generate from ld.texinfo.
3629 * Makefile.in: Regenerate.
3630
3631 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3632
3633 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3634 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3635
3636 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3637
3638 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3639 is an absolute path look only for this file and not along the path.
3640
3641 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3642
3643 * emultempl/elf32.em (OPTION_GROUP): New macro.
3644 Add new option Bgroup to longopts.
3645 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3646 (gld*_list_options): Add -Bgroup and -z defs.
3647 * ld.1: Document -Bgroup and -z defs.
3648 * ld.texinfo: Likewise.
3649
3650 2001-03-07 Michael Meissner <meissner@redhat.com>
3651
3652 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3653 with sections created by -fdata-sections.
3654 (.dynbss,.bss): Ditto.
3655
3656 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3657
3658 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3659 after_allocation_default, not gld..._before_allocation.
3660
3661 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3662
3663 * configure.in (BFD_VERSION): New.
3664 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3665 * configure: Regenerate.
3666 * Makefile.am: Run "make dep-am"
3667 * Makefile.in: Regenerate.
3668
3669 2001-02-26 Timothy Wall <twall@cygnus.com>
3670
3671 * emulparams/elf64_aix.sh: Add additional read-only sections;
3672 uncomment lines which are now required.
3673
3674 2001-02-26 H.J. Lu <hjl@gnu.org>
3675
3676 * ldlang.c (open_input_bfds): Set the bfd error handler so
3677 that problems can be caught whilst loading symbols.
3678 (record_bfd_errors): New function: Report BFD errors and mark
3679 the executable output as being invalid.
3680
3681 2001-02-22 Timothy Wall <twall@cygnus.com>
3682
3683 * configure.host: Add configuration for ia64-*-aix*.
3684 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3685 Add dependencies for eelf64_aix.c.
3686 * Makefile.in: Regenerate.
3687 * configure.tgt: Add ia64-*-aix* mapping.
3688 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3689
3690 2001-02-20 H.J. Lu <hjl@gnu.org>
3691
3692 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3693 false if we found the file.
3694
3695 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3696
3697 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3698 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3699
3700 2001-02-18 lars brinkhoff <lars@nocrew.org>
3701
3702 * Makefile.am: Add PDP-11 target.
3703 * configure.tgt: Likewise.
3704 * emulparams/pdp11.sh: New file.
3705
3706 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3707
3708 * configure.host: Add a generic FreeBSD configuration entry such that
3709 all [modern] FreeBSD systems on all platforms will look the same.
3710
3711 2001-02-14 H.J. Lu <hjl@gnu.org>
3712
3713 * configure.tgt: Remove mention of earmelf_linux26.
3714
3715 2001-02-13 Richard Henderson <rth@redhat.com>
3716
3717 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3718
3719 2001-02-13 H.J. Lu <hjl@gnu.org>
3720
3721 * ldexp.h (node_type): Add etree_provided.
3722 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3723 type to etree_provided if defined by PROVIDE. Allow updating
3724 for etree_provided.
3725 (exp_print_tree): Handle etree_provided.
3726 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3727 etree_provided.
3728
3729 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3730
3731 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3732 .IA_64.unwind.* pattern to unwind table section and
3733 .IA_64.unwind_info* pattern to unwind info section.
3734
3735 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3736
3737 * Makefile.am: Add linux target for S/390.
3738 * Makefile.in: Likewise.
3739 * configure.host: Likewise.
3740 * configure.tgt: Likewise.
3741 * emulparams/elf64_s390.sh: New file.
3742 * emulparams/elf_s390.sh: New file.
3743
3744 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3745
3746 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3747 targ_extra_libpath.
3748 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3749
3750 2001-02-06 Philip Blundell <philb@gnu.org>
3751
3752 * Makefile.am: Remove mention of earmelf_linux26.
3753 * Makefile.in: Regenerate.
3754
3755 2001-02-04 Philip Blundell <philb@gnu.org>
3756
3757 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3758 * emulparams/armelf_linux26.sh: Delete.
3759 * configure.tgt: Remove mention of armelf_linux26 emulation.
3760
3761 2001-02-01 Nick Clifton <nickc@redhat.com>
3762
3763 * ld.1: Replace occurances of -oformat with --oformat.
3764
3765 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3766
3767 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3768 load_base is specified.
3769
3770 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3771
3772 * emultempl/elf32.em: Correct spelling in comments and listed
3773 options.
3774
3775 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3776
3777 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3778 default for the first section of a group of overlay sections.
3779
3780 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3781
3782 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3783 * Makefile.in: Regenerate.
3784 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3785 Check for null tool_dir.
3786
3787 2001-01-16 Jim Wilson <wilson@redhat.com>
3788
3789 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3790 and IA_64.unwind.info.
3791
3792 2001-01-16 H.J. Lu <hjl@gnu.org>
3793
3794 * ldlang.c (lang_check): Merge the private data only if the
3795 input file has contents.
3796
3797 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3798
3799 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3800
3801 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3802 enabling search for libmilli. On a relocatable link, make .text
3803 sections unique.
3804 (LDEMUL_AFTER_PARSE): Define.
3805 (hppaelf_finish): Correct spelling of relocatable in comments.
3806
3807 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3808 rummage through the script for sections on the unique list.
3809 Correct length of strncmp for ".note".
3810 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3811
3812 * ldlang.c (unique_section_list): New var.
3813 (unique_section_p): New function.
3814 (walk_wild_section): Don't match sections on unique_section_list.
3815 (lang_add_unique): New function.
3816 Correct spelling of relocatable in comments.
3817
3818 * ldlang.h (struct unique_sections): Declare.
3819 (unique_section_list): Declare.
3820 (unique_section_p): Declare.
3821 (lang_add_unique): Declare.
3822
3823 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3824 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3825
3826 * ld.texinfo (--unique): Update.
3827
3828 2001-01-13 Nick Clifton <nickc@redhat.com>
3829
3830 * lexsup.c (parse_args): Remove spurious white space.
3831
3832 2001-01-12 Nick Clifton <nickc@redhat.com>
3833
3834 * lexsup.c (parse_args): Update copyright date.
3835
3836 2001-01-12 Philip Blundell <pb@futuretv.com>
3837
3838 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3839
3840 2001-01-10 Kazu Hirata <kazu@hxi.com>
3841
3842 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3843 * scripttempl/h8300h.sc: Fix formatting.
3844 * scripttempl/h8300s.sc: Likewise.
3845 * scripttempl/h8500.sc: Likewise.
3846 * scripttempl/h8500b.sc: Likewise.
3847 * scripttempl/h8500c.sc: Likewise.
3848 * scripttempl/h8500m.sc: Likewise.
3849 * scripttempl/h8500s.sc: Likewise.
3850
3851 2000-01-07 David O'Brien <obrien@BSDi.com>
3852
3853 * emultempl/elf32.em: Only perform Linux ld hints processing when
3854 targeting Linux.
3855
3856 2001-01-07 Philip Blundell <philb@gnu.org>
3857
3858 * ld.texinfo (Bug Reporting): Update email address for reports.
3859
3860 2000-12-31 Nick Clifton <nickc@redhat.com>
3861
3862 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3863 options by checking for a return value of '?' not -1.
3864
3865 2000-12-28 Nick Clifton <nickc@redhat.com>
3866
3867 * lexsup.c (struct ld_option): Add new enum value:
3868 EXACTLY_TWO_DASHES.
3869 (ld_options[]): Change -omagic, -output and -oformat options
3870 to be EXACTLY_TWO_DASHES.
3871 (OUTPUT_COUNT): Use ARRAY_SIZE.
3872 (parse_args): Change parameter 'argc' to unsigned.
3873 Place EXACTLY_TWO_DASHES options into new really_longopts
3874 array.
3875 If getopt_long_only fails, try calling getopt_long using the
3876 really_longopts array.
3877 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3878 TWO_DASHES options.
3879
3880 * ldlex.h: Fix prototype of parse_args.
3881
3882 * ld.texinfo: Document that long options starting with 'o'
3883 must be preceeded by two dashes. Change example of a single
3884 dashed long option from -oformat to -trace-symbol.
3885
3886 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3887
3888 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3889 (longopts[]): New --no-default-excludes option.
3890 (gld_${EMULATION_NAME}_list_options): Document.
3891 (gld_${EMULATION_NAME}_parse_args): Handle.
3892
3893 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3894
3895 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3896 whitespace, it breaks the K&R C preprocessor.
3897
3898 2000-12-11 DJ Delorie <dj@redhat.com>
3899
3900 * ld.texinfo: Add notes about --whole-archive and gcc.
3901
3902 2000-11-18 Fred Fish <fnf@be.com>
3903
3904 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3905 (ld_options): Entry for --allow-shlib-undefined.
3906 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3907 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3908 to false.
3909 * ld.texinfo: Document new command line switch.
3910
3911 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3912
3913 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3914 .fixup is actually read/write.
3915 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3916 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3917 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3918
3919 2000-12-11 Jan Hubicka <jh@suse.cz>
3920
3921 * NEWS: Add note about x86_64 architecture.
3922
3923 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3924
3925 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3926 Set DWARF2 sections to a VMA of zero.
3927
3928 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3929
3930 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3931 New targets.
3932 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3933 (sparc*-*-rtems*): Switched from a.out to ELF.
3934
3935 2000-11-30 Jan Hubicka <jh@suse.cz>
3936
3937 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3938 (eelf_x86_64.c): New.
3939 * Makefile.in: Regenerate.
3940 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3941 * emulparams/elf_x86_64.sh: New.
3942
3943 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3944
3945 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3946 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3947
3948 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3949 merging non-a.out sections into CONSTRUCTING.
3950
3951 2000-11-28 Nick Clifton <nickc@redhat.com>
3952
3953 * ld.1 (COPYING): Mention that the GNU Free Documentation
3954 License is present in the sources, but not the output, and
3955 also available from the GNU website.
3956 (GNU Free Documentation License): Comment out this section.
3957
3958 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3959
3960 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3961 does not use them.
3962
3963 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3964
3965 * ld.1: Remove old date so it does not give the impression the manpage
3966 is way out of date.
3967
3968 2000-11-24 Nick Clifton <nickc@redhat.com>
3969
3970 * configure.tgt (xscale-coff): Add target.
3971 (xscale-elf): Add target.
3972
3973 2000-11-24 Fred Fish <fnf@be.com>
3974
3975 * ldmain.c (main): Remove redundant init of config.make_executable
3976 to true.
3977
3978 2000-11-15 Richard Henderson <rth@redhat.com>
3979
3980 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3981
3982 2000-11-14 Kazu Hirata <kazu@hxi.com>
3983
3984 * scripttempl/h8300.sc: Fix formatting.
3985 * scripttempl/h8300h.sc: Likewise.
3986 * scripttempl/h8300s.sc: Likewise.
3987
3988 2000-11-14 Denis Chertykov <denisc@overta.ru>
3989
3990 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3991
3992 2000-11-09 Philip Blundell <pb@futuretv.com>
3993
3994 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3995 around orphan sections whose names can be represented in C.
3996
3997 2000-11-07 Jim Wilson <wilson@redhat.com>
3998
3999 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4000 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4001
4002 2000-11-06 Nick Clifton <nickc@redhat.com>
4003
4004 * ld.texinfo: Add GNU Free Documentation License.
4005 * ldint.texinfo: Add GNU Free Documentation License.
4006 * ld.1: Add GNU Free Documentation License.
4007
4008 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4009
4010 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4011 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4012
4013 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4014 Move 2000-11-02 Makefile.in changes to this file.
4015 * Makefile.in: Regenerate.
4016
4017 2000-11-03 Nick Clifton <nickc@redhat.com>
4018
4019 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4020 constructors and destructors.
4021 * scripttempl/h8300h.sc: Ditto.
4022 * scripttempl/h8300s.sc: Ditto.
4023 * scripttempl/h8500.sc: Ditto.
4024 * scripttempl/h8500b.sc: Ditto.
4025 * scripttempl/h8500c.sc: Ditto.
4026 * scripttempl/h8500m.sc: Ditto.
4027 * scripttempl/h8500s.sc: Ditto.
4028 * scripttempl/v850.sc: Ditto.
4029 * scripttempl/w65.sc: Ditto.
4030 * scripttempl/z8000.sc: Ditto.
4031
4032 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4033
4034 * Makefile.in (e_i386_chaos.c): New rule.
4035 (ALL_EMULATIONS): Added e_i386_chaos.o.
4036 * emulparams/elf_i386_chaos.sh: New file.
4037 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4038
4039 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4040
4041 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4042 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4043 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4044 library path suffix.
4045 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4046
4047 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4048
4049 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4050 for consecutive sections.
4051
4052 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4053
4054 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4055 options.
4056 * ld.texinfo: Added notes about this new option.
4057
4058 2000-10-16 Nick Clifton <nickc@redhat.com>
4059
4060 * emultempl/pe.em (_after_open): Add tests of return values from
4061 bfd functions. Emit appropriate error messages if necessary.
4062
4063 2000-10-13 Nick Clifton <nickc@redhat.com>
4064
4065 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4066 local variables - they are not used, but leave in the call to
4067 bfd_canonicalize_symtab.
4068 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4069 pe_dll_search_prefix.
4070
4071 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4072
4073 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4074 (longopts): New --dll-search-prefix option.
4075 (gld_${EMULATION_NAME}_list_options): Document.
4076 (gld_${EMULATION_NAME}_parse_args): Handle.
4077 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4078 dynamically, search for a dll named '<prefix><basename>.dll'
4079 in preference to 'lib<basename>.dll' if --dll-search-prefix
4080 is specified.
4081
4082 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4083
4084 * ldlang.c (section_already_linked): Set kept_section instead of
4085 sec->comdat->sec.
4086
4087 2000-10-10 Kazu Hirata <kazu@hxi.com>
4088
4089 * deffile.h: Fix formatting.
4090 * lexsup.c: Likewise.
4091 * mri.c: Likewise.
4092
4093 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4094
4095 * pe-dll.c (make_one): Do not generate code thunk for DATA
4096 exports.
4097 (process_def_file): deduce DATA flag for auto-export sumbols.
4098
4099 2000-10-09 Kazu Hirata <kazu@hxi.com>
4100
4101 * ld.h: Fix formatting.
4102 * ldcref.c: Likewise.
4103 * ldctor.h: Likewise.
4104 * ldemul.c: Likewise.
4105 * ldemul.h: Likewise.
4106 * ldexp.c: Likewise.
4107 * ldexp.h: Likewise.
4108 * ldfile.c: Likewise.
4109 * ldfile.h: Likewise.
4110 * ldlang.c: Likewise.
4111 * ldlang.h: Likewise.
4112 * ldmain.c: Likewise.
4113 * pe-dll.c: Likewise.
4114
4115 * pe-dll.c: Revert some formatting fixes.
4116
4117 2000-10-08 Kazu Hirata <kazu@hxi.com>
4118
4119 * pe-dll.c: Fix formatting.
4120
4121 2000-10-05 Kazu Hirata <kazu@hxi.com>
4122
4123 * ldlang.c: Fix formatting.
4124
4125 2000-10-03 DJ Delorie <dj@redhat.com>
4126
4127 * pe-dll.c (fill_edata): initialize entire block
4128 (make_one): fill in correct section.
4129
4130 2000-10-03 Kazu Hirata <kazu@hxi.com>
4131
4132 * ldexp.c: Fix formatting.
4133
4134 2000-10-02 DJ Delorie <dj@redhat.com>
4135
4136 * emultempl/pe.em (gld_*_after_open): detect case where there two
4137 import libraries for same dll; rename one to ensure proper link
4138 order.
4139
4140 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4141 typo
4142 (generate_edata): fix typo
4143
4144 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4145
4146 * scripttempl/crisaout.sc (ENTRY): Now __start.
4147 (.text): Add default setting for __start.
4148 Remove CONSTRUCTORS handling.
4149 (/DISCARD/): Add .gnu.warning.*.
4150 * emulparams/crislinux.sh (ENTRY): Now __start.
4151 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4152 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4153 (ENTRY): Now __start.
4154 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4155 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4156
4157 2000-09-29 Kazu Hirata <kazu@hxi.com>
4158
4159 * deffile.h: Fix formatting.
4160 * ld.h: Likewise.
4161 * ldcref.c: Likewise.
4162 * ldctor.c: Likewise.
4163 * ldctor.h: Likewise.
4164 * ldemul.c: Likewise.
4165 * ldemul.h: Likewise.
4166 * ldexp.c: Likewise.
4167 * ldexp.h: Likewise.
4168 * ldfile.c: Likewise.
4169 * ldfile.h: Likewise.
4170 * ldlang.c: Likewise.
4171 * ldlang.h: Likewise.
4172 * lexsup.c: Likewise.
4173 * mri.c: Likewise.
4174 * pe-dll.c: Likewise.
4175
4176 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4177
4178 * pe-dll.c (process_def_file): Uninitialized data wasn't
4179 exported with --export-all-symbols switch.
4180
4181 2000-09-28 DJ Delorie <dj@redhat.com>
4182
4183 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4184 noname work properly.
4185
4186 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4187
4188 * ld.texinfo (HPPA ELF32): New section.
4189
4190 * emultempl/hppaelf.em (group_size): New.
4191 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4192 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4193 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4194 options to prevent abbreviations matching.
4195 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4196 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4197
4198 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4199
4200 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4201 on the m68*-*-elf target. Make it support COFF input objects.
4202
4203 2000-09-21 Kazu Hirata <kazu@hxi.com>
4204
4205 * ldmain.c: Fix formatting.
4206 * ldmisc.c: Likewise.
4207 * ldver.c: Likewise.
4208 * ldwrite.c: Likewise.
4209
4210 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4211
4212 * ldwrite.c (clone_section): Silence gcc warnings.
4213
4214 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4215
4216 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4217 out of memory failure.
4218
4219 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4220 (clone_section): Handle out of memory failures. Rename var to
4221 avoid c++ reserved word.
4222
4223 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4224
4225 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4226 stub_name param to stub_sec_name.
4227 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4228
4229 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4230
4231 * emultempl/m68kelf.em: New file.
4232 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4233 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4234 * Makefile.in: Regenerate.
4235
4236 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4237
4238 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4239 only as needed.
4240
4241 2000-09-13 Nick Clifton <nickc@redhat.com>
4242
4243 * ldmain.c (multiple_definition): Disable relaxation if
4244 multiple symbol definitions are encountered - otherwise the
4245 linker could abort with an assertion failure.
4246
4247 2000-09-10 Nick Clifton <nickc@redhat.com>
4248
4249 * mri.c: Fix formatting.
4250
4251 2000-09-07 H.J. Lu <hjl@gnu.org>
4252
4253 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4254 * configure: Rebuild.
4255
4256 2000-09-07 H.J. Lu <hjl@gnu.org>
4257
4258 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4259 * Makefile.in: Rebuild.
4260
4261 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4262
4263 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4264 broken list handling. Create __start_SECNAME and __stop_SECNAME
4265 when no place-holder. Add some comments. Test both SEC_CODE and
4266 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4267 Handle case where no output section statement created.
4268
4269 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4270
4271 * configure.tgt (sh-*-linux*): Added.
4272 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4273 * Makefile.in: Rebuilt.
4274 * emulparams/shelf_linux.sh: New file.
4275 * emulparams/shlelf_linux.sh: New file.
4276
4277 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4278
4279 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4280 try shuffling sections when the orphan happens to be the place
4281 holder. Keep count of unique section names generated so we speed
4282 the search for a new name.
4283
4284 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4285
4286 * configure: Rebuilt with new libtool.m4.
4287
4288 2000-09-05 Nick Clifton <nickc@redhat.com>
4289
4290 * Makefile.in: Regenerate.
4291 * aclocal.m4: Regenerate.
4292 * configure: Regenerate.
4293 * config.in: Regenerate.
4294 * po/ld.pot: Regenerate.
4295
4296 * ldint.texinfo: Remove CVS revision marker - it foils local
4297 comparisons.
4298
4299 * emultempl/ticoff.em: Remove extraneous comma.
4300
4301 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4302
4303 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4304 to stub section flags.
4305 (hppa_for_each_input_file_wrapper): New.
4306 (hppa_lang_for_each_input_file): New.
4307 (lang_for_each_input_file): Define to call above.
4308 (multi_subspace): New.
4309 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4310 (PARSE_AND_LIST_PROLOGUE): Define.
4311 (PARSE_AND_LIST_LONGOPTS): Define.
4312 (PARSE_AND_LIST_OPTIONS): Define.
4313 (PARSE_AND_LIST_ARGS_CASES): Define.
4314 (hppaelf_finish): Call elf32_hppa_set_gp.
4315 (hppaelf_set_output_arch): Remove.
4316 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4317
4318 * emulparams/hppalinux.sh (ELFSIZE): Define.
4319 (MACHINE): Define.
4320 (OTHER_READONLY_SECTIONS): Define.
4321 (DATA_PLT): Define.
4322 (GENERATE_SHLIB_SCRIPT): Define.
4323
4324 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4325 to const throughout. Change `void *' to `PTR' throughout.
4326 (lang_memory_default): Function is local to file, add `static'.
4327
4328 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4329 (ehppalinux.c): Likewise.
4330 (earmelf.c): Likewise.
4331 (earmelf_linux.c): Likewise.
4332 (earmelf_linux26.c): Likewise.
4333 * Makefile.in: Regenerate.
4334
4335 * ld.h (ld_config_type): Add unique_orphan_sections.
4336 * lexsup.c (OPTION_UNIQUE): Define.
4337 (ld_options): Add "--unique".
4338 (parse_args): Handle it.
4339 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4340 search for an existing output section if unique_orphan_sections is
4341 set. Make use of bfd_get_unique_section_name rather than
4342 duplicating code here.
4343 * ld.texinfo: Describe --unique.
4344
4345 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4346 optional arg to split-by-file.
4347 (parse_args): Handle them.
4348 * ld.texinfo: Update description of these options.
4349 * ldwrite.c (clone_section): Pass in the section name. Replace
4350 local code with bfd_get_unique_section_name.
4351 (split_sections): Tidy code and comments. Use a list traversal
4352 more appropriate to the list construction. Handle cooked section
4353 sizes. Split when split_by_reloc reached rather than exceeded.
4354 Track section size and split when split_by_file reached. Fix
4355 link_order_tail (even though it's not used).
4356 (ldwrite): Modify condition for calling split_sections to suit
4357 changed split_by_reloc and split_by_file.
4358 * ldmain.c (main): Init config.split_by_reloc and
4359 config.split_by_file to -1.
4360 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4361 Change split_by_file to bfd_size_type.
4362
4363 2000-09-02 Nick Clifton <nickc@redhat.com>
4364
4365 * configure.in: Increase version number to 2.10.91.
4366 * NEWS: Mention new ability to support removal of duplicate DWARF2
4367 debug information.
4368 * configure: Regenerate.
4369 * aclocal.m4: Regenerate.
4370 * config.in: Regenerate.
4371
4372 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4373
4374 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4375 sections.
4376 * scripttempl/elf32avr.sc: Ditto.
4377 * scripttempl/elfd10v.sc: Ditto.
4378 * scripttempl/elfd30v.sc: Ditto.
4379 * scripttempl/elfi370.sc: Ditto.
4380 * scripttempl/elfm68hc11.sc: Ditto.
4381 * scripttempl/elfm68hc12.sc: Ditto.
4382 * scripttempl/elfi386beos.sc: Ditto.
4383 * scripttempl/v850.sc: Ditto.
4384
4385 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4386
4387 * acinclude.m4: Include libtool and gettext macros from the
4388 top level.
4389 * aclocal.m4, configure: Rebuilt.
4390
4391 2000-08-25 Nick Clifton <nickc@redhat.com>
4392
4393 * ldlang.c (open_output): When choosing the target for a
4394 particular endianness, do nothing if the target is not
4395 supported.
4396
4397 2000-08-25 H.J. Lu <hjl@gnu.org>
4398
4399 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4400 check -rpath nor LD_RUN_PATH for cross link.
4401 * ld.texinfo: Document the change.
4402
4403 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4404
4405 * NEWS: Mention support for CRIS.
4406
4407 2000-08-23 H.J. Lu <hjl@gnu.org>
4408
4409 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4410 the current runpath list from bfd_elf_get_runpath_list ()
4411 before search.
4412
4413 2000-08-22 H.J. Lu <hjl@gnu.org>
4414
4415 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4416 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4417 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4418 trace_file_tries is non-zero.
4419 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4420 if trace_file_tries is non-zero.
4421
4422 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4423 * NEWS: Mention it.
4424
4425 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4426
4427 * NEWS: Mention i860 support.
4428
4429 2000-08-14 Andreas Schwab <schwab@suse.de>
4430
4431 * scripttempl/elf.sc: Fix last change to use correct comment
4432 syntax.
4433
4434 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4435
4436 * scripttempl/elf.sc: Add a comment giving the correspondence
4437 between sections, per-datum sections, and linkonce sections. Make
4438 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4439 .sbss2.
4440
4441 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4442
4443 * emulparams/elf32_i860.sh: New file.
4444 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4445 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4446 (eelf32_i860.c): New rule.
4447 * Makefile.in: Regenerate.
4448
4449 2000-08-10 Nick Clifton <nickc@cygnus.com>
4450
4451 * emulparams/mipspe.sh (ENTRY): Add definition.
4452
4453 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4454
4455 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4456 in error message.
4457
4458 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4459
4460 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4461 the final size of .bss section.
4462 * scripttempl/elfm68hc12.sc: Likewise.
4463
4464 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4465
4466 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4467 gld${EMULATION_NAME}_parse_args for consistency. Combine
4468 lastoptind and prevoptind vars, and keep track of last optind.
4469 (gld_${EMULATION_NAME}_list_options): Rename to
4470 gld${EMULATION_NAME}_list_options.
4471
4472 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4473
4474 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4475 (i586-sco-sysv5uw7.1.0).
4476
4477 2000-07-27 H.J. Lu <hjl@gnu.org>
4478
4479 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4480 (PARSE_AND_LIST_PROLOGUE): New.
4481 (PARSE_AND_LIST_LONGOPTS): Likewise.
4482 (PARSE_AND_LIST_OPTIONS): Likewise.
4483 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4484 (PARSE_AND_LIST_EPILOGUE): Likewise.
4485
4486 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4487
4488 * emultempl/armelf.em: Elide functions common to elf32.em,
4489 ie. most of the file.
4490 (arm_elf_after_open): New. Do arm specific things then call
4491 gld${EMULATION_NAME}_after_open.
4492 (arm_elf_before_allocation): New. Call
4493 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4494 (PARSE_AND_LIST_PROLOGUE): Define.
4495 (PARSE_AND_LIST_SHORTOPTS): Define.
4496 (PARSE_AND_LIST_LONGOPTS): Define.
4497 (PARSE_AND_LIST_OPTIONS): Define.
4498 (PARSE_AND_LIST_ARGS_CASES): Define.
4499 (LDEMUL_AFTER_OPEN): Define.
4500 (LDEMUL_BEFORE_ALLOCATION): Define.
4501 (LDEMUL_BEFORE_PARSE): Define.
4502 (LDEMUL_FINISH): Define.
4503
4504 * emultempl/hppaelf.em: Similarly zap most of this file.
4505 (hppaelf_add_stub_section): Prototype.
4506 (hppaelf_layaout_sections_again): Prototype.
4507 (hook_in_stub): Prototype.
4508 (LDEMUL_SET_OUTPUT_ARCH): Define.
4509 (LDEMUL_FINISH): Define.
4510 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4511
4512 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4513 (EXTRA_EM_FILE): New.
4514 * emulparams/armelf_linux.sh: Likewise.
4515 * emulparams/armelf_linux26.sh: Likewise.
4516 * emulparams/hppalinux.sh: Likewise.
4517 * emulparams/hppaelf.sh: Likewise.
4518 (NOP): Define.
4519
4520 * emultempl/elf32.em: Fix formatting.
4521 (EXTRA_EM_FILE): Source it.
4522 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4523 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4524 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4525 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4526 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4527 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4528 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4529 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4530 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4531 allow functions in this file to be overridden.
4532 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4533
4534 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4535
4536 * emultempl/elf32.em: Reorganize file.
4537
4538 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4539
4540 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4541 specific option to fit 64-bit executable in the lower
4542 31-bit address range. This is done by changing start
4543 address of .interp (the very first section of executable)
4544 and then setting EF_ALPHA_32BIT elf header flag.
4545
4546 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4547
4548 * emultempl/m68kcoff.em: New file.
4549 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4550 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4551 generic.em.
4552 * Makefile.in: Regenerate.
4553
4554 2000-07-20 H.J. Lu <hjl@gnu.org>
4555
4556 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4557 and "disable-new-dtags" to stop getopt from treating -d/-e as
4558 abbreviations for these options.
4559
4560 2000-07-20 H.J. Lu <hjl@gnu.org>
4561
4562 * ld.texinfo: Add documentation for --disable-new-dtags and
4563 --enable-new-dtags.
4564
4565 * ldmain.c (main): Initialize link_info.new_dtags to false.
4566
4567 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4568 --disable-new-dtags and --enable-new-dtags.
4569 (gld_${EMULATION_NAME}_list_options): Likewise.
4570
4571 2000-07-05 Kenneth Block <krblock@computer.org>
4572
4573 * lexsup.c: Add optional style to demangle switch
4574 * ld.texinfo: Document optional style to demangle switch.
4575
4576 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4577
4578 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4579 ecrislinux.o.
4580 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4581 Regenerate dependencies.
4582 * Makefile.in: Rebuild.
4583 * configure.tgt (cris-*-*): New target.
4584 * emulparams/crisaout.sh, emulparams/criself.sh,
4585 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4586 * po/POTFILES.in, po/ld.pot: Regenerate.
4587
4588 2000-07-20 H.J. Lu <hjl@gnu.org>
4589
4590 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4591 Print out ignored -z options.
4592
4593 2000-07-19 H.J. Lu <hjl@gnu.org>
4594
4595 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4596 (PARSE_AND_LIST_PROLOGUE): New.
4597 (PARSE_AND_LIST_LONGOPTS): Likewise.
4598 (PARSE_AND_LIST_OPTIONS): Likewise.
4599 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4600
4601 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4602
4603 * lexsup.c (ld_options): Comment out 'z'.
4604 (parse_args): Likewise.
4605
4606 * emultempl/elf32.em: Include "elf/common.h".
4607 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4608 options.
4609 (gld_${EMULATION_NAME}_list_options): Likewise.
4610
4611 * ld.texinfo: Add documentation for the recognized -z options.
4612
4613 2000-07-19 H.J. Lu <hjl@gnu.org>
4614
4615 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4616 bfd_elf_set_dt_needed_soname ().
4617
4618 2000-07-18 DJ Delorie <dj@cygnus.com>
4619
4620 * pe-dll.c (pe_dll_id_target): check object target name also
4621
4622 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4623
4624 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4625 ${INIT_END} if relocating.
4626 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4627
4628 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4629
4630 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4631 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4632 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4633 errors introduced by the old dynamic lib search order.
4634
4635 2000-07-17 DJ Delorie <dj@cygnus.com>
4636
4637 * pe-dll.c (process_def_file): auto-export data items also
4638 (pe_process_import_defs): also see if _imp_ form needed
4639
4640 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4641
4642 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4643 for dll import libraries
4644
4645 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4646
4647 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4648 gcc 2.95.2 and later.
4649
4650 2000-07-11 Kazu Hirata <kazu@hxi.com>
4651
4652 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4653 message.
4654
4655 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4656
4657 * ldemul.h (struct lang_input_statement_struct): Remove forward
4658 declaration.
4659 (struct search_dirs): Likewise.
4660 * ldfile.h (struct lang_input_statement_struct): Likewise.
4661 Protect file from multiple inclusion.
4662 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4663 declaration from macro to file scope.
4664
4665 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4666 * ldgram.y: Likewise here.
4667 * ldlang.c: And here.
4668 * ldmain.c: And here.
4669 * mpw-elfmips.c: And here.
4670 * mpw-eppcmac.c: And here.
4671 * emultempl/aix.em: And here.
4672 * emultempl/armcoff.em: And here.
4673 * emultempl/armelf.em: And here.
4674 * emultempl/armelf_oabi.em: And here.
4675 * emultempl/beos.em: And here.
4676 * emultempl/elf32.em: And here.
4677 * emultempl/hppaelf.em: And here.
4678 * emultempl/linux.em: And here.
4679 * emultempl/lnk960.em: And here.
4680 * emultempl/pe.em: And here.
4681 * emultempl/sunos.em: And here.
4682 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4683 * mpw-idtmips.c: Ditto.
4684 * emultempl/generic.em: Ditto.
4685 * emultempl/gld960.em: Ditto.
4686 * emultempl/gld960c.em: Ditto.
4687 * emultempl/mipsecoff.em: Ditto.
4688 * emultempl/ticoff.em: Ditto.
4689 * emultempl/vanilla.em: Ditto.
4690
4691 * pe-dll.c: Include ldfile.h
4692 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4693
4694 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4695 arguments to bfd_elf32_size_dynamic_sections call.
4696 (gldelf32ebmip_place_orphan): Add missing arguments to
4697 lang_leave_output_section_statement call.
4698
4699 2000-07-10 H.J. Lu <hjl@gnu.org>
4700
4701 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4702 DLL_SUPPORT.
4703 (strhash): Likewise.
4704 (compute_dll_image_base): Likewise.
4705 (pe_undef_found_sym): Likewise.
4706 (pe_undef_cdecl_match): Likewise.
4707 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4708 argument "arch" with ATTRIBUTE_UNUSED.
4709
4710 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4711
4712 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4713
4714 From Ryan Bradetich <rbradetich@uswest.net>
4715 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4716
4717 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4718
4719 Changes to create multiple linker stubs, positioned immediately
4720 before the section where they are required.
4721 * emultempl/hppaelf.em: Include elf32-hppa.h.
4722 (stub_sec, file_chain): Delete.
4723 (hppaelf_create_output_section_statements): Don't make a stub
4724 section here.
4725 (hook_stub_info): New struct.
4726 (hook_in_stub): New function.
4727 (hppaelf_add_stub_section): New function.
4728 (hppaelf_finish): Do nothing for relocateable links. Modify the
4729 call to elf32_hppa_size_stubs. Move code for updating section
4730 layout from here...
4731 (hppaelf_layaout_sections_again): ..to here, a new function.
4732
4733 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4734 broken list handling. Pass in a pointer to the list.
4735 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4736 for above changes.
4737 (hppaelf_before_parse): Prototype.
4738 (hppaelf_set_output_arch): Prototype.
4739 (hppaelf_create_output_section_statements): Prototype.
4740 (hppaelf_delete_padding_statements): Prototype.
4741 (hppaelf_finish): Prototype.
4742
4743 Merge from elf32.em
4744 * emultempl/hppaelf.em: Include ctype.h.
4745 (struct orphan_save): New.
4746 (gld${EMULATION_NAME}_place_orphan): New.
4747 (output_rel_find): New.
4748 (hppaelf_get_script): Update from elf32.em.
4749 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4750 Change emulation_name field to "${EMULATION_NAME}". Add
4751 gld${EMULATION_NAME}_place_orphan.
4752
4753 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4754 ehppalinux.o, sort it. Regenerate dependencies.
4755 (ehppalinux.c): Depend on hppaelf.em
4756 * Makefile.in: Regenerate.
4757
4758 * configure.tgt: targ_emul=hppalinux for hppa*linux
4759
4760 * emulparams/hppalinux.sh: New.
4761 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4762
4763 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4764
4765 * lexsup.c (parse_args): Copy section name.
4766
4767 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4768
4769 * emultempl/pe.em: institute the following search order for
4770 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4771 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4772 static lib (libfoo.a) if none of the above are found.
4773
4774 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4775
4776 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4777 (longopts): New --{enable,disable}-auto-image-base options.
4778 (gld_${EMULATION_NAME}_list_options): Document.
4779 (gld_${EMULATION_NAME}_parse): Handle.
4780 (strhash): New static function.
4781 (compute_dll_image_base): New static function.
4782 (gld_${EMULATION_NAME}_set_symbols): Use.
4783
4784 2000-07-05 DJ Delorie <dj@redhat.com>
4785
4786 * MAINTAINERS: new
4787
4788 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4789
4790 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4791 * emulparams/elf32btsmip.sh: New file.
4792 * Makefile.am: Add traditional mips target.
4793 * Makefile.in: Rebuild.
4794
4795 2000-07-01 H.J. Lu <hjl@gnu.org>
4796
4797 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4798 automake to use YLWRAP.
4799 * Makefile.in: Rebuild.
4800
4801 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4802
4803 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4804 (CLEANFILES): Add DEPA.
4805 * Makefile.in: Regenerate.
4806
4807 2000-06-30 Timothy Wall <twall@ppc>
4808
4809 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4810 the page in the upper octet of the address.
4811
4812 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4813
4814 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4815
4816 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4817
4818 * NEWS: arm-elf does --gc-sections too.
4819
4820 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4821
4822 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4823 find one.
4824 * Makefile.in: Regenerate.
4825
4826 2000-06-21 H.J. Lu <hjl@gnu.org>
4827
4828 * Makefile.am: Rebuild dependency.
4829 * Makefile.in: Rebuild.
4830
4831 2000-06-20 H.J. Lu <hjl@gnu.org>
4832
4833 * Makefile.am: Rebuild dependency.
4834 * Makefile.in: Rebuild.
4835
4836 2000-06-20 Timothy Wall <twall@cygnus.com>
4837
4838 * scripttempl/tic54xcoff.sc: New.
4839 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4840 * gen-doc.texi: Add flag for TI COFF.
4841 * ld.texinfo: Add documentation for TI COFF handling switches.
4842 * emultempl/ticoff.em: New. TI COFF handling.
4843 * configure.tgt: Add tic54x target.
4844 * Makefile.am: Add tic54x target.
4845 * Makefile.in: Ditto.
4846
4847 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4848
4849 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4850 checking for backslashes.
4851
4852 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4853
4854 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4855
4856 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4857
4858 * NEWS: Update list of targets supporting --gc-sections.
4859
4860 * scripttempl/elf.sc: KEEP .eh_frame contents.
4861 * scripttempl/elfd30v.sc: Same here.
4862
4863 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4864
4865 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4866 and m68hc11 (elf).
4867 * Makefile.in: Rebuild.
4868 * configure.tgt: Recognize m68hc12 and m68hc11.
4869 * scripttempl/elfm68hc12.sc: New file.
4870 * emulparams/m68hc12elfb: New emulation.
4871 * emulparams/m68hc12elf: New emulation.
4872 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4873 (includes a memory.x script to define the ROM and RAM banks).
4874 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4875 New configuration files for support of Motorola 68hc11
4876
4877 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4878
4879 * ldmain.c (main): Only change SEC_READONLY for final link.
4880
4881 2000-06-13 H.J. Lu <hjl@gnu.org>
4882
4883 * configure: Regenerate.
4884
4885 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4886
4887 * configure.in (VERSION): Update to show this is the CVS mainline.
4888
4889 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4890
4891 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4892 input objects to be ECOFF.
4893 (check_sections): einfo takes %B, not %P, to print a BFD name.
4894
4895 2000-06-05 Michael Matz <matz@ifh.de>
4896
4897 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4898 version scripts.
4899
4900 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4901
4902 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4903
4904 * emulparams/avr1200.sh (STACK): Define as 0.
4905 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4906 * emulparams/avr4433.sh (STACK): Likewise.
4907 * emulparams/avr44x4.sh (STACK): Likewise.
4908 * emulparams/avr85xx.sh (STACK): Likewise.
4909 * emulparams/avrmega103.sh (STACK): Likewise.
4910 * emulparams/avrmega161.sh (STACK): Likewise.
4911 * emulparams/avrmega603.sh (STACK): Likewise.
4912 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4913 (__stack): Define from ${STACK} for main().
4914
4915 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4916
4917 * Makefile.am: Update dependencies with "make dep-am"
4918 * Makefile.in: Regenerate.
4919
4920 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4921
4922 * ldmain.c: Include filenames.h.
4923 (set_scripts_dir): Support backslashes in program name.
4924
4925 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4926
4927 * ldmain.c (main): When deciding if ".text" section should be
4928 read-only, don't forget to reset SEC_READONLY because it
4929 could be already set.
4930
4931 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4932
4933 * ld.1: Add documentation for new command line option:
4934 --section-start <sectionname>=<sectionorg>
4935 This is a generic version of -Ttext etc. which accepts
4936 any section name as a parameter instead of just text/data/
4937 bss.
4938 * ld.texinfo: More docs.
4939 * NEWS: More docs.
4940 * lexsup.c: (parse_args): Recognize new command line option.
4941 (ld_options): Add new option.
4942
4943 2000-05-18 H.J. Lu <hjl@gnu.org>
4944
4945 * lexsup.c (parse_args): `i' == `r', not `q'.
4946
4947 2000-05-18 Jeffrey A Law (law@cygnus.com)
4948
4949 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4950
4951 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4952 Rick Gorton <gorton@scrugs.lkg.dec.com>
4953
4954 Add support for '-q' == '--emit-relocs' switch.
4955 * ldmain.c (main): Default to false.
4956 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4957 * NEWS: Describe the emitrelocations switch.
4958 * ld.texinfo: Describe the emitrelocations switch.
4959
4960 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4961
4962 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4963 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4964 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4965 link options.
4966
4967 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4968
4969 * lexsup.c (parse_args): Update the year in the copyright notice.
4970
4971 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4972
4973 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4974 Replace defines with those from intl/libgettext.h to quieten gcc
4975 warnings.
4976
4977 2000-05-10 H.J. Lu <hjl@gnu.org>
4978
4979 * ldlang.c (open_input_bfds): Don't load the same file within
4980 a group again if the whole archive has been loaded already.
4981
4982 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4983
4984 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4985 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4986 strtoul.
4987
4988 2000-05-01 Jim Wilson <wilson@cygnus.com>
4989
4990 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4991
4992 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4993 host "ia64-*-linux-gnu*".
4994
4995 2000-04-29 Andreas Jaeger <aj@suse.de>
4996
4997 * ld.h: Correctly check GCC version.
4998
4999 2000-04-25 Jeffrey A Law (law@cygnus.com)
5000
5001 * Makefile.am: Add PA64 support. Add missing dependencies for
5002 PA32 elf support.
5003 * Makefile.in: Rebuilt.
5004 * configure.tgt: Add PA64 support (currently disabled).
5005
5006 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5007
5008 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5009 (output_rel_find): New function.
5010 (hold_section, hold_use): Delete.
5011 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5012 hold_interp): Make local to place_orphan.
5013 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5014 rather than place_section to find possible previous use of orphan.
5015 Similarly find the place-holder output sections. Use returned
5016 value from lang_enter_output_section_statement rather than calling
5017 lang_output_section_statement_lookup.
5018 * emultempl/armelf.em: Same here.
5019 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5020
5021 * ldlang.c (lang_enter_output_section_statement): Return output
5022 section statement.
5023 * ldlang.h (lang_enter_output_section_statement): Change
5024 declaration too.
5025
5026 * ldlang.h (lang_output_section_statement): Export it.
5027 * ldlang.c (lang_output_section_statement): Ditto.
5028
5029 2000-04-24 Nick Clifton <nickc@cygnus.com>
5030
5031 * ld.texinfo (Output Section Data): Add note that section data
5032 commands cannot appear outside of section directives.
5033
5034 2000-04-2 Matthew Green <mrg@cygnus.com>
5035
5036 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5037
5038 2000-04-21 Richard Henderson <rth@cygnus.com>
5039 David Mosberger <davidm@hpl.hp.com>
5040
5041 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5042 (eelf64_ia64.c): New rule.
5043 * Makefile.in: Rebuild.
5044 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5045 * emulparams/elf64_ia64.sh: New file.
5046
5047 2000-04-21 Richard Henderson <rth@cygnus.com>
5048
5049 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5050
5051 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5052
5053 * dep-in.sed: Match space at start of file name, not at end.
5054
5055 2000-04-18 H.J. Lu <hjl@gnu.org>
5056
5057 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5058 lang_leave_output_section_statement () after calling
5059 lang_enter_output_section_statement ().
5060 * emultempl/armelf.em: Likewise.
5061
5062 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5063
5064 * emultempl/elf32.em (struct orphan_save): Add section field.
5065 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5066 better order, and place first orphan section as we did before the
5067 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5068 Don't call make_bfd_section here, let wild_doit do the job for us.
5069 Don't build a statement list when we'll only throw it away.
5070 * emultempl/armelf.em: Ditto.
5071 * emultempl/pe.em: Similarly.
5072
5073 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5074
5075 * scripttempl/elfppc.sc: Remove.
5076 * emulparams/elf32ppc.sh: Use elf.sc.
5077 * emulparams/elf32lppc.sh: Use elf.sc.
5078 * emulparams/elf32ppclinux.sh: Use elf.sc.
5079 * emulparams/elf32ppcsim.sh: New file.
5080 * emulparams/elf32lppcsim.sh: New file.
5081 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5082 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5083 * Makefile.in: Regenerate.
5084 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5085
5086 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5087
5088 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5089 ~SEC_ALLOC sections too. Init start address of debug sections.
5090 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5091 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5092 Also set all relocateable section start addresses.
5093
5094 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5095
5096 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5097 Add new BSS_PLT variable for when .plt need not be contained in
5098 the file. Move _etext so that it is also after .fini, and provide
5099 both etext and _etext with a leading underscore. Mark the start
5100 and end of .sbss.
5101
5102 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5103
5104 * emultempl/elf32.em (struct orphan_save): New.
5105 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5106 hold_interp): Make them struct orphan_save.
5107 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5108 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5109 the end of the relevant section list. Also add associated section
5110 statements to the end of any previous orphan statements.
5111 * emultempl/armelf.em: Similarly.
5112 * emultempl/pe.em: Similarly.
5113
5114 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5115
5116 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5117
5118 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5119
5120 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5121 --enable-build-warnings option.
5122 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5123 * Makefile.in, configure: Re-generate.
5124
5125 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5126
5127 * po/ld.pot: Regenerate.
5128
5129 * lexsup.c (help): Restore translated part of bug string.
5130
5131 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5132 (DEP): Quote when passing vars to sub-make. Add warning message
5133 to end.
5134 (DEP1): Rewrite for "gcc -MM".
5135 (CLEANFILES): Add DEP2.
5136 Update dependencies.
5137 * Makefile.in: Regenerate.
5138
5139 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5140
5141 * ld.h: #include "bin-bugs.h"
5142 * lexsup.c (help): Use REPORT_BUGS_TO.
5143
5144 2000-03-27 Denis Chertykov <denisc@overta.ru>
5145
5146 * configure.tgt (avr-*-*): New target support.
5147 * Makefile.am: Likewise.
5148 * scripttempl/elf32avr.sc: New script file.
5149 * emulparams/avr1200.sh: New file.
5150 * emulparams/avr23xx.sh: New file.
5151 * emulparams/avr4433.sh New file.
5152 * emulparams/avr44x4.sh New file.
5153 * emulparams/avr85xx.sh New file.
5154 * emulparams/avrmega103.sh New file.
5155 * emulparams/avrmega161.sh New file.
5156 * emulparams/avrmega603.sh New file.
5157 * Makefile.in: Regenerate.
5158
5159 2000-03-09 Andreas Jaeger <aj@suse.de>
5160
5161 * Makefile.am (check-DEJAGNU): Also unset LANG.
5162 * Makefile.in: Rebuild.
5163
5164 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5165
5166 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5167 archive.
5168
5169 2000-03-02 H.J. Lu <hjl@gnu.org>
5170
5171 * emulparams/elf32mcore.sh: Include "getopt.h".
5172
5173 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5174
5175 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5176
5177 2000-03-01 H.J. Lu <hjl@gnu.org>
5178
5179 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5180 * emulparams/shpe.sh: Likewise.
5181
5182 2000-03-01 Nick Clifton <nickc@cygnus.com>
5183
5184 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5185 to unused parameters.
5186
5187 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5188 functions only used by DLL code.
5189 (_place_orphan): Initialise 'dollar'.
5190
5191 2000-03-01 H.J. Lu <hjl@gnu.org>
5192
5193 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5194 indicate if the undefined symbol is a fatal error or not.
5195 Don't delete the output file if "fatal" is false.
5196
5197 2000-02-29 H.J. Lu <hjl@gnu.org>
5198
5199 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5200 Set LC_COLLATE and LC_ALL to null and export them. It is for
5201 sort which expects the C locale.
5202 Add $(LIBS) to all $(HOSTING_LIBS).
5203 * Makefile.in: Rebuild.
5204
5205 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5206
5207 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5208 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5209 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5210 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5211 find_potential_libraries.
5212
5213 2000-02-28 Jim Blandy <jimb@redhat.com>
5214
5215 * ldgram.y (exclude_name_list): Don't require a comma to separate
5216 list entries; the lexer considers commas to be valid part of a
5217 filename, so in something like `foo, bar' the comma is considered
5218 part of the first filename, `foo,'.
5219 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5220
5221 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5222
5223 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5224 host "i[3456]86-*-freebsdelf*".
5225
5226 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5227
5228 * scripttempl/i386go32.sc: Move misplaced semicolons.
5229
5230 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5231
5232 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5233 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5234 (eelf64hppa.c, ehppaelf.c): Remove targets.
5235 * Makefile.in: Rebuild.
5236
5237 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5238
5239 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5240 GNU/Linux/sparc, but keep the default as 32.
5241
5242 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5243 it default if sparcv9 or sparc64.
5244
5245 2000-02-24 Nick Clifton <nickc@cygnus.com>
5246
5247 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5248 * Makefile.in: Regenerate.
5249 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5250
5251 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5252 find_potential_libraries.
5253 * ldemul.c (ldemul_find_potential_libraries): New function.
5254
5255 * ldfile.c (ldfile_open_file_search): Allow function to be
5256 exported.
5257 (ldfile_open_file): Call ldemul_find_potential_libraries.
5258 * ldfile.h: Add prototype for ldfile_open_file_search.
5259
5260 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5261
5262 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5263 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5264
5265 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5266 (gld_X_find_potential_libraries): New function. Search for
5267 libraries called "*.lib".
5268
5269 * scripttempl/pe.sc: Add .pdata section.
5270
5271 2000-02-23 Richard Henderson <rth@cygnus.com>
5272
5273 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5274 Add and use memory regions.
5275
5276 2000-02-23 Linas Vepstas (linas@linas.org)
5277
5278 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5279
5280 * Makefile.am: Add support for Linux/IBM 370.
5281 * configure.tgt: Likewise.
5282
5283 * Makefile.in: Regenerate.
5284
5285 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5286
5287 * ldlang.c (print_input_section, print_data_statement,
5288 print_reloc_statement, print_padding_statement, insert_pad,
5289 size_input_section, lang_check_section_addresses,
5290 lang_size_sections, lang_do_assignments, lang_set_startof,
5291 lang_one_common): Change `opb' to unsigned.
5292 (lang_do_assignments): Also change `size' to unsigned.
5293
5294 2000-02-16 Richard Henderson <rth@cygnus.com>
5295
5296 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5297
5298 2000-02-16 Timothy Wall <twall@cygnus.com>
5299
5300 * mri.c (mri_draw_tree): Add default LMA region argument to call
5301 to lang_leave_output_section_statement.
5302 * ldlang.h: Update prototypes with LMA region arguments.
5303 * ldlang.c (lang_size_sections): Encapsulate region bounds
5304 checking in os_check_region call.
5305 (os_check_region): New function.
5306 (lang_output_section_statement_lookup): Initialize lma_region.
5307 (lang_leave_output_section_statement): Add LMA region argument.
5308 (lang_leave_overlay): Ditto.
5309 * ldgram.y: Handle LMA region syntax.
5310 * ld.texinfo (Output Section Description): Describe LMA region usage.
5311 * emultempl/armelf.em (gld$place_orphan): Add default value for
5312 lma region in call to lang_leave_output_section_statement.
5313 * emultempl/elf32.em (gld$place_orphan): Add default value for
5314 lma region in call to lang_leave_output_section_statement.
5315 * emultempl/pe.em (gld$place_orphan): Add default value for
5316 lma region in call to lang_leave_output_section_statement.
5317
5318
5319 2000-02-04 Timothy Wall <twall@redhat.com>
5320
5321 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5322 octets when calculating section end addresses.
5323
5324 2000-02-04 Timothy Wall <twall@redhat.com>
5325
5326 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5327
5328 2000-02-03 Timothy Wall <twall@redhat.com>
5329
5330 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5331 octet count.
5332 * ldlang.c (print_input_section, print_data_statement,
5333 print_reloc_statement, print_padding_statement): Print target
5334 address values and section sizes as bytes, not octets.
5335 (insert_pad) Calculate padding size in octets, and adjust "dot"
5336 by bytes.
5337 (size_input_section) Always adjust "dot" by bytes, not octets.
5338 (lang_check_section_addresses, lang_do_assignments) Adjust
5339 "dot" by bytes, not octets. Use the larger of the directive size
5340 or octets_per_byte for the number of octets actually allocated in
5341 the output section.
5342 (lang_set_startof) Make sure STARTOF returns a target address.
5343 (lang_one_common) Record size changes in octets.
5344 (lang_abs_symbol_at_end_of) Section end symbol's value is
5345 recorded in target bytes.
5346 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5347 to be clear about behavior when an octet is smaller than one byte.
5348
5349 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5350
5351 * ldcref.c (output_cref): Don't pass message strings to printf
5352 as format arg.
5353 Update copyright.
5354
5355 * ldmisc.c (vfinfo): Same here.
5356 Update copyright.
5357
5358 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5359
5360 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5361 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5362 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5363 Add missing NULL initialisers, and comments.
5364
5365 2000-01-21 Nick Clifton <nickc@cygnus.com>
5366
5367 * ldlang.c (lang_size_sections): Fix typo in comment.
5368
5369 2000-01-18 H.J. Lu <hjl@gnu.org>
5370
5371 * ldlang.c (lang_size_sections): Also update the current
5372 address of a region if the SEC_NEVER_LOAD bit is not set.
5373
5374 2000-01-10 Philip Blundell <pb@futuretv.com>
5375
5376 * configure.tgt (arm*-*-conix*): New target.
5377
5378 2000-01-07 Nick Clifton <nickc@cygnus.com>
5379
5380 * ld.texinfo (Options): Remind users to preceed linker command
5381 line switches with -Wl, (or whatever is appropriate) if it is
5382 being invoked by a comnpiler driver program.
5383 Fix description of the behaviour of the -n command line switch.
5384
5385 2000-01-05 Catherine Moore <clm@cygnus.com>
5386
5387 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5388 (name_list): New.
5389 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5390 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5391 (exclude_name_list): New.
5392 ldlang.c (walk_wild_section): Support list of excluded files.
5393 (print_wild_statement): Likewise.
5394 (lang_add_wild): Likewise.
5395 * ldlang.h (lang_wild_statement_type): Likewise.
5396 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5397
5398 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5399
5400 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5401 (process_def_file): Use.
5402 (pe_dll_compat_implib): New variable.
5403 (make_one): Use.
5404
5405 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5406 pe_dll_compat_implib.
5407
5408 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5409 compat-implib options.
5410 (gld_${EMULATION_NAME}_list_options): List new options.
5411 (gld_${EMULATION_NAME}_parse_args): Handle.
5412
5413 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5414 dll.
5415
5416 * deffilep.y (opt_name): Allow "." in name.
5417
5418 For older changes see ChangeLog-9899
5419 \f
5420 Local Variables:
5421 mode: change-log
5422 left-margin: 8
5423 fill-column: 74
5424 version-control: never
5425 End:
This page took 0.260924 seconds and 4 git commands to generate.