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