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