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