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