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