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