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