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