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