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