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