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