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