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