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