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