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