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