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