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