* configure.host: Set up for generic hosts first, then tweak as
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2
3 * configure.host: Set up for generic hosts first, then tweak as
4 necessary in more specific targets.
5 (HOSTING_LIBS): Include libgcc_eh.a if found.
6
7 2002-03-23 Andreas Jaeger <aj@suse.de>
8
9 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
10
11 2002-03-21 Alan Modra <amodra@bigpond.net.au>
12
13 * Makefile.am: Run "make dep-am".
14 * Makefile.in: Regenerate.
15
16 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
17
18 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
19
20 2002-03-20 Alan Modra <amodra@bigpond.net.au>
21
22 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
23 add the symbol to the linker hash table immediately.
24 (lang_place_undefineds): Split symbol creation out..
25 (insert_undefined): ..to here.
26
27 2002-03-18 David O'Brien <obrien@FreeBSD.org>
28
29 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
30 the contents of the buffer returned from basename function will are
31 getting overwritten while still being used.
32
33 Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
34 Andreas Jaeger <aj@suse.de>
35 Andreas Schwab <schwab@suse.de>
36
37 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
38 * elf_x86_64.sh (ARCH): Set to i386:x86-64
39 set libraries to default to lib64 paths.
40
41 2002-03-18 Tom Rix <trix@redhat.com>
42
43 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
44 * configure.tgt : Same.
45 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
46 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
47 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
48 emulation parameters for better -b32, -b64 support.
49 * emulparms/aixrs6.sh : Same.
50 * emulparms/ppcmacos.sh : Same.
51 * emultempl/aix.em (choose_target) : Use new emulation parameters
52 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
53 * Makefile.in : Regenerate.
54
55 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
56
57 * po/fr.po: Updated version.
58
59 2002-03-18 Alan Modra <amodra@bigpond.net.au>
60
61 * ldmain.c (main): Move .text readonly flag fudges from here..
62 * ldlang.c (lang_process): ..to here.
63
64 2002-03-14 Alan Modra <amodra@bigpond.net.au>
65
66 * ldlang.c (lang_check): Remove the word size check added in last
67 change. Treat emitrelocations case as for relocatable links.
68
69 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
70
71 * po/fr.po: Updated version.
72
73 2002-03-13 Alan Modra <amodra@bigpond.net.au>
74
75 * ldlang.c (lang_check): Do relocatable link checks first, so that
76 warn_mismatch can't override. Check compatible and word size too.
77
78 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
79
80 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
81
82 2002-03-05 Jakub Jelinek <jakub@redhat.com>
83
84 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
85 DATA_SEGMENT_ALIGN.
86
87 2002-03-04 H.J. Lu <hjl@gnu.org>
88
89 * scripttempl/elf.sc: Put .preinit_array, .init_array and
90 .fini_array in the data segment.
91
92 2002-03-04 Alan Modra <amodra@bigpond.net.au>
93
94 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
95
96 2002-03-01 David Mosberger <davidm@hpl.hp.com>
97
98 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
99 .init_array, and .fini_array.
100
101 2002-02-20 Andreas Schwab <schwab@suse.de>
102
103 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
104 .IA64_unwind* in a relocatable link.
105
106 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
107
108 * NEWS: Mark 2.12 branch.
109
110 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
111
112 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
113 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
114
115 2002-02-18 Tom Rix <trix@redhat.com>
116
117 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
118 (gld*_before_allocation): Same.
119 (gld*_create_output_section_statements): Generate
120 __rtinit if run time linking. Add librtl.a to the link.
121 (gld*_read_file): Clean.
122
123 2002-02-18 Alan Modra <amodra@bigpond.net.au>
124
125 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
126
127 2002-02-18 David O'Brien <obrien@FreeBSD.org>
128
129 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
130 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
131 and eelf64alpha_fbsd.
132 * Makefile.in: Regenerate.
133 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
134 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
135 use a FreeBSD-specific emulation rather than the psABI one.
136 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
137 for all FreeBSD ELF systems.
138 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
139 emulation.
140 * emulparams/elf32ppc_fbsd.sh: Likewise.
141 * emulparams/elf64_ia64_fbsd.sh: Likewise.
142 * emulparams/elf64_sparc_fbsd.sh: Likewise.
143 * emulparams/elf64alpha_fbsd.sh: Likewise.
144 * emulparams/elf_i386_fbsd.sh: Likewise.
145 * emulparams/elf_x86_64_fbsd.sh: Likewise.
146
147 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
148
149 * po/tr.po: Updated version.
150
151 2002-02-18 Alan Modra <amodra@bigpond.net.au>
152
153 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
154 (FILL): Likewise.
155
156 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
157
158 * emultempl/mmo.em (mmo_after_open): Don't call
159 _bfd_mmix_check_all_relocs when producing ELF output.
160
161 2002-02-15 Richard Henderson <rth@redhat.com>
162
163 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
164 definition. Emit a unop+nop pair.
165
166 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
167
168 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
169 for presence of .MMIX.reg_contents.linker_allocated before early
170 exit.
171
172 * NEWS: Mention support for MMIX.
173
174 2002-02-15 Alan Modra <amodra@bigpond.net.au>
175
176 Support arbitrary length fill patterns.
177 * ld.texinfo (Output Section Fill): Describe fill expressions.
178 (FILL): Refer to the above.
179 * ldexp.h (etree_value_type): Add "str" field.
180 (union etree_union): Add "str" to "value" struct.
181 (exp_bigintop): Declare.
182 (exp_get_fill): Declare.
183 * ldexp.c: Include "safe-ctype.h".
184 (exp_intop): Set value.str to NULL.
185 (exp_bigintop): New function.
186 (new_rel): Pass in "str", and set new.str from it.
187 (new_rel_from_section): Set new.str to NULL.
188 (fold_name): Adjust calls to new_rel.
189 (exp_fold_tree): Likewise.
190 (exp_get_fill): New function.
191 * ldgram.y (struct big_int bigint, fill_type *fill): New.
192 (INT): Returns a "bigint". Adjust all code handling INTs.
193 (fill_opt): Returns a "fill".
194 (fill_exp): Split out of fill_opt, use for FILL.
195 * ldlang.h (struct _fill_type): New.
196 (fill_type): Move typedef to ldexp.h.
197 (lang_output_section_statement_type): "fill" is now a pointer.
198 (lang_fill_statement_type): Likewise.
199 (lang_padding_statement_type): Likewise.
200 (lang_add_fill): Now takes a "fill_type *" param.
201 (lang_leave_output_section_statement): Likewise.
202 (lang_do_assignments): Likewise.
203 (lang_size_sections): Likewise.
204 (lang_leave_overlay_section): Likewise.
205 (lang_leave_overlay): Likewise.
206 * ldlang.c: Include ldgram.h after ldexp.h.
207 (lang_output_section_statement_lookup): Adjust for fill_type change.
208 (print_fill_statement): Likewise.
209 (print_padding_statement): Likewise.
210 (insert_pad): Now takes a "fill_type *" arg.
211 (size_input_section): Likewise.
212 (lang_size_sections_1): Likewise.
213 (lang_size_sections): Likewise.
214 (lang_do_assignments): Likewise.
215 (lang_add_fill): Likewise.
216 (lang_leave_output_section_statement): Likewise.
217 (lang_leave_overlay_section): Likewise.
218 (lang_leave_overlay): Likewise.
219 Adjust all callers of the above function.
220 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
221 starting with "0X" as well as "0x". Return bigint.str for hex
222 numbers starting with "0x" or "0X", zero bigint.str otherwise.
223 Always use base 16 for numbers starting with "$".
224 * ldmain.c: Include ldgram.h after ldexp.h.
225 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
226 of bfd_fill_link_order.
227 * pe-dll.c: Adjust lang_do_assignments calls.
228 * emultempl/elf32.em: Likewise.
229 * emultempl/hppaelf.em: Likewise.
230 * emultempl/ppc64elf.em: Likewise.
231 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
232 lang_add_assignment call.
233 * emultempl/pe.em: Likewise.
234
235 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
236
237 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
238 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
239 the pattern in question is not a regexp.
240 * ldlang.c: Likewise.
241 * ldlang.h: Likewise.
242 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
243
244 2002-02-12 Jakub Jelinek <jakub@redhat.com>
245
246 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
247 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
248 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
249 * ldexp.c (exp_data_seg): New variable.
250 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
251 (fold_binary): Handle DATA_SEGMENT_ALIGN.
252 (exp_fold_tree): Handle DATA_SEGMENT_END.
253 Pass allocation_done when recursing instead of hardcoding
254 lang_allocating_phase_enum.
255 * ldexp.h (exp_data_seg): New.
256 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
257 (lang_size_sections): New.
258 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
259 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
260 if COMMONPAGESIZE is defined.
261 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
262 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
263 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
264 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
265 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
266 libraries only.
267
268 2002-02-11 Alan Modra <amodra@bigpond.net.au>
269
270 * Makefile.in: Regenerate.
271
272 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
273
274 * lexsup.c: Remove strtoul declaration.
275
276 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
277
278 * ldmain.c: Add prototype for main ().
279 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
280 * emultempl/lnk960.em (lnk960_choose_target): Function should
281 take two arguments.
282
283 2002-02-10 Alan Modra <amodra@bigpond.net.au>
284
285 * ldlang.c (entry_section): New initialised variable.
286 (lang_finish): Use it.
287 * ldlang.h (entry_section): Declare.
288 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
289 entry_section to ".opd".
290
291 2002-02-09 Chris Demetriou <cgd@broadcom.com>
292
293 * ld.texinfo (Options): Add back in -nostdlib documentation,
294 which had been inadvertently removed.
295
296 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
297
298 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
299 register section vma to a sane value after emitting error. Make
300 fatal conditions cause program exit when emitting message.
301
302 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
303
304 * configure.tgt: Add or32-*-rtems target.
305
306 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
307
308 Contribute sh64-elf.
309 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
310 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
311 in OTHER_RELOCATABLE_SECTIONS.
312 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
313 * emulparams/shelf32.sh (STACK_ADDR): Define.
314 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
315 (OTHER_SECTIONS): this. Removed stack settings.
316 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
317 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
318 2001-03-12 DJ Delorie <dj@redhat.com>
319 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
320 relaxing if any shmedia or mixed sections are found.
321 2001-03-07 DJ Delorie <dj@redhat.com>
322 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
323 einfo. Gracefully decline to output to non-elf formats.
324 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
325 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
326 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
327 * emulparams/shelf32.sh: Ditto.
328 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
329 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
330 comment.
331 2001-01-10 Ben Elliston <bje@redhat.com>
332 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
333 non-portable shell constructs. From Hans-Peter Nilsson.
334 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
335 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
336 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
337 dependencies to the shell script include chain.
338 * Makefile.in: Regenerate.
339 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
340 * emultempl/sh64elf.em: Update and tweak comments.
341 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
342 make a .cranges section SEC_IN_MEMORY.
343 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
344 * emultempl/sh64elf.em
345 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
346 .cranges section found to be necessary; continue and set stored
347 section contents flags for sections with non-mixed contents.
348 Use a struct sh64_section_data container and sh64_elf_section_data
349 to store contents-type flags.
350 Remove unused update of "isec".
351 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
352 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
353 access contents-type flags. Assert that the associated container
354 is initialized. Use that container, not elf_gp_size, to hold size
355 of linker-generated cranges contents.
356 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
357 * emultempl/sh64elf.em
358 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
359 there's already a .cranges section. When section flag difference
360 is found, don't NULL-check cranges a second time. Tweak comments.
361 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
362 merging, not max size, as size of ld-generated .cranges contents.
363 Don't set ELF section flags in output section. When checking for
364 needed .cranges descriptors, don't use a variable; compare
365 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
366 comments.
367 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
368 * emultempl/sh64elf.em: New file.
369 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
370 * Makefile.in: Regenerate.
371 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
372 (OTHER_RELOCATING_SECTIONS): Ditto.
373 (EXTRA_EM_FILE): New, set to sh64elf if not set.
374 * emulparams/shlelf32.sh: Stub out all settings except
375 OUTPUT_FORMAT. Source shelf32.sh.
376 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
377 OTHER_RELOCATING_SECTIONS.
378 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
379 * emulparams/shlelf64.sh: Stub out all settings except
380 OUTPUT_FORMAT. Source shelf64.sh.
381 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
382 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
383 .cranges section.
384 (DATA_START_SYMBOLS): Define, provide ___data.
385 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
386 for consecutive .data section.
387 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
388 section after .data section.
389 * emulparams/shlelf64.sh: Ditto.
390 * emulparams/shelf32.sh: Ditto.
391 (ALIGNMENT): Define to 8.
392 * emulparams/shelf32.sh: Ditto.
393 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
394 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
395 built-in linker scripts.
396 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
397 * emulparams/shlelf64.sh: New.
398 * emulparams/shelf64.sh: New.
399 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
400 targ_extra_emuls.
401 * Makefile.am: Add support for shlelf64 and shelf64.
402 * Makefile.in: Regenerate.
403 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
404 * configure.tgt (sh64-*-elf*): Add shelf as default.
405 Add shlelf to targ_extra_emuls.
406 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
407 * emulparams/shelf32.sh: New file.
408 * emulparams/shlelf32.sh: New file.
409 * Makefile.am: Add support for shlelf32 and shelf32.
410 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
411 * Makefile.in: Regenerate.
412
413 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
414
415 * ldlang.c (lang_reset_memory_regions): Rename from
416 reset_memory_regions. Change all callers. Make public.
417 * ldlang.h (lang_reset_memory_regions): Prototype.
418 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
419 lang_reset_memory_regions before lang_size_sections.
420 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
421 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
422
423 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
424
425 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
426 arithmetic when checking for too many global registers.
427
428 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
429
430 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
431 (ehppanbsd.c): New rule.
432 * Makefile.in: Regenerate.
433 * configure.tgt (hppa*-*-netbsd*): New target.
434 * emulparams/hppalinux.sh: Add comment to check other files
435 that source this file it is modified, and list which
436 files that do.
437 * emulparams/hppanbsd.sh: New file.
438
439 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
440
441 * scripttempl/xstormy16.sc: Don't allocate extra space for the
442 stack.
443
444 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
445
446 Support on-demand global register allocation from
447 R_MMIX_BASE_PLUS_OFFSET relocs.
448 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
449 mmix_set_reg_section_vma. Call
450 _bfd_mmix_finalize_linker_allocated_gregs.
451 (mmix_before_allocation): New function.
452 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
453 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
454 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
455 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
456 before .MMIX.reg_contents.
457 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
458 (mmo_after_open): New function.
459 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
460 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
461 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
462
463 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
464
465 * emulparams/or32.sh: New file.
466 * emulparams/or32elf.sh: New file.
467 * scripttempl/or32.sc: New file.
468 * configure.tgt : Add support for or32.
469 * configure: Regenerate
470 * Makefile.am: Add support for or32.
471 * Makefile.in: Regenerate.
472 * NEWS: Mention support for or32.
473 * po/ld.pot: Regenerate.
474
475 2002-01-29 Chris Demetriou <cgd@broadcom.com>
476 Mitch Lichtenberg <mpl@broadcom.com>
477
478 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
479 * emultempl/mipself.em: New file to handle MIPS ELF embedded
480 reloc creation (ld --embedded-relocs).
481
482 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
483
484 * configure: Regenerated.
485
486 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
487
488 * Makefile.am (install): Depend on install-info.
489 * Makefile.in: Regenerate.
490
491 2002-01-26 Christian Rose <menthos@menthos.com>
492
493 * ldmain.c (main): Use full sentences to ease translation.
494
495 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
496
497 * po/fr.po: Updated version.
498
499 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
500
501 * po/es.po: Updated version.
502
503 2002-01-25 Andreas Jaeger <aj@suse.de>
504
505 * ldlex.l (yy_input): Correct error check.
506
507 2002-01-25 Alan Modra <amodra@bigpond.net.au>
508
509 * ldmisc.c (demangle): Put back dots when string not demangled.
510
511 2002-01-22 Richard Henderson <rth@redhat.com>
512
513 * emulparams/elf64alpha.sh (NOP): Use unop.
514
515 2002-01-21 Andreas Jaeger <aj@suse.de>
516
517 * ldlex.l: Use fread instead of read.
518
519 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
520
521 * configure.tgt (ia64-*-netbsd*): New target.
522
523 2002-01-21 H.J. Lu <hjl@gnu.org>
524
525 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
526 0.
527 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
528
529 2002-01-18 Andreas Jaeger <aj@suse.de>
530
531 * ldver.c (ldversion): Update year.
532
533 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
534
535 * po/ld.pot: Regenerate.
536
537 2002-01-16 Alan Modra <amodra@bigpond.net.au>
538
539 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
540 * Makefile.in: Regenerate.
541 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
542 * emultempl/ppc64elf.em: New file.
543
544 2002-01-15 DJ Delorie <dj@redhat.com>
545
546 * scripttempl/pe.sc: Add support for constructor priorities.
547
548 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
549
550 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
551 * emulparams/avr23xx.sh: Likewise.
552 * emulparams/avr4433.sh: Likewise.
553 * emulparams/avr44x4.sh: Likewise.
554 * emulparams/avr85xx.sh: Likewise.
555 * emulparams/avrmega103.sh: Likewise.
556 * emulparams/avrmega161.sh: Likewise.
557 * emulparams/avrmega603.sh: Likewise.
558 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
559
560 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
561
562 * ldlang.c (walk_wild_section): Exclude object file if enclosing
563 archive is excluded.
564
565 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
566
567 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
568 (eshelf_nbsd.c): New rule.
569 (eshlelf_nbsd.c): New rule.
570 * Makefile.in: Regenerate.
571 * configure.tgt (sh*le-*-netbsdelf*): New target.
572 (sh*-*-netbsdelf*): New target.
573 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
574 * ld/emulparams/shelf_nbsd.sh: New emulation.
575 * ld/emulparams/shlelf_nbsd.sh: New emulation.
576
577 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
578
579 * po/es.po: New file: Spanish translation.
580 * configure.in (ALL_LINGUAS): Add es.
581 * configure: Regenerate.
582
583 2002-01-06 John Marshall <jmarshall@acm.org>
584
585 * ld.texinfo: Note that --emit-relocs is currently only
586 implemented for ELF.
587
588 2002-01-05 Alan Modra <amodra@bigpond.net.au>
589
590 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
591 of bfd_section_list_remove and bfd_section_list_insert macros.
592 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
593 * emultempl/mmo.em (mmo_place_orphan): Likewise.
594
595 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
596
597 * configure.tgt (x86_64-*-netbsd*): New target.
598
599 2001-12-21 Tom Rix <trix@redhat.com>
600
601 (gld*_create_output_section_statements): New function.
602 For -binitfini support.
603 * emultempl/aix.em (gld*_before_parse): Fix comment.
604 * emultempl/aix.em (gld*_parse_args): Fix comment.
605
606 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
607
608 * configure.tgt (mips*-dec-netbsd*): Delete alias for
609 mips*el-*-netbsd*.
610 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
611
612 * configure.tgt (arm-*-netbsdelf*): Add target.
613 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
614 * emulparams/armelf_nbsd.sh: Added.
615 * Makefile.am: Add rules for earmelf_nbsd.
616 * Makefile.in: Regenerate.
617
618 2001-12-19 Andreas Jaeger <aj@suse.de>,
619 Susanne Oberhauser <froh@suse.de>
620
621 * configure.host: Add rules for x86_64-*linux-gnu. Change
622 s390x-linux entry to use gcc to report configuration, replace gcc
623 with $CC in s390-linux
624
625 2001-12-19 Andreas Jaeger <aj@suse.de>
626
627 * ld.texinfo (VERSION): Fix markup.
628
629 2001-12-18 matthew green <mrg@eterna.com.au>
630
631 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
632 (m68kelfnbsd.c): New rule.
633 * Makefile.in: Regenerate.
634 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
635 (m68*-*-netbsd*4k*): .. this.
636 (m68*-*-netbsdelf*): New target.
637 (m68*-*-netbsd*): Also include ELF support.
638 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
639 * emulparams/m68kelfnbsd.sh: New emulation.
640
641 2001-12-18 Jakub Jelinek <jakub@redhat.com>
642
643 * ldgram.y (vers_node): Support anonymous version tags.
644 * ldlang.c (lang_register_vers_node): Ensure anonymous version
645 tag is not defined together with non-anonymous versions.
646 * ld.texinfo: Document it.
647
648 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
649
650 * po/tr.po: New file: Turkish translation.
651 * configure.in (ALL_LINGUAS): Add tr.
652 * configure: Regenerate.
653
654 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
655
656 * Makefile.am: Add rules for eelf64alpha_nbsd.
657 * Makefile.in: Regenerate.
658 * configure.tgt (alpha*-*-netbsd*): Set
659 targ_emul to elf64alpha_nbsd.
660 * emulparams/elf64alpha_nbsd.sh: Added.
661
662 2001-12-17 Alan Modra <amodra@bigpond.net.au>
663
664 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
665 section_tail when fiddling with section list.
666 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
667 broken into separate strings to make translation easier.
668 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
669 fiddling with section list.
670 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
671
672 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
673
674 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
675
676 2001-12-15 Alan Modra <amodra@bigpond.net.au>
677
678 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
679
680 2001-12-13 Jakub Jelinek <jakub@redhat.com>
681
682 * emultempl/elf32.em (finish): Supply output_bfd
683 to bfd_elf*_discard_info.
684 (OPTION_EH_FRAME_HDR): Define.
685 (longopts): Add --eh-frame-hdr.
686 (parse_args): Handle it.
687 (list_options): Add --eh-frame-hdr to help.
688 * emultempl/hppaelf.em (finish): Supply output_bfd
689 to bfd_elf*_discard_info.
690 * scripttempl/elf.sc (.eh_frame_hdr): Add.
691
692 2001-12-13 Alan Modra <amodra@bigpond.net.au>
693
694 * lexsup.c (parse_args): Don't pass shortopts to second call to
695 getopt functions. Restore optind rather than decrementing before
696 second call. Remove errind as it now duplicates last_optind.
697
698 2001-12-11 Christopher Faylor <cgf@redhat.com>
699
700 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
701
702 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
703 Richard Henderson <rth@redhat.com>
704
705 * Makefile.am: Add support for xstormy16.
706 * configure.tgt: Add support for xstormy16.
707 * Makefile.in: Regenerate.
708 * emulparams/elf32xstormy16.sh: New file.
709 * scripttempl/xstormy16.sc: New file.
710
711 2001-10-01 Christopher Faylor <cgf@cygnus.com>
712
713 * Makefile.in (LIB_PATH): Make configurable.
714 (GENSCRIPTS): Set LIB_PATH in environment.
715 * configure.in: Substitute LIB_PATH.
716 * configure: Regenerate.
717 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
718 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
719
720 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
721
722 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
723 describing the -N option so that it is easier to translate into
724 foreign languages.
725
726 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
727
728 * emultempl/pe.em (..._list_options): Replace multiple fprintf
729 statements describing a single option with a single, newline
730 escaped fprintf. This allows better translation into other
731 languages.
732
733 * ldmain.c (add_archive_element): Combine multiple strings
734 into a single string to permit better translation into other
735 languages.
736
737 2001-12-05 Tom Rix <trix@redhat.com>
738
739 * Makefile.am: Remove eaixppc64.
740 * Makefile.in: Regenerate.
741
742 2001-12-04 Tom Rix <trix@redhat.com>
743
744 * emultempl/aix.em (choose_target): Change default target to
745 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
746 warning.
747 (gld*_read_file): Fix typo.
748 (change_symbol_mode): Add prototype.
749 (is_syscall): Same.
750
751 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
752 * emulparams/aixrs6.sh : Same.
753 * emulparams/ppcmacos.sh : Same.
754 * emulparams/aixppc64.sh : Delete file.
755 * emultempl/aix.em : Formatting changes.
756
757 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
758
759 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
760 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
761 __Sbss.
762 (OTHER_END_SYMBOLS): Fix formatting.
763 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
764 (OTHER_END_SYMBOLS): Fix formatting.
765
766 2001-12-04 Alan Modra <amodra@bigpond.net.au>
767
768 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
769
770 2001-12-02 Tom Rix <trix@redhat.com>
771
772 * configure.tgt : Remove eaixppc64 emulations.
773 * Makefile.in : Remove eaixppc64.c
774 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
775 (ldemul_default_target): Same.
776 * emultempl/gld960.em (gld960_choose_target): Same.
777 * emultempl/gld960c.em (gld960_choose_target): Same.
778 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
779 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
780 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
781 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
782 * emultempl/aix.em (choose_target): New function. Handle emulation of
783 -b32 and -b64.
784
785 2001-11-27 H.J. Lu <hjl@gnu.org>
786
787 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
788 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
789 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
790 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
791 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
792 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
793 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
794 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
795
796 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
797 is not empty.
798 (SDATA): Likewise.
799 (REL_SDATA): Likewise.
800 (REL_SBSS): Likewise.
801 (REL_SDATA2): Likewise.
802 (REL_SBSS2): Likewise.
803 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
804 (SDATA2): Likewise.
805
806 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
807
808 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
809 destructor in rom.
810 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
811
812 2001-11-22 H.J. Lu <hjl@gnu.org>
813
814 * Makefile.in: Regenerated with automake based on automake
815 1.4-8 in RedHat 7.1.
816
817 2001-11-22 Alan Modra <amodra@bigpond.net.au>
818
819 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
820 (config.status): Delete rule.
821 Add extra dependencies to cover sourced emulparams files.
822 * Makefile.in: Regenerate.
823
824 * scripttempl/elf.sc: Order <section>, <section>.* and
825 corresponding linkonce sections as seen in input files.
826 Formatting fixes. Zero vma of all sections if not relocating.
827 (STACK): Define and insert if STACK_ADDR defined.
828 (OTHER_RELOCATING_SECTIONS): Delete.
829 (OTHER_END_SYMBOLS): Define.
830 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
831 (OTHER_READWRITE_SECTIONS): Likewise.
832 (OTHER_GOT_SECTIONS): Likewise.
833 (OTHER_SDATA_SECTIONS): Likewise.
834 (OTHER_BSS_SECTIONS): Likewise.
835 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
836 (OTHER_READWRITE_SECTIONS): Likewise.
837 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
838 (OTHER_READWRITE_SECTIONS): Likewise
839
840 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
841 (STACK_ADDR): Define.
842 * emulparams/armelf_oabi.sh: As for armelf.sh.
843 * emulparams/elf32mcore.sh: As for armelf.sh.
844 * emulparams/h8300elf.sh: As for armelf.sh.
845 * emulparams/mn10200.sh: As for armelf.sh.
846 * emulparams/shelf.sh: As for armelf.sh.
847
848 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
849 (OTHER_END_SYMBOLS): Define.
850 * emulparams/m32relf.sh: As for elf32fr30.sh.
851 * emulparams/h8300helf.sh: As for elf32fr30.sh.
852 * emulparams/h8300self.sh: As for elf32fr30.sh.
853
854 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
855 defines with RELOCATING test.
856 (OTHER_SDATA_SECTIONS): Likewise.
857 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
858 (OTHER_END_SYMBOLS): ..this.
859 * emulparams/crislinux.sh: As for criself.sh.
860
861 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
862 if not relocating.
863 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
864 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
865 normal and linkonce sections as seen in input files.
866 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
867 (TEXT_DYNAMIC): Likewise.
868 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
869 (OTHER_SDATA_SECTIONS): Likewise.
870 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
871 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
872 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
873 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
874 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
875 (OTHER_PLT_RELOC_SECTIONS): Likewise.
876 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
877 sections as seen in input files.
878 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
879 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
880 if not relocating.
881 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
882 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
883 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
884 (OTHER_SECTIONS): Instead, use this..
885 (OTHER_END_SYMBOLS): ..and this.
886
887 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
888 * emulparams/elf32bsmip.sh: Likewise.
889 * emulparams/elf32btsmip.sh: Likewise.
890 * emulparams/elf32ebmip.sh: Likewise.
891 * emulparams/elf32lmip.sh: Likewise.
892 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
893 * emulparams/elf32lsmip.sh: Likewise.
894 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
895 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
896 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
897 * emulparams/elf64btsmip.sh: Likewise.
898 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
899 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
900 * emulparams/elf32ppclinux.sh: Likewise.
901 * emulparams/elf32ppcsim.sh: Likewise.
902 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
903 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
904 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
905 * emulparams/h8300self.sh: Likewise.
906 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
907 * emulparams/sh.sh: Comment.
908 * emulparams/shl.sh: Source sh.sh, remove duplicates.
909 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
910 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
911
912 2001-11-21 David Heine <dlheine@tensilica.com>
913 Alan Modra <amodra@bigpond.net.au>
914
915 * ldlang.c (map_input_to_output_sections): Replace "break"
916 accidentally removed with 2001-08-03 change.
917 (lang_gc_sections_1): Likewise.
918
919 2001-11-21 Alan Modra <amodra@bigpond.net.au>
920
921 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
922
923 2001-11-20 Angela Marie Thomas <angela@redhat.com>
924
925 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
926 of false when calling lang_size_sections.
927 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
928
929 2001-11-15 Alan Modra <amodra@bigpond.net.au>
930
931 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
932 function when LDEMUL_FINISH isn't set to the same name. Don't
933 call ${LDEMUL_FINISH}.
934 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
935 * emultempl/armelf.em (arm_elf_finish): Call
936 gld${EMULATION_NAME}_finish.
937 * emultempl/hppaelf.em (hppaelf_finish): Rename to
938 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
939 hppaelf_layout_sections_again if necessary.
940 (need_laying_out): New var.
941 (hppaelf_layaout_sections_again): Rename to
942 hppaelf_layout_sections_again. Clear need_laying_out.
943 (PARSE_AND_LIST_OPTIONS): Format text.
944
945 2001-11-14 H.J. Lu <hjl@gnu.org>
946
947 * emultempl/armelf.em (arm_elf_finish): Renamed from
948 gld${EMULATION_NAME}_finish.
949 (LDEMUL_FINISH): Set to arm_elf_finish.
950
951 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
952
953 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
954 (struct ld_emulation_xfer_struct): Use it.
955
956 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
957
958 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
959 additional symbols referenced by newer crt0.o files from HP.
960
961 2001-11-12 Anthony Green <green@redhat.com>
962
963 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
964
965 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
966
967 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
968 * Makefile.in: Regenerate.
969
970 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
971
972 * ld.texinfo: Use @command for commands, @option for options.
973 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
974 the page man title.
975 * Makefile.in: Rebuild.
976
977 2001-11-04 Chris Demetriou <cgd@broadcom.com>
978
979 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
980 Add support for targets.
981
982 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
983
984 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
985 * configure: Regernate.
986 * po/fr.po: New file.
987 * po/sv.po: New file.
988
989 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
990
991 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
992 as little endian default and to support big endian.
993
994 2001-11-01 Chris Demetriou <cgd@broadcom.com>
995
996 * ld.texinfo (Options): Document new option, -nostdlib.
997 * lexsup.c (OPTION_NOSTDLIB): New definition.
998 (ld_options): Add entry for "nostdlib".
999 (parse_args): Handle OPTIONS_NOSTDLIB.
1000 * ldfile.c (ldfile_add_library_path): Don't add directories
1001 to the search path if they weren't specified on the command line
1002 and -nostdlib was specified.
1003 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1004
1005 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1006
1007 * lexsup.c (parse_args): Prevent infinite parsing loop when
1008 "-rpath.a" is specified on the command line.
1009 Replace calls to fprintf with calls to einfo.
1010
1011 2001-10-31 John Marshall <jmarshall@acm.org>
1012
1013 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1014 appear only once across all the linker scripts involved in a link
1015 invocation no longer applies. Make the documentation reflect
1016 that.
1017
1018 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1019
1020 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1021 targets.
1022 (sh-*-linux*): Added targ_extra_libpath.
1023
1024 2001-10-31 David Heine <dlheine@tensilica.com>
1025
1026 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1027 for padding statements.
1028
1029 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1030
1031 * configure.tgt (mmix-*-*): New target.
1032 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1033 Add dependencies to match.
1034 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1035 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1036 scripttempl/mmo.sc: New files.
1037 * gen-doc.texi: @set MMIX.
1038 * ld.texinfo: Ditto.
1039 [MMIX] Add MMIX node.
1040 * Makefile.in: Regenerate.
1041
1042 2001-10-29 Kazu Hirata <kazu@hxi.com>
1043
1044 * ldlang.c: Fix a comment typo.
1045
1046 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1047
1048 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1049 entries, and match *-*-linux*.
1050
1051 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1052
1053 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1054 with ldlex_script, ldlex_popstate.
1055 (ifile_p1): Likewise.
1056 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1057 correct slot.
1058 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1059 to 1. Don't BEGIN(SCRIPT).
1060 (lex_redirect): Similarly.
1061 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1062
1063 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1064
1065 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1066 __EH_FRAME_END__ and accept eh frames into data section.
1067 Add ctor and dtor sections.
1068
1069 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1070
1071 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1072 (auto-export): Fix indentation.
1073
1074 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1075
1076 * pe-dll.c (autofilter_objectlist): Add startup objects
1077 for profiling.
1078 (auto-export): Constify char * p.
1079 Extract file basename and use strcmp rather than ststr
1080 for object lookup.
1081
1082 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1083
1084 * ldmain.c (get_emulation): Improve comment about the handling
1085 of -mipsN options.
1086
1087 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1088
1089 * po/POTFILES.in: Regenerate.
1090
1091 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1092
1093 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1094 -z nocopyreloc and -z nocombreloc usage strings.
1095
1096 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1097
1098 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1099 in usage.
1100
1101 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1102
1103 * scripttempl/armaout.sc: Place .bss section after end of aligned
1104 data section to match behaviour of aout code in constructrion of
1105 header.
1106
1107 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1108
1109 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1110 startup files for mingw32 dlls to list.
1111
1112 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1113
1114 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1115
1116 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1117
1118 * configure.tgt (targ): Add arm9e-*-elf.
1119
1120 2001-10-05 H.J. Lu <hjl@gnu.org>
1121
1122 * genscripts.sh: Fix a typo in the last change.
1123
1124 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1125
1126 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1127 -z nocombreloc in usage.
1128
1129 2001-10-03 Jim Blandy <jimb@redhat.com>
1130
1131 * genscripts.sh: Include a comment at the top of each generated
1132 script, explaining its purpose.
1133
1134 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1135
1136 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1137 * NEWS: Mention -z nocopyreloc.
1138 * ld.texinfo (Options): Describe nocopyreloc.
1139
1140 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1141
1142 * configure: Regenerate.
1143
1144 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1145
1146 * ldver.h (ld_program_version): Remove declaration.
1147 * lexsup.c (parse_args): Move printing of copyright message..
1148 * ldver.c (ldversion): .. to here.
1149 Use BFD_VERSION_STRING in place of BFD_VERSION.
1150 (ld_program_version): Remove.
1151 * Makefile.am (Makefile): Depend on bfd/configure.in.
1152 Run "make dep-am".
1153 * Makefile.in: Regenerate.
1154
1155 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1156
1157 * Makefile.am: Update dependencies with "make dep-am".
1158 * Makefile.in: Regenerate.
1159
1160 2001-09-29 John Reiser <jreiser@BitWagon.com>
1161
1162 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1163 * lexsup.c: Add --no-define-common commandline option.
1164 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1165 * ldlex.l: Likewise.
1166 * ld.h: Add command_line.inhibit_common_definition.
1167 * ldmain.c (main): Initialize.
1168 * ld.texinfo: Document.
1169
1170 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1171
1172 * ldmisc.c (USE_STDARG): Remove.
1173 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1174 (einfo): Likewise.
1175 (minfo): Likewise.
1176 (lfinfo): Likewise.
1177
1178 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1179 declarations. Update copyright.
1180
1181 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1182
1183 * pe-dll.c: Remove obsoleted declaration of
1184 pe_get_data_import_dll_name.
1185 (pe_create_import_fixup): Fix thinko.
1186
1187 * ld.texinfo(enable-auto-import): Clarify the explanation.
1188
1189 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1190
1191 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1192 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1193 DLL_SUPPORT controlled code.
1194
1195 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1196
1197 * emultempl/pe.em(pe_data_import_dll): Make static.
1198 (pe_get_data_import_dll_name): New accessor function.
1199 * pe-dll.c(pe_create_import_fixup): call
1200 pe_get_data_import_dll_name() from pe.em, instead of
1201 directly accessing pe_data_import_dll variable from pe.em.
1202
1203 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1204
1205 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1206 (def_file_add_directive): Use ISSPACE instead of isspace.
1207 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1208 isdigit/isxdigit/isalpha/isalnum.
1209 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1210 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1211 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1212 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1213 isalnum.
1214 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1215 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1216 isupper/tolower.
1217 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1218 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1219 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1220 (ctor_prio): Use ISDIGIT instead of isdigit.
1221 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1222 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1223 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1224 isupper/tolower.
1225 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1226 (stricpy): Use TOLOWER instead of isupper/tolower.
1227 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1228 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1229 (lex_warn_invalid): Use ISPRINT instead of isprint.
1230 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1231 (main): For gettext, also set the LC_CTYPE locate facet.
1232 (add_keepsyms_file): Use ISSPACE instead of isspace.
1233 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1234 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1235 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1236 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1237 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1238 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1239 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1240 (quoteput): Use ISSPACE instead of isspace.
1241 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1242 instead of isalnum.
1243
1244 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1245
1246 * deffilep.y (def_stash_module): Constify "name" param.
1247
1248 * pe-dll.c: Replace CONST with const throughout.
1249 (quick_symbol): Constify "n1", "n2", "n3" params.
1250 (make_singleton_name_thunk): Constify "import" param. Make
1251 "buffer_len" a size_t.
1252 (make_import_fixup_entry): Constify "name", "fixup_name",
1253 "dll_symname" params.
1254 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1255 (pe_get32): Likewise.
1256 (pe_implied_import_dll): Likewise.
1257
1258 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1259 (sort_by_section_name): Likewise.
1260
1261 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1262 (make_import_fixup): Cast printf arg, rel->address to long rather
1263 than int.
1264 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1265
1266 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1267
1268 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1269 defines BufferSize. Increase buffer size by one.
1270
1271 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1272
1273 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1274
1275 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1276
1277 * configure.tgt: Add arm-openbsd target.
1278
1279 2001-09-12 H.J. Lu <hjl@gnu.org>
1280
1281 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1282 eelf64lppc.o to ...
1283 (ALL_64_EMULATIONS): Here.
1284 * Makefile.in: Regenerated.
1285
1286 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1287
1288 * emultempl/pe.em(make_import_fixup): change signature to
1289 take asection as well as arelec; we need this for proper
1290 error reporting. Only call pe_create_import_fixup() if
1291 there is no attempt to add a constant addend to the reloc;
1292 otherwise, report error condition.
1293 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1294 since final argument is a pointer to make_import_fixup().
1295 Change call to cb() to match make_import_fixup() signature.
1296 (make_import_fixup_mark): make buffer_len unsigned.
1297 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1298
1299 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1300
1301 * ld.texinfo: add verbose documentation for auto-import
1302 direct-addressing workaround, to compliment the terse
1303 error message.
1304
1305 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1306
1307 * scripttempl/v850.sc: Add gcc_except_table sections.
1308
1309 2001-09-11 Jeffrey A Law (law@cygnus.com)
1310
1311 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1312 * emulparams/h8300self.sh: Similarly.
1313
1314 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1315
1316 * ld.texinfo (Options, --stack): Correct default value for stack
1317 reserve.
1318
1319 2001-09-05 Tom Rix <trix@redhat.com>
1320
1321 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1322
1323 2001-09-03 Andreas Jaeger <aj@suse.de>
1324
1325 * emultempl/beos.em: Declare prototypes for comparions functions,
1326 adjust definitions.
1327
1328 2001-09-02 Andreas Jaeger <aj@suse.de>
1329
1330 * emultempl/aix.em: Add missing prototype.
1331 * emultempl/lnk960.em: Likewise.
1332 * emultempl/vanilla.em: Likewise.
1333 * emultempl/armcoff.em: Likewise.
1334 * emultempl/armelf_oabi.em: Likewise.
1335 * emultempl/beos.em: Likewise.
1336 * emultempl/gld960c.em: Likewise.
1337 * emultempl/gld960.em: Likewise.
1338
1339 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1340 for prototype declaration.
1341
1342 2001-08-31 Eric Christopher <echristo@redhat.com>
1343 Jason Eckhardt <jle@redhat.com>
1344
1345 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1346
1347 2001-08-31 Andreas Jaeger <aj@suse.de>
1348
1349 * emultempl/pe.em: Add missing prototypes.
1350 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1351 pe_find_data_imports.
1352 (pr_sym): Add unused attribute.
1353
1354 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1355
1356 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1357 default from coff to elf.
1358
1359 2001-08-29 Jeff Law <law@redhat.com>
1360
1361 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1362 ARCH specification.
1363 * emulparams/h8300self.sh: Similarly.
1364
1365 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1366
1367 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1368 eh8300self.o .
1369 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1370 * configure.tgt (h8300-*-elf*): New case.
1371 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1372 * emulparams/h8300self.sh: New file.
1373 * Makefile.in: Regenerated.
1374
1375 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1376
1377 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1378 with macro name.
1379
1380 2001-08-27 Linus Nordberg <linus@swox.com>
1381 Alan Modra <amodra@bigpond.net.au>
1382
1383 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1384 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1385 Run "make dep-am"
1386 * Makefile.in: Regenerate.
1387 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1388 entries to correct alphabetical position.
1389 * emulparams/elf64ppc.sh: New.
1390 * emulparams/elf64lppc.sh: New.
1391
1392 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1393
1394 * ldmain.c (main): Declare BSIZE as static.
1395
1396 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1397
1398 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1399 into .rel.dyn resp. .rela.dyn if combreloc.
1400 (get_script): If .x linker script is equal to .xn, only put it
1401 once into the binary.
1402 Add .xc and .xsc scripts.
1403 (parse_args): Handle -z combreloc and -z nocombreloc.
1404 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1405 For .xc and .xsc scripts put all .rel* or .rela* input sections
1406 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1407 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1408 is elf.
1409 Strip trailing whitespace from script.
1410 Generate .xc and .xsc scripts if requested.
1411 * ldmain.c (main): Initialize link_info.combreloc and
1412 link_info.spare_dynamic_tags.
1413 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1414 (ld_options): Add --spare-dynamic-tags option.
1415 (parse_args): Likewise.
1416 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1417 * ldint.texinfo: Document .xc and .xsc linker scripts.
1418 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1419
1420 2001-08-22 H.J. Lu <hjl@gnu.org>
1421
1422 * emulparams/elf32fr30.sh: Add a newline.
1423
1424 2001-08-21 Andreas Jaeger <aj@suse.de>
1425
1426 * deffilep.y: Add missing prototypes.
1427 * pe-dll.c: Likewise.
1428
1429 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1430
1431 * ldlang.c (insert_pad): Fix typos in last patch.
1432
1433 * ldlang.c: When traversing lang_statement_union_type lists,
1434 consistently use "header.next" rather than "next".
1435 * mpw-eppcmac.c: Likewise.
1436 * emultempl/beos.em: Likewise.
1437 * emultempl/hppaelf.em: Likewise.
1438 * emultempl/pe.em: Likewise.
1439 * ldlang.h (union lang_statement_union): Remove "next" field.
1440
1441 * ldlang.c (insert_pad): Use offsetof macro.
1442 (lang_size_sections): Always neuter padding statements.
1443 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1444
1445 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1446 passed to lang_size_sections.
1447 (pe_exe_fill_sections): Likewise.
1448 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1449 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1450
1451 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1452
1453 * emultempl/aix.em: Formatting fixes.
1454
1455 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1456
1457 * ldlang.c (insert_pad): Make use of an existing pad statement if
1458 available. Move code calculating alignment, adjusting section
1459 alignment power, and adjusting dot to ..
1460 (size_input_section): .. here. Remove unused relax param.
1461 (lang_size_sections): Change boolean `relax' param to boolean *.
1462 Adjust call to size_input_section. Make use of insert_pad to
1463 place pad after the assignment statement. If relaxing, zap
1464 padding statements.
1465 (reset_memory_regions): Reset output_bfd section sizes too.
1466 (relax_again): Move to..
1467 (lang_process): ..here. Adjust call to lang_size_sections, and
1468 remove duplicated code.
1469 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1470
1471 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1472
1473 * ld.texinfo: Document that fill values now use the four least
1474 significant bytes.
1475 * emulparams/elf32fr30.sh (NOP): Update.
1476 * emulparams/elf32mcore.sh: Likewise.
1477 * emulparams/elf64_s390.sh: Likewise.
1478 * emulparams/elf_i386.sh: Likewise.
1479 * emulparams/elf_i386_be.sh: Likewise.
1480 * emulparams/elf_i386_chaos.sh: Likewise.
1481 * emulparams/elf_i386_ldso.sh: Likewise.
1482 * emulparams/elf_s390.sh: Likewise.
1483 * emulparams/elf_x86_64.sh: Likewise.
1484 * emulparams/i386moss.sh: Likewise.
1485 * emulparams/i386nw.sh: Likewise.
1486 * emulparams/m68kelf.sh: Likewise.
1487 * scripttempl/elf.sc: Update NOP comment.
1488 * scripttempl/elfi370.sc: Likewise.
1489 * scripttempl/elfm68hc11.sc: Likewise.
1490 * scripttempl/elfm68hc12.sc: Likewise.
1491 * scripttempl/nw.sc: Likewise.
1492
1493 2001-08-15 Tom Rix <trix@redhat.com>
1494
1495 * ldgram.y (saved_script_handle): Initialize to NULL.
1496 * ldmain.c (main): Change check on saved_script_handle.
1497
1498 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1499
1500 * emultempl/elf32.em: Formatting fixes.
1501 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1502 looking at sec->owner.
1503 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1504 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1505 unused code, and reorganize orphan section placement code.
1506
1507 * ldlang.c (wild_doit): Rename to lang_add_section.
1508 * ldlang.h: Here too.
1509 * mpw-elfmips.c: And here.
1510 * emultempl/beos.em: And here.
1511 * emultempl/elf32.em: And here.
1512 * emultempl/hppaelf.em: And here.
1513 * emultempl/pe.em: And here.
1514
1515 2001-08-13 Richard Henderson <rth@redhat.com>
1516
1517 * emultempl/needrelax.em: New file.
1518 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1519 * Makefile.am (eelf64_ia64.c): Depend on it.
1520 * Makefile.in: Rebuild.
1521
1522 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1523
1524 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1525 output_section is set non-NULL.
1526
1527 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1528 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1529 needlessly create an output_section_statement. Treat a correctly
1530 named output_section_statement with NULL bfd_section as compatible.
1531
1532 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1533
1534 * emultempl/generic.em: Support EXTRA_EM_FILE.
1535 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1536 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1537 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1538 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1539 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1540 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1541 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1542 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1543 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1544 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1545
1546 2001-08-12 Richard Henderson <rth@redhat.com>
1547
1548 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1549 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1550 scripttempl/v850.sc: Keep .jcr data.
1551
1552 2001-08-12 H.J. Lu <hjl@gnu.org>
1553 Andrew Haley <aph@cambridge.redhat.com>
1554 Nick Clifton <nickc@redhat.com>
1555
1556 * ldgram.y (had_script): Change name to saved_script_handle.
1557 Change type to file handle.
1558 * ld.h (had_script): Rename and retype.
1559 * ldfile.c (ldfile_open_command_file): Save the file handle
1560 used in saved_script_handle.
1561 * lexsup.c (parse_args): Do not allow -c option to alter
1562 saved_script_handle.
1563 * ldmain.c (main): Print out the linker script used if
1564 --verbose is given. Check saved_script_handle to obtain the
1565 external linker script used, or if NULL, dump the builtin
1566 script.
1567 * ld.texinfo: Document that --verbose now dumps the linker
1568 script used, regardless of whether it was an internal or an
1569 external script.
1570
1571 2001-08-10 Andreas Jaeger <aj@suse.de>
1572
1573 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1574 to build warnings.
1575 * configure: Regenerate.
1576
1577 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1578
1579 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1580
1581 * scripttempl/elf.sc: Move non-text .dynamic section before
1582 .plt/.got/.sdata* group.
1583 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1584 (OTHER_SDATA_SECTIONS): Add.
1585 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1586 OTHER_GOT_SECTIONS.
1587 * emulparams/crislinux.sh: Likewise.
1588 * emulparams/elf32b4300.sh: Likewise.
1589 * emulparams/elf32bmip.sh: Likewise.
1590 * emulparams/elf32bmipn32.sh: Likewise.
1591 * emulparams/elf32bsmip.sh: Likewise.
1592 * emulparams/elf32btsmip.sh: Likewise.
1593 * emulparams/elf32ebmip.sh: Likewise.
1594 * emulparams/elf32elmip.sh: Likewise.
1595 * emulparams/elf32l4300.sh: Likewise.
1596 * emulparams/elf32lmip.sh: Likewise.
1597 * emulparams/elf32lsmip.sh: Likewise.
1598 * emulparams/elf32ltsmip.sh: Likewise.
1599 * emulparams/elf64bmip.sh: Likewise.
1600 * emulparams/elf64btsmip.sh: Likewise.
1601 * emulparams/elf64ltsmip.sh: Likewise.
1602
1603 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1604
1605 * genscripts.sh: Source the emulparams script before each output
1606 script is generated so that variables like `RELOCATING' may affect
1607 variables defined in the emulparams script.
1608
1609 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1610
1611 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1612 order.
1613
1614 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1615 ie. iterate over wild_statement.section_list.
1616 (gld${EMULATION_NAME}_place_orphan): Likewise.
1617
1618 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1619
1620 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1621 .fini[0-4] sections used by _exit
1622 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1623 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1624 * scripttempl/elfm68hc11.sc: Likewise.
1625
1626 2001-08-03 H.J. Lu <hjl@gnu.org>
1627
1628 * emultempl/beos.em (init): Add the missing initialization.
1629
1630 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1631
1632 * ld.texinfo (Input Section Basics): Clarify ordering of output
1633 sections.
1634 * ldlang.c (callback_t): Add wildcard_list param.
1635 (walk_wild_section): Remove "section" param. Rewrite for
1636 lang_wild_statement_type change. Remove unique_section_p test.
1637 (walk_wild_file): Remove "section" param.
1638 (walk_wild): Remove "section" and "file" params.
1639 (lang_gc_wild): Likewise.
1640 (wild): Likewise. Modify for lang_wild_statement_type change.
1641 (wild_sort): Likewise. Add "sec" param.
1642 (gc_section_callback): Likewise.
1643 (output_section_callback): Likewise. Do unique_section_p test.
1644 (map_input_to_output_sections): Modify call to wild.
1645 (lang_gc_sections_1): Likewise.
1646 (print_wild_statement): Modify for lang_wild_statement_type
1647 change.
1648 (lang_add_wild): Replace filename, filenames_sorted param with
1649 filespec. Replace section_name, sections_sorted,
1650 exclude_filename_list with section_list.
1651 * ldlang.h (lang_add_wild): Here too.
1652 (lang_wild_statement_type): Replace section_name, sections_sorted,
1653 and exclude_filename_list with section_list.
1654 * ldgram.y (current_file): Delete.
1655 (%union): Add wildcard_list.
1656 (file_NAME_list): Set type to wildcard_list. Build a linked list
1657 rather than calling lang_add_wild for each entry.
1658 (input_section_spec_no_keep): Call lang_add_wild here instead.
1659 * ld.h (struct wildcard_list): Declare.
1660 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1661
1662 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1663
1664 * ldmain.c (main): initialize link_info.pei386_auto_import
1665 * pe-dll.c: new tables for auto-export filtering
1666 (auto_export): change API, pass abfd for contextual filtering.
1667 Loop thru tables of excluded symbols instead of comparing
1668 "by hand".
1669
1670 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1671
1672 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1673 static variable current_sec (static struct sec *). Add
1674 forward declaration for add_bfd_to_link.
1675 (process_def_file): Don't export undefined symbols. Do not
1676 export symbols starting with "_imp__". Call auto_export()
1677 with new API.
1678 (pe_walk_relocs_of_symbol): New function.
1679 (generate_reloc): add optional extra debugging
1680 (pe_dll_generate_def_file): eliminate extraneous initial blank
1681 line in output
1682 (make_one): enlarge symtab to make room for __nm__ symbols
1683 (DATA auto-import support).
1684 (make_singleton_name_thunk): New function.
1685 (make_import_fixup_mark): New function.
1686 (make_import_fixup_entry): New function.
1687 (pe_create_import_fixup): New function.
1688 (add_bfd_to_link): Specify that 'name' argument is a CONST
1689 char *.
1690 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1691 declare new functions pe_walk_relocs_of_symbol and
1692 pe_create_import_fixup.
1693 * emultempl/pe.em: add new options --enable-auto-import,
1694 --disable-auto-import, and --enable-extra-pe-debug.
1695 (make_import_fixup): New function.
1696 (pe_find_data_imports): New function.
1697 (pr_sym): New function.
1698 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1699 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1700 CODE.
1701
1702 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1703
1704 * ld.texinfo: add additional documentation for
1705 --export-all-symbols. Document --out-implib,
1706 --enable-auto-image-base, --disable-auto-image-base,
1707 --dll-search-prefix, --enable-auto-import, and
1708 --disable-auto-import.
1709 * ldint.texinfo: Add detailed documentation on auto-import
1710 implementation.
1711
1712 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1713
1714 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1715 example.
1716
1717 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1718
1719 * Makefile.am: Update dependencies with "make dep-am".
1720 * Makefile.in: Regenerate
1721
1722 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1723
1724 * ldcref.c (check_section_sym_xref): New function.
1725 (check_nocrossrefs): Call it.
1726 (check_nocrossref): Interate over h->refs here instead of..
1727 (check_refs): ..here. Pass in the symbol name, section, and bfd
1728 rather than hash_entry pointers.
1729 (struct check_refs_info): Keep symbol name rather than hash entry.
1730 Remove "same".
1731 (check_reloc_refs): Tweak for above changes in check_refs_info.
1732 Only report references to section syms when symname is NULL to
1733 prevent duplicate messages for the same reloc.
1734
1735 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1736
1737 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1738 available. Do not print NULL trees.
1739 (exp_print_token): Print unknown tokens with values > 126 as
1740 decimal values not ASCII characters.
1741
1742 * ldlang.c (lang_leave_overlay): If a region is specified assign
1743 it to all sections inside the overlay unless they have been
1744 assigned to the own, non-default, memory region.
1745
1746 * README: Add header for consistency with other README files.
1747
1748 2001-07-14 H.J. Lu <hjl@gnu.org>
1749
1750 * emultempl/elf32.em (output_prev_sec_find): Never return
1751 bfd_abs_section_ptr, bfd_com_section_ptr nor
1752 bfd_und_section_ptr.
1753
1754 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1755
1756 * Makefile.am (em32relf.c): Change dependency from generic.em to
1757 elf32.em.
1758 * Makefile.in: Regenerate.
1759
1760 2001-07-14 matthew green <mrg@eterna.com.au>
1761
1762 * configure.tgt (i386-*-netbsdelf*): New target.
1763 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1764
1765 2001-07-13 Jakub Jelinek <jakub@redhat.com>
1766
1767 * emultempl/elf32.em (output_prev_sec_find): New.
1768 (place_orphan): Use it.
1769
1770 2001-07-11 H.J. Lu <hjl@gnu.org>
1771
1772 * ldmain.c (main): Fix typos in the last change.
1773
1774 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1775
1776 * ldmain.c (main): Disallow -F and -f without -shared.
1777
1778 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1779
1780 * emultempl/pe.em (after_open): Check for the output_bfd not
1781 having any coff_data structure allocated to it.
1782
1783 2001-07-09 David O'Brien <obrien@FreeBSD.org>
1784
1785 * emultempl/elf32.em: Do not assuming that contents of the buffer
1786 returned from basename function will remain unchanged accross other
1787 function calls.
1788
1789 2001-07-03 H.J. Lu <hjl@gnu.org>
1790
1791 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1792 2001-07-03. It creates dynamic entries even for static binaries.
1793
1794 2001-07-03 Jakub Jelinek <jakub@redhat.com>
1795
1796 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1797 (DYNAMIC): Use it to reserve few dynamic entries for
1798 post-linking tools.
1799
1800 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1801
1802 * emulparams/hppa64linux.sh: New file.
1803 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1804 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1805 (ehppa64linux.c): Add rule to make it.
1806 Run "make dep-am".
1807 * Makefile.in: Regenerate.
1808
1809 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
1810
1811 * ld.texinfo (Options, -r): Mention restrictions when using
1812 different object formats.
1813
1814 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
1815
1816 * ldlang.c (lang_check): Emit fatal error if relocatable link
1817 between different object flavours with relocations in input.
1818
1819 2001-06-19 H.J. Lu <hjl@gnu.org>
1820
1821 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1822 (--version-script): Mention the language support.
1823
1824 2001-06-19 H.J. Lu <hjl@gnu.org>
1825
1826 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1827
1828 2001-06-18 H.J. Lu <hjl@gnu.org>
1829
1830 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1831 (diststuff): Add $(MANS).
1832 * Makefile.in: Regenerated.
1833
1834 * ld.1: Removed.
1835
1836 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
1837
1838 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1839 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1840 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1841 * ld.h (args_type): Remove member export_dynamic. All users
1842 changed to use struct bfd_link_info member.
1843
1844 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1845 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1846 * Makefile.in: Regenerate.
1847
1848 2001-06-18 H.J. Lu <hjl@gnu.org>
1849
1850 * ldlang.c (init_os): Add the newline to the einfo call.
1851 (lang_check): Likewise.
1852 (lang_do_version_exports_section): Likewise.
1853
1854 2001-06-15 H.J. Lu <hjl@gnu.org>
1855
1856 * lexsup.c (parse_args); Save optind to report unrecognized
1857 option.
1858
1859 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
1860
1861 * ldlang.c (lang_check): Emit fatal error if relocatable link
1862 between different object flavours.
1863
1864 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1865 Set new link_info member export_dynamic.
1866 * ldmain.c (main): Initialize new link_info member export_dynamic.
1867
1868 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1869
1870 * ldlang.c (walk_wild): Only call walk_wild_file if
1871 lookup_name returns something.
1872 (lookup_name): If load_symbols fails, return NULL.
1873 (load_symbols): Change to a boolean function.
1874 (open_input_bfds): If load_symbols fails then do not make the
1875 executable.
1876
1877 2001-06-08 Alan Modra <amodra@bigpond.net.au>
1878
1879 * ldlang.c (record_bfd_errors): Remove.
1880
1881 * emultempl/aix.em: Fix copyright dates.
1882
1883 2001-06-07 Andreas Jaeger <aj@suse.de>
1884
1885 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1886 (TEXT_START_ADDR): Likewise.
1887
1888 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1889
1890 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1891
1892 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1893
1894 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1895
1896 2001-05-31 H.J. Lu <hjl@gnu.org>
1897
1898 * ldlang.c (open_input_bfds): Don't change the bfd error
1899 handler whilst loading symbols.
1900
1901 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1902
1903 * configure.tgt: Remove i370-mvs architecture, it is not currently
1904 supported.
1905
1906 2001-05-25 H.J. Lu <hjl@gnu.org>
1907
1908 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1909 like emulparams/aixppc.sh.
1910
1911 2001-05-25 H.J. Lu <hjl@gnu.org>
1912
1913 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
1914 setting of output_filename after bfd_scan_arch.
1915 * emultempl/pe.em: Likewise.
1916
1917 2001-05-25 H.J. Lu <hjl@gnu.org>
1918
1919 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1920 like emulparams/aixppc.sh.
1921
1922 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
1923 instead of ${srcdir}/emultempl/stringify.sed.
1924
1925 2001-05-25 Timothy Wall <twall@oculustech.com>
1926
1927 * emulparams/elf64_aix.sh: Change settings to match IBM linker
1928 output.
1929
1930 2001-05-25 Alan Modra <amodra@one.net.au>
1931
1932 * configure.host: Replace linuxoldld with linux*oldld.
1933 * configure.tgt: Likewise.
1934
1935 2001-05-24 H.J. Lu <hjl@gnu.org>
1936
1937 * emultempl/stringify.sed: Removed again.
1938
1939 2001-05-24 H.J. Lu <hjl@gnu.org>
1940
1941 * emultempl/aix.em (OUTPUT_ARCH): Defined.
1942 (gld${EMULATION_NAME}_before_parse): Initialize
1943 ldfile_output_architecture, ldfile_output_machine and
1944 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
1945 * emultempl/beos.em: Likewise.
1946 * emultempl/elf32.em: Likewise.
1947 * emultempl/linux.em: Likewise.
1948 * emultempl/mipsecoff.em: Likewise.
1949 * emultempl/pe.em: Likewise.
1950 * emultempl/sunos.em: Likewise.
1951
1952 2001-05-24 Tom Rix <trix@redhat.com>
1953
1954 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
1955 udate import file format.
1956 (change_symbol_mode) New, same
1957 (is_syscall) New, same
1958 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
1959 * emulparams/aixppc64.sh : same
1960 * emulparams/aixrs6.sh : same
1961 * emulparams/ppcmacos.sh : same
1962 * emultempl/aix.em : use strtoull to parse options
1963 * Makefile.am : add eaixppc64 emulation for xcoff64
1964 * Makefile.in : same
1965 * configure.tgt : same
1966
1967 * scripttempl/aix.sc : default text section offset to 0x10000000
1968 default data section offset to 0x20000000
1969 add .sv3264 and .sv64 pseudo sections
1970 loader and debug sections use the currect section offset.
1971
1972 * emultempl/aix.em : Add xcoff64 support
1973 Add -binitfini support
1974 (gld${EMULATION_NAME}_before_parse) -binitfini
1975 (gld${EMULATION_NAME}_parse_args) same
1976 (gld${EMULATION_NAME}_before_allocation) format change for special
1977 sections
1978
1979 * emulparams/aixppc64.sh : New file for xcoff64 support
1980
1981 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
1982
1983 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
1984 variable to avoid non-portable shell construct.
1985
1986 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1987
1988 * ldmain.c (get_emulation): Add -mips5 command line argument.
1989
1990 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
1991
1992 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
1993 (ELF_INTERPRETER_NAME): Define it.
1994 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
1995 it.
1996 * configure.tgt (targ_emul, targ_extra_emuls)
1997 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
1998 as primary, elf_i386 as extra.
1999 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2000 (eelf_i386_ldso.c): New rule.
2001 * Makefile.in: Rebuilt.
2002
2003 2001-05-22 Nick Clifton <nickc@redhat.com>
2004
2005 * lexsup.c (ld_options): Allow -I to be an alias for
2006 --dynamic-linker. This is for Solaris compatability.
2007 * ld.texinfo: Document that -I can be used.
2008 * ld.1: Regenerate.
2009
2010 2001-05-16 Alan Modra <amodra@one.net.au>
2011
2012 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2013 whether an input section is the first one assigned to an output
2014 section.
2015 Assorted formatting fixes.
2016
2017 2001-05-14 DJ Delorie <dj@delorie.com>
2018
2019 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2020 * Makefile.in: Ditto.
2021
2022 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2023
2024 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2025 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2026 output sections.
2027 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2028
2029 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2030
2031 * ldlang.c (lang_process): Call bfd_merge_sections.
2032
2033 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2034
2035 * ldgram.y: Fix typo.
2036
2037 2001-05-03 H.J. Lu <hjl@gnu.org>
2038
2039 * emultempl/elf32.em: Include "libiberty.h".
2040 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2041 basename of the bfd filename.
2042 (gld${EMULATION_NAME}_stat_needed): Likewise.
2043 (gld${EMULATION_NAME}_try_needed): Likewise.
2044 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2045
2046 2001-05-02 H.J. Lu <hjl@gnu.org>
2047
2048 * emultempl/pe.em: Include <ctype.h>.
2049
2050 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2051
2052 * emulparams/elf32openrisc.sh: New file.
2053
2054 * Makefile.am: Add OpenRISC target.
2055 * Makefile.in: Regenerated.
2056
2057 * configure.tgt: Add openrisc-*-* mapping.
2058
2059 2001-05-02 Nick Clifton <nickc@redhat.com>
2060
2061 * emultempl/aix.em: Replace buystring with xstrdup.
2062 * emultempl/beos.em: Replace buystring with xstrdup.
2063
2064 2001-05-02 H.J. Lu <hjl@gnu.org>
2065
2066 * ldfile.c: Include "libiberty.h".
2067 * ldlex.l: Likewise.
2068
2069 * ldmisc.c (buystring): Removed.
2070 * ldmisc.h: Likewise.
2071
2072 * ldfile.c: Replace buystring with xstrdup.
2073 * ldlang.c: Likewise.
2074 * ldlex.l: Likewise.
2075 * ldmain.c: Likewise.
2076 * ldmisc.c: Likewise.
2077 * lexsup.c: Likewise.
2078 * mpw-eppcmac.c: Likewise.
2079
2080 2001-04-30 Andreas Jaeger <aj@suse.de>
2081
2082 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2083
2084 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2085
2086 * ldlang.c (load_symbols): Give emulation a chance
2087 to process unrecognized file before fatal error is
2088 reported, not after.
2089
2090 2001-04-27 Sean McNeil <sean@mcneil.com>
2091
2092 * configure.tgt: Add arm-vxworks target.
2093 * scripttempl/armcoff.sc: Support .text or .data as a section name
2094 prefix.
2095 Define _etext.
2096
2097 2001-04-13 J.T. Conklin <jtc@redback.com>
2098
2099 * ld.texinfo: Document --fatal-warnings.
2100 * ld.1: Regenerate.
2101
2102 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2103 warnings have been turned into errors.
2104 * lexsup.c (OPTION_WARN_FATAL): Define.
2105 (ld_options): Entry for --fatal-warnings.
2106 (parse_args): Handle OPTION_WARN_FATAL.
2107 * ld.h (ld_config_type): Add fatal_warnings field.
2108
2109 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2110
2111 * ldmain.c (main): Default to discard_sec_merge.
2112 * lexsup.c (OPTION_DISCARD_NONE): Define.
2113 (ld_options): Add --discard-none.
2114 (parse_args): Handle OPTION_DISCARD_NONE.
2115 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2116 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2117 all its input sections match.
2118
2119 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2120
2121 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2122 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2123 (eelf32ltsmip.c): New target.
2124 (eelf64btsmip.c): Likewise.
2125 (eelf64ltsmip.c): Likewise.
2126 * Makefile.in: Regenerated.
2127
2128 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2129 target.
2130 (mips*-*-linux-gnu*): Likewise.
2131
2132 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2133 MIPS taget.
2134 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2135 target.
2136 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2137 endian target.
2138
2139 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2140
2141 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2142 correct value of __Stext here.
2143 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2144 .startup section.
2145
2146 * emulparams/crislinux.sh: Remove FIXME.
2147
2148 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2149
2150 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2151 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2152
2153 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2154
2155 * configure.tgt (cris-*-*): Change default emulation to criself.
2156 (cris-*-*aout*): New rule.
2157
2158 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2159
2160 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2161 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2162
2163 2001-03-26 Andreas Jaeger <aj@suse.de>
2164
2165 * ld.texinfo (Overview): Fix syntax in texi code.
2166
2167 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2168
2169 * ld.texinfo: Put @c man indications to generate the ld man page.
2170 When generating man, define all the variables. Define SEEALSO
2171 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2172 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2173 (ld.1): Generate from ld.texinfo.
2174 * Makefile.in: Regenerate.
2175
2176 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2177
2178 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2179 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2180
2181 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2182
2183 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2184 is an absolute path look only for this file and not along the path.
2185
2186 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2187
2188 * emultempl/elf32.em (OPTION_GROUP): New macro.
2189 Add new option Bgroup to longopts.
2190 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2191 (gld*_list_options): Add -Bgroup and -z defs.
2192 * ld.1: Document -Bgroup and -z defs.
2193 * ld.texinfo: Likewise.
2194
2195 2001-03-07 Michael Meissner <meissner@redhat.com>
2196
2197 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2198 with sections created by -fdata-sections.
2199 (.dynbss,.bss): Ditto.
2200
2201 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2202
2203 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2204 after_allocation_default, not gld..._before_allocation.
2205
2206 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2207
2208 * configure.in (BFD_VERSION): New.
2209 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2210 * configure: Regenerate.
2211 * Makefile.am: Run "make dep-am"
2212 * Makefile.in: Regenerate.
2213
2214 2001-02-26 Timothy Wall <twall@cygnus.com>
2215
2216 * emulparams/elf64_aix.sh: Add additional read-only sections;
2217 uncomment lines which are now required.
2218
2219 2001-02-26 H.J. Lu <hjl@gnu.org>
2220
2221 * ldlang.c (open_input_bfds): Set the bfd error handler so
2222 that problems can be caught whilst loading symbols.
2223 (record_bfd_errors): New function: Report BFD errors and mark
2224 the executable output as being invalid.
2225
2226 2001-02-22 Timothy Wall <twall@cygnus.com>
2227
2228 * configure.host: Add configuration for ia64-*-aix*.
2229 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2230 Add dependencies for eelf64_aix.c.
2231 * Makefile.in: Regenerate.
2232 * configure.tgt: Add ia64-*-aix* mapping.
2233 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2234 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2235 AIX-specific test.
2236
2237 2001-02-20 H.J. Lu <hjl@gnu.org>
2238
2239 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2240 false if we found the file.
2241
2242 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2243
2244 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2245 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2246
2247 2001-02-18 lars brinkhoff <lars@nocrew.org>
2248
2249 * Makefile.am: Add PDP-11 target.
2250 * configure.tgt: Likewise.
2251 * emulparams/pdp11.sh: New file.
2252
2253 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2254
2255 * configure.host: Add a generic FreeBSD configuration entry such that
2256 all [modern] FreeBSD systems on all platforms will look the same.
2257
2258 2001-02-14 H.J. Lu <hjl@gnu.org>
2259
2260 * configure.tgt: Remove mention of earmelf_linux26.
2261
2262 2001-02-13 Richard Henderson <rth@redhat.com>
2263
2264 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2265
2266 2001-02-13 H.J. Lu <hjl@gnu.org>
2267
2268 * ldexp.h (node_type): Add etree_provided.
2269 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2270 type to etree_provided if defined by PROVIDE. Allow updating
2271 for etree_provided.
2272 (exp_print_tree): Handle etree_provided.
2273 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2274 etree_provided.
2275
2276 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2277
2278 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2279 .IA_64.unwind.* pattern to unwind table section and
2280 .IA_64.unwind_info* pattern to unwind info section.
2281
2282 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2283
2284 * Makefile.am: Add linux target for S/390.
2285 * Makefile.in: Likewise.
2286 * configure.host: Likewise.
2287 * configure.tgt: Likewise.
2288 * emulparams/elf64_s390.sh: New file.
2289 * emulparams/elf_s390.sh: New file.
2290
2291 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2292
2293 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2294 targ_extra_libpath.
2295 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2296
2297 2001-02-06 Philip Blundell <philb@gnu.org>
2298
2299 * Makefile.am: Remove mention of earmelf_linux26.
2300 * Makefile.in: Regenerate.
2301
2302 2001-02-04 Philip Blundell <philb@gnu.org>
2303
2304 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2305 * emulparams/armelf_linux26.sh: Delete.
2306 * configure.tgt: Remove mention of armelf_linux26 emulation.
2307
2308 2001-02-01 Nick Clifton <nickc@redhat.com>
2309
2310 * ld.1: Replace occurances of -oformat with --oformat.
2311
2312 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2313
2314 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2315 load_base is specified.
2316
2317 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2318
2319 * emultempl/elf32.em: Correct spelling in comments and listed
2320 options.
2321
2322 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2323
2324 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2325 default for the first section of a group of overlay sections.
2326
2327 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2328
2329 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2330 * Makefile.in: Regenerate.
2331 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2332 Check for null tool_dir.
2333
2334 2001-01-16 Jim Wilson <wilson@redhat.com>
2335
2336 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2337 and IA_64.unwind.info.
2338
2339 2001-01-16 H.J. Lu <hjl@gnu.org>
2340
2341 * ldlang.c (lang_check): Merge the private data only if the
2342 input file has contents.
2343
2344 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2345
2346 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2347
2348 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2349 enabling search for libmilli. On a relocatable link, make .text
2350 sections unique.
2351 (LDEMUL_AFTER_PARSE): Define.
2352 (hppaelf_finish): Correct spelling of relocatable in comments.
2353
2354 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2355 rummage through the script for sections on the unique list.
2356 Correct length of strncmp for ".note".
2357 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2358
2359 * ldlang.c (unique_section_list): New var.
2360 (unique_section_p): New function.
2361 (walk_wild_section): Don't match sections on unique_section_list.
2362 (lang_add_unique): New function.
2363 Correct spelling of relocatable in comments.
2364
2365 * ldlang.h (struct unique_sections): Declare.
2366 (unique_section_list): Declare.
2367 (unique_section_p): Declare.
2368 (lang_add_unique): Declare.
2369
2370 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2371 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2372
2373 * ld.texinfo (--unique): Update.
2374
2375 2001-01-13 Nick Clifton <nickc@redhat.com>
2376
2377 * lexsup.c (parse_args): Remove spurious white space.
2378
2379 2001-01-12 Nick Clifton <nickc@redhat.com>
2380
2381 * lexsup.c (parse_args): Update copyright date.
2382
2383 2001-01-12 Philip Blundell <pb@futuretv.com>
2384
2385 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2386
2387 2001-01-10 Kazu Hirata <kazu@hxi.com>
2388
2389 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2390 * scripttempl/h8300h.sc: Fix formatting.
2391 * scripttempl/h8300s.sc: Likewise.
2392 * scripttempl/h8500.sc: Likewise.
2393 * scripttempl/h8500b.sc: Likewise.
2394 * scripttempl/h8500c.sc: Likewise.
2395 * scripttempl/h8500m.sc: Likewise.
2396 * scripttempl/h8500s.sc: Likewise.
2397
2398 2000-01-07 David O'Brien <obrien@BSDi.com>
2399
2400 * emultempl/elf32.em: Only perform Linux ld hints processing when
2401 targeting Linux.
2402
2403 2001-01-07 Philip Blundell <philb@gnu.org>
2404
2405 * ld.texinfo (Bug Reporting): Update email address for reports.
2406
2407 2000-12-31 Nick Clifton <nickc@redhat.com>
2408
2409 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2410 options by checking for a return value of '?' not -1.
2411
2412 2000-12-28 Nick Clifton <nickc@redhat.com>
2413
2414 * lexsup.c (struct ld_option): Add new enum value:
2415 EXACTLY_TWO_DASHES.
2416 (ld_options[]): Change -omagic, -output and -oformat options
2417 to be EXACTLY_TWO_DASHES.
2418 (OUTPUT_COUNT): Use ARRAY_SIZE.
2419 (parse_args): Change parameter 'argc' to unsigned.
2420 Place EXACTLY_TWO_DASHES options into new really_longopts
2421 array.
2422 If getopt_long_only fails, try calling getopt_long using the
2423 really_longopts array.
2424 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2425 TWO_DASHES options.
2426
2427 * ldlex.h: Fix prototype of parse_args.
2428
2429 * ld.texinfo: Document that long options starting with 'o'
2430 must be preceeded by two dashes. Change example of a single
2431 dashed long option from -oformat to -trace-symbol.
2432
2433 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2434
2435 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2436 (longopts[]): New --no-default-excludes option.
2437 (gld_${EMULATION_NAME}_list_options): Document.
2438 (gld_${EMULATION_NAME}_parse_args): Handle.
2439
2440 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2441
2442 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2443 whitespace, it breaks the K&R C preprocessor.
2444
2445 2000-12-11 DJ Delorie <dj@redhat.com>
2446
2447 * ld.texinfo: Add notes about --whole-archive and gcc.
2448
2449 2000-11-18 Fred Fish <fnf@be.com>
2450
2451 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2452 (ld_options): Entry for --allow-shlib-undefined.
2453 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2454 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2455 to false.
2456 * ld.texinfo: Document new command line switch.
2457
2458 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2459
2460 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2461 .fixup is actually read/write.
2462 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2463 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2464 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2465
2466 2000-12-11 Jan Hubicka <jh@suse.cz>
2467
2468 * NEWS: Add note about x86_64 architecture.
2469
2470 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2471
2472 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2473 Set DWARF2 sections to a VMA of zero.
2474
2475 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2476
2477 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2478 New targets.
2479 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2480 (sparc*-*-rtems*): Switched from a.out to ELF.
2481
2482 2000-11-30 Jan Hubicka <jh@suse.cz>
2483
2484 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2485 (eelf_x86_64.c): New.
2486 * Makefile.in: Regenerate.
2487 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2488 * emulparams/elf_x86_64.sh: New.
2489
2490 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2491
2492 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2493 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2494
2495 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2496 merging non-a.out sections into CONSTRUCTING.
2497
2498 2000-11-28 Nick Clifton <nickc@redhat.com>
2499
2500 * ld.1 (COPYING): Mention that the GNU Free Documentation
2501 License is present in the sources, but not the output, and
2502 also available from the GNU website.
2503 (GNU Free Documentation License): Comment out this section.
2504
2505 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2506
2507 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2508 does not use them.
2509
2510 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2511
2512 * ld.1: Remove old date so it does not give the impression the manpage
2513 is way out of date.
2514
2515 2000-11-24 Nick Clifton <nickc@redhat.com>
2516
2517 * configure.tgt (xscale-coff): Add target.
2518 (xscale-elf): Add target.
2519
2520 2000-11-24 Fred Fish <fnf@be.com>
2521
2522 * ldmain.c (main): Remove redundant init of config.make_executable
2523 to true.
2524
2525 2000-11-15 Richard Henderson <rth@redhat.com>
2526
2527 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2528
2529 2000-11-14 Kazu Hirata <kazu@hxi.com>
2530
2531 * scripttempl/h8300.sc: Fix formatting.
2532 * scripttempl/h8300h.sc: Likewise.
2533 * scripttempl/h8300s.sc: Likewise.
2534
2535 2000-11-14 Denis Chertykov <denisc@overta.ru>
2536
2537 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2538
2539 2000-11-09 Philip Blundell <pb@futuretv.com>
2540
2541 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2542 around orphan sections whose names can be represented in C.
2543
2544 2000-11-07 Jim Wilson <wilson@redhat.com>
2545
2546 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2547 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2548
2549 2000-11-06 Nick Clifton <nickc@redhat.com>
2550
2551 * ld.texinfo: Add GNU Free Documentation License.
2552 * ldint.texinfo: Add GNU Free Documentation License.
2553 * ld.1: Add GNU Free Documentation License.
2554
2555 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2556
2557 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2558 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2559
2560 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2561 Move 2000-11-02 Makefile.in changes to this file.
2562 * Makefile.in: Regenerate.
2563
2564 2000-11-03 Nick Clifton <nickc@redhat.com>
2565
2566 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2567 constructors and destructors.
2568 * scripttempl/h8300h.sc: Ditto.
2569 * scripttempl/h8300s.sc: Ditto.
2570 * scripttempl/h8500.sc: Ditto.
2571 * scripttempl/h8500b.sc: Ditto.
2572 * scripttempl/h8500c.sc: Ditto.
2573 * scripttempl/h8500m.sc: Ditto.
2574 * scripttempl/h8500s.sc: Ditto.
2575 * scripttempl/v850.sc: Ditto.
2576 * scripttempl/w65.sc: Ditto.
2577 * scripttempl/z8000.sc: Ditto.
2578
2579 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2580
2581 * Makefile.in (e_i386_chaos.c): New rule.
2582 (ALL_EMULATIONS): Added e_i386_chaos.o.
2583 * emulparams/elf_i386_chaos.sh: New file.
2584 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2585
2586 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2587
2588 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2589 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2590 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2591 library path suffix.
2592 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2593
2594 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2595
2596 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2597 for consecutive sections.
2598
2599 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2600
2601 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2602 options.
2603 * ld.texinfo: Added notes about this new option.
2604
2605 2000-10-16 Nick Clifton <nickc@redhat.com>
2606
2607 * emultempl/pe.em (_after_open): Add tests of return values from
2608 bfd functions. Emit appropriate error messages if necessary.
2609
2610 2000-10-13 Nick Clifton <nickc@redhat.com>
2611
2612 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2613 local variables - they are not used, but leave in the call to
2614 bfd_canonicalize_symtab.
2615 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2616 pe_dll_search_prefix.
2617
2618 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2619
2620 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2621 (longopts): New --dll-search-prefix option.
2622 (gld_${EMULATION_NAME}_list_options): Document.
2623 (gld_${EMULATION_NAME}_parse_args): Handle.
2624 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2625 dynamically, search for a dll named '<prefix><basename>.dll'
2626 in preference to 'lib<basename>.dll' if --dll-search-prefix
2627 is specified.
2628
2629 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2630
2631 * ldlang.c (section_already_linked): Set kept_section instead of
2632 sec->comdat->sec.
2633
2634 2000-10-10 Kazu Hirata <kazu@hxi.com>
2635
2636 * deffile.h: Fix formatting.
2637 * lexsup.c: Likewise.
2638 * mri.c: Likewise.
2639
2640 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2641
2642 * pe-dll.c (make_one): Do not generate code thunk for DATA
2643 exports.
2644 (process_def_file): deduce DATA flag for auto-export sumbols.
2645
2646 2000-10-09 Kazu Hirata <kazu@hxi.com>
2647
2648 * ld.h: Fix formatting.
2649 * ldcref.c: Likewise.
2650 * ldctor.h: Likewise.
2651 * ldemul.c: Likewise.
2652 * ldemul.h: Likewise.
2653 * ldexp.c: Likewise.
2654 * ldexp.h: Likewise.
2655 * ldfile.c: Likewise.
2656 * ldfile.h: Likewise.
2657 * ldlang.c: Likewise.
2658 * ldlang.h: Likewise.
2659 * ldmain.c: Likewise.
2660 * pe-dll.c: Likewise.
2661
2662 * pe-dll.c: Revert some formatting fixes.
2663
2664 2000-10-08 Kazu Hirata <kazu@hxi.com>
2665
2666 * pe-dll.c: Fix formatting.
2667
2668 2000-10-05 Kazu Hirata <kazu@hxi.com>
2669
2670 * ldlang.c: Fix formatting.
2671
2672 2000-10-03 DJ Delorie <dj@redhat.com>
2673
2674 * pe-dll.c (fill_edata): initialize entire block
2675 (make_one): fill in correct section.
2676
2677 2000-10-03 Kazu Hirata <kazu@hxi.com>
2678
2679 * ldexp.c: Fix formatting.
2680
2681 2000-10-02 DJ Delorie <dj@redhat.com>
2682
2683 * emultempl/pe.em (gld_*_after_open): detect case where there two
2684 import libraries for same dll; rename one to ensure proper link
2685 order.
2686
2687 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2688 typo
2689 (generate_edata): fix typo
2690
2691 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2692
2693 * scripttempl/crisaout.sc (ENTRY): Now __start.
2694 (.text): Add default setting for __start.
2695 Remove CONSTRUCTORS handling.
2696 (/DISCARD/): Add .gnu.warning.*.
2697 * emulparams/crislinux.sh (ENTRY): Now __start.
2698 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2699 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2700 (ENTRY): Now __start.
2701 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2702 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2703
2704 2000-09-29 Kazu Hirata <kazu@hxi.com>
2705
2706 * deffile.h: Fix formatting.
2707 * ld.h: Likewise.
2708 * ldcref.c: Likewise.
2709 * ldctor.c: Likewise.
2710 * ldctor.h: Likewise.
2711 * ldemul.c: Likewise.
2712 * ldemul.h: Likewise.
2713 * ldexp.c: Likewise.
2714 * ldexp.h: Likewise.
2715 * ldfile.c: Likewise.
2716 * ldfile.h: Likewise.
2717 * ldlang.c: Likewise.
2718 * ldlang.h: Likewise.
2719 * lexsup.c: Likewise.
2720 * mri.c: Likewise.
2721 * pe-dll.c: Likewise.
2722
2723 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2724
2725 * pe-dll.c (process_def_file): Uninitialized data wasn't
2726 exported with --export-all-symbols switch.
2727
2728 2000-09-28 DJ Delorie <dj@redhat.com>
2729
2730 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2731 noname work properly.
2732
2733 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2734
2735 * ld.texinfo (HPPA ELF32): New section.
2736
2737 * emultempl/hppaelf.em (group_size): New.
2738 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2739 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2740 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2741 options to prevent abbreviations matching.
2742 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2743 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2744
2745 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2746
2747 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2748 on the m68*-*-elf target. Make it support COFF input objects.
2749
2750 2000-09-21 Kazu Hirata <kazu@hxi.com>
2751
2752 * ldmain.c: Fix formatting.
2753 * ldmisc.c: Likewise.
2754 * ldver.c: Likewise.
2755 * ldwrite.c: Likewise.
2756
2757 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2758
2759 * ldwrite.c (clone_section): Silence gcc warnings.
2760
2761 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2762
2763 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2764 out of memory failure.
2765
2766 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2767 (clone_section): Handle out of memory failures. Rename var to
2768 avoid c++ reserved word.
2769
2770 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2771
2772 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2773 stub_name param to stub_sec_name.
2774 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2775
2776 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2777
2778 * emultempl/m68kelf.em: New file.
2779 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2780 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2781 * Makefile.in: Regenerate.
2782
2783 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2784
2785 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2786 only as needed.
2787
2788 2000-09-13 Nick Clifton <nickc@redhat.com>
2789
2790 * ldmain.c (multiple_definition): Disable relaxation if
2791 multiple symbol definitions are encountered - otherwise the
2792 linker could abort with an assertion failure.
2793
2794 2000-09-10 Nick Clifton <nickc@redhat.com>
2795
2796 * mri.c: Fix formatting.
2797
2798 2000-09-07 H.J. Lu <hjl@gnu.org>
2799
2800 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2801 * configure: Rebuild.
2802
2803 2000-09-07 H.J. Lu <hjl@gnu.org>
2804
2805 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2806 * Makefile.in: Rebuild.
2807
2808 2000-09-07 Alan Modra <alan@linuxcare.com.au>
2809
2810 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2811 broken list handling. Create __start_SECNAME and __stop_SECNAME
2812 when no place-holder. Add some comments. Test both SEC_CODE and
2813 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2814 Handle case where no output section statement created.
2815
2816 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2817
2818 * configure.tgt (sh-*-linux*): Added.
2819 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2820 * Makefile.in: Rebuilt.
2821 * emulparams/shelf_linux.sh: New file.
2822 * emulparams/shlelf_linux.sh: New file.
2823
2824 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2825
2826 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2827 try shuffling sections when the orphan happens to be the place
2828 holder. Keep count of unique section names generated so we speed
2829 the search for a new name.
2830
2831 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2832
2833 * configure: Rebuilt with new libtool.m4.
2834
2835 2000-09-05 Nick Clifton <nickc@redhat.com>
2836
2837 * Makefile.in: Regenerate.
2838 * aclocal.m4: Regenerate.
2839 * configure: Regenerate.
2840 * config.in: Regenerate.
2841 * po/ld.pot: Regenerate.
2842
2843 * ldint.texinfo: Remove CVS revision marker - it foils local
2844 comparisons.
2845
2846 * emultempl/ticoff.em: Remove extraneous comma.
2847
2848 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2849
2850 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2851 to stub section flags.
2852 (hppa_for_each_input_file_wrapper): New.
2853 (hppa_lang_for_each_input_file): New.
2854 (lang_for_each_input_file): Define to call above.
2855 (multi_subspace): New.
2856 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2857 (PARSE_AND_LIST_PROLOGUE): Define.
2858 (PARSE_AND_LIST_LONGOPTS): Define.
2859 (PARSE_AND_LIST_OPTIONS): Define.
2860 (PARSE_AND_LIST_ARGS_CASES): Define.
2861 (hppaelf_finish): Call elf32_hppa_set_gp.
2862 (hppaelf_set_output_arch): Remove.
2863 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2864
2865 * emulparams/hppalinux.sh (ELFSIZE): Define.
2866 (MACHINE): Define.
2867 (OTHER_READONLY_SECTIONS): Define.
2868 (DATA_PLT): Define.
2869 (GENERATE_SHLIB_SCRIPT): Define.
2870
2871 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2872 to const throughout. Change `void *' to `PTR' throughout.
2873 (lang_memory_default): Function is local to file, add `static'.
2874
2875 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2876 (ehppalinux.c): Likewise.
2877 (earmelf.c): Likewise.
2878 (earmelf_linux.c): Likewise.
2879 (earmelf_linux26.c): Likewise.
2880 * Makefile.in: Regenerate.
2881
2882 * ld.h (ld_config_type): Add unique_orphan_sections.
2883 * lexsup.c (OPTION_UNIQUE): Define.
2884 (ld_options): Add "--unique".
2885 (parse_args): Handle it.
2886 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2887 search for an existing output section if unique_orphan_sections is
2888 set. Make use of bfd_get_unique_section_name rather than
2889 duplicating code here.
2890 * ld.texinfo: Describe --unique.
2891
2892 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2893 optional arg to split-by-file.
2894 (parse_args): Handle them.
2895 * ld.texinfo: Update description of these options.
2896 * ldwrite.c (clone_section): Pass in the section name. Replace
2897 local code with bfd_get_unique_section_name.
2898 (split_sections): Tidy code and comments. Use a list traversal
2899 more appropriate to the list construction. Handle cooked section
2900 sizes. Split when split_by_reloc reached rather than exceeded.
2901 Track section size and split when split_by_file reached. Fix
2902 link_order_tail (even though it's not used).
2903 (ldwrite): Modify condition for calling split_sections to suit
2904 changed split_by_reloc and split_by_file.
2905 * ldmain.c (main): Init config.split_by_reloc and
2906 config.split_by_file to -1.
2907 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
2908 Change split_by_file to bfd_size_type.
2909
2910 2000-09-02 Nick Clifton <nickc@redhat.com>
2911
2912 * configure.in: Increase version number to 2.10.91.
2913 * NEWS: Mention new ability to support removal of duplicate DWARF2
2914 debug information.
2915 * configure: Regenerate.
2916 * aclocal.m4: Regenerate.
2917 * config.in: Regenerate.
2918
2919 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2920
2921 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
2922 sections.
2923 * scripttempl/elf32avr.sc: Ditto.
2924 * scripttempl/elfd10v.sc: Ditto.
2925 * scripttempl/elfd30v.sc: Ditto.
2926 * scripttempl/elfi370.sc: Ditto.
2927 * scripttempl/elfm68hc11.sc: Ditto.
2928 * scripttempl/elfm68hc12.sc: Ditto.
2929 * scripttempl/elfi386beos.sc: Ditto.
2930 * scripttempl/v850.sc: Ditto.
2931
2932 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2933
2934 * acinclude.m4: Include libtool and gettext macros from the
2935 top level.
2936 * aclocal.m4, configure: Rebuilt.
2937
2938 2000-08-25 Nick Clifton <nickc@redhat.com>
2939
2940 * ldlang.c (open_output): When choosing the target for a
2941 particular endianness, do nothing if the target is not
2942 supported.
2943
2944 2000-08-25 H.J. Lu <hjl@gnu.org>
2945
2946 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2947 check -rpath nor LD_RUN_PATH for cross link.
2948 * ld.texinfo: Document the change.
2949
2950 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
2951
2952 * NEWS: Mention support for CRIS.
2953
2954 2000-08-23 H.J. Lu <hjl@gnu.org>
2955
2956 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
2957 the current runpath list from bfd_elf_get_runpath_list ()
2958 before search.
2959
2960 2000-08-22 H.J. Lu <hjl@gnu.org>
2961
2962 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
2963 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
2964 LD_LIBRARY_PATH for native linker. Display the needed DSO if
2965 trace_file_tries is non-zero.
2966 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
2967 if trace_file_tries is non-zero.
2968
2969 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
2970 * NEWS: Mention it.
2971
2972 2000-08-14 Jason Eckhardt <jle@cygnus.com>
2973
2974 * NEWS: Mention i860 support.
2975
2976 2000-08-14 Andreas Schwab <schwab@suse.de>
2977
2978 * scripttempl/elf.sc: Fix last change to use correct comment
2979 syntax.
2980
2981 2000-08-10 Geoff Keating <geoffk@cygnus.com>
2982
2983 * scripttempl/elf.sc: Add a comment giving the correspondence
2984 between sections, per-datum sections, and linkonce sections. Make
2985 the comment true even for .bss, .sdata, .sdata2, .sbss, and
2986 .sbss2.
2987
2988 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2989
2990 * emulparams/elf32_i860.sh: New file.
2991 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
2992 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
2993 (eelf32_i860.c): New rule.
2994 * Makefile.in: Regenerate.
2995
2996 2000-08-10 Nick Clifton <nickc@cygnus.com>
2997
2998 * emulparams/mipspe.sh (ENTRY): Add definition.
2999
3000 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3001
3002 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3003 in error message.
3004
3005 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3006
3007 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3008 the final size of .bss section.
3009 * scripttempl/elfm68hc12.sc: Likewise.
3010
3011 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3012
3013 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3014 gld${EMULATION_NAME}_parse_args for consistency. Combine
3015 lastoptind and prevoptind vars, and keep track of last optind.
3016 (gld_${EMULATION_NAME}_list_options): Rename to
3017 gld${EMULATION_NAME}_list_options.
3018
3019 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3020
3021 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3022 (i586-sco-sysv5uw7.1.0).
3023
3024 2000-07-27 H.J. Lu <hjl@gnu.org>
3025
3026 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3027 (PARSE_AND_LIST_PROLOGUE): New.
3028 (PARSE_AND_LIST_LONGOPTS): Likewise.
3029 (PARSE_AND_LIST_OPTIONS): Likewise.
3030 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3031 (PARSE_AND_LIST_EPILOGUE): Likewise.
3032
3033 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3034
3035 * emultempl/armelf.em: Elide functions common to elf32.em,
3036 ie. most of the file.
3037 (arm_elf_after_open): New. Do arm specific things then call
3038 gld${EMULATION_NAME}_after_open.
3039 (arm_elf_before_allocation): New. Call
3040 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3041 (PARSE_AND_LIST_PROLOGUE): Define.
3042 (PARSE_AND_LIST_SHORTOPTS): Define.
3043 (PARSE_AND_LIST_LONGOPTS): Define.
3044 (PARSE_AND_LIST_OPTIONS): Define.
3045 (PARSE_AND_LIST_ARGS_CASES): Define.
3046 (LDEMUL_AFTER_OPEN): Define.
3047 (LDEMUL_BEFORE_ALLOCATION): Define.
3048 (LDEMUL_BEFORE_PARSE): Define.
3049 (LDEMUL_FINISH): Define.
3050
3051 * emultempl/hppaelf.em: Similarly zap most of this file.
3052 (hppaelf_add_stub_section): Prototype.
3053 (hppaelf_layaout_sections_again): Prototype.
3054 (hook_in_stub): Prototype.
3055 (LDEMUL_SET_OUTPUT_ARCH): Define.
3056 (LDEMUL_FINISH): Define.
3057 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3058
3059 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3060 (EXTRA_EM_FILE): New.
3061 * emulparams/armelf_linux.sh: Likewise.
3062 * emulparams/armelf_linux26.sh: Likewise.
3063 * emulparams/hppalinux.sh: Likewise.
3064 * emulparams/hppaelf.sh: Likewise.
3065 (NOP): Define.
3066
3067 * emultempl/elf32.em: Fix formatting.
3068 (EXTRA_EM_FILE): Source it.
3069 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3070 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3071 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3072 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3073 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3074 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3075 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3076 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3077 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3078 allow functions in this file to be overridden.
3079 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3080
3081 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3082
3083 * emultempl/elf32.em: Reorganize file.
3084
3085 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3086
3087 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3088 specific option to fit 64-bit executable in the lower
3089 31-bit address range. This is done by changing start
3090 address of .interp (the very first section of executable)
3091 and then setting EF_ALPHA_32BIT elf header flag.
3092
3093 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3094
3095 * emultempl/m68kcoff.em: New file.
3096 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3097 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3098 generic.em.
3099 * Makefile.in: Regenerate.
3100
3101 2000-07-20 H.J. Lu <hjl@gnu.org>
3102
3103 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3104 and "disable-new-dtags" to stop getopt from treating -d/-e as
3105 abbreviations for these options.
3106
3107 2000-07-20 H.J. Lu <hjl@gnu.org>
3108
3109 * ld.texinfo: Add documentation for --disable-new-dtags and
3110 --enable-new-dtags.
3111
3112 * ldmain.c (main): Initialize link_info.new_dtags to false.
3113
3114 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3115 --disable-new-dtags and --enable-new-dtags.
3116 (gld_${EMULATION_NAME}_list_options): Likewise.
3117
3118 2000-07-05 Kenneth Block <krblock@computer.org>
3119
3120 * lexsup.c: Add optional style to demangle switch
3121 * ld.texinfo: Document optional style to demangle switch.
3122
3123 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3124
3125 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3126 ecrislinux.o.
3127 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3128 Regenerate dependencies.
3129 * Makefile.in: Rebuild.
3130 * configure.tgt (cris-*-*): New target.
3131 * emulparams/crisaout.sh, emulparams/criself.sh,
3132 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3133 * po/POTFILES.in, po/ld.pot: Regenerate.
3134
3135 2000-07-20 H.J. Lu <hjl@gnu.org>
3136
3137 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3138 Print out ignored -z options.
3139
3140 2000-07-19 H.J. Lu <hjl@gnu.org>
3141
3142 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3143 (PARSE_AND_LIST_PROLOGUE): New.
3144 (PARSE_AND_LIST_LONGOPTS): Likewise.
3145 (PARSE_AND_LIST_OPTIONS): Likewise.
3146 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3147
3148 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3149
3150 * lexsup.c (ld_options): Comment out 'z'.
3151 (parse_args): Likewise.
3152
3153 * emultempl/elf32.em: Include "elf/common.h".
3154 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3155 options.
3156 (gld_${EMULATION_NAME}_list_options): Likewise.
3157
3158 * ld.texinfo: Add documentation for the recognized -z options.
3159
3160 2000-07-19 H.J. Lu <hjl@gnu.org>
3161
3162 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3163 bfd_elf_set_dt_needed_soname ().
3164
3165 2000-07-18 DJ Delorie <dj@cygnus.com>
3166
3167 * pe-dll.c (pe_dll_id_target): check object target name also
3168
3169 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3170
3171 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3172 ${INIT_END} if relocating.
3173 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3174
3175 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3176
3177 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3178 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3179 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3180 errors introduced by the old dynamic lib search order.
3181
3182 2000-07-17 DJ Delorie <dj@cygnus.com>
3183
3184 * pe-dll.c (process_def_file): auto-export data items also
3185 (pe_process_import_defs): also see if _imp_ form needed
3186
3187 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3188
3189 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3190 for dll import libraries
3191
3192 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3193
3194 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3195 gcc 2.95.2 and later.
3196
3197 2000-07-11 Kazu Hirata <kazu@hxi.com>
3198
3199 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3200 message.
3201
3202 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3203
3204 * ldemul.h (struct lang_input_statement_struct): Remove forward
3205 declaration.
3206 (struct search_dirs): Likewise.
3207 * ldfile.h (struct lang_input_statement_struct): Likewise.
3208 Protect file from multiple inclusion.
3209 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3210 declaration from macro to file scope.
3211
3212 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3213 * ldgram.y: Likewise here.
3214 * ldlang.c: And here.
3215 * ldmain.c: And here.
3216 * mpw-elfmips.c: And here.
3217 * mpw-eppcmac.c: And here.
3218 * emultempl/aix.em: And here.
3219 * emultempl/armcoff.em: And here.
3220 * emultempl/armelf.em: And here.
3221 * emultempl/armelf_oabi.em: And here.
3222 * emultempl/beos.em: And here.
3223 * emultempl/elf32.em: And here.
3224 * emultempl/hppaelf.em: And here.
3225 * emultempl/linux.em: And here.
3226 * emultempl/lnk960.em: And here.
3227 * emultempl/pe.em: And here.
3228 * emultempl/sunos.em: And here.
3229 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3230 * mpw-idtmips.c: Ditto.
3231 * emultempl/generic.em: Ditto.
3232 * emultempl/gld960.em: Ditto.
3233 * emultempl/gld960c.em: Ditto.
3234 * emultempl/mipsecoff.em: Ditto.
3235 * emultempl/ticoff.em: Ditto.
3236 * emultempl/vanilla.em: Ditto.
3237
3238 * pe-dll.c: Include ldfile.h
3239 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3240
3241 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3242 arguments to bfd_elf32_size_dynamic_sections call.
3243 (gldelf32ebmip_place_orphan): Add missing arguments to
3244 lang_leave_output_section_statement call.
3245
3246 2000-07-10 H.J. Lu <hjl@gnu.org>
3247
3248 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3249 DLL_SUPPORT.
3250 (strhash): Likewise.
3251 (compute_dll_image_base): Likewise.
3252 (pe_undef_found_sym): Likewise.
3253 (pe_undef_cdecl_match): Likewise.
3254 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3255 argument "arch" with ATTRIBUTE_UNUSED.
3256
3257 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3258
3259 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3260
3261 From Ryan Bradetich <rbradetich@uswest.net>
3262 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3263
3264 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3265
3266 Changes to create multiple linker stubs, positioned immediately
3267 before the section where they are required.
3268 * emultempl/hppaelf.em: Include elf32-hppa.h.
3269 (stub_sec, file_chain): Delete.
3270 (hppaelf_create_output_section_statements): Don't make a stub
3271 section here.
3272 (hook_stub_info): New struct.
3273 (hook_in_stub): New function.
3274 (hppaelf_add_stub_section): New function.
3275 (hppaelf_finish): Do nothing for relocateable links. Modify the
3276 call to elf32_hppa_size_stubs. Move code for updating section
3277 layout from here...
3278 (hppaelf_layaout_sections_again): ..to here, a new function.
3279
3280 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3281 broken list handling. Pass in a pointer to the list.
3282 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3283 for above changes.
3284 (hppaelf_before_parse): Prototype.
3285 (hppaelf_set_output_arch): Prototype.
3286 (hppaelf_create_output_section_statements): Prototype.
3287 (hppaelf_delete_padding_statements): Prototype.
3288 (hppaelf_finish): Prototype.
3289
3290 Merge from elf32.em
3291 * emultempl/hppaelf.em: Include ctype.h.
3292 (struct orphan_save): New.
3293 (gld${EMULATION_NAME}_place_orphan): New.
3294 (output_rel_find): New.
3295 (hppaelf_get_script): Update from elf32.em.
3296 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3297 Change emulation_name field to "${EMULATION_NAME}". Add
3298 gld${EMULATION_NAME}_place_orphan.
3299
3300 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3301 ehppalinux.o, sort it. Regenerate dependencies.
3302 (ehppalinux.c): Depend on hppaelf.em
3303 * Makefile.in: Regenerate.
3304
3305 * configure.tgt: targ_emul=hppalinux for hppa*linux
3306
3307 * emulparams/hppalinux.sh: New.
3308 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3309
3310 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3311
3312 * lexsup.c (parse_args): Copy section name.
3313
3314 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3315
3316 * emultempl/pe.em: institute the following search order for
3317 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3318 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3319 static lib (libfoo.a) if none of the above are found.
3320
3321 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3322
3323 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3324 (longopts): New --{enable,disable}-auto-image-base options.
3325 (gld_${EMULATION_NAME}_list_options): Document.
3326 (gld_${EMULATION_NAME}_parse): Handle.
3327 (strhash): New static function.
3328 (compute_dll_image_base): New static function.
3329 (gld_${EMULATION_NAME}_set_symbols): Use.
3330
3331 2000-07-05 DJ Delorie <dj@redhat.com>
3332
3333 * MAINTAINERS: new
3334
3335 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3336
3337 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3338 * emulparams/elf32btsmip.sh: New file.
3339 * Makefile.am: Add traditional mips target.
3340 * Makefile.in: Rebuild.
3341
3342 2000-07-01 H.J. Lu <hjl@gnu.org>
3343
3344 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3345 automake to use YLWRAP.
3346 * Makefile.in: Rebuild.
3347
3348 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3349
3350 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3351 (CLEANFILES): Add DEPA.
3352 * Makefile.in: Regenerate.
3353
3354 2000-06-30 Timothy Wall <twall@ppc>
3355
3356 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3357 the page in the upper octet of the address.
3358
3359 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3360
3361 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3362
3363 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3364
3365 * NEWS: arm-elf does --gc-sections too.
3366
3367 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3368
3369 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3370 find one.
3371 * Makefile.in: Regenerate.
3372
3373 2000-06-21 H.J. Lu <hjl@gnu.org>
3374
3375 * Makefile.am: Rebuild dependency.
3376 * Makefile.in: Rebuild.
3377
3378 2000-06-20 H.J. Lu <hjl@gnu.org>
3379
3380 * Makefile.am: Rebuild dependency.
3381 * Makefile.in: Rebuild.
3382
3383 2000-06-20 Timothy Wall <twall@cygnus.com>
3384
3385 * scripttempl/tic54xcoff.sc: New.
3386 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3387 * gen-doc.texi: Add flag for TI COFF.
3388 * ld.texinfo: Add documentation for TI COFF handling switches.
3389 * emultempl/ticoff.em: New. TI COFF handling.
3390 * configure.tgt: Add tic54x target.
3391 * Makefile.am: Add tic54x target.
3392 * Makefile.in: Ditto.
3393
3394 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3395
3396 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3397 checking for backslashes.
3398
3399 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3400
3401 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3402
3403 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3404
3405 * NEWS: Update list of targets supporting --gc-sections.
3406
3407 * scripttempl/elf.sc: KEEP .eh_frame contents.
3408 * scripttempl/elfd30v.sc: Same here.
3409
3410 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3411
3412 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3413 and m68hc11 (elf).
3414 * Makefile.in: Rebuild.
3415 * configure.tgt: Recognize m68hc12 and m68hc11.
3416 * scripttempl/elfm68hc12.sc: New file.
3417 * emulparams/m68hc12elfb: New emulation.
3418 * emulparams/m68hc12elf: New emulation.
3419 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3420 (includes a memory.x script to define the ROM and RAM banks).
3421 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3422 New configuration files for support of Motorola 68hc11
3423
3424 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3425
3426 * ldmain.c (main): Only change SEC_READONLY for final link.
3427
3428 2000-06-13 H.J. Lu <hjl@gnu.org>
3429
3430 * configure: Regenerate.
3431
3432 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3433
3434 * configure.in (VERSION): Update to show this is the CVS mainline.
3435
3436 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3437
3438 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3439 input objects to be ECOFF.
3440 (check_sections): einfo takes %B, not %P, to print a BFD name.
3441
3442 2000-06-05 Michael Matz <matz@ifh.de>
3443
3444 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3445 version scripts.
3446
3447 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3448
3449 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3450
3451 * emulparams/avr1200.sh (STACK): Define as 0.
3452 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3453 * emulparams/avr4433.sh (STACK): Likewise.
3454 * emulparams/avr44x4.sh (STACK): Likewise.
3455 * emulparams/avr85xx.sh (STACK): Likewise.
3456 * emulparams/avrmega103.sh (STACK): Likewise.
3457 * emulparams/avrmega161.sh (STACK): Likewise.
3458 * emulparams/avrmega603.sh (STACK): Likewise.
3459 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3460 (__stack): Define from ${STACK} for main().
3461
3462 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3463
3464 * Makefile.am: Update dependencies with "make dep-am"
3465 * Makefile.in: Regenerate.
3466
3467 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3468
3469 * ldmain.c: Include filenames.h.
3470 (set_scripts_dir): Support backslashes in program name.
3471
3472 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3473
3474 * ldmain.c (main): When deciding if ".text" section should be
3475 read-only, don't forget to reset SEC_READONLY because it
3476 could be already set.
3477
3478 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3479
3480 * ld.1: Add documentation for new command line option:
3481 --section-start <sectionname>=<sectionorg>
3482 This is a generic version of -Ttext etc. which accepts
3483 any section name as a parameter instead of just text/data/
3484 bss.
3485 * ld.texinfo: More docs.
3486 * NEWS: More docs.
3487 * lexsup.c: (parse_args): Recognize new command line option.
3488 (ld_options): Add new option.
3489
3490 2000-05-18 H.J. Lu <hjl@gnu.org>
3491
3492 * lexsup.c (parse_args): `i' == `r', not `q'.
3493
3494 2000-05-18 Jeffrey A Law (law@cygnus.com)
3495
3496 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3497
3498 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3499 Rick Gorton <gorton@scrugs.lkg.dec.com>
3500
3501 Add support for '-q' == '--emit-relocs' switch.
3502 * ldmain.c (main): Default to false.
3503 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3504 * NEWS: Describe the emitrelocations switch.
3505 * ld.texinfo: Describe the emitrelocations switch.
3506
3507 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3508
3509 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3510 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3511 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3512 link options.
3513
3514 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3515
3516 * lexsup.c (parse_args): Update the year in the copyright notice.
3517
3518 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3519
3520 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3521 Replace defines with those from intl/libgettext.h to quieten gcc
3522 warnings.
3523
3524 2000-05-10 H.J. Lu <hjl@gnu.org>
3525
3526 * ldlang.c (open_input_bfds): Don't load the same file within
3527 a group again if the whole archive has been loaded already.
3528
3529 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3530
3531 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3532 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3533 strtoul.
3534
3535 2000-05-01 Jim Wilson <wilson@cygnus.com>
3536
3537 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3538
3539 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3540 host "ia64-*-linux-gnu*".
3541
3542 2000-04-29 Andreas Jaeger <aj@suse.de>
3543
3544 * ld.h: Correctly check GCC version.
3545
3546 2000-04-25 Jeffrey A Law (law@cygnus.com)
3547
3548 * Makefile.am: Add PA64 support. Add missing dependencies for
3549 PA32 elf support.
3550 * Makefile.in: Rebuilt.
3551 * configure.tgt: Add PA64 support (currently disabled).
3552
3553 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3554
3555 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3556 (output_rel_find): New function.
3557 (hold_section, hold_use): Delete.
3558 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3559 hold_interp): Make local to place_orphan.
3560 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3561 rather than place_section to find possible previous use of orphan.
3562 Similarly find the place-holder output sections. Use returned
3563 value from lang_enter_output_section_statement rather than calling
3564 lang_output_section_statement_lookup.
3565 * emultempl/armelf.em: Same here.
3566 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3567
3568 * ldlang.c (lang_enter_output_section_statement): Return output
3569 section statement.
3570 * ldlang.h (lang_enter_output_section_statement): Change
3571 declaration too.
3572
3573 * ldlang.h (lang_output_section_statement): Export it.
3574 * ldlang.c (lang_output_section_statement): Ditto.
3575
3576 2000-04-24 Nick Clifton <nickc@cygnus.com>
3577
3578 * ld.texinfo (Output Section Data): Add note that section data
3579 commands cannot appear outside of section directives.
3580
3581 2000-04-2 Matthew Green <mrg@cygnus.com>
3582
3583 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3584
3585 2000-04-21 Richard Henderson <rth@cygnus.com>
3586 David Mosberger <davidm@hpl.hp.com>
3587
3588 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3589 (eelf64_ia64.c): New rule.
3590 * Makefile.in: Rebuild.
3591 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3592 * emulparams/elf64_ia64.sh: New file.
3593
3594 2000-04-21 Richard Henderson <rth@cygnus.com>
3595
3596 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3597
3598 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3599
3600 * dep-in.sed: Match space at start of file name, not at end.
3601
3602 2000-04-18 H.J. Lu <hjl@gnu.org>
3603
3604 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3605 lang_leave_output_section_statement () after calling
3606 lang_enter_output_section_statement ().
3607 * emultempl/armelf.em: Likewise.
3608
3609 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3610
3611 * emultempl/elf32.em (struct orphan_save): Add section field.
3612 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3613 better order, and place first orphan section as we did before the
3614 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3615 Don't call make_bfd_section here, let wild_doit do the job for us.
3616 Don't build a statement list when we'll only throw it away.
3617 * emultempl/armelf.em: Ditto.
3618 * emultempl/pe.em: Similarly.
3619
3620 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3621
3622 * scripttempl/elfppc.sc: Remove.
3623 * emulparams/elf32ppc.sh: Use elf.sc.
3624 * emulparams/elf32lppc.sh: Use elf.sc.
3625 * emulparams/elf32ppclinux.sh: Use elf.sc.
3626 * emulparams/elf32ppcsim.sh: New file.
3627 * emulparams/elf32lppcsim.sh: New file.
3628 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3629 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3630 * Makefile.in: Regenerate.
3631 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3632
3633 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3634
3635 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3636 ~SEC_ALLOC sections too. Init start address of debug sections.
3637 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3638 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3639 Also set all relocateable section start addresses.
3640
3641 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3642
3643 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3644 Add new BSS_PLT variable for when .plt need not be contained in
3645 the file. Move _etext so that it is also after .fini, and provide
3646 both etext and _etext with a leading underscore. Mark the start
3647 and end of .sbss.
3648
3649 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3650
3651 * emultempl/elf32.em (struct orphan_save): New.
3652 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3653 hold_interp): Make them struct orphan_save.
3654 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3655 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3656 the end of the relevant section list. Also add associated section
3657 statements to the end of any previous orphan statements.
3658 * emultempl/armelf.em: Similarly.
3659 * emultempl/pe.em: Similarly.
3660
3661 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3662
3663 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3664
3665 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3666
3667 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3668 --enable-build-warnings option.
3669 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3670 * Makefile.in, configure: Re-generate.
3671
3672 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3673
3674 * po/ld.pot: Regenerate.
3675
3676 * lexsup.c (help): Restore translated part of bug string.
3677
3678 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3679 (DEP): Quote when passing vars to sub-make. Add warning message
3680 to end.
3681 (DEP1): Rewrite for "gcc -MM".
3682 (CLEANFILES): Add DEP2.
3683 Update dependencies.
3684 * Makefile.in: Regenerate.
3685
3686 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3687
3688 * ld.h: #include "bin-bugs.h"
3689 * lexsup.c (help): Use REPORT_BUGS_TO.
3690
3691 2000-03-27 Denis Chertykov <denisc@overta.ru>
3692
3693 * configure.tgt (avr-*-*): New target support.
3694 * Makefile.am: Likewise.
3695 * scripttempl/elf32avr.sc: New script file.
3696 * emulparams/avr1200.sh: New file.
3697 * emulparams/avr23xx.sh: New file.
3698 * emulparams/avr4433.sh New file.
3699 * emulparams/avr44x4.sh New file.
3700 * emulparams/avr85xx.sh New file.
3701 * emulparams/avrmega103.sh New file.
3702 * emulparams/avrmega161.sh New file.
3703 * emulparams/avrmega603.sh New file.
3704 * Makefile.in: Regenerate.
3705
3706 2000-03-09 Andreas Jaeger <aj@suse.de>
3707
3708 * Makefile.am (check-DEJAGNU): Also unset LANG.
3709 * Makefile.in: Rebuild.
3710
3711 2000-03-06 Ian Lance Taylor <ian@zembu.com>
3712
3713 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3714 archive.
3715
3716 2000-03-02 H.J. Lu <hjl@gnu.org>
3717
3718 * emulparams/elf32mcore.sh: Include "getopt.h".
3719
3720 2000-03-01 Ian Lance Taylor <ian@zembu.com>
3721
3722 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3723
3724 2000-03-01 H.J. Lu <hjl@gnu.org>
3725
3726 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3727 * emulparams/shpe.sh: Likewise.
3728
3729 2000-03-01 Nick Clifton <nickc@cygnus.com>
3730
3731 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3732 to unused parameters.
3733
3734 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3735 functions only used by DLL code.
3736 (_place_orphan): Initialise 'dollar'.
3737
3738 2000-03-01 H.J. Lu <hjl@gnu.org>
3739
3740 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3741 indicate if the undefined symbol is a fatal error or not.
3742 Don't delete the output file if "fatal" is false.
3743
3744 2000-02-29 H.J. Lu <hjl@gnu.org>
3745
3746 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3747 Set LC_COLLATE and LC_ALL to null and export them. It is for
3748 sort which expects the C locale.
3749 Add $(LIBS) to all $(HOSTING_LIBS).
3750 * Makefile.in: Rebuild.
3751
3752 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3753
3754 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3755 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3756 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3757 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3758 find_potential_libraries.
3759
3760 2000-02-28 Jim Blandy <jimb@redhat.com>
3761
3762 * ldgram.y (exclude_name_list): Don't require a comma to separate
3763 list entries; the lexer considers commas to be valid part of a
3764 filename, so in something like `foo, bar' the comma is considered
3765 part of the first filename, `foo,'.
3766 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3767
3768 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
3769
3770 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3771 host "i[3456]86-*-freebsdelf*".
3772
3773 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3774
3775 * scripttempl/i386go32.sc: Move misplaced semicolons.
3776
3777 2000-02-25 Ian Lance Taylor <ian@zembu.com>
3778
3779 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3780 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3781 (eelf64hppa.c, ehppaelf.c): Remove targets.
3782 * Makefile.in: Rebuild.
3783
3784 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3785
3786 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3787 GNU/Linux/sparc, but keep the default as 32.
3788
3789 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3790 it default if sparcv9 or sparc64.
3791
3792 2000-02-24 Nick Clifton <nickc@cygnus.com>
3793
3794 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3795 * Makefile.in: Regenerate.
3796 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3797
3798 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3799 find_potential_libraries.
3800 * ldemul.c (ldemul_find_potential_libraries): New function.
3801
3802 * ldfile.c (ldfile_open_file_search): Allow function to be
3803 exported.
3804 (ldfile_open_file): Call ldemul_find_potential_libraries.
3805 * ldfile.h: Add prototype for ldfile_open_file_search.
3806
3807 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3808
3809 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3810 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3811
3812 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3813 (gld_X_find_potential_libraries): New function. Search for
3814 libraries called "*.lib".
3815
3816 * scripttempl/pe.sc: Add .pdata section.
3817
3818 2000-02-23 Richard Henderson <rth@cygnus.com>
3819
3820 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3821 Add and use memory regions.
3822
3823 2000-02-23 Linas Vepstas (linas@linas.org)
3824
3825 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3826
3827 * Makefile.am: Add support for Linux/IBM 370.
3828 * configure.tgt: Likewise.
3829
3830 * Makefile.in: Regenerate.
3831
3832 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3833
3834 * ldlang.c (print_input_section, print_data_statement,
3835 print_reloc_statement, print_padding_statement, insert_pad,
3836 size_input_section, lang_check_section_addresses,
3837 lang_size_sections, lang_do_assignments, lang_set_startof,
3838 lang_one_common): Change `opb' to unsigned.
3839 (lang_do_assignments): Also change `size' to unsigned.
3840
3841 2000-02-16 Richard Henderson <rth@cygnus.com>
3842
3843 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3844
3845 2000-02-16 Timothy Wall <twall@cygnus.com>
3846
3847 * mri.c (mri_draw_tree): Add default LMA region argument to call
3848 to lang_leave_output_section_statement.
3849 * ldlang.h: Update prototypes with LMA region arguments.
3850 * ldlang.c (lang_size_sections): Encapsulate region bounds
3851 checking in os_check_region call.
3852 (os_check_region): New function.
3853 (lang_output_section_statement_lookup): Initialize lma_region.
3854 (lang_leave_output_section_statement): Add LMA region argument.
3855 (lang_leave_overlay): Ditto.
3856 * ldgram.y: Handle LMA region syntax.
3857 * ld.texinfo (Output Section Description): Describe LMA region usage.
3858 * emultempl/armelf.em (gld$place_orphan): Add default value for
3859 lma region in call to lang_leave_output_section_statement.
3860 * emultempl/elf32.em (gld$place_orphan): Add default value for
3861 lma region in call to lang_leave_output_section_statement.
3862 * emultempl/pe.em (gld$place_orphan): Add default value for
3863 lma region in call to lang_leave_output_section_statement.
3864
3865
3866 2000-02-04 Timothy Wall <twall@redhat.com>
3867
3868 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3869 octets when calculating section end addresses.
3870
3871 2000-02-04 Timothy Wall <twall@redhat.com>
3872
3873 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3874
3875 2000-02-03 Timothy Wall <twall@redhat.com>
3876
3877 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
3878 octet count.
3879 * ldlang.c (print_input_section, print_data_statement,
3880 print_reloc_statement, print_padding_statement): Print target
3881 address values and section sizes as bytes, not octets.
3882 (insert_pad) Calculate padding size in octets, and adjust "dot"
3883 by bytes.
3884 (size_input_section) Always adjust "dot" by bytes, not octets.
3885 (lang_check_section_addresses, lang_do_assignments) Adjust
3886 "dot" by bytes, not octets. Use the larger of the directive size
3887 or octets_per_byte for the number of octets actually allocated in
3888 the output section.
3889 (lang_set_startof) Make sure STARTOF returns a target address.
3890 (lang_one_common) Record size changes in octets.
3891 (lang_abs_symbol_at_end_of) Section end symbol's value is
3892 recorded in target bytes.
3893 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
3894 to be clear about behavior when an octet is smaller than one byte.
3895
3896 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3897
3898 * ldcref.c (output_cref): Don't pass message strings to printf
3899 as format arg.
3900 Update copyright.
3901
3902 * ldmisc.c (vfinfo): Same here.
3903 Update copyright.
3904
3905 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3906
3907 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
3908 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
3909 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
3910 Add missing NULL initialisers, and comments.
3911
3912 * testsuite/ld-srec/sr3.cc (__rethrow): New.
3913
3914 2000-01-21 Nick Clifton <nickc@cygnus.com>
3915
3916 * ldlang.c (lang_size_sections): Fix typo in comment.
3917
3918 2000-01-18 H.J. Lu <hjl@gnu.org>
3919
3920 * ldlang.c (lang_size_sections): Also update the current
3921 address of a region if the SEC_NEVER_LOAD bit is not set.
3922
3923 2000-01-10 Philip Blundell <pb@futuretv.com>
3924
3925 * configure.tgt (arm*-*-conix*): New target.
3926
3927 2000-01-07 Nick Clifton <nickc@cygnus.com>
3928
3929 * ld.texinfo (Options): Remind users to preceed linker command
3930 line switches with -Wl, (or whatever is appropriate) if it is
3931 being invoked by a comnpiler driver program.
3932 Fix description of the behaviour of the -n command line switch.
3933
3934 2000-01-05 Catherine Moore <clm@cygnus.com>
3935
3936 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
3937 (name_list): New.
3938 * ld.texinfo (EXCLUDE_FILE): Update documentation.
3939 * ldgram.y (wildcard_spec): Support a list of excluded_files.
3940 (exclude_name_list): New.
3941 ldlang.c (walk_wild_section): Support list of excluded files.
3942 (print_wild_statement): Likewise.
3943 (lang_add_wild): Likewise.
3944 * ldlang.h (lang_wild_statement_type): Likewise.
3945 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
3946
3947 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3948
3949 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
3950 (process_def_file): Use.
3951 (pe_dll_compat_implib): New variable.
3952 (make_one): Use.
3953
3954 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
3955 pe_dll_compat_implib.
3956
3957 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
3958 compat-implib options.
3959 (gld_${EMULATION_NAME}_list_options): List new options.
3960 (gld_${EMULATION_NAME}_parse_args): Handle.
3961
3962 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
3963 dll.
3964
3965 * deffilep.y (opt_name): Allow "." in name.
3966
3967 For older changes see ChangeLog-9899
3968 \f
3969 Local Variables:
3970 mode: change-log
3971 left-margin: 8
3972 fill-column: 74
3973 version-control: never
3974 End:
This page took 0.105167 seconds and 5 git commands to generate.