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