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