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