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