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