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