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