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