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