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