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