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