* configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
[binutils-gdb.git] / ld / ChangeLog
1 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2
3 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
4
5 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6
7 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
8
9 2001-05-31 H.J. Lu <hjl@gnu.org>
10
11 * ldlang.c (open_input_bfds): Don't change the bfd error
12 handler whilst loading symbols.
13
14 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
15
16 * configure.tgt: Remove i370-mvs architecture, it is not currently
17 supported.
18
19 2001-05-25 H.J. Lu <hjl@gnu.org>
20
21 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
22 like emulparams/aixppc.sh.
23
24 2001-05-25 H.J. Lu <hjl@gnu.org>
25
26 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
27 setting of output_filename after bfd_scan_arch.
28 * emultempl/pe.em: Likewise.
29
30 2001-05-25 H.J. Lu <hjl@gnu.org>
31
32 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
33 like emulparams/aixppc.sh.
34
35 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
36 instead of ${srcdir}/emultempl/stringify.sed.
37
38 2001-05-25 Timothy Wall <twall@oculustech.com>
39
40 * emulparams/elf64_aix.sh: Change settings to match IBM linker
41 output.
42
43 2001-05-25 Alan Modra <amodra@one.net.au>
44
45 * configure.host: Replace linuxoldld with linux*oldld.
46 * configure.tgt: Likewise.
47
48 2001-05-24 H.J. Lu <hjl@gnu.org>
49
50 * emultempl/stringify.sed: Removed again.
51
52 2001-05-24 H.J. Lu <hjl@gnu.org>
53
54 * emultempl/aix.em (OUTPUT_ARCH): Defined.
55 (gld${EMULATION_NAME}_before_parse): Initialize
56 ldfile_output_architecture, ldfile_output_machine and
57 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
58 * emultempl/beos.em: Likewise.
59 * emultempl/elf32.em: Likewise.
60 * emultempl/linux.em: Likewise.
61 * emultempl/mipsecoff.em: Likewise.
62 * emultempl/pe.em: Likewise.
63 * emultempl/sunos.em: Likewise.
64
65 2001-05-24 Tom Rix <trix@redhat.com>
66
67 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
68 udate import file format.
69 (change_symbol_mode) New, same
70 (is_syscall) New, same
71 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
72 * emulparams/aixppc64.sh : same
73 * emulparams/aixrs6.sh : same
74 * emulparams/ppcmacos.sh : same
75 * emultempl/aix.em : use strtoull to parse options
76 * Makefile.am : add eaixppc64 emulation for xcoff64
77 * Makefile.in : same
78 * configure.tgt : same
79
80 * scripttempl/aix.sc : default text section offset to 0x10000000
81 default data section offset to 0x20000000
82 add .sv3264 and .sv64 pseudo sections
83 loader and debug sections use the currect section offset.
84
85 * emultempl/aix.em : Add xcoff64 support
86 Add -binitfini support
87 (gld${EMULATION_NAME}_before_parse) -binitfini
88 (gld${EMULATION_NAME}_parse_args) same
89 (gld${EMULATION_NAME}_before_allocation) format change for special
90 sections
91
92 * emulparams/aixppc64.sh : New file for xcoff64 support
93
94 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
95
96 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
97 variable to avoid non-portable shell construct.
98
99 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
100
101 * ldmain.c (get_emulation): Add -mips5 command line argument.
102
103 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
104
105 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
106 (ELF_INTERPRETER_NAME): Define it.
107 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
108 it.
109 * configure.tgt (targ_emul, targ_extra_emuls)
110 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
111 as primary, elf_i386 as extra.
112 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
113 (eelf_i386_ldso.c): New rule.
114 * Makefile.in: Rebuilt.
115
116 2001-05-22 Nick Clifton <nickc@redhat.com>
117
118 * lexsup.c (ld_options): Allow -I to be an alias for
119 --dynamic-linker. This is for Solaris compatability.
120 * ld.texinfo: Document that -I can be used.
121 * ld.1: Regenerate.
122
123 2001-05-16 Alan Modra <amodra@one.net.au>
124
125 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
126 whether an input section is the first one assigned to an output
127 section.
128 Assorted formatting fixes.
129
130 2001-05-14 DJ Delorie <dj@delorie.com>
131
132 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
133 * Makefile.in: Ditto.
134
135 2001-05-11 Jakub Jelinek <jakub@redhat.com>
136
137 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
138 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
139 output sections.
140 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
141
142 2001-05-11 Jakub Jelinek <jakub@redhat.com>
143
144 * ldlang.c (lang_process): Call bfd_merge_sections.
145
146 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
147
148 * ldgram.y: Fix typo.
149
150 2001-05-03 H.J. Lu <hjl@gnu.org>
151
152 * emultempl/elf32.em: Include "libiberty.h".
153 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
154 basename of the bfd filename.
155 (gld${EMULATION_NAME}_stat_needed): Likewise.
156 (gld${EMULATION_NAME}_try_needed): Likewise.
157 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
158
159 2001-05-02 H.J. Lu <hjl@gnu.org>
160
161 * emultempl/pe.em: Include <ctype.h>.
162
163 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
164
165 * emulparams/elf32openrisc.sh: New file.
166
167 * Makefile.am: Add OpenRISC target.
168 * Makefile.in: Regenerated.
169
170 * configure.tgt: Add openrisc-*-* mapping.
171
172 2001-05-02 Nick Clifton <nickc@redhat.com>
173
174 * emultempl/aix.em: Replace buystring with xstrdup.
175 * emultempl/beos.em: Replace buystring with xstrdup.
176
177 2001-05-02 H.J. Lu <hjl@gnu.org>
178
179 * ldfile.c: Include "libiberty.h".
180 * ldlex.l: Likewise.
181
182 * ldmisc.c (buystring): Removed.
183 * ldmisc.h: Likewise.
184
185 * ldfile.c: Replace buystring with xstrdup.
186 * ldlang.c: Likewise.
187 * ldlex.l: Likewise.
188 * ldmain.c: Likewise.
189 * ldmisc.c: Likewise.
190 * lexsup.c: Likewise.
191 * mpw-eppcmac.c: Likewise.
192
193 2001-04-30 Andreas Jaeger <aj@suse.de>
194
195 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
196
197 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
198
199 * ldlang.c (load_symbols): Give emulation a chance
200 to process unrecognized file before fatal error is
201 reported, not after.
202
203 2001-04-27 Sean McNeil <sean@mcneil.com>
204
205 * configure.tgt: Add arm-vxworks target.
206 * scripttempl/armcoff.sc: Support .text or .data as a section name
207 prefix.
208 Define _etext.
209
210 2001-04-13 J.T. Conklin <jtc@redback.com>
211
212 * ld.texinfo: Document --fatal-warnings.
213 * ld.1: Regenerate.
214
215 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
216 warnings have been turned into errors.
217 * lexsup.c (OPTION_WARN_FATAL): Define.
218 (ld_options): Entry for --fatal-warnings.
219 (parse_args): Handle OPTION_WARN_FATAL.
220 * ld.h (ld_config_type): Add fatal_warnings field.
221
222 2001-04-13 Jakub Jelinek <jakub@redhat.com>
223
224 * ldmain.c (main): Default to discard_sec_merge.
225 * lexsup.c (OPTION_DISCARD_NONE): Define.
226 (ld_options): Add --discard-none.
227 (parse_args): Handle OPTION_DISCARD_NONE.
228 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
229 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
230 all its input sections match.
231
232 2001-04-05 Steven J. Hill <sjhill@cotw.com>
233
234 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
235 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
236 (eelf32ltsmip.c): New target.
237 (eelf64btsmip.c): Likewise.
238 (eelf64ltsmip.c): Likewise.
239 * Makefile.in: Regenerated.
240
241 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
242 target.
243 (mips*-*-linux-gnu*): Likewise.
244
245 * emulparams/elf32ltsmip.sh: New. Traditional little endian
246 MIPS taget.
247 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
248 target.
249 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
250 endian target.
251
252 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
253
254 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
255 correct value of __Stext here.
256 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
257 .startup section.
258
259 * emulparams/crislinux.sh: Remove FIXME.
260
261 2001-04-02 Alan Modra <alan@linuxcare.com.au>
262
263 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
264 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
265
266 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
267
268 * configure.tgt (cris-*-*): Change default emulation to criself.
269 (cris-*-*aout*): New rule.
270
271 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
272
273 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
274 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
275
276 2001-03-26 Andreas Jaeger <aj@suse.de>
277
278 * ld.texinfo (Overview): Fix syntax in texi code.
279
280 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
281
282 * ld.texinfo: Put @c man indications to generate the ld man page.
283 When generating man, define all the variables. Define SEEALSO
284 and SYNOPSIS. Re-organize some lines to avoid the cross references.
285 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
286 (ld.1): Generate from ld.texinfo.
287 * Makefile.in: Regenerate.
288
289 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
290
291 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
292 and '-fdata-sections'. Set the VMA of STABS sections to zero.
293
294 2001-03-17 Ulrich Drepper <drepper@redhat.com>
295
296 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
297 is an absolute path look only for this file and not along the path.
298
299 2001-03-17 Ulrich Drepper <drepper@redhat.com>
300
301 * emultempl/elf32.em (OPTION_GROUP): New macro.
302 Add new option Bgroup to longopts.
303 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
304 (gld*_list_options): Add -Bgroup and -z defs.
305 * ld.1: Document -Bgroup and -z defs.
306 * ld.texinfo: Likewise.
307
308 2001-03-07 Michael Meissner <meissner@redhat.com>
309
310 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
311 with sections created by -fdata-sections.
312 (.dynbss,.bss): Ditto.
313
314 2001-03-05 Alan Modra <alan@linuxcare.com.au>
315
316 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
317 after_allocation_default, not gld..._before_allocation.
318
319 2001-02-28 Matt Hiller <hiller@redhat.com>
320
321 * testsuite/ld-scripts/crossref.exp: Initialize flags to
322 [big_or_little_endian].
323 * testsuite/ld-undefined/undefined.exp: Ditto, and include $flags
324 in ld invocations.
325 * testsuite/lib/ld-lib.exp (big_or_little_endian): Recognize -EB,
326 -eb, -EL and -el.
327 (is_endian_output_format): New function.
328 (default_ld_link): Set flags to [big_or_little_endian] only if ld
329 is being invoked such that the output format being used is of
330 known endianness.
331 (default_ld_simple_link): Ditto.
332
333 2001-02-27 Alan Modra <alan@linuxcare.com.au>
334
335 * configure.in (BFD_VERSION): New.
336 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
337 * configure: Regenerate.
338 * Makefile.am: Run "make dep-am"
339 * Makefile.in: Regenerate.
340
341 2001-02-26 Timothy Wall <twall@cygnus.com>
342
343 * emulparams/elf64_aix.sh: Add additional read-only sections;
344 uncomment lines which are now required.
345
346 2001-02-26 H.J. Lu <hjl@gnu.org>
347
348 * ldlang.c (open_input_bfds): Set the bfd error handler so
349 that problems can be caught whilst loading symbols.
350 (record_bfd_errors): New function: Report BFD errors and mark
351 the executable output as being invalid.
352
353 2001-02-22 Timothy Wall <twall@cygnus.com>
354
355 * configure.host: Add configuration for ia64-*-aix*.
356 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
357 Add dependencies for eelf64_aix.c.
358 * Makefile.in: Regenerate.
359 * configure.tgt: Add ia64-*-aix* mapping.
360 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
361 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
362 AIX-specific test.
363
364 2001-02-20 H.J. Lu <hjl@gnu.org>
365
366 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
367 false if we found the file.
368
369 2001-02-18 David O'Brien <obrien@FreeBSD.org>
370
371 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
372 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
373
374 2001-02-18 lars brinkhoff <lars@nocrew.org>
375
376 * Makefile.am: Add PDP-11 target.
377 * configure.tgt: Likewise.
378 * emulparams/pdp11.sh: New file.
379
380 2001-02-17 David O'Brien <obrien@FreeBSD.org>
381
382 * configure.host: Add a generic FreeBSD configuration entry such that
383 all [modern] FreeBSD systems on all platforms will look the same.
384
385 2001-02-14 H.J. Lu <hjl@gnu.org>
386
387 * configure.tgt: Remove mention of earmelf_linux26.
388
389 2001-02-13 Richard Henderson <rth@redhat.com>
390
391 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
392
393 2001-02-13 H.J. Lu <hjl@gnu.org>
394
395 * ldexp.h (node_type): Add etree_provided.
396 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
397 type to etree_provided if defined by PROVIDE. Allow updating
398 for etree_provided.
399 (exp_print_tree): Handle etree_provided.
400 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
401 etree_provided.
402
403 2001-02-09 David Mosberger <davidm@hpl.hp.com>
404
405 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
406 .IA_64.unwind.* pattern to unwind table section and
407 .IA_64.unwind_info* pattern to unwind info section.
408
409 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
410
411 * Makefile.am: Add linux target for S/390.
412 * Makefile.in: Likewise.
413 * configure.host: Likewise.
414 * configure.tgt: Likewise.
415 * emulparams/elf64_s390.sh: New file.
416 * emulparams/elf_s390.sh: New file.
417
418 2001-02-09 Jakub Jelinek <jakub@redhat.com>
419
420 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
421 targ_extra_libpath.
422 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
423
424 2001-02-06 Philip Blundell <philb@gnu.org>
425
426 * Makefile.am: Remove mention of earmelf_linux26.
427 * Makefile.in: Regenerate.
428
429 2001-02-04 Philip Blundell <philb@gnu.org>
430
431 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
432 * emulparams/armelf_linux26.sh: Delete.
433 * configure.tgt: Remove mention of armelf_linux26 emulation.
434
435 2001-02-01 Nick Clifton <nickc@redhat.com>
436
437 * ld.1: Replace occurances of -oformat with --oformat.
438
439 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
440
441 * ldlang.c (lang_leave_overlay): Don't set lma_region when
442 load_base is specified.
443
444 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
445
446 * emultempl/elf32.em: Correct spelling in comments and listed
447 options.
448
449 2001-01-23 Alan Modra <alan@linuxcare.com.au>
450
451 * ldlang.c (lang_leave_overlay): Only set lma_region from the
452 default for the first section of a group of overlay sections.
453
454 2001-01-22 Alan Modra <alan@linuxcare.com.au>
455
456 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
457 * Makefile.in: Regenerate.
458 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
459 Check for null tool_dir.
460
461 2001-01-16 Jim Wilson <wilson@redhat.com>
462
463 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
464 and IA_64.unwind.info.
465
466 2001-01-16 H.J. Lu <hjl@gnu.org>
467
468 * ldlang.c (lang_check): Merge the private data only if the
469 input file has contents.
470
471 2001-01-14 Alan Modra <alan@linuxcare.com.au>
472
473 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
474
475 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
476 enabling search for libmilli. On a relocatable link, make .text
477 sections unique.
478 (LDEMUL_AFTER_PARSE): Define.
479 (hppaelf_finish): Correct spelling of relocatable in comments.
480
481 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
482 rummage through the script for sections on the unique list.
483 Correct length of strncmp for ".note".
484 (gld${EMULATION_NAME}_check_needed): Rearrange function.
485
486 * ldlang.c (unique_section_list): New var.
487 (unique_section_p): New function.
488 (walk_wild_section): Don't match sections on unique_section_list.
489 (lang_add_unique): New function.
490 Correct spelling of relocatable in comments.
491
492 * ldlang.h (struct unique_sections): Declare.
493 (unique_section_list): Declare.
494 (unique_section_p): Declare.
495 (lang_add_unique): Declare.
496
497 * lexsup.c (ld_options): Allow --unique to take an optional arg.
498 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
499
500 * ld.texinfo (--unique): Update.
501
502 2001-01-13 Nick Clifton <nickc@redhat.com>
503
504 * lexsup.c (parse_args): Remove spurious white space.
505
506 2001-01-12 Nick Clifton <nickc@redhat.com>
507
508 * lexsup.c (parse_args): Update copyright date.
509
510 2001-01-12 Philip Blundell <pb@futuretv.com>
511
512 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
513
514 2001-01-10 Kazu Hirata <kazu@hxi.com>
515
516 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
517 * scripttempl/h8300h.sc: Fix formatting.
518 * scripttempl/h8300s.sc: Likewise.
519 * scripttempl/h8500.sc: Likewise.
520 * scripttempl/h8500b.sc: Likewise.
521 * scripttempl/h8500c.sc: Likewise.
522 * scripttempl/h8500m.sc: Likewise.
523 * scripttempl/h8500s.sc: Likewise.
524
525 2000-01-07 David O'Brien <obrien@BSDi.com>
526
527 * emultempl/elf32.em: Only perform Linux ld hints processing when
528 targeting Linux.
529
530 2001-01-07 Philip Blundell <philb@gnu.org>
531
532 * ld.texinfo (Bug Reporting): Update email address for reports.
533
534 2000-12-31 Nick Clifton <nickc@redhat.com>
535
536 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
537 options by checking for a return value of '?' not -1.
538
539 2000-12-28 Nick Clifton <nickc@redhat.com>
540
541 * lexsup.c (struct ld_option): Add new enum value:
542 EXACTLY_TWO_DASHES.
543 (ld_options[]): Change -omagic, -output and -oformat options
544 to be EXACTLY_TWO_DASHES.
545 (OUTPUT_COUNT): Use ARRAY_SIZE.
546 (parse_args): Change parameter 'argc' to unsigned.
547 Place EXACTLY_TWO_DASHES options into new really_longopts
548 array.
549 If getopt_long_only fails, try calling getopt_long using the
550 really_longopts array.
551 (help): Print a double dash for both EXACTLY_TWO_DASHES and
552 TWO_DASHES options.
553
554 * ldlex.h: Fix prototype of parse_args.
555
556 * ld.texinfo: Document that long options starting with 'o'
557 must be preceeded by two dashes. Change example of a single
558 dashed long option from -oformat to -trace-symbol.
559
560 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
561
562 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
563 (longopts[]): New --no-default-excludes option.
564 (gld_${EMULATION_NAME}_list_options): Document.
565 (gld_${EMULATION_NAME}_parse_args): Handle.
566
567 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
568
569 * ldlang.c (new_stat): Revert the last beautification with "innocent"
570 whitespace, it breaks the K&R C preprocessor.
571
572 2000-12-11 DJ Delorie <dj@redhat.com>
573
574 * ld.texinfo: Add notes about --whole-archive and gcc.
575
576 2000-11-18 Fred Fish <fnf@be.com>
577
578 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
579 (ld_options): Entry for --allow-shlib-undefined.
580 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
581 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
582 to false.
583 * ld.texinfo: Document new command line switch.
584
585 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
586
587 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
588 .fixup is actually read/write.
589 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
590 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
591 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
592
593 Mon Dec 11 14:50:33 MET 2000 Jan Hubicka <jh@suse.cz>
594
595 * NEWS: Add note about x86_64 architecture.
596
597 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
598
599 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
600 Set DWARF2 sections to a VMA of zero.
601
602 2000-12-01 Joel Sherrill <joel@OARcorp.com>
603
604 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
605 New targets.
606 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
607 (sparc*-*-rtems*): Switched from a.out to ELF.
608
609 2000-11-30 Jan Hubicka <jh@suse.cz>
610
611 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
612 (eelf_x86_64.c): New.
613 * Makefile.in: Regenerate.
614 * configure.tgt: Add support for x86_64-*-linux-gnu*.
615 * emulparams/elf_x86_64.sh: New.
616
617 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
618
619 * emulparams/crislinux.sh (ENTRY): Change back to _start.
620 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
621
622 * scripttempl/crisaout.sc: Change all RELOCATING not related to
623 merging non-a.out sections into CONSTRUCTING.
624
625 2000-11-28 Nick Clifton <nickc@redhat.com>
626
627 * ld.1 (COPYING): Mention that the GNU Free Documentation
628 License is present in the sources, but not the output, and
629 also available from the GNU website.
630 (GNU Free Documentation License): Comment out this section.
631
632 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
633
634 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
635 does not use them.
636
637 2000-11-25 David O'Brien <obrien@FreeBSD.org>
638
639 * ld.1: Remove old date so it does not give the impression the manpage
640 is way out of date.
641
642 2000-11-24 Nick Clifton <nickc@redhat.com>
643
644 * configure.tgt (xscale-coff): Add target.
645 (xscale-elf): Add target.
646
647 2000-11-24 Fred Fish <fnf@be.com>
648
649 * ldmain.c (main): Remove redundant init of config.make_executable
650 to true.
651
652 2000-11-15 Richard Henderson <rth@redhat.com>
653
654 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
655
656 2000-11-14 Kazu Hirata <kazu@hxi.com>
657
658 * scripttempl/h8300.sc: Fix formatting.
659 * scripttempl/h8300h.sc: Likewise.
660 * scripttempl/h8300s.sc: Likewise.
661
662 Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
663
664 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
665
666 2000-11-09 Philip Blundell <pb@futuretv.com>
667
668 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
669 around orphan sections whose names can be represented in C.
670
671 2000-11-07 Jim Wilson <wilson@redhat.com>
672
673 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
674 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
675
676 2000-11-06 Nick Clifton <nickc@redhat.com>
677
678 * ld.texinfo: Add GNU Free Documentation License.
679 * ldint.texinfo: Add GNU Free Documentation License.
680 * ld.1: Add GNU Free Documentation License.
681
682 2000-11-05 Alan Modra <alan@linuxcare.com.au>
683
684 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
685 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
686
687 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
688 Move 2000-11-02 Makefile.in changes to this file.
689 * Makefile.in: Regenerate.
690
691 2000-11-03 Nick Clifton <nickc@redhat.com>
692
693 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
694 constructors and destructors.
695 * scripttempl/h8300h.sc: Ditto.
696 * scripttempl/h8300s.sc: Ditto.
697 * scripttempl/h8500.sc: Ditto.
698 * scripttempl/h8500b.sc: Ditto.
699 * scripttempl/h8500c.sc: Ditto.
700 * scripttempl/h8500m.sc: Ditto.
701 * scripttempl/h8500s.sc: Ditto.
702 * scripttempl/v850.sc: Ditto.
703 * scripttempl/w65.sc: Ditto.
704 * scripttempl/z8000.sc: Ditto.
705
706 2000-11-02 Per Lundberg <plundis@chaosdev.org>
707
708 * Makefile.in (e_i386_chaos.c): New rule.
709 (ALL_EMULATIONS): Added e_i386_chaos.o.
710 * emulparams/elf_i386_chaos.sh: New file.
711 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
712
713 2000-10-20 Jakub Jelinek <jakub@redhat.com>
714
715 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
716 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
717 Fix sed invocation, so that it coped with '/' in Solaris 64bit
718 library path suffix.
719 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
720
721 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
722
723 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
724 for consecutive sections.
725
726 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
727
728 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
729 options.
730 * ld.texinfo: Added notes about this new option.
731
732 2000-10-16 Nick Clifton <nickc@redhat.com>
733
734 * emultempl/pe.em (_after_open): Add tests of return values from
735 bfd functions. Emit appropriate error messages if necessary.
736
737 2000-10-13 Nick Clifton <nickc@redhat.com>
738
739 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
740 local variables - they are not used, but leave in the call to
741 bfd_canonicalize_symtab.
742 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
743 pe_dll_search_prefix.
744
745 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
746
747 * emultempl/pe.em (pe_dll_search_prefix): New variable,
748 (longopts): New --dll-search-prefix option.
749 (gld_${EMULATION_NAME}_list_options): Document.
750 (gld_${EMULATION_NAME}_parse_args): Handle.
751 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
752 dynamically, search for a dll named '<prefix><basename>.dll'
753 in preference to 'lib<basename>.dll' if --dll-search-prefix
754 is specified.
755
756 2000-10-12 Alan Modra <alan@linuxcare.com.au>
757
758 * ldlang.c (section_already_linked): Set kept_section instead of
759 sec->comdat->sec.
760
761 2000-10-10 Kazu Hirata <kazu@hxi.com>
762
763 * deffile.h: Fix formatting.
764 * lexsup.c: Likewise.
765 * mri.c: Likewise.
766
767 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
768
769 * pe-dll.c (make_one): Do not generate code thunk for DATA
770 exports.
771 (process_def_file): deduce DATA flag for auto-export sumbols.
772
773 2000-10-09 Kazu Hirata <kazu@hxi.com>
774
775 * ld.h: Fix formatting.
776 * ldcref.c: Likewise.
777 * ldctor.h: Likewise.
778 * ldemul.c: Likewise.
779 * ldemul.h: Likewise.
780 * ldexp.c: Likewise.
781 * ldexp.h: Likewise.
782 * ldfile.c: Likewise.
783 * ldfile.h: Likewise.
784 * ldlang.c: Likewise.
785 * ldlang.h: Likewise.
786 * ldmain.c: Likewise.
787 * pe-dll.c: Likewise.
788
789 * pe-dll.c: Revert some formatting fixes.
790
791 2000-10-08 Kazu Hirata <kazu@hxi.com>
792
793 * pe-dll.c: Fix formatting.
794
795 2000-10-05 Kazu Hirata <kazu@hxi.com>
796
797 * ldlang.c: Fix formatting.
798
799 2000-10-03 DJ Delorie <dj@redhat.com>
800
801 * pe-dll.c (fill_edata): initialize entire block
802 (make_one): fill in correct section.
803
804 2000-10-03 Kazu Hirata <kazu@hxi.com>
805
806 * ldexp.c: Fix formatting.
807
808 2000-10-02 DJ Delorie <dj@redhat.com>
809
810 * emultempl/pe.em (gld_*_after_open): detect case where there two
811 import libraries for same dll; rename one to ensure proper link
812 order.
813
814 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
815 typo
816 (generate_edata): fix typo
817
818 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
819
820 * scripttempl/crisaout.sc (ENTRY): Now __start.
821 (.text): Add default setting for __start.
822 Remove CONSTRUCTORS handling.
823 (/DISCARD/): Add .gnu.warning.*.
824 * emulparams/crislinux.sh (ENTRY): Now __start.
825 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
826 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
827 (ENTRY): Now __start.
828 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
829 (EXECUTABLE_SYMBOLS): Add default setting for __start.
830
831 2000-09-29 Kazu Hirata <kazu@hxi.com>
832
833 * deffile.h: Fix formatting.
834 * ld.h: Likewise.
835 * ldcref.c: Likewise.
836 * ldctor.c: Likewise.
837 * ldctor.h: Likewise.
838 * ldemul.c: Likewise.
839 * ldemul.h: Likewise.
840 * ldexp.c: Likewise.
841 * ldexp.h: Likewise.
842 * ldfile.c: Likewise.
843 * ldfile.h: Likewise.
844 * ldlang.c: Likewise.
845 * ldlang.h: Likewise.
846 * lexsup.c: Likewise.
847 * mri.c: Likewise.
848 * pe-dll.c: Likewise.
849
850 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
851
852 * pe-dll.c (process_def_file): Uninitialized data wasn't
853 exported with --export-all-symbols switch.
854
855 2000-09-28 DJ Delorie <dj@redhat.com>
856
857 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
858 noname work properly.
859
860 2000-09-28 Alan Modra <alan@linuxcare.com.au>
861
862 * ld.texinfo (HPPA ELF32): New section.
863
864 * emultempl/hppaelf.em (group_size): New.
865 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
866 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
867 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
868 options to prevent abbreviations matching.
869 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
870 (PARSE_AND_LIST_ARGS_CASES): Handle it.
871
872 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
873
874 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
875 on the m68*-*-elf target. Make it support COFF input objects.
876
877 2000-09-21 Kazu Hirata <kazu@hxi.com>
878
879 * ldmain.c: Fix formatting.
880 * ldmisc.c: Likewise.
881 * ldver.c: Likewise.
882 * ldwrite.c: Likewise.
883
884 2000-09-21 Alan Modra <alan@linuxcare.com.au>
885
886 * ldwrite.c (clone_section): Silence gcc warnings.
887
888 2000-09-20 Alan Modra <alan@linuxcare.com.au>
889
890 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
891 out of memory failure.
892
893 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
894 (clone_section): Handle out of memory failures. Rename var to
895 avoid c++ reserved word.
896
897 2000-09-18 Alan Modra <alan@linuxcare.com.au>
898
899 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
900 stub_name param to stub_sec_name.
901 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
902
903 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
904
905 * emultempl/m68kelf.em: New file.
906 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
907 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
908 * Makefile.in: Regenerate.
909
910 2000-09-15 Alan Modra <alan@linuxcare.com.au>
911
912 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
913 only as needed.
914
915 2000-09-13 Nick Clifton <nickc@redhat.com>
916
917 * ldmain.c (multiple_definition): Disable relaxation if
918 multiple symbol definitions are encountered - otherwise the
919 linker could abort with an assertion failure.
920
921 2000-09-10 Nick Clifton <nickc@redhat.com>
922
923 * mri.c: Fix formatting.
924
925 2000-09-07 H.J. Lu <hjl@gnu.org>
926
927 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
928 * configure: Rebuild.
929
930 2000-09-07 H.J. Lu <hjl@gnu.org>
931
932 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
933 * Makefile.in: Rebuild.
934
935 2000-09-07 Alan Modra <alan@linuxcare.com.au>
936
937 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
938 broken list handling. Create __start_SECNAME and __stop_SECNAME
939 when no place-holder. Add some comments. Test both SEC_CODE and
940 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
941 Handle case where no output section statement created.
942
943 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
944
945 * configure.tgt (sh-*-linux*): Added.
946 * Makefile.am: Added eshelf_linux and eshlelf_linux.
947 * Makefile.in: Rebuilt.
948 * emulparams/shelf_linux.sh: New file.
949 * emulparams/shlelf_linux.sh: New file.
950
951 2000-09-06 Alan Modra <alan@linuxcare.com.au>
952
953 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
954 try shuffling sections when the orphan happens to be the place
955 holder. Keep count of unique section names generated so we speed
956 the search for a new name.
957
958 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
959
960 * configure: Rebuilt with new libtool.m4.
961
962 2000-09-05 Nick Clifton <nickc@redhat.com>
963
964 * Makefile.in: Regenerate.
965 * aclocal.m4: Regenerate.
966 * configure: Regenerate.
967 * config.in: Regenerate.
968 * po/ld.pot: Regenerate.
969
970 * ldint.texinfo: Remove CVS revision marker - it foils local
971 comparisons.
972
973 * emultempl/ticoff.em: Remove extraneous comma.
974
975 2000-09-05 Alan Modra <alan@linuxcare.com.au>
976
977 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
978 to stub section flags.
979 (hppa_for_each_input_file_wrapper): New.
980 (hppa_lang_for_each_input_file): New.
981 (lang_for_each_input_file): Define to call above.
982 (multi_subspace): New.
983 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
984 (PARSE_AND_LIST_PROLOGUE): Define.
985 (PARSE_AND_LIST_LONGOPTS): Define.
986 (PARSE_AND_LIST_OPTIONS): Define.
987 (PARSE_AND_LIST_ARGS_CASES): Define.
988 (hppaelf_finish): Call elf32_hppa_set_gp.
989 (hppaelf_set_output_arch): Remove.
990 (LDEMUL_SET_OUTPUT_ARCH): Remove.
991
992 * emulparams/hppalinux.sh (ELFSIZE): Define.
993 (MACHINE): Define.
994 (OTHER_READONLY_SECTIONS): Define.
995 (DATA_PLT): Define.
996 (GENERATE_SHLIB_SCRIPT): Define.
997
998 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
999 to const throughout. Change `void *' to `PTR' throughout.
1000 (lang_memory_default): Function is local to file, add `static'.
1001
1002 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
1003 (ehppalinux.c): Likewise.
1004 (earmelf.c): Likewise.
1005 (earmelf_linux.c): Likewise.
1006 (earmelf_linux26.c): Likewise.
1007 * Makefile.in: Regenerate.
1008
1009 * ld.h (ld_config_type): Add unique_orphan_sections.
1010 * lexsup.c (OPTION_UNIQUE): Define.
1011 (ld_options): Add "--unique".
1012 (parse_args): Handle it.
1013 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1014 search for an existing output section if unique_orphan_sections is
1015 set. Make use of bfd_get_unique_section_name rather than
1016 duplicating code here.
1017 * ld.texinfo: Describe --unique.
1018
1019 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
1020 optional arg to split-by-file.
1021 (parse_args): Handle them.
1022 * ld.texinfo: Update description of these options.
1023 * ldwrite.c (clone_section): Pass in the section name. Replace
1024 local code with bfd_get_unique_section_name.
1025 (split_sections): Tidy code and comments. Use a list traversal
1026 more appropriate to the list construction. Handle cooked section
1027 sizes. Split when split_by_reloc reached rather than exceeded.
1028 Track section size and split when split_by_file reached. Fix
1029 link_order_tail (even though it's not used).
1030 (ldwrite): Modify condition for calling split_sections to suit
1031 changed split_by_reloc and split_by_file.
1032 * ldmain.c (main): Init config.split_by_reloc and
1033 config.split_by_file to -1.
1034 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
1035 Change split_by_file to bfd_size_type.
1036
1037 2000-09-02 Nick Clifton <nickc@redhat.com>
1038
1039 * configure.in: Increase version number to 2.10.91.
1040 * NEWS: Mention new ability to support removal of duplicate DWARF2
1041 debug information.
1042 * configure: Regenerate.
1043 * aclocal.m4: Regenerate.
1044 * config.in: Regenerate.
1045
1046 2000-09-02 Daniel Berlin <dberlin@redhat.com>
1047
1048 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
1049 sections.
1050 * scripttempl/elf32avr.sc: Ditto.
1051 * scripttempl/elfd10v.sc: Ditto.
1052 * scripttempl/elfd30v.sc: Ditto.
1053 * scripttempl/elfi370.sc: Ditto.
1054 * scripttempl/elfm68hc11.sc: Ditto.
1055 * scripttempl/elfm68hc12.sc: Ditto.
1056 * scripttempl/elfi386beos.sc: Ditto.
1057 * scripttempl/v850.sc: Ditto.
1058
1059 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
1060
1061 * acinclude.m4: Include libtool and gettext macros from the
1062 top level.
1063 * aclocal.m4, configure: Rebuilt.
1064
1065 2000-08-25 Nick Clifton <nickc@redhat.com>
1066
1067 * ldlang.c (open_output): When choosing the target for a
1068 particular endianness, do nothing if the target is not
1069 supported.
1070
1071 2000-08-25 H.J. Lu <hjl@gnu.org>
1072
1073 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
1074 check -rpath nor LD_RUN_PATH for cross link.
1075 * ld.texinfo: Document the change.
1076
1077 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
1078
1079 * NEWS: Mention support for CRIS.
1080
1081 2000-08-23 H.J. Lu <hjl@gnu.org>
1082
1083 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
1084 the current runpath list from bfd_elf_get_runpath_list ()
1085 before search.
1086
1087 2000-08-22 H.J. Lu <hjl@gnu.org>
1088
1089 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
1090 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
1091 LD_LIBRARY_PATH for native linker. Display the needed DSO if
1092 trace_file_tries is non-zero.
1093 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
1094 if trace_file_tries is non-zero.
1095
1096 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
1097 * NEWS: Mention it.
1098
1099 2000-08-14 Jason Eckhardt <jle@cygnus.com>
1100
1101 * NEWS: Mention i860 support.
1102
1103 2000-08-14 Andreas Schwab <schwab@suse.de>
1104
1105 * scripttempl/elf.sc: Fix last change to use correct comment
1106 syntax.
1107
1108 2000-08-10 Geoff Keating <geoffk@cygnus.com>
1109
1110 * scripttempl/elf.sc: Add a comment giving the correspondence
1111 between sections, per-datum sections, and linkonce sections. Make
1112 the comment true even for .bss, .sdata, .sdata2, .sbss, and
1113 .sbss2.
1114
1115 2000-08-10 Jason Eckhardt <jle@cygnus.com>
1116
1117 * emulparams/elf32_i860.sh: New file.
1118 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
1119 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
1120 (eelf32_i860.c): New rule.
1121 * Makefile.in: Regenerate.
1122
1123 2000-08-10 Nick Clifton <nickc@cygnus.com>
1124
1125 * emulparams/mipspe.sh (ENTRY): Add definition.
1126
1127 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
1128
1129 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
1130 in error message.
1131
1132 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1133
1134 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
1135 the final size of .bss section.
1136 * scripttempl/elfm68hc12.sc: Likewise.
1137
1138 2000-08-04 Alan Modra <alan@linuxcare.com.au>
1139
1140 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
1141 gld${EMULATION_NAME}_parse_args for consistency. Combine
1142 lastoptind and prevoptind vars, and keep track of last optind.
1143 (gld_${EMULATION_NAME}_list_options): Rename to
1144 gld${EMULATION_NAME}_list_options.
1145
1146 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
1147
1148 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
1149 (i586-sco-sysv5uw7.1.0).
1150
1151 2000-07-27 H.J. Lu <hjl@gnu.org>
1152
1153 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
1154 (PARSE_AND_LIST_PROLOGUE): New.
1155 (PARSE_AND_LIST_LONGOPTS): Likewise.
1156 (PARSE_AND_LIST_OPTIONS): Likewise.
1157 (PARSE_AND_LIST_ARGS_CASES): Likewise.
1158 (PARSE_AND_LIST_EPILOGUE): Likewise.
1159
1160 2000-07-28 Alan Modra <alan@linuxcare.com.au>
1161
1162 * emultempl/armelf.em: Elide functions common to elf32.em,
1163 ie. most of the file.
1164 (arm_elf_after_open): New. Do arm specific things then call
1165 gld${EMULATION_NAME}_after_open.
1166 (arm_elf_before_allocation): New. Call
1167 gld${EMULATION_NAME}_before_allocation then do arm specifics.
1168 (PARSE_AND_LIST_PROLOGUE): Define.
1169 (PARSE_AND_LIST_SHORTOPTS): Define.
1170 (PARSE_AND_LIST_LONGOPTS): Define.
1171 (PARSE_AND_LIST_OPTIONS): Define.
1172 (PARSE_AND_LIST_ARGS_CASES): Define.
1173 (LDEMUL_AFTER_OPEN): Define.
1174 (LDEMUL_BEFORE_ALLOCATION): Define.
1175 (LDEMUL_BEFORE_PARSE): Define.
1176 (LDEMUL_FINISH): Define.
1177
1178 * emultempl/hppaelf.em: Similarly zap most of this file.
1179 (hppaelf_add_stub_section): Prototype.
1180 (hppaelf_layaout_sections_again): Prototype.
1181 (hook_in_stub): Prototype.
1182 (LDEMUL_SET_OUTPUT_ARCH): Define.
1183 (LDEMUL_FINISH): Define.
1184 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1185
1186 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
1187 (EXTRA_EM_FILE): New.
1188 * emulparams/armelf_linux.sh: Likewise.
1189 * emulparams/armelf_linux26.sh: Likewise.
1190 * emulparams/hppalinux.sh: Likewise.
1191 * emulparams/hppaelf.sh: Likewise.
1192 (NOP): Define.
1193
1194 * emultempl/elf32.em: Fix formatting.
1195 (EXTRA_EM_FILE): Source it.
1196 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1197 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1198 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1199 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1200 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1201 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1202 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1203 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1204 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
1205 allow functions in this file to be overridden.
1206 (PARSE_AND_LIST_SHORTOPTS): Handle it.
1207
1208 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
1209
1210 * emultempl/elf32.em: Reorganize file.
1211
1212 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
1213
1214 * emulparams/elf64alpha.sh: Implement "-taso" emulation
1215 specific option to fit 64-bit executable in the lower
1216 31-bit address range. This is done by changing start
1217 address of .interp (the very first section of executable)
1218 and then setting EF_ALPHA_32BIT elf header flag.
1219
1220 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1221
1222 * emultempl/m68kcoff.em: New file.
1223 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
1224 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
1225 generic.em.
1226 * Makefile.in: Regenerate.
1227
1228 2000-07-20 H.J. Lu <hjl@gnu.org>
1229
1230 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
1231 and "disable-new-dtags" to stop getopt from treating -d/-e as
1232 abbreviations for these options.
1233
1234 2000-07-20 H.J. Lu <hjl@gnu.org>
1235
1236 * ld.texinfo: Add documentation for --disable-new-dtags and
1237 --enable-new-dtags.
1238
1239 * ldmain.c (main): Initialize link_info.new_dtags to false.
1240
1241 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
1242 --disable-new-dtags and --enable-new-dtags.
1243 (gld_${EMULATION_NAME}_list_options): Likewise.
1244
1245 2000-07-05 Kenneth Block <krblock@computer.org>
1246
1247 * lexsup.c: Add optional style to demangle switch
1248 * ld.texinfo: Document optional style to demangle switch.
1249
1250 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
1251
1252 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
1253 ecrislinux.o.
1254 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
1255 Regenerate dependencies.
1256 * Makefile.in: Rebuild.
1257 * configure.tgt (cris-*-*): New target.
1258 * emulparams/crisaout.sh, emulparams/criself.sh,
1259 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
1260 * po/POTFILES.in, po/ld.pot: Regenerate.
1261
1262 2000-07-20 H.J. Lu <hjl@gnu.org>
1263
1264 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
1265 Print out ignored -z options.
1266
1267 2000-07-19 H.J. Lu <hjl@gnu.org>
1268
1269 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
1270 (PARSE_AND_LIST_PROLOGUE): New.
1271 (PARSE_AND_LIST_LONGOPTS): Likewise.
1272 (PARSE_AND_LIST_OPTIONS): Likewise.
1273 (PARSE_AND_LIST_ARGS_CASES): Likewise.
1274
1275 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
1276
1277 * lexsup.c (ld_options): Comment out 'z'.
1278 (parse_args): Likewise.
1279
1280 * emultempl/elf32.em: Include "elf/common.h".
1281 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
1282 options.
1283 (gld_${EMULATION_NAME}_list_options): Likewise.
1284
1285 * ld.texinfo: Add documentation for the recognized -z options.
1286
1287 2000-07-19 H.J. Lu <hjl@gnu.org>
1288
1289 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
1290 bfd_elf_set_dt_needed_soname ().
1291
1292 2000-07-18 DJ Delorie <dj@cygnus.com>
1293
1294 * pe-dll.c (pe_dll_id_target): check object target name also
1295
1296 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
1297
1298 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
1299 ${INIT_END} if relocating.
1300 (.fini): Likewise ${FINI_START} and ${FINI_END}.
1301
1302 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
1303
1304 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
1305 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
1306 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
1307 errors introduced by the old dynamic lib search order.
1308
1309 2000-07-17 DJ Delorie <dj@cygnus.com>
1310
1311 * pe-dll.c (process_def_file): auto-export data items also
1312 (pe_process_import_defs): also see if _imp_ form needed
1313
1314 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
1315
1316 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
1317 for dll import libraries
1318
1319 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
1320
1321 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
1322 gcc 2.95.2 and later.
1323
1324 2000-07-11 Kazu Hirata <kazu@hxi.com>
1325
1326 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
1327 message.
1328
1329 2000-07-10 Alan Modra <alan@linuxcare.com.au>
1330
1331 * ldemul.h (struct lang_input_statement_struct): Remove forward
1332 declaration.
1333 (struct search_dirs): Likewise.
1334 * ldfile.h (struct lang_input_statement_struct): Likewise.
1335 Protect file from multiple inclusion.
1336 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
1337 declaration from macro to file scope.
1338
1339 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
1340 * ldgram.y: Likewise here.
1341 * ldlang.c: And here.
1342 * ldmain.c: And here.
1343 * mpw-elfmips.c: And here.
1344 * mpw-eppcmac.c: And here.
1345 * emultempl/aix.em: And here.
1346 * emultempl/armcoff.em: And here.
1347 * emultempl/armelf.em: And here.
1348 * emultempl/armelf_oabi.em: And here.
1349 * emultempl/beos.em: And here.
1350 * emultempl/elf32.em: And here.
1351 * emultempl/hppaelf.em: And here.
1352 * emultempl/linux.em: And here.
1353 * emultempl/lnk960.em: And here.
1354 * emultempl/pe.em: And here.
1355 * emultempl/sunos.em: And here.
1356 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
1357 * mpw-idtmips.c: Ditto.
1358 * emultempl/generic.em: Ditto.
1359 * emultempl/gld960.em: Ditto.
1360 * emultempl/gld960c.em: Ditto.
1361 * emultempl/mipsecoff.em: Ditto.
1362 * emultempl/ticoff.em: Ditto.
1363 * emultempl/vanilla.em: Ditto.
1364
1365 * pe-dll.c: Include ldfile.h
1366 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
1367
1368 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
1369 arguments to bfd_elf32_size_dynamic_sections call.
1370 (gldelf32ebmip_place_orphan): Add missing arguments to
1371 lang_leave_output_section_statement call.
1372
1373 2000-07-10 H.J. Lu <hjl@gnu.org>
1374
1375 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
1376 DLL_SUPPORT.
1377 (strhash): Likewise.
1378 (compute_dll_image_base): Likewise.
1379 (pe_undef_found_sym): Likewise.
1380 (pe_undef_cdecl_match): Likewise.
1381 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
1382 argument "arch" with ATTRIBUTE_UNUSED.
1383
1384 2000-07-10 Alan Modra <alan@linuxcare.com.au>
1385
1386 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
1387
1388 From Ryan Bradetich <rbradetich@uswest.net>
1389 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
1390
1391 2000-07-09 Alan Modra <alan@linuxcare.com.au>
1392
1393 Changes to create multiple linker stubs, positioned immediately
1394 before the section where they are required.
1395 * emultempl/hppaelf.em: Include elf32-hppa.h.
1396 (stub_sec, file_chain): Delete.
1397 (hppaelf_create_output_section_statements): Don't make a stub
1398 section here.
1399 (hook_stub_info): New struct.
1400 (hook_in_stub): New function.
1401 (hppaelf_add_stub_section): New function.
1402 (hppaelf_finish): Do nothing for relocateable links. Modify the
1403 call to elf32_hppa_size_stubs. Move code for updating section
1404 layout from here...
1405 (hppaelf_layaout_sections_again): ..to here, a new function.
1406
1407 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
1408 broken list handling. Pass in a pointer to the list.
1409 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
1410 for above changes.
1411 (hppaelf_before_parse): Prototype.
1412 (hppaelf_set_output_arch): Prototype.
1413 (hppaelf_create_output_section_statements): Prototype.
1414 (hppaelf_delete_padding_statements): Prototype.
1415 (hppaelf_finish): Prototype.
1416
1417 Merge from elf32.em
1418 * emultempl/hppaelf.em: Include ctype.h.
1419 (struct orphan_save): New.
1420 (gld${EMULATION_NAME}_place_orphan): New.
1421 (output_rel_find): New.
1422 (hppaelf_get_script): Update from elf32.em.
1423 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
1424 Change emulation_name field to "${EMULATION_NAME}". Add
1425 gld${EMULATION_NAME}_place_orphan.
1426
1427 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
1428 ehppalinux.o, sort it. Regenerate dependencies.
1429 (ehppalinux.c): Depend on hppaelf.em
1430 * Makefile.in: Regenerate.
1431
1432 * configure.tgt: targ_emul=hppalinux for hppa*linux
1433
1434 * emulparams/hppalinux.sh: New.
1435 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
1436
1437 2000-07-08 Alan Modra <alan@linuxcare.com.au>
1438
1439 * lexsup.c (parse_args): Copy section name.
1440
1441 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
1442
1443 * emultempl/pe.em: institute the following search order for
1444 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
1445 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
1446 static lib (libfoo.a) if none of the above are found.
1447
1448 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
1449
1450 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
1451 (longopts): New --{enable,disable}-auto-image-base options.
1452 (gld_${EMULATION_NAME}_list_options): Document.
1453 (gld_${EMULATION_NAME}_parse): Handle.
1454 (strhash): New static function.
1455 (compute_dll_image_base): New static function.
1456 (gld_${EMULATION_NAME}_set_symbols): Use.
1457
1458 2000-07-05 DJ Delorie <dj@redhat.com>
1459
1460 * MAINTAINERS: new
1461
1462 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
1463
1464 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
1465 * emulparams/elf32btsmip.sh: New file.
1466 * Makefile.am: Add traditional mips target.
1467 * Makefile.in: Rebuild.
1468
1469 2000-07-01 H.J. Lu <hjl@gnu.org>
1470
1471 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
1472 automake to use YLWRAP.
1473 * Makefile.in: Rebuild.
1474
1475 2000-07-01 Alan Modra <alan@linuxcare.com.au>
1476
1477 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
1478 (CLEANFILES): Add DEPA.
1479 * Makefile.in: Regenerate.
1480
1481 2000-06-30 Timothy Wall <twall@ppc>
1482
1483 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
1484 the page in the upper octet of the address.
1485
1486 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
1487
1488 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
1489
1490 2000-06-24 Alan Modra <alan@linuxcare.com.au>
1491
1492 * NEWS: arm-elf does --gc-sections too.
1493
1494 2000-06-22 Alan Modra <alan@linuxcare.com.au>
1495
1496 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
1497 find one.
1498 * Makefile.in: Regenerate.
1499
1500 2000-06-21 H.J. Lu <hjl@gnu.org>
1501
1502 * Makefile.am: Rebuild dependency.
1503 * Makefile.in: Rebuild.
1504
1505 2000-06-20 H.J. Lu <hjl@gnu.org>
1506
1507 * Makefile.am: Rebuild dependency.
1508 * Makefile.in: Rebuild.
1509
1510 2000-06-20 Timothy Wall <twall@cygnus.com>
1511
1512 * scripttempl/tic54xcoff.sc: New.
1513 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
1514 * gen-doc.texi: Add flag for TI COFF.
1515 * ld.texinfo: Add documentation for TI COFF handling switches.
1516 * emultempl/ticoff.em: New. TI COFF handling.
1517 * configure.tgt: Add tic54x target.
1518 * Makefile.am: Add tic54x target.
1519 * Makefile.in: Ditto.
1520
1521 2000-06-20 Alan Modra <alan@linuxcare.com.au>
1522
1523 * ldmain.c (set_scripts_dir): Correct pointer comparison when
1524 checking for backslashes.
1525
1526 2000-06-19 Alan Modra <alan@linuxcare.com.au>
1527
1528 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
1529
1530 2000-06-18 Alan Modra <alan@linuxcare.com.au>
1531
1532 * NEWS: Update list of targets supporting --gc-sections.
1533
1534 * scripttempl/elf.sc: KEEP .eh_frame contents.
1535 * scripttempl/elfd30v.sc: Same here.
1536
1537 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
1538
1539 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
1540 and m68hc11 (elf).
1541 * Makefile.in: Rebuild.
1542 * configure.tgt: Recognize m68hc12 and m68hc11.
1543 * scripttempl/elfm68hc12.sc: New file.
1544 * emulparams/m68hc12elfb: New emulation.
1545 * emulparams/m68hc12elf: New emulation.
1546 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
1547 (includes a memory.x script to define the ROM and RAM banks).
1548 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
1549 New configuration files for support of Motorola 68hc11
1550
1551 2000-06-15 Alan Modra <alan@linuxcare.com.au>
1552
1553 * ldmain.c (main): Only change SEC_READONLY for final link.
1554
1555 2000-06-13 H.J. Lu <hjl@gnu.org>
1556
1557 * configure: Regenerate.
1558
1559 2000-06-08 David O'Brien <obrien@FreeBSD.org>
1560
1561 * configure.in (VERSION): Update to show this is the CVS mainline.
1562
1563 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1564
1565 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
1566 input objects to be ECOFF.
1567 (check_sections): einfo takes %B, not %P, to print a BFD name.
1568
1569 2000-06-05 Michael Matz <matz@ifh.de>
1570
1571 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
1572 version scripts.
1573
1574 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
1575
1576 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
1577
1578 * emulparams/avr1200.sh (STACK): Define as 0.
1579 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
1580 * emulparams/avr4433.sh (STACK): Likewise.
1581 * emulparams/avr44x4.sh (STACK): Likewise.
1582 * emulparams/avr85xx.sh (STACK): Likewise.
1583 * emulparams/avrmega103.sh (STACK): Likewise.
1584 * emulparams/avrmega161.sh (STACK): Likewise.
1585 * emulparams/avrmega603.sh (STACK): Likewise.
1586 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
1587 (__stack): Define from ${STACK} for main().
1588
1589 2000-05-26 Alan Modra <alan@linuxcare.com.au>
1590
1591 * Makefile.am: Update dependencies with "make dep-am"
1592 * Makefile.in: Regenerate.
1593
1594 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
1595
1596 * ldmain.c: Include filenames.h.
1597 (set_scripts_dir): Support backslashes in program name.
1598
1599 2000-05-22 Igor Shevlyakov <igor@windriver.com>
1600
1601 * ldmain.c (main): When deciding if ".text" section should be
1602 read-only, don't forget to reset SEC_READONLY because it
1603 could be already set.
1604
1605 2000-05-22 Thomas de Lellis <tdel@windriver.com>
1606
1607 * ld.1: Add documentation for new command line option:
1608 --section-start <sectionname>=<sectionorg>
1609 This is a generic version of -Ttext etc. which accepts
1610 any section name as a parameter instead of just text/data/
1611 bss.
1612 * ld.texinfo: More docs.
1613 * NEWS: More docs.
1614 * lexsup.c: (parse_args): Recognize new command line option.
1615 (ld_options): Add new option.
1616
1617 2000-05-18 H.J. Lu <hjl@gnu.org>
1618
1619 * lexsup.c (parse_args): `i' == `r', not `q'.
1620
1621 Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
1622
1623 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
1624
1625 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
1626 Rick Gorton <gorton@scrugs.lkg.dec.com>
1627
1628 Add support for '-q' == '--emit-relocs' switch.
1629 * ldmain.c (main): Default to false.
1630 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
1631 * NEWS: Describe the emitrelocations switch.
1632 * ld.texinfo: Describe the emitrelocations switch.
1633
1634 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
1635
1636 * emultempl/pe.em (_open_dynamic_archive): New function: Search
1637 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
1638 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
1639 link options.
1640
1641 2000-05-15 David O'Brien <obrien@FreeBSD.org>
1642
1643 * lexsup.c (parse_args): Update the year in the copyright notice.
1644
1645 2000-05-13 Alan Modra <alan@linuxcare.com.au>
1646
1647 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
1648 Replace defines with those from intl/libgettext.h to quieten gcc
1649 warnings.
1650
1651 2000-05-10 H.J. Lu <hjl@gnu.org>
1652
1653 * ldlang.c (open_input_bfds): Don't load the same file within
1654 a group again if the whole archive has been loaded already.
1655
1656 2000-05-03 Alan Modra <alan@linuxcare.com.au>
1657
1658 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
1659 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
1660 strtoul.
1661
1662 Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
1663
1664 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
1665
1666 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1667 host "ia64-*-linux-gnu*".
1668
1669 2000-04-29 Andreas Jaeger <aj@suse.de>
1670
1671 * ld.h: Correctly check GCC version.
1672
1673 Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
1674
1675 * Makefile.am: Add PA64 support. Add missing dependencies for
1676 PA32 elf support.
1677 * Makefile.in: Rebuilt.
1678 * configure.tgt: Add PA64 support (currently disabled).
1679
1680 2000-04-25 Alan Modra <alan@linuxcare.com.au>
1681
1682 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
1683 (output_rel_find): New function.
1684 (hold_section, hold_use): Delete.
1685 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1686 hold_interp): Make local to place_orphan.
1687 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
1688 rather than place_section to find possible previous use of orphan.
1689 Similarly find the place-holder output sections. Use returned
1690 value from lang_enter_output_section_statement rather than calling
1691 lang_output_section_statement_lookup.
1692 * emultempl/armelf.em: Same here.
1693 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
1694
1695 * ldlang.c (lang_enter_output_section_statement): Return output
1696 section statement.
1697 * ldlang.h (lang_enter_output_section_statement): Change
1698 declaration too.
1699
1700 * ldlang.h (lang_output_section_statement): Export it.
1701 * ldlang.c (lang_output_section_statement): Ditto.
1702
1703 2000-04-24 Nick Clifton <nickc@cygnus.com>
1704
1705 * ld.texinfo (Output Section Data): Add note that section data
1706 commands cannot appear outside of section directives.
1707
1708 2000-04-2 Matthew Green <mrg@cygnus.com>
1709
1710 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
1711
1712 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
1713 David Mosberger <davidm@hpl.hp.com>
1714
1715 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
1716 (eelf64_ia64.c): New rule.
1717 * Makefile.in: Rebuild.
1718 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
1719 * emulparams/elf64_ia64.sh: New file.
1720
1721 2000-04-21 Richard Henderson <rth@cygnus.com>
1722
1723 * scripttempl/elfd30v.sc: Place .gcc_except_table.
1724
1725 2000-04-19 Alan Modra <alan@linuxcare.com.au>
1726
1727 * dep-in.sed: Match space at start of file name, not at end.
1728
1729 2000-04-18 H.J. Lu <hjl@gnu.org>
1730
1731 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
1732 lang_leave_output_section_statement () after calling
1733 lang_enter_output_section_statement ().
1734 * emultempl/armelf.em: Likewise.
1735
1736 2000-04-18 Alan Modra <alan@linuxcare.com.au>
1737
1738 * emultempl/elf32.em (struct orphan_save): Add section field.
1739 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
1740 better order, and place first orphan section as we did before the
1741 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
1742 Don't call make_bfd_section here, let wild_doit do the job for us.
1743 Don't build a statement list when we'll only throw it away.
1744 * emultempl/armelf.em: Ditto.
1745 * emultempl/pe.em: Similarly.
1746
1747 2000-04-14 Geoff Keating <geoffk@cygnus.com>
1748
1749 * scripttempl/elfppc.sc: Remove.
1750 * emulparams/elf32ppc.sh: Use elf.sc.
1751 * emulparams/elf32lppc.sh: Use elf.sc.
1752 * emulparams/elf32ppclinux.sh: Use elf.sc.
1753 * emulparams/elf32ppcsim.sh: New file.
1754 * emulparams/elf32lppcsim.sh: New file.
1755 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
1756 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
1757 * Makefile.in: Regenerate.
1758 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
1759
1760 2000-04-14 Alan Modra <alan@linuxcare.com.au>
1761
1762 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
1763 ~SEC_ALLOC sections too. Init start address of debug sections.
1764 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1765 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1766 Also set all relocateable section start addresses.
1767
1768 2000-04-13 Geoff Keating <geoffk@cygnus.com>
1769
1770 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
1771 Add new BSS_PLT variable for when .plt need not be contained in
1772 the file. Move _etext so that it is also after .fini, and provide
1773 both etext and _etext with a leading underscore. Mark the start
1774 and end of .sbss.
1775
1776 2000-04-12 Alan Modra <alan@linuxcare.com.au>
1777
1778 * emultempl/elf32.em (struct orphan_save): New.
1779 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1780 hold_interp): Make them struct orphan_save.
1781 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
1782 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
1783 the end of the relevant section list. Also add associated section
1784 statements to the end of any previous orphan statements.
1785 * emultempl/armelf.em: Similarly.
1786 * emultempl/pe.em: Similarly.
1787
1788 2000-04-11 Alan Modra <alan@linuxcare.com.au>
1789
1790 * ld.texinfo (Simple Example): Remove extraneous paragraph.
1791
1792 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
1793
1794 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
1795 --enable-build-warnings option.
1796 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1797 * Makefile.in, configure: Re-generate.
1798
1799 2000-04-04 Alan Modra <alan@linuxcare.com.au>
1800
1801 * po/ld.pot: Regenerate.
1802
1803 * lexsup.c (help): Restore translated part of bug string.
1804
1805 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
1806 (DEP): Quote when passing vars to sub-make. Add warning message
1807 to end.
1808 (DEP1): Rewrite for "gcc -MM".
1809 (CLEANFILES): Add DEP2.
1810 Update dependencies.
1811 * Makefile.in: Regenerate.
1812
1813 2000-04-03 Alan Modra <alan@linuxcare.com.au>
1814
1815 * ld.h: #include "bin-bugs.h"
1816 * lexsup.c (help): Use REPORT_BUGS_TO.
1817
1818 2000-03-27 Denis Chertykov <denisc@overta.ru>
1819
1820 * configure.tgt (avr-*-*): New target support.
1821 * Makefile.am: Likewise.
1822 * scripttempl/elf32avr.sc: New script file.
1823 * emulparams/avr1200.sh: New file.
1824 * emulparams/avr23xx.sh: New file.
1825 * emulparams/avr4433.sh New file.
1826 * emulparams/avr44x4.sh New file.
1827 * emulparams/avr85xx.sh New file.
1828 * emulparams/avrmega103.sh New file.
1829 * emulparams/avrmega161.sh New file.
1830 * emulparams/avrmega603.sh New file.
1831 * Makefile.in: Regenerate.
1832
1833 2000-03-09 Andreas Jaeger <aj@suse.de>
1834
1835 * Makefile.am (check-DEJAGNU): Also unset LANG.
1836 * Makefile.in: Rebuild.
1837
1838 2000-03-06 Ian Lance Taylor <ian@zembu.com>
1839
1840 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
1841 archive.
1842
1843 2000-03-02 H.J. Lu <hjl@gnu.org>
1844
1845 * emulparams/elf32mcore.sh: Include "getopt.h".
1846
1847 2000-03-01 Ian Lance Taylor <ian@zembu.com>
1848
1849 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
1850
1851 2000-03-01 H.J. Lu <hjl@gnu.org>
1852
1853 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
1854 * emulparams/shpe.sh: Likewise.
1855
1856 2000-03-01 Nick Clifton <nickc@cygnus.com>
1857
1858 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
1859 to unused parameters.
1860
1861 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
1862 functions only used by DLL code.
1863 (_place_orphan): Initialise 'dollar'.
1864
1865 2000-03-01 H.J. Lu <hjl@gnu.org>
1866
1867 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
1868 indicate if the undefined symbol is a fatal error or not.
1869 Don't delete the output file if "fatal" is false.
1870
1871 2000-02-29 H.J. Lu <hjl@gnu.org>
1872
1873 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
1874 Set LC_COLLATE and LC_ALL to null and export them. It is for
1875 sort which expects the C locale.
1876 Add $(LIBS) to all $(HOSTING_LIBS).
1877 * Makefile.in: Rebuild.
1878
1879 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
1880
1881 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
1882 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
1883 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
1884 (ld_emulation_xfer_struct): Add missing NULL initialiser for
1885 find_potential_libraries.
1886
1887 2000-02-28 Jim Blandy <jimb@redhat.com>
1888
1889 * ldgram.y (exclude_name_list): Don't require a comma to separate
1890 list entries; the lexer considers commas to be valid part of a
1891 filename, so in something like `foo, bar' the comma is considered
1892 part of the first filename, `foo,'.
1893 * ld.texinfo: Update section on EXCLUDE_FILE lists.
1894
1895 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
1896
1897 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1898 host "i[3456]86-*-freebsdelf*".
1899
1900 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
1901
1902 * scripttempl/i386go32.sc: Move misplaced semicolons.
1903
1904 2000-02-25 Ian Lance Taylor <ian@zembu.com>
1905
1906 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
1907 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
1908 (eelf64hppa.c, ehppaelf.c): Remove targets.
1909 * Makefile.in: Rebuild.
1910
1911 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1912
1913 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
1914 GNU/Linux/sparc, but keep the default as 32.
1915
1916 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
1917 it default if sparcv9 or sparc64.
1918
1919 2000-02-24 Nick Clifton <nickc@cygnus.com>
1920
1921 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
1922 * Makefile.in: Regenerate.
1923 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
1924
1925 * ldemul.h (ld_emulation_xfer_struct): Add new field:
1926 find_potential_libraries.
1927 * ldemul.c (ldemul_find_potential_libraries): New function.
1928
1929 * ldfile.c (ldfile_open_file_search): Allow function to be
1930 exported.
1931 (ldfile_open_file): Call ldemul_find_potential_libraries.
1932 * ldfile.h: Add prototype for ldfile_open_file_search.
1933
1934 * pe-dll.c: Add support for ARM, MIPS and SH targets.
1935
1936 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
1937 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
1938
1939 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
1940 (gld_X_find_potential_libraries): New function. Search for
1941 libraries called "*.lib".
1942
1943 * scripttempl/pe.sc: Add .pdata section.
1944
1945 2000-02-23 Richard Henderson <rth@cygnus.com>
1946
1947 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
1948 Add and use memory regions.
1949
1950 2000-02-23 Linas Vepstas (linas@linas.org)
1951
1952 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
1953
1954 * Makefile.am: Add support for Linux/IBM 370.
1955 * configure.tgt: Likewise.
1956
1957 * Makefile.in: Regenerate.
1958
1959 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
1960
1961 * ldlang.c (print_input_section, print_data_statement,
1962 print_reloc_statement, print_padding_statement, insert_pad,
1963 size_input_section, lang_check_section_addresses,
1964 lang_size_sections, lang_do_assignments, lang_set_startof,
1965 lang_one_common): Change `opb' to unsigned.
1966 (lang_do_assignments): Also change `size' to unsigned.
1967
1968 2000-02-16 Richard Henderson <rth@cygnus.com>
1969
1970 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
1971
1972 2000-02-16 Timothy Wall <twall@cygnus.com>
1973
1974 * mri.c (mri_draw_tree): Add default LMA region argument to call
1975 to lang_leave_output_section_statement.
1976 * ldlang.h: Update prototypes with LMA region arguments.
1977 * ldlang.c (lang_size_sections): Encapsulate region bounds
1978 checking in os_check_region call.
1979 (os_check_region): New function.
1980 (lang_output_section_statement_lookup): Initialize lma_region.
1981 (lang_leave_output_section_statement): Add LMA region argument.
1982 (lang_leave_overlay): Ditto.
1983 * ldgram.y: Handle LMA region syntax.
1984 * ld.texinfo (Output Section Description): Describe LMA region usage.
1985 * emultempl/armelf.em (gld$place_orphan): Add default value for
1986 lma region in call to lang_leave_output_section_statement.
1987 * emultempl/elf32.em (gld$place_orphan): Add default value for
1988 lma region in call to lang_leave_output_section_statement.
1989 * emultempl/pe.em (gld$place_orphan): Add default value for
1990 lma region in call to lang_leave_output_section_statement.
1991
1992
1993 2000-02-04 Timothy Wall <twall@redhat.com>
1994
1995 * ldlang.c (lang_check_section_addresses): Use bytes instead of
1996 octets when calculating section end addresses.
1997
1998 2000-02-04 Timothy Wall <twall@redhat.com>
1999
2000 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
2001
2002 2000-02-03 Timothy Wall <twall@redhat.com>
2003
2004 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
2005 octet count.
2006 * ldlang.c (print_input_section, print_data_statement,
2007 print_reloc_statement, print_padding_statement): Print target
2008 address values and section sizes as bytes, not octets.
2009 (insert_pad) Calculate padding size in octets, and adjust "dot"
2010 by bytes.
2011 (size_input_section) Always adjust "dot" by bytes, not octets.
2012 (lang_check_section_addresses, lang_do_assignments) Adjust
2013 "dot" by bytes, not octets. Use the larger of the directive size
2014 or octets_per_byte for the number of octets actually allocated in
2015 the output section.
2016 (lang_set_startof) Make sure STARTOF returns a target address.
2017 (lang_one_common) Record size changes in octets.
2018 (lang_abs_symbol_at_end_of) Section end symbol's value is
2019 recorded in target bytes.
2020 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
2021 to be clear about behavior when an octet is smaller than one byte.
2022
2023 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
2024
2025 * ldcref.c (output_cref): Don't pass message strings to printf
2026 as format arg.
2027 Update copyright.
2028
2029 * ldmisc.c (vfinfo): Same here.
2030 Update copyright.
2031
2032 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
2033
2034 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
2035 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
2036 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
2037 Add missing NULL initialisers, and comments.
2038
2039 * testsuite/ld-srec/sr3.cc (__rethrow): New.
2040
2041 2000-01-21 Nick Clifton <nickc@cygnus.com>
2042
2043 * ldlang.c (lang_size_sections): Fix typo in comment.
2044
2045 2000-01-18 H.J. Lu <hjl@gnu.org>
2046
2047 * ldlang.c (lang_size_sections): Also update the current
2048 address of a region if the SEC_NEVER_LOAD bit is not set.
2049
2050 2000-01-10 Philip Blundell <pb@futuretv.com>
2051
2052 * configure.tgt (arm*-*-conix*): New target.
2053
2054 2000-01-07 Nick Clifton <nickc@cygnus.com>
2055
2056 * ld.texinfo (Options): Remind users to preceed linker command
2057 line switches with -Wl, (or whatever is appropriate) if it is
2058 being invoked by a comnpiler driver program.
2059 Fix description of the behaviour of the -n command line switch.
2060
2061 Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
2062
2063 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
2064 (name_list): New.
2065 * ld.texinfo (EXCLUDE_FILE): Update documentation.
2066 * ldgram.y (wildcard_spec): Support a list of excluded_files.
2067 (exclude_name_list): New.
2068 ldlang.c (walk_wild_section): Support list of excluded files.
2069 (print_wild_statement): Likewise.
2070 (lang_add_wild): Likewise.
2071 * ldlang.h (lang_wild_statement_type): Likewise.
2072 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
2073
2074 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2075
2076 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
2077 (process_def_file): Use.
2078 (pe_dll_compat_implib): New variable.
2079 (make_one): Use.
2080
2081 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
2082 pe_dll_compat_implib.
2083
2084 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
2085 compat-implib options.
2086 (gld_${EMULATION_NAME}_list_options): List new options.
2087 (gld_${EMULATION_NAME}_parse_args): Handle.
2088
2089 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
2090 dll.
2091
2092 * deffilep.y (opt_name): Allow "." in name.
2093
2094 For older changes see ChangeLog-9899
2095 \f
2096 Local Variables:
2097 mode: change-log
2098 left-margin: 8
2099 fill-column: 74
2100 version-control: never
2101 End: