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