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