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