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