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