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