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