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