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