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