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