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