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