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