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