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