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