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