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