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