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