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