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