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