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