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