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