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