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