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