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