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