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