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