1 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3 * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
4 (struct elf_backend_data): Add can_refcount.
5 * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set
6 got.refcount and plt.refcount from init_refcount.
7 (_bfd_elf_link_hash_table_init): Set up init_refcount.
8 (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
9 rather than got/plt.offset, and test for <= 0 rather than -1.
10 * elflink.h (size_dynamic_sections): Set init_refcount to -1.
11 * elfxx-target.h (elf_backend_can_refcount): Define.
12 (elfNN_bed): Init can_refcount.
13 * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
14 (_bfd_generic_link_hash_newfunc): Likewise.
15 * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
17 (elf_backend_can_refcount): Define.
18 * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
20 (elf32_hppa_copy_indirect_symbol): Make static to agree with
22 (elf_backend_can_refcount): Define.
23 * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
25 (allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
26 (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
27 (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
28 (elf_backend_can_refcount): Define.
29 (elf_i386_copy_indirect_symbol): Make static to agree with
30 prototype. Formatting fix.
31 * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
33 (elf_backend_can_refcount): Define.
34 * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
36 (elf_backend_can_refcount): Define.
37 * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
39 (elf_backend_can_refcount): Define.
40 * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
42 (elf_backend_can_refcount): Define.
43 * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
45 (elf_backend_can_refcount): Define.
47 * som.c (som_write_symbol_strings): Cast current_offset in
48 bfd_seek call to match param type.
50 2001-09-28 J. Brobecker <brobecker@gnat.com>
52 * som.c (som_write_symbol_strings): Fix incorrect type of
53 current_offset to match the function definition. Fixes a build
54 failure on HPUX-11.00.
56 2001-09-28 Richard Henderson <rth@redhat.com>
58 * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
59 SEC_MERGE, SEC_STRINGS.
61 * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
64 2001-09-28 Alan Modra <amodra@bigpond.net.au>
66 * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
67 reloc code using x86_64_reloc_map.
69 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
70 no longer allocate here. Localise some vars to blocks where they
72 (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
73 setting of vars until needed.
74 (allocate_dynrelocs): Don't create a .plt entry without a reloc
75 when symbol visibilty makes a function local.
76 (elf32_hppa_finish_dynamic_symbol): Move expressions out of
77 swap_reloca_out function calls.
78 (elf32_hppa_relocate_section): Likewies. Comment typo fix.
79 (elf32_hppa_finish_dynamic_sections): Migrate common code out of
82 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
83 no longer allocate here. Localise some vars to blocks where they
84 are used. Remove separate switch stmt for creating .got sec.
85 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
86 redundant casts and aborts. Delay setting of vars until needed.
87 (allocate_dynrelocs): Remove redundant casts and aborts.
88 (elf_i386_size_dynamic_sections): Move comment.
89 (elf_i386_finish_dynamic_symbol): Move expressions out of function
91 (elf_i386_relocate_section): Likewise. Comment typo fix.
92 (elf_i386_finish_dynamic_sections): Migrate common code out of
94 (elf_backend_* defines): Sort.
96 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
97 without a reloc when symbol visibilty makes a function local.
99 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
101 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
102 conflicting float flags.
104 2001-09-26 Alan Modra <amodra@bigpond.net.au>
106 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
107 (elf_backend_copy_indirect_symbol): Define.
108 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
109 (struct elf_i386_link_hash_table): Likewise.
110 (link_hash_newfunc): Get rid of unnecessary casts.
111 (elf_i386_link_hash_table_create): Likewise.
112 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
113 Don't test input section SEC_READONLY here to try to avoid copy
114 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
115 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
116 here to properly test whether we need copy relocs. Do so for weak
119 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
120 (elf_backend_copy_indirect_symbol): Define.
121 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
122 (stub_hash_newfunc): Get rid of unnecessary casts.
123 (hppa_link_hash_newfunc): Likewise.
124 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
125 Don't test input section SEC_READONLY here to try to avoid copy
126 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
127 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
128 here to properly test whether we need copy relocs. Do so for weak
131 2001-09-26 Alan Modra <amodra@bigpond.net.au>
133 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
134 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
135 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
137 2001-09-25 Jakub Jelinek <jakub@redhat.com>
139 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
142 2001-09-25 H.J. Lu <hjl@gnu.org>
144 * bfd-in2.h: Regenerated.
146 2001-09-25 Alan Modra <amodra@bigpond.net.au>
148 * elf32-i386.c: Add comment re linker function names and ordering.
149 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
150 (elf_i386_grok_prstatus): Move before linker functions.
151 (elf_i386_grok_psinfo): Likewise.
152 (elf_i386_fake_sections): Move so that functions are ordered.
153 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
155 2001-09-25 Alan Modra <amodra@bigpond.net.au>
157 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
160 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
161 code handling this option.
162 (LONG_BRANCH_VIA_PLT): Likewise.
163 (RELATIVE_DYNRELOCS): Define as zero.
164 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
165 "pc_count" fields. Remove "section" field.
166 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
167 (elf32_hppa_check_relocs): Don't allocate space for dynamic
168 relocs here. Instead, record all needed dynamic relocs via
169 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
171 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
172 (allocate_plt_and_got_and_discard_relocs): Rename to
173 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
174 (readonly_dynrelocs): New function.
175 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
176 Call readonly_dynrelocs to determine need for DT_TEXTREL.
177 Rename "i" to "ibfd". Allocate space for local dyn relocs.
178 (elf32_hppa_relocate_section): Make use of cached sreloc.
179 (elf32_hppa_reloc_type_class): New function.
180 (elf_backend_reloc_type_class): Define.
182 2001-09-25 Alan Modra <amodra@bigpond.net.au>
184 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
186 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
187 "pc_count" fields. Remove "section" field.
188 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
189 allocate space for dynamic relocs here. Instead, record all
190 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
191 pointer to "sreloc" section in elf_section_data.
192 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
193 (allocate_plt_and_got_and_discard_relocs): Rename to
194 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
195 (readonly_dynrelocs): New function.
196 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
197 Rename "i" to "ibfd". Allocate space for local dyn relocs.
198 (elf_i386_relocate_section): Make use of cached sreloc.
200 2001-09-24 Alan Modra <amodra@bigpond.net.au>
202 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
203 reloc rather than just the type.
204 (_bfd_elf_reloc_type_class): Likewise.
205 * elf.c (_bfd_elf_reloc_type_class): Likewise.
206 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
207 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
208 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
209 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
210 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
211 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
212 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
213 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
214 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
215 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
216 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
217 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
218 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
219 * elflink.h: Formatting fixes.
220 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
221 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
222 o->contents to PTR. Update call to elf_backend_reloc_type_class.
224 2001-09-22 John Reiser <jreiser@BitWagon.com>
226 * elfcode.h (elf_object_p): Allow for no section header at all in
227 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
229 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
231 * elfxx-ia64.c: Fix compile time warning messages.
232 * coff-mcore.c: Fix compile time warning messages.
233 * coff-ppc.c: Fix compile time warning messages.
234 * coffcode.h: Fix compile time warning messages.
235 * elf32-mips.c: Fix compile time warning messages.
236 * elf64-alpha.c: Fix compile time warning messages.
237 * libbfd.c: Fix compile time warning messages.
238 * bfd-in2.h: Regenerate.
240 2001-09-21 Alan Modra <amodra@bigpond.net.au>
242 * Makefile.am: Run "make dep-am".
243 * Makefile.in: Regenerate.
245 * aoutx.h: Formatting fixes.
246 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
248 * linker.c: Replace bfd_get_filename with bfd_archive_filename
251 2001-09-21 Alan Modra <amodra@bigpond.net.au>
253 * bfd.c (bfd_archive_filename): New function.
254 * bfd-in2.h: Regenerate.
255 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
256 in error messages where the bfd is an input bfd.
257 * aout-cris.c: Likewise.
258 * coff-arm.c: Likewise.
259 * coff-mcore.c: Likewise.
260 * coff-ppc.c: Likewise.
261 * coff-rs6000.c: Likewise.
262 * coff-sh.c: Likewise.
263 * coff-tic54x.c: Likewise.
264 * coff-tic80.c: Likewise.
265 * coff64-rs6000.c: Likewise.
266 * coffcode.h: Likewise.
267 * coffgen.c: Likewise.
268 * cofflink.c: Likewise.
269 * ecofflink.c: Likewise.
270 * elf-hppa.h: Likewise.
272 * elf32-arm.h: Likewise.
273 * elf32-cris.c: Likewise.
274 * elf32-gen.c: Likewise.
275 * elf32-hppa.c: Likewise.
276 * elf32-i370.c: Likewise.
277 * elf32-i386.c: Likewise.
278 * elf32-m32r.c: Likewise.
279 * elf32-mcore.c: Likewise.
280 * elf32-mips.c: Likewise.
281 * elf32-ppc.c: Likewise.
282 * elf32-s390.c: Likewise.
283 * elf32-sh.c: Likewise.
284 * elf32-sparc.c: Likewise.
285 * elf32-v850.c: Likewise.
286 * elf64-alpha.c: Likewise.
287 * elf64-gen.c: Likewise.
288 * elf64-ppc.c: Likewise.
289 * elf64-s390.c: Likewise.
290 * elf64-sparc.c: Likewise.
291 * elf64-x86-64.c: Likewise.
292 * elflink.h: Likewise.
293 * elfxx-ia64.c: Likewise.
296 * libbfd.c: Likewise.
298 * pe-mips.c: Likewise.
299 * peicode.h: Likewise.
301 * xcofflink.c: Likewise.
303 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
305 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
308 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
311 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
312 Consolidate error messages, and split long messages to two lines.
314 2001-09-20 John Reiser <jreiser@BitWagon.com>
316 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
317 and info->allow_shlib_undefined.
318 * elf32-cris.c: Likewise.
319 * elf32-hppa.c: Likewise.
320 * elf32-m68k.c: Likewise.
321 * elf32-mips.c: Likewise.
322 * elf32-ppc.c: Likewise.
323 * elf32-s390.c: Likewise.
324 * elf32-sh.c: Likewise.
325 * elf32-sparc.c: Likewise.
326 * elf64-alpha.c: Likewise.
327 * elf64-hppa.c: Likewise.
328 * elf64-ppc.c: Likewise.
329 * elf64-s390.c: Likewise.
330 * elf64-sparc.c: Likewise.
331 * elf64-x86-64.c: Likewise.
332 * elfxx-ia64.c: Likewise.
334 2001-09-18 Bruno Haible <haible@clisp.cons.org>
336 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
337 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
338 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
339 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
340 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
341 (bfd_default_scan): Use ISDIGIT instead of isdigit.
342 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
343 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
344 isxdigit/isdigit/islower.
345 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
346 (mangle_name): Use ISALNUM instead of isalnum.
347 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
348 (scan): Use ISDIGIT instead of isdigit.
349 * hosts/alphavms.h: Don't include <ctype.h>.
350 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
351 (ieee_object_p): Use TOUPPER instead of toupper.
352 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
353 (ihex_bad_byte): Use ISPRINT instead of isprint.
354 * merge.c: Don't include <ctype.h>.
355 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
356 (oasys_write_sections): Use ISDIGIT instead of isdigit.
357 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
358 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
359 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
360 (mangle_name): Use ISALNUM instead of isalnum.
361 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
362 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
363 isupper/islower/isdigit.
364 (som_decode_symclass): Use TOUPPER instead of toupper.
365 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
366 (srec_bad_byte): Use ISPRINT instead of isprint.
367 (srec_scan): Use ISSPACE instead of isspace.
368 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
369 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
370 * syms.c: Include "safe-ctype.h"
371 (islower, toupper): Remove macro definitions.
372 (bfd_decode_symclass): Use TOUPPER instead of toupper.
373 * vms-gsd.c: Don't include <ctype.h>.
374 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
375 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
377 * vms-tir.c: Don't include <ctype.h>.
379 2001-09-18 Alan Modra <amodra@bigpond.net.au>
381 * libbfd.c (bfd_bread): New function replacing bfd_read without
382 redundant params. Allow reads up to (size_t) -2 in length.
383 (bfd_bwrite): Similarly for bfd_write.
384 (real_read): Return a size_t.
385 (bfd_read): Call bfd_bread.
386 (bfd_write): Call bfd_bwrite.
387 (warn_deprecated): New function to annoy everybody.
388 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
389 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
390 (bfd_read, bfd_write): Define as macro.
391 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
392 likewise for bfd_write. Ensure function args are correct size by
393 using casts or local vars. In some cases, remove unnecessary
394 casts. Formatting fixes, in some cases removing a large expression
395 from function args by using a local var. Replace CONST with const.
396 Modify variable types to avoid warings. Use casts to avoid
397 warnings when using negative numbers in unsigned expressions.
398 * aout-adobe.c: Likewise.
399 * aout-arm.c: Likewise.
400 * aout-cris.c: Likewise.
401 * aout-encap.c: Likewise.
402 * aout-ns32k.c: Likewise.
403 * aout-target.h: Likewise.
404 * aout-tic30.c: Likewise.
405 * aoutf1.h: Likewise.
407 * archive.c: Likewise.
408 * archures.c: Likewise.
409 * bfd-in.h: Likewise.
411 * binary.c: Likewise.
414 * cisco-core.c: Likewise.
415 * coff-a29k.c: Likewise.
416 * coff-alpha.c: Likewise.
417 * coff-arm.c: Likewise.
418 * coff-h8300.c: Likewise.
419 * coff-h8500.c: Likewise.
420 * coff-i386.c: Likewise.
421 * coff-i860.c: Likewise.
422 * coff-i960.c: Likewise.
423 * coff-ia64.c: Likewise.
424 * coff-m68k.c: Likewise.
425 * coff-m88k.c: Likewise.
426 * coff-mcore.c: Likewise.
427 * coff-mips.c: Likewise.
428 * coff-ppc.c: Likewise.
429 * coff-rs6000.c: Likewise.
430 * coff-sh.c: Likewise.
431 * coff-sparc.c: Likewise.
432 * coff-stgo32.c: Likewise.
433 * coff-tic30.c: Likewise.
434 * coff-tic54x.c: Likewise.
435 * coff-tic80.c: Likewise.
436 * coff-w65.c: Likewise.
437 * coff-z8k.c: Likewise.
438 * coff64-rs6000.c: Likewise.
439 * coffcode.h: Likewise.
440 * coffgen.c: Likewise.
441 * cofflink.c: Likewise.
442 * coffswap.h: Likewise.
443 * corefile.c: Likewise.
444 * cpu-arc.c: Likewise.
445 * cpu-h8300.c: Likewise.
446 * cpu-h8500.c: Likewise.
447 * cpu-i960.c: Likewise.
448 * cpu-ia64-opc.c: Likewise.
449 * cpu-ns32k.c: Likewise.
450 * cpu-pdp11.c: Likewise.
451 * cpu-pj.c: Likewise.
452 * cpu-sh.c: Likewise.
453 * cpu-w65.c: Likewise.
454 * cpu-z8k.c: Likewise.
455 * dwarf1.c: Likewise.
456 * dwarf2.c: Likewise.
458 * ecofflink.c: Likewise.
459 * ecoffswap.h: Likewise.
460 * elf-bfd.h: Likewise.
461 * elf-hppa.h: Likewise.
462 * elf-m10200.c: Likewise.
463 * elf-m10300.c: Likewise.
465 * elf32-arc.c: Likewise.
466 * elf32-arm.h: Likewise.
467 * elf32-avr.c: Likewise.
468 * elf32-cris.c: Likewise.
469 * elf32-fr30.c: Likewise.
470 * elf32-gen.c: Likewise.
471 * elf32-h8300.c: Likewise.
472 * elf32-hppa.c: Likewise.
473 * elf32-i370.c: Likewise.
474 * elf32-i386.c: Likewise.
475 * elf32-i860.c: Likewise.
476 * elf32-m32r.c: Likewise.
477 * elf32-m68k.c: Likewise.
478 * elf32-mcore.c: Likewise.
479 * elf32-mips.c: Likewise.
480 * elf32-openrisc.c: Likewise.
481 * elf32-pj.c: Likewise.
482 * elf32-ppc.c: Likewise.
483 * elf32-s390.c: Likewise.
484 * elf32-sh-lin.c: Likewise.
485 * elf32-sh.c: Likewise.
486 * elf32-sparc.c: Likewise.
487 * elf32-v850.c: Likewise.
488 * elf64-alpha.c: Likewise.
489 * elf64-hppa.c: Likewise.
490 * elf64-mips.c: Likewise.
491 * elf64-ppc.c: Likewise.
492 * elf64-s390.c: Likewise.
493 * elf64-sparc.c: Likewise.
494 * elf64-x86-64.c: Likewise.
495 * elfarm-nabi.c: Likewise.
496 * elfcode.h: Likewise.
497 * elfcore.h: Likewise.
498 * elflink.c: Likewise.
499 * elflink.h: Likewise.
500 * elfxx-ia64.c: Likewise.
501 * elfxx-target.h: Likewise.
502 * format.c: Likewise.
504 * hp300hpux.c: Likewise.
505 * hppabsd-core.c: Likewise.
506 * hpux-core.c: Likewise.
507 * i386aout.c: Likewise.
508 * i386dynix.c: Likewise.
509 * i386linux.c: Likewise.
510 * i386lynx.c: Likewise.
511 * i386mach3.c: Likewise.
512 * i386msdos.c: Likewise.
513 * i386os9k.c: Likewise.
516 * irix-core.c: Likewise.
517 * libaout.h: Likewise.
518 * libbfd-in.h: Likewise.
519 * libbfd.c: Likewise.
520 * libcoff-in.h: Likewise.
521 * libecoff.h: Likewise.
522 * libieee.h: Likewise.
523 * libnlm.h: Likewise.
524 * libpei.h: Likewise.
525 * libxcoff.h: Likewise.
526 * linker.c: Likewise.
527 * lynx-core.c: Likewise.
528 * m68klinux.c: Likewise.
530 * mipsbsd.c: Likewise.
531 * netbsd-core.c: Likewise.
533 * nlm32-alpha.c: Likewise.
534 * nlm32-i386.c: Likewise.
535 * nlm32-ppc.c: Likewise.
536 * nlm32-sparc.c: Likewise.
537 * nlmcode.h: Likewise.
538 * nlmswap.h: Likewise.
541 * opncls.c: Likewise.
542 * osf-core.c: Likewise.
543 * pc532-mach.c: Likewise.
545 * pe-mips.c: Likewise.
546 * peXXigen.c: Likewise.
547 * peicode.h: Likewise.
548 * ppcboot.c: Likewise.
549 * ptrace-core.c: Likewise.
551 * reloc16.c: Likewise.
552 * riscix.c: Likewise.
553 * rs6000-core.c: Likewise.
554 * sco5-core.c: Likewise.
555 * section.c: Likewise.
557 * sparclinux.c: Likewise.
558 * sparclynx.c: Likewise.
563 * targets.c: Likewise.
564 * tekhex.c: Likewise.
565 * trad-core.c: Likewise.
566 * versados.c: Likewise.
567 * vms-gsd.c: Likewise.
568 * vms-hdr.c: Likewise.
569 * vms-misc.c: Likewise.
570 * vms-tir.c: Likewise.
573 * xcofflink.c: Likewise.
574 * bfd-in2.h: Regenerate.
575 * libbfd.h: Regenerate.
576 * libcoff.h: Regenerate.
578 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
579 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
581 (bfd_tell): Return a ufile_ptr.
582 * libbfd.c (bfd_tell): Likewise.
583 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
585 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
586 * aoutf1.h: Likewise.
588 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
589 larger than unsigned long can represent.
591 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
592 size overflows size_t.
593 (bfd_realloc): Likewise.
594 (bfd_zmalloc): Likewise.
595 * opncls.c (bfd_alloc): Likewise.
596 (bfd_zalloc): Likewise.
597 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
598 (bfd_alloc, bfd_zalloc): Update.
600 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
602 (bfd_get_signed_8): Likewise.
603 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
604 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
605 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
606 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
607 * libaout.h: Likewise define and use here.
608 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
609 * aout-arm.c: Likewise.
610 * aout-encap.c: Likewise.
611 * aout-ns32k.c: Likewise.
612 * aout-tic30.c: Likewise.
613 * aoutf1.h: Likewise.
616 * coff-alpha.c: Likewise.
617 * coff-h8300.c: Likewise.
618 * coff-h8500.c: Likewise.
619 * coff-i960.c: Likewise.
620 * coff-ia64.c: Likewise.
621 * coff-m88k.c: Likewise.
622 * coff-mips.c: Likewise.
623 * coff-ppc.c: Likewise.
624 * coff-rs6000.c: Likewise.
625 * coff-sh.c: Likewise.
626 * coff-sparc.c: Likewise.
627 * coff-stgo32.c: Likewise.
628 * coff-tic30.c: Likewise.
629 * coff-tic80.c: Likewise.
630 * coff-w65.c: Likewise.
631 * coff-z8k.c: Likewise.
632 * coff64-rs6000.c: Likewise.
633 * coffgen.c: Likewise.
634 * cofflink.c: Likewise.
635 * coffswap.h: Likewise.
637 * ecoffswap.h: Likewise.
639 * elf32-mips.c: Likewise.
640 * elf64-mips.c: Likewise.
641 * hp300hpux.c: Likewise.
642 * i386dynix.c: Likewise.
643 * i386lynx.c: Likewise.
644 * i386msdos.c: Likewise.
645 * i386os9k.c: Likewise.
646 * libpei.h: Likewise.
647 * nlm32-alpha.c: Likewise.
648 * nlm32-i386.c: Likewise.
649 * nlm32-ppc.c: Likewise.
650 * nlmcode.h: Likewise.
651 * nlmswap.h: Likewise.
654 * pe-mips.c: Likewise.
655 * peXXigen.c: Likewise.
656 * peicode.h: Likewise.
657 * riscix.c: Likewise.
659 * xcofflink.c: Likewise.
660 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
661 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
662 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
663 equivalent H_PUT_* macro instead.
664 (GETWORD, GETHALF, GETBYTE): Similarly.
665 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
666 (GETWORD, GETHALF, GETBYTE): Likewise.
667 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
669 * bfd-in.h (struct orl): Change "pos" to a union.
670 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
671 (bsd_write_armap): Here too.
672 (coff_write_armap): And here.
673 * coff-rs6000.c (xcoff_write_armap_old): And here.
674 (xcoff_write_one_armap_big): And here.
675 (xcoff_write_armap_big): And here.
676 * ecoff.c (_bfd_ecoff_write_armap): And here.
677 * elf64-mips.c (mips_elf64_write_armap): And here.
679 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
680 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
681 * elf32-h8300.c (elf32_h8_mach): Likewise.
682 * elf32-mips.c (elf_mips_mach): Likewise.
683 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
685 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
687 (aix386_core_vec): Typo fix.
689 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
690 etc. to avoid redefined macro warning.
691 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
692 (MY(fix_pcrel_26)): Likewise.
693 * aout-ns32k.c (MY(put_reloc)): Likewise.
694 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
695 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
696 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
698 * aout-encap.c: Include "file", not <file> for binutils headers.
699 (encap_object_p): Half baked attempt to fix compile errors in
700 code dealing with "magic".
702 * aout-ns32k.c: Include "file", not <file> for binutils headers.
703 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
704 bfd_vma's rather than longs.
705 * cpu-ns32k.c (ns32k_sign_extend): Delete.
706 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
707 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
709 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
710 Use unsigned comparisons.
711 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
712 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
713 (_bfd_do_ns32k_reloc_contents): Likewise.
714 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
715 (_bfd_ns32k_get_immediate): Likewise.
716 (_bfd_ns32k_put_displacement): Likewise.
717 (_bfd_ns32k_put_immediate): Likewise.
718 (bfd_reloc_status_type): Likewise.
720 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
722 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
723 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
724 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
726 (record_toc): Use a bfd_signed_vma for our_toc_offset.
727 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
728 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
730 (_bfd_elfcore_strndup): Likewise for "dup".
731 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
732 "name" to avoid shadowing.
733 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
735 * elf32-i386.c (elf_i386_relocate_section): Likewise.
736 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
738 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
740 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
742 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
744 (elf_link_input_bfd): Likewise.
745 (elf_bfd_final_link): Remove duplicate innermost "off" var.
746 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
747 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
749 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
750 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
751 (sunos_write_dynamic_symbol): Remove unused vars.
752 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
753 innermost "directory_name" and "file_name" vars.
754 * tekhex.c (first_phase): Rename local var "type" to "stype".
755 (tekhex_write_object_contents): Rename innermost "s" to "sym".
756 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
757 doing comparison at caller.
758 (vms_esecflag_by_name): Likewise.
759 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
760 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
761 (xcoff_write_global_symbol): Rename "p" param to "inf".
763 * cisco-core.c: Add missing prototypes.
764 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
765 (cisco_core_file_failing_signal): Likewise.
766 (cisco_core_file_matches_executable_p): Likewise.
767 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
768 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
769 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
770 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
772 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
773 thumb_glue_size and arm_glue_size.
774 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
776 * coff64-rs6000.c: Group prototypes together.
778 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
779 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
781 * cpu-arc.c: Add missing prototypes.
782 * cpu-h8500.c: Likewise.
783 * cpu-i960.c: Likewise.
784 * cpu-pj.c: Likewise.
785 * cpu-sh.c: Likewise.
786 * cpu-w65.c: Likewise.
787 * cpu-z8k.c: Likewise.
788 * elf32-fr30.c: Likewise.
789 * elf32-h8300.c: Likewise.
790 * elf32-i370.c: Likewise.
791 * hpux-core.c: Likewise.
792 * versados.c: Likewise.
794 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
795 * cpu-h8500.c: Likewise.
796 * cpu-i960.c: Likewise.
797 * cpu-z8k.c: Likewise.
799 * cpu-ia64-opc.c: Correct comment.
801 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
803 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
805 (bfd_elf32_write_out_phdrs): Likewise.
806 (bfd_elf64_write_out_phdrs): Likewise.
807 (elf_linker_section_pointers): Change addend to bfd_vma.
808 (_bfd_elf_find_pointer_linker_section): Likewise.
809 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
810 filepos to unsigned file_ptr.
811 (_bfd_elfcore_strndup): Change max param to size_t.
812 * elf.c (_bfd_elfcore_make_pseudosection): As above.
813 (_bfd_elfcore_strndup): Likewise.
814 (_bfd_elf_find_pointer_linker_section): Likewise.
816 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
817 insn and sym_value to ints.
819 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
821 (elfcore_read_notes): Likewise.
823 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
824 param from unsigned char to int.
825 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
826 for info_to_howto call.
827 (add_dynamic_entry): Define macro.
828 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
830 * elf32-cris.c (add_dynamic_entry): Define macro.
831 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
833 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
834 (elf32_h8_object_p): Likewise.
835 (elf32_h8_merge_private_bfd_data): Likewise.
836 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
838 * elf32-hppa.c (add_dynamic_entry): Define macro.
839 (elf32_hppa_size_dynamic_sections): Use it.
840 * elf32-i370.c (add_dynamic_entry): Define macro.
841 (i370_elf_size_dynamic_sections): Use it.
842 (i370_noop): Make static.
843 * elf32-i386.c (add_dynamic_entry): Define macro.
844 (elf_i386_size_dynamic_sections): Use it.
845 * elf32-m68k.c (add_dynamic_entry): Define macro.
846 (elf_m68k_size_dynamic_sections): Use it.
847 * elf32-ppc.c (add_dynamic_entry): Define macro.
848 (ppc_elf_size_dynamic_sections): Use it.
849 * elf32-s390.c (add_dynamic_entry): Define macro.
850 (elf_s390_size_dynamic_sections): Use it.
851 * elf64-alpha.c (add_dynamic_entry): Define macro.
852 (elf64_alpha_size_dynamic_sections): Use it.
853 * elf64-hppa.c (add_dynamic_entry): Define macro.
854 (elf64_hppa_size_dynamic_sections): Use it.
855 * elf64-ppc.c (add_dynamic_entry): Define macro.
856 (ppc64_elf_size_dynamic_sections): Use it.
857 * elf64-s390.c (add_dynamic_entry): Define macro.
858 (elf_s390_size_dynamic_sections): Use it.
859 * elf64-sparc.c (add_dynamic_entry): Define macro.
860 (sparc64_elf_size_dynamic_sections): Use it.
861 * elf64-x86-64.c (add_dynamic_entry): Define macro.
862 (elf64_x86_64_size_dynamic_sections): Use it.
863 * elfxx-ia64.c (add_dynamic_entry): Define macro.
864 (elfNN_ia64_size_dynamic_sections): Use it.
866 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
867 (v850_elf_perform_relocation): Make "r_type" param unsigned.
869 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
870 false if the first malloc fails rather than going via error_return.
872 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
874 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
876 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
878 * elfxx-ia64.c (global_sym_index): Return a long.
880 * ieee.c (get_symbol): Use int rather than char param.
881 (ieee_slurp_sections): Move "section" var to inner blocks.
882 (copy_expression): Don't init "value" to zero or worry about
883 clearing to zero after using.
884 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
887 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
890 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
891 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
893 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
895 * pc532-mach.c (MYNSX): Delete.
896 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
897 (write_object_contents): Correct prototype.
899 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
902 * section.c (bfd_set_section_contents): Remove redundant
903 "offset < 0" test. Check that "count" doesn't overflow size_t.
904 (bfd_get_section_contents): Likewise.
906 * som.c (som_fixup_formats): Add missing braces.
907 (som_reloc_addend): Pass a bfd_vma for "addend".
909 * srec.c (srec_write_record): Pass "type" as an unsigned int.
910 (srec_write_symbols): Remove an unnecessary var.
912 * targets.c (_bfd_target_vector): Sort entries. Sort externs
914 * configure.in: Sort to match. Bump version number.
915 * configure: Regenerate.
917 * tekhex.c (move_section_contents): Assert offset == 0.
919 * versados.c (new_symbol_string): Constify arg.
920 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
921 (versados_get_symbol_info): Make static.
922 (versados_print_symbol): Likewise.
923 (versados_get_reloc_upper_bound): Likewise.
924 (versados_canonicalize_reloc): Likewise.
926 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
928 * elflink.h (elf_link_input_bfd): Fix typo in error message.
930 2001-09-17 H.J. Lu <hjl@gnu.org>
932 * dwarf1.c (parse_die): Take a new arg for the end of the
933 section. Return false if die is beyond the section.
934 (parse_functions_in_unit): Pass the end of the section to
936 (_bfd_dwarf1_find_nearest_line): Likewise.
938 2001-09-14 Michael Rauch <mrauch@netbsd.org>
940 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
941 just like R_SPARC_32.
943 2001-09-14 Kevin Lo <kevlo@openbsd.org>
945 * configure.bfd: Add arm-openbsd target.
947 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
949 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
950 Add support for mips64.
952 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
954 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
956 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
958 * elf.c (prep_headers): Get the machine code from the elf
960 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
961 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
962 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
963 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
964 * elf-arc.c (arc_elf_final_write_processing): Don't override
965 e_machine, it's now properly set in prep_headers.
966 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
968 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
969 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
970 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
971 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
972 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
973 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
974 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
975 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
976 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
977 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
978 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
979 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
981 2001-09-11 Richard Henderson <rth@redhat.com>
983 * elf64-alpha.c (elf64_alpha_section_flags): New.
984 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
986 2001-09-11 Richard Henderson <rth@redhat.com>
988 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
989 apply HINT relocations against dynamic symbols.
991 2001-09-11 H.J. Lu <hjl@gnu.org>
993 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
995 2001-09-09 Richard Henderson <rth@redhat.com>
997 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
999 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
1000 following a call to a near function.
1002 2001-09-08 Richard Henderson <rth@redhat.com>
1004 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
1005 relocation errors. Fail gp-relative relocations against
1008 2001-09-08 Alan Modra <amodra@bigpond.net.au>
1010 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
1011 as well as DEF_DYNAMIC in test for avoided copy relocs.
1012 (allocate_plt_and_got_and_discard_relocs): Likewise.
1013 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
1014 (allocate_plt_and_got_and_discard_relocs): Likewise.
1016 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1018 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
1021 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1023 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
1025 (mips_elf64_howto_table_rel): Likewise.
1027 2001-09-05 Tom Rix <trix@redhat.com>
1029 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
1030 and syscall symbols.
1031 (write_global_symbol) : Same.
1032 (bfd_xcoff_export_symbol): Remove unused syscall param.
1033 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
1034 bfd_xcoff_import_symbol.
1036 * bfd-in2.h : Regenerate.
1038 2001-09-04 Richard Henderson <rth@redhat.com>
1040 * elf64-alpha.c (SKIP_HOWTO): New.
1041 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
1042 Fix sizes of 16-bit mem format relocs.
1043 (elf64_alpha_reloc_map): Update to match.
1044 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
1045 (elf64_alpha_relax_without_lituse): Likewise.
1046 (elf64_alpha_check_relocs): Handle GPREL16.
1047 (elf64_alpha_relocate_section): Likewise.
1048 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
1049 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
1050 * bfd-in2.h, libbfd.h: Rebuild.
1052 2001-09-04 Jeff Law <law@redhat.com>
1054 * elf32-h8300.c (elf32_h8_relax_section): New function.
1055 (elf32_h8_relax_delete_bytes): Likewise.
1056 (elf32_h8_symbol_address_p): Likewise.
1057 (elf32_h8_get_relocated_section_contents): Likewise.
1058 (bfd_elf32_bfd_relax_section): Define.
1059 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
1061 * elf32-h8300.c (special): New function.
1062 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
1064 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
1065 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
1066 Fix minor problems with 8bit and 16bit PC relative relocations.
1068 2001-09-01 Andreas Jaeger <aj@suse.de>
1070 * vms-tir.c: Add missing prototypes.
1071 * vms-hdr.c: Likewise.
1072 * vms-gsd.c: Likewise.
1073 * vms-misc.c: Likewise.
1075 2001-08-31 H.J. Lu <hjl@gnu.org>
1077 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
1078 with bad relocation.
1080 2001-08-31 Eric Christopher <echristo@redhat.com>
1081 Jason Eckhardt <jle@redhat.com>
1083 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
1084 mips32_4k and mips64.
1085 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
1086 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
1087 * bfd/cpu-mips.c: Ditto.
1088 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
1089 * bfd/bfd-in2.h: Regenerate.
1091 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1093 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
1094 value into R_ALPHA_RELATIVE's addend.
1095 (elf64_alpha_finish_dynamic_symbol): Likewise.
1097 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
1099 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
1100 recomputed addend during relocatable link if not USE_REL.
1102 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
1105 2001-08-30 H.J. Lu <hjl@gnu.org>
1107 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
1109 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
1110 relocations for weak definitions.
1112 2001-08-30 H.J. Lu <hjl@gnu.org>
1114 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
1115 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
1116 * Makefile.in: Rebuild.
1118 2001-08-30 H.J. Lu <hjl@gnu.org>
1120 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
1121 dynamic relocation for undefined weak symbols when creating
1122 executables. Check h->root.root.type, instead of h->root.type.
1124 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1126 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1127 default from coff to elf.
1129 2001-08-29 Jeff Law <law@redhat.com>
1131 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
1133 (h8_reloc_map): Similarly.
1134 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
1135 Add support for PC relative relocations.
1137 * elf32-h8300.c: Put all prototypes together.
1138 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
1139 (elf32_h8_final_link_relocate): New function for linker.
1140 (elf32_h8_relocate_section): Similarly.
1141 (elf_backend_relocate_section): Define.
1143 * cpu-h8300.c (h8300_scan, compatible): Prototype.
1144 (h8300_scan): Handle architecture:machine encodings typically
1145 found in linker scripts.
1146 * elf.c (prep_headers): Do not try to do H8 machine recognition
1148 * elf32-h8300.c: Add some missing prototypes.
1149 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
1150 (elf32_h8_object_p): Similarly.
1152 2001-08-29 Tom Rix <trix@redhat.com>
1154 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
1155 does not follow a XTY_SD.
1157 2001-08-29 Alan Modra <amodra@bigpond.net.au>
1159 * targmatch.sed: Delete case statements.
1160 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
1163 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
1165 * Makefile.am (elf32-h8300.lo): New target.
1166 * config.bfd (h8300*-*-elf): New case.
1167 * configure.in (bfd_elf32_h8300_vec): New case.
1168 * elf.c (prep_headers): Add case for bfd_arch_h8300.
1169 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
1170 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
1171 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
1172 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
1173 * elf32-h8300.c: New file.
1174 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
1176 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1178 * sparclynx.c: Add missing prototypes.
1179 * coff-mcore.c: Add missing prototypes.
1180 * elf32-pj.c: Add missing prototypes.
1181 * nlm32-sparc.c: Add missing prototypes.
1182 * oasys.c: Add missing prototypes.
1183 * pdp11.c: Add missing prototypes.
1184 * pe-mips.c: Add missing prototypes.
1185 * riscix.c: Add missing prototypes.
1187 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1189 * elf32-i386.c: Add missing prototypes.
1190 * elf32-ppc.c: Likewise.
1191 * elf32-sh-lin.c: Likewise.
1192 * elfarm-nabi.c: Likewise.
1194 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1196 * elf32-i386.c (elf_i386_grok_prstatus): New function.
1197 (elf_i386_grok_psinfo): New function.
1198 (elf_backend_grok_prstatus): Define.
1199 (elf_backend_grok_psinfo): Likewise.
1200 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
1201 (ppc_elf_grok_psinfo): New function.
1202 (elf_backend_grok_prstatus): Define.
1203 (elf_backend_grok_psinfo): Likewise.
1204 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
1205 (elf32_shlin_grok_psinfo): New function.
1206 (elf_backend_grok_prstatus): Define.
1207 (elf_backend_grok_psinfo): Likewise.
1208 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
1209 (elf32_arm_nabi_grok_psinfo): New function.
1210 (elf_backend_grok_prstatus): Define.
1211 (elf_backend_grok_psinfo): Likewise.
1213 2001-08-27 H.J. Lu <hjl@gnu.org>
1215 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
1217 (mips_elf_calculate_relocation): Create dynamic relocation for
1218 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
1221 2001-08-27 H.J. Lu <hjl@gnu.org>
1223 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
1224 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
1225 (_bfd_elf32_mips_grok_prstatus): Likewise.
1226 (_bfd_elf32_mips_grok_psinfo): Likewise.
1227 (_bfd_mips_elf_hide_symbol): Make it static and cast to
1228 `struct mips_elf_link_hash_entry *'.
1229 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
1231 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1233 * mipsbsd.c: Add missing prototypes.
1234 * hp300hpux.c: Add missing prototypes.
1235 * i386aout.c: Add missing prototypes.
1236 * i386lynx.c: Add missing prototypes.
1237 * i386mach3.c: Add missing prototypes.
1238 * i386msdos.c: Add missing prototypes.
1239 * i386os9k.c: Add missing prototypes.
1241 2001-08-27 Linus Nordberg <linus@swox.se>
1242 Torbjorn Granlund <tege@swox.com>
1243 Staffan Ulfberg <staffanu@swox.se>
1244 Alan Modra <amodra@bigpond.net.au>
1246 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
1247 targ64_selvecs for 32 bit powerpc targets.
1248 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
1249 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
1251 * Makefile.in: Regenerate.
1252 * configure.in: Add elf64_powerpc vecs.
1253 * configure: Regenerate.
1254 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
1255 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
1256 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
1257 * elf64-ppc.c: New file.
1258 * reloc.c: Add powerpc64 relocs.
1259 * libbfd.h: Regenerate.
1260 * bfd-in2.h: Regenerate.
1262 2001-08-27 Andreas Schwab <schwab@suse.de>
1264 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
1265 reloc is against read-only section.
1266 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
1267 looking up section names for DT_TEXTREL.
1268 (elf32_m68k_reloc_type_class): New function.
1269 (elf_backend_reloc_type_class): Define.
1271 2001-08-27 Andreas Jaeger <aj@suse.de>
1273 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1274 reloc is against read-only section.
1275 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1276 looking up section names for DT_TEXTREL.
1277 (elf_s390_reloc_type_class): New.
1278 (elf_backend_reloc_type_class): Define.
1280 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1281 reloc is against read-only section.
1282 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1283 looking up section names for DT_TEXTREL.
1284 (elf_s390_reloc_type_class): New.
1285 (elf_backend_reloc_type_class): Define.
1287 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
1288 is against read-only section.
1289 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1290 looking up section names for DT_TEXTREL.
1291 (ppc_elf_reloc_type_class): New.
1292 (elf_backend_reloc_type_class): Define.
1294 2001-08-26 Andreas Jaeger <aj@suse.de>
1296 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
1297 reloc is against read-only section.
1298 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
1299 looking up section names for DT_TEXTREL.
1300 (elf_cris_reloc_type_class): New.
1301 (elf_backend_reloc_type_class): Define.
1303 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
1304 against read-only section.
1305 (elf_backend_reloc_type_class): Define.
1306 (sh_elf_reloc_type_class): New.
1307 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1308 looking up section names for DT_TEXTREL.
1310 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
1311 reloc is against read-only section.
1312 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
1313 looking up section names for DT_TEXTREL.
1314 (elf32_arm_reloc_type_class): New.
1315 (elf_backend_reloc_type_class): Define.
1317 2001-08-25 Andreas Jaeger <aj@suse.de>
1319 * oasys.c: Add missing prototypes.
1321 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
1322 attribute for parameter.
1323 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1325 * versados.c (get_4): Make static.
1326 (get_10): Make static.
1327 Add missing prototypes.
1328 (process_esd): Fix call to versados_new_symbol.
1330 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
1332 * coff-a29k.c: Add missing prototypes.
1333 * coff-apollo.c: Add missing prototypes.
1334 * coff-arm.c: Add missing prototypes.
1335 * coff-i860.c: Add missing prototypes.
1336 * coff-rs6000.c: Add missing prototypes.
1337 * coff-tic80.c: Add missing prototypes.
1338 * elf-m10200.c: Add missing prototypes.
1339 * elf-m10300.c: Add missing prototypes.
1340 * elf32-arm.h: Add missing prototypes.
1341 * elf32-d10v.c: Add missing prototypes.
1342 * elf32-m32r.c: Add missing prototypes.
1343 * elf32-mcore.c: Add missing prototypes.
1344 * elf32-openrisc.c: Add missing prototypes.
1345 * elf32-sh.c: Add missing prototypes.
1346 * elf32-sparc.c: Add missing prototypes.
1347 * elf32-v850.c: Add missing prototypes.
1348 * elfarm-nabi.c: Add missing prototypes.
1349 * elfarm-oabi.c: Add missing prototypes.
1351 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1353 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
1354 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
1356 2001-08-24 H.J. Lu <hjl@gnu.org>
1358 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
1361 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
1363 * elf-bfd.h (elf_hash_table): Revert definition.
1364 (is_elf_hash_table): New macro.
1365 * elflink.h (elf_link_add_object_symbols): Test
1366 is_elf_hash_table before accessing ELF only fields in hash
1368 (elf_link_create_dynamic_sections): Fail if not using an ELF
1370 (elf_add_dynamic_entry): Fail if not using an ELF hash
1372 (elf_link_record_local_dynamic_symbol): Fail if not using an
1374 (size_dynamic_sections): Fail if not using an ELF hash
1376 (elf_adjust_dynamic_symbol): Fail if not using an ELF
1378 (elf_bfd_final_link): Fail if not using an ELF hash
1381 2001-08-24 H.J. Lu <hjl@gnu.org>
1383 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
1384 table is not an ELF linker hash table.
1386 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
1387 table type to bfd_link_elf_hash_table.
1389 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
1392 * linker.c (_bfd_link_hash_table_init): Set the linker hash
1393 table type to bfd_link_generic_hash_table.
1395 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1397 * bfd.c (bfd_alt_mach_code): New function.
1398 * bfd-in2.h: Rebuilt.
1400 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1402 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
1403 `type' field in the hash entry when deciding whether to follow a
1406 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1408 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
1410 (elf_link_sort_relocs): Adjust accordingly.
1412 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
1413 (elf64_alpha_check_relocs): Set it if section this reloc is against
1414 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
1416 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
1417 is is against read-only section.
1418 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
1419 check section names.
1420 (elf64_alpha_reloc_type_class): New.
1421 (elf_backend_reloc_type_class): Define.
1423 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1425 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
1428 2001-08-23 Andreas Jaeger <aj@suse.de>
1430 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
1431 the reloc is against read-only section.
1432 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
1433 of looking up section names for DT_TEXTREL.
1434 (elf64_x86_64_reloc_type_class): New.
1435 (elf_backend_reloc_type_class): Define.
1437 2001-08-23 H.J. Lu <hjl@gnu.org>
1439 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
1440 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
1442 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
1443 bfd_print_symbol_vandf.
1444 * coffgen.c (coff_print_symbol): Likewise.
1445 * elf.c (bfd_elf_print_symbol): Likewise.
1446 * ieee.c (ieee_print_symbol): Likewise.
1447 * nlmcode.h (nlm_print_symbol): Likewise.
1448 * oasys.c (oasys_print_symbol): Likewise.
1449 * pdp11.c (NAME(aout,print_symbol)): Likewise.
1450 * som.c (som_print_symbol): Likewise.
1451 * srec.c (srec_print_symbol): Likewise.
1452 * tekhex.c (tekhex_print_symbol): Likewise.
1453 * versados.c (versados_print_symbol): Likewise.
1454 * vms.c (vms_print_symbol): Likewise.
1456 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
1457 with bfd_fprintf_vma.
1458 (bfd_elf_print_symbol): Likewise.
1459 * syms.c (bfd_print_symbol_vandf): Likewise.
1461 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1463 * aoutf1.h (sunos_write_object_contents): Silence compile time
1465 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
1467 * bout.c: Add missing function prototypes. Fix formatting.
1468 * coff-z8k.c: Add missing function prototypes. Fix formatting.
1469 * coff-w65.c: Add missing function prototypes. Fix formatting.
1470 * coff-h8500.c: Add missing function prototypes. Fix formatting.
1471 * coff-h8300.c: Add missing function prototypes. Fix formatting.
1472 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
1473 * coff-tic30.c: Add missing function prototypes. Fix formatting.
1474 * coff-m68k.c: Add missing function prototypes. Fix formatting.
1475 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
1476 * coff-sh.c: Add missing function prototypes. Fix formatting.
1478 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1480 * elf-bfd.h (enum elf_reloc_type_class): New.
1481 (struct elf_backend_data): Add elf_backend_reloc_type_class.
1482 (_bfd_elf_reloc_type_class): New.
1483 * elfxx-target.h (elf_backend_reloc_type_class): Define.
1484 (elfNN_bed): Add elf_backend_reloc_type_class.
1485 * elf.c (_bfd_elf_reloc_type_class): New.
1486 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
1487 is against read-only section.
1488 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
1489 looking up section names for DT_TEXTREL.
1490 (elf_i386_reloc_type_class): New.
1491 (elf_backend_reloc_type_class): Define.
1492 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
1493 reloc is against read-only section.
1494 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
1495 looking up section names for DT_TEXTREL.
1496 (elf32_sparc_reloc_type_class): New.
1497 (elf_backend_reloc_type_class): Define.
1498 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
1499 reloc is against read-only section.
1500 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1501 looking up section names for DT_TEXTREL.
1502 (sparc64_elf_reloc_type_class): New.
1503 (elf_backend_reloc_type_class): Define.
1504 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
1505 (elfNN_ia64_hash_table_create): Clear ia64_info.
1506 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
1508 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
1509 instead of looking up section names for DT_TEXTREL.
1510 (elfNN_ia64_reloc_type_class): New.
1511 (elf_backend_reloc_type_class): Define.
1512 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
1513 (struct elf_link_sort_rela): New.
1514 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
1515 (elf_bfd_final_link): Call elf_link_sort_relocs.
1516 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
1519 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1521 * configure.in (x86-bsdi): No corefile support.
1522 * configure: Regenerate.
1524 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
1526 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
1529 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
1531 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
1532 the alignment of dwarf2 linkonce sections to 0.
1533 * coff-sto32.c: Likewise.
1535 2001-08-20 Andreas Jaeger <aj@suse.de>
1537 * coff-sparc.c: Add missing prototypes.
1538 * elf32-s390.c: Likewise.
1539 * elf32-i960.c: Likewise.
1540 * aout-target.h: Likewise.
1542 2001-08-20 H.J. Lu <hjl@gnu.org>
1544 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
1545 (elf_num_section_syms): New for num_section_syms.
1547 * elf.c (elf_map_symbols): Set num_section_syms.
1548 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
1549 the section symbol index.
1551 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
1553 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
1554 select the generic has table creator. All elf backends need elf
1555 specific fields in the hash table.
1557 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1559 * archive.c (offsetof): Remove define.
1562 * sysdep.h (offsetof): Define.
1564 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1566 * bfd.c (bfd_get_gp_size): Return an unsigned int.
1567 (bfd_set_gp_size): Make param unsigned.
1568 * bfd-in2.h: Regenerate.
1569 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
1570 than calling bfd_get_gp_size.
1571 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
1572 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
1574 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1576 * linker.c (default_fill_link_order): Handle four byte fill value.
1578 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1580 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
1582 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
1584 * elf64-mips.c (UNUSED_RELOC): Define.
1585 (mips_elf64_howto_table_rel): Use it.
1586 (mips_elf64_howto_table_rela): Here too.
1587 (mips_elf64_write_relocs): Fix signed/unsigned warning.
1589 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
1591 * coffgen.c (coff_print_symbol): Fix warnings.
1592 (coff_find_nearest_line): Likewise.
1593 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
1594 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
1595 * format.c (bfd_check_format_matches): Likewise.
1596 (bfd_set_format): Likewise.
1597 * coff-ia64.c: Add missing prototypes.
1598 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
1599 signed to silence warnings.
1600 (elf64_alpha_relocate_section): Likewise.
1601 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
1602 (elf64_alpha_add_symbol_hook): Likewise.
1603 (elf64_alpha_final_link): Likewise.
1604 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
1605 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
1606 (elf64_alpha_size_got_sections): Likewise.
1607 * elfxx-ia64.c: Add missing prototypes.
1608 (elfNN_ia64_relocate_section): Fix warning.
1609 (elfNN_ia64_unwind_entry_compare): Make params const.
1611 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1613 * config.bfd (targ64_selvecs): New.
1614 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
1616 * bfd-in.h (BFD_VERSION): Remove wrong comment.
1617 (BFD_DEFAULT_TARGET_SIZE): New.
1618 (BFD_ARCH_SIZE): Comment.
1619 * configure.in (target_size): New. Set instead of target64 in
1620 selvecs case statement. Set target64 from it.
1621 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
1622 * bfd-in2.h: Regenerate.
1623 * configure: Regenerate.
1625 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1627 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
1628 (bfd_errmsgs): Add corresponding message.
1629 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
1630 finding an archive that contains different format object files.
1631 Return bfd_error_wrong_object_format for this case.
1632 * format.c: Formatting fixes. s/CONST/const/.
1633 (bfd_check_format_matches): Accept archives that give
1634 bfd_error_wrong_object_format if no full match is found. Tidy
1635 code handling matching_vector. Don't return a pointer to freed
1636 memory in `matching'. Handle ambiguous matches as for partial
1638 * bfd-in2.h: Regenerate.
1640 2001-08-15 Alan Modra <amodra@bigpond.net.au>
1642 * libieee.h (common_header_type): Add last_byte field.
1644 * ieee.c: Add missing prototypes. Some format fixes.
1645 (struct output_buffer_struct): Move for availability to prototypes.
1646 (ieee_part_after): New function.
1647 (ieee_slurp_debug): Use it here.
1648 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
1649 ieee_part_after to set last_byte to one past end of current part.
1651 (ieee_pos): Pass in ieee_data_struct rather than bfd.
1653 (parse_expression): Don't go beyond the end of the current part.
1654 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
1655 (ieee_get_symtab_upper_bound, ieee_get_symtab,
1656 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
1657 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
1658 ieee_set_section_contents, ieee_write_object_contents,
1659 ieee_make_empty_symbol): Make static.
1660 (ieee_archive_p): Correct comments regarding bfd_read.
1661 (ieee_object_p): Similarly.
1662 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
1663 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
1664 input_bfd, output_bfd, output_buffer.
1665 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
1666 do_with_relocs, ie. as a symbol for relocatable files.
1667 (ieee_vec): Add comments showing functions referenced by macros.
1669 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
1671 * aout-tic30.c: Add missing prototypes. Fix formatting.
1672 * aout-ns32k.c: Add missing prototypes. Fix formatting.
1673 * peXXigen.c: Add missining prototypes. Fix formatting.
1674 * aout-adobe.c: Add missining prototypes. Fix formatting.
1676 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
1678 * elf32-v850.c: Add missing function prototypes.
1679 Fix some formatting.
1681 * cpu-v850.c: Add missing function prototype.
1682 Fix some formatting.
1684 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
1686 * elf-bfd.h (struct elf_backend_data): Add new fields
1687 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
1688 (bfd_elf_sprintf_vma): Rename function prototype to
1689 '_bfd_elf_sprintf_vma'.
1690 (bfd_elf_fprintf_vma): Rename function prototype to
1691 '_bfd_elf_fprintf_vma'.
1692 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
1693 directly, instead indirect via the elf_backend_data structure.
1694 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
1695 instead indirect via the elf_backend_data structure.
1696 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
1697 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
1698 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
1700 (elf_backend_fprintf_vma): Initialise if not already defined.
1701 (struct elf_backend_data): Initialise the
1702 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
1704 2001-08-10 Andreas Jaeger <aj@suse.de>
1706 * elf64-sparc.c: Add missing prototypes.
1707 * elf32-cris.c: Likewise.
1708 * elf32-i370.c: Likewise.
1709 * elf64-hppa.c: Likewise.
1710 * elf64-s390.c: Likewise.
1712 2001-08-10 Andreas Jaeger <aj@suse.de>
1714 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
1715 Add prototypes where needed.
1717 2001-08-10 H.J. Lu <hjl@gnu.org>
1719 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
1720 (bfd_fprintf_vma): Likewise.
1722 2001-08-10 H.J. Lu <hjl@gnu.org>
1724 * bfd.c (bfd_sprintf_vma): Don't return void.
1725 (bfd_fprintf_vma): Likewise.
1727 2001-08-10 Andreas Jaeger <aj@suse.de>
1729 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1731 * configure: Regenerate.
1733 2001-08-10 Alan Modra <amodra@bigpond.net.au>
1735 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
1736 warning if not BFD64. Add braces so emacs auto format works.
1737 (bfd_elf_fprintf_vma): Likewise.
1739 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
1741 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
1742 param to agree with libxcoff.h.
1743 (xcoff_swap_ldhdr_out): Likewise.
1744 (xcoff_swap_ldsym_in): Likewise.
1745 (xcoff_swap_ldsym_out): Likewise.
1746 (xcoff_swap_ldrel_in): Likewise.
1747 (xcoff_swap_ldrel_out): Likewise.
1748 (xcoff_create_csect_from_smclas): Likewise.
1749 * coff64-rs6000.c: Add missing prototypes.
1750 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
1752 (xcoff64_swap_ldhdr_out): Likewise.
1753 (xcoff64_swap_ldsym_in): Likewise.
1754 (xcoff64_swap_ldsym_out): Likewise.
1755 (xcoff64_swap_ldrel_in): Likewise.
1756 (xcoff64_swap_ldrel_out): Likewise.
1757 (xcoff64_ppc_relocate_section): Make static.
1758 (xcoff64_slurp_armap): Likewise.
1759 (xcoff64_archive_p): Likewise.
1760 (xcoff64_openr_next_archived_file): Likewise.
1761 (xcoff64_sizeof_headers): Likewise.
1762 (xcoff64_is_lineno_count_overflow): Likewise.
1763 (xcoff64_is_reloc_count_overflow): Likewise.
1764 (xcoff64_loader_symbol_offset): Likewise.
1765 (xcoff64_loader_reloc_offset): Likewise.
1766 * elf64-gen.c: Add missing prototypes.
1768 2001-08-09 H.J. Lu <hjl@gnu.org>
1770 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
1771 (bfd_elf_fprintf_vma): Likewise.
1773 2001-08-09 H.J. Lu <hjl@gnu.org>
1775 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
1778 * bfd-in2.h: Regenerated.
1780 2001-08-09 H.J. Lu <hjl@gnu.org>
1782 * bfd-in.h (bfd_sprintf_vma): New prototype.
1783 (bfd_fprintf_vma): Likewise.
1784 (bfd_elf_sprintf_vma): Likewise.
1785 (bfd_elf_fprintf_vma): Likewise.
1786 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
1787 * bfd-in2.h: Regenerated.
1789 * bfd.c (bfd_sprintf_vma): New. Defined.
1790 (bfd_fprintf_vma): Likewise.
1792 * elf.c (bfd_elf_sprintf_vma): New. Defined.
1793 (bfd_elf_fprintf_vma): Likewise.
1795 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1797 * coff-rs6000.c: Add missing prototypes.
1798 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
1799 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
1800 xcoff_loader_reloc_offset): Make static.
1801 * dwarf1.c: Add missing prototypes.
1802 * dwarf2.c: Add missing prototypes.
1803 (struct abbrev_info): Move definition.
1804 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
1805 * elf.c: Add missing prototypes.
1806 * elf32-gen.c: Likewise.
1807 * elf32-i386.c: Likewise.
1808 * elf32-ppc.c: Likewise.
1809 (ppc_elf_sort_rela): Use PTR instead of "void *".
1810 * elflink.h: Add missing prototypes. Formatting fixes.
1811 * merge.c: Add missing prototypes.
1812 (last4_eq): Use PTR instead of "void *".
1813 (last_eq): Likewise.
1814 * syms.c: Add missing prototypes.
1816 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
1818 * bfd.c: Fix formatting.
1819 * bfd-in2.h: Regenerate.
1821 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
1823 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
1824 true (this target uses REL relocations) and 'pcrel_offset' to
1825 false (the PC is implied, not stored in the offset).
1827 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1829 1999-10-19 Linus Nordberg <linus@swox.se>
1830 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
1831 * elfxx-target.h (elf_backend_want_got_sym): Define.
1832 (elfNN_bed): Add elf_backend_want_got_sym.
1833 * elflink.c (_bfd_elf_create_got_section): Define
1834 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
1836 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
1838 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
1839 (find_rela_addend): New function.
1840 (parse_comp_unit): Call it to find the abbrev offset addend.
1841 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
1842 members of dwarf2_debug as debugging information is read.
1844 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
1846 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
1847 targets as well as sh-pe.
1849 2001-08-03 Ben Harris <bjh21@netbsd.org>
1851 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
1852 reloc from start of section when computing value for R_ARM_REL32
1855 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1857 From H.J. Lu <hjl@gnu.org>
1858 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
1859 keep relocs for undefined syms if there are no dynamic sections in
1861 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
1863 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1865 * cofflink.c (coff_link_check_ar_symbols): also search for
1866 __imp__symbol as well as _symbol.
1867 * linker.c (_bfd_generic_link_add_archive_symbols): also
1868 search for __imp__symbol as well as _symbol.
1870 2001-08-01 Adam Nemet <anemet@lnxw.com>
1872 * elf.c (elf_sort_sections): Return zero only as the last step.
1874 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
1876 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
1878 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
1879 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
1882 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1884 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
1885 to match corresponding bfd_coff_backend data member.
1887 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1889 * Makefile.am: Update dependencies with "make dep-am".
1890 * Makefile.in: Regenerate
1892 2001-07-15 H.J. Lu <hjl@gnu.org>
1894 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
1895 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
1896 * Makefile.in: Regenerate.
1898 2001-07-11 H.J. Lu <hjl@gnu.org>
1900 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
1901 flags when creating the reloc section if the ALLOC flag in the
1902 source section is set.
1904 2001-07-11 Steve Ellcey <sje@cup.hp.com>
1906 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
1907 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
1908 * bfd-in2.h: Regenerate.
1909 * libbfd.h: Regenerate.
1910 * elfxx-ia64.c (ia64_howto_table): Define how to handle
1912 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
1913 (elfNN_ia64_check_relocs): Likewise.
1914 (elfNN_ia64_install_value): Likewise.
1915 (elfNN_ia64_relocate_section): Likewise.
1917 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1919 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
1921 (elf32_sparc_check_relocs): Likewise.
1922 Only create .rela section for alloced sections in shared libraries.
1923 (elf32_sparc_relocate_section): Likewise.
1924 Remove redundant check.
1925 Optimize unaligned reloc usage.
1926 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
1929 2001-07-11 H.J. Lu <hjl@gnu.org>
1931 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
1932 ALLOC|LOAD flags as the source section for debugging sections
1933 when creating the reloc section.
1935 2001-07-05 Jim Wilson <wilson@redhat.com>
1937 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
1938 the section of the bigger symbol.
1940 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
1942 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
1944 * peicode.h (coff_swap_scnhdr_in): For sections containing
1945 uninitialised data, only set their size to s_paddr if this does
1946 not reset their size to zero. MS's latest compilers will set
1949 2001-07-04 H.J. Lu <hjl@gnu.org>
1951 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
1952 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
1955 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
1957 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
1959 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
1960 sections being discarded.
1962 2001-06-30 Alan Modra <amodra@bigpond.net.au>
1964 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
1965 instead of _bfd_elfcore_section_from_phdr.
1966 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
1967 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
1968 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
1969 (elfcore_grok_prstatus): Likewise.
1970 (elfcore_grok_lwpstatus): Likewise.
1971 (bfd_get_elf_phdr_upper_bound): Likewise.
1972 (elfcore_make_note_pseudosection): Formatting.
1973 (_bfd_elfcore_strndup): Formatting.
1974 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
1975 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
1977 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
1979 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
1980 and _bfd_elfcore_strndup.
1981 (struct elf_backend_data): Add elf_backend_grok_prstatus
1982 and elf_backend_grok_psinfo.
1983 * elf.c (_bfd_elfcore_make_pseudosection): New function.
1984 (elfcore_grok_prstatus): Use it.
1985 (elfcore_make_note_pseudosection): Likewise.
1986 (elfcore_strndup): Rename to...
1987 (_bfd_elfcore_strndup): Here, and make global.
1988 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
1989 (elfcore_grok_note): Call elf_backend_grok_prstatus
1990 and elf_backend_grok_psinfo if available.
1991 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
1992 (_bfd_elf32_mips_grok_psinfo): New function.
1993 (elf_backend_grok_prstatus): Define.
1994 (elf_backend_grok_psinfo): Define.
1995 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
1996 (elf_backend_grok_psinfo): Likewise.
1997 (elfNN_bed): Include elf_backend_grok_prstatus and
1998 elf_backend_grok_psinfo.
2000 2001-06-29 H.J. Lu <hjl@gnu.org>
2002 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
2003 hplink->sgot is NULL before filling GOT. Check if hplink->splt
2004 is NULL before filling PLT.
2006 2001-06-29 Alan Modra <amodra@bigpond.net.au>
2008 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
2010 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2012 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
2014 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
2015 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2018 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
2019 (IS_ABSOLUTE_RELOC): Define.
2020 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
2021 (hppa_link_hash_newfunc): Always init it.
2022 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
2023 create COPY relocs only when the reloc is in a read-only section.
2024 Instead, allocate space for a dynamic reloc to reference the
2025 library symbol directly. Keep track of space we allocate using
2027 (hppa_discard_copies): Delete, and move code to..
2028 (allocate_plt_and_got): ..here. Rename to
2029 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2030 relocs for non-shared link.
2031 (elf32_hppa_size_dynamic_sections): Update calls to above.
2032 (elf32_hppa_relocate_section): Write out the dynamic relocs used
2033 in lieu of COPY relocs.
2035 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
2037 (elf_i386_adjust_dynamic_symbol): ..nor here..
2038 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2040 (elf_i386_size_dynamic_sections): Fix a comment.
2041 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
2042 involved in writing reloc out.
2044 2001-06-25 Alan Modra <amodra@bigpond.net.au>
2046 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
2047 Ensure syms are dynamic if we might be emitting a reloc.
2048 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
2049 for undefweak or undefined syms..
2050 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
2052 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
2053 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
2054 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
2055 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
2057 2001-06-24 H.J. Lu <hjl@gnu.org>
2059 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
2060 strncasecmp/strcasecmp instead of strncmp/strcmp.
2062 2001-06-23 H.J. Lu <hjl@gnu.org>
2064 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
2065 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
2066 in the regular object file and treat the weak definition as
2069 2001-06-23 Alan Modra <amodra@bigpond.net.au>
2071 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
2072 unresolved_reloc test to exclude cases where we use "relocation"
2073 before setting it to point into the .got. Reinstate fudge for
2074 unresolved relocs in debugging sections.
2076 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
2077 complicated tests for unresolvable relocs with a simple direct
2078 scheme using "unresolved_reloc" var.
2080 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
2081 elf_i386_dyn_relocs. Update comment.
2082 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
2084 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
2086 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
2088 (elf_i386_size_dynamic_sections): Likewise.
2089 (elf_i386_finish_dynamic_symbol): Likewise.
2090 (elf_i386_finish_dynamic_sections): Likewise.
2091 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
2094 Avoid creating COPY relocs if possible.
2095 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
2096 which .got created. Mark symbols used by R_386_32 and R_386_PC32
2097 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
2098 reloc is in a read-only section. Instead, allocate space for a
2099 dynamic reloc to reference the library symbol directly. Keep
2100 track of space we allocate using pcrel_relocs_copied.
2101 (discard_copies): Delete, and move code to ..
2102 (allocate_plt_and_got): ..here. Rename to
2103 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2104 relocs for non-shared link.
2105 (elf_i386_size_dynamic_sections): Update calls to above functions.
2106 (elf_i386_relocate_section): Write out the dynamic relocs. Add
2107 more ugly logic to avoid "unresolvable relocation" error. Use
2108 htab shortcut in place of elf_hash_table macro.
2109 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
2110 not always be created now.
2112 2001-06-20 Bo Thorsen <bo@suse.co.uk>
2114 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
2117 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2119 * configure.host (mips64-*-linux): Reformat.
2121 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2123 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
2124 allocate local .got space. Use shortcuts from hash table for .got
2125 and .plt rather than comparing section names.
2126 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
2127 adjusting index into local_got_refcounts to document what we are
2129 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
2130 Tidy .got and .plt error checking.
2132 2001-06-20 Catherine Moore <clm@redhat.com>
2134 * elf-bfd.h (struct elf_backend_data):
2135 elf_backend_emit_relocs: New field: Function for emitting
2137 elf_backend_count_relocs: New field: Function for determining
2138 the number of relocs to be emitted.
2139 * elfxx-target.h: Provide default (NULL) values for
2140 elf_backend_emit_relocs and elf_backend_count_relocs.
2141 * elflink.h (elf_link_size_reloc_section): Make the hash table
2142 big enough to hold the relocs counted by either reloc_count or
2144 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
2145 should be emitted, either because of a command line option
2146 stored in the info structure or because the target provides a
2147 special reloc emitting function.
2148 If the target provides a reloc counting function use it,
2149 unless performing a relocatable link or emitting all relocs.
2150 Also set the SEC_RELOC flag on any output section which will
2152 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
2153 should be emitted, either because of a command line option
2154 stored in the info structure or because the target provides a
2155 special reloc emitting function.
2156 If the target provides a reloc emitting function, use it,
2157 unless performing a relocatable link or emitting all relocs.
2159 2001-06-20 H.J. Lu <hjl@gnu.org>
2161 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
2162 allocate local .got space.
2164 2001-06-19 Andreas Jaeger <aj@suse.de>
2166 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
2169 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2171 * elflink.h (struct elf_assign_sym_version_info): Remove member
2172 export_dynamic. All users changed to use info member.
2173 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
2174 export_dynamic, instead use member in parameter info.
2175 * bfd-in.h (bfd_elf32_size_dynamic_sections,
2176 bfd_elf64_size_dynamic_sections): Update prototype.
2177 * bfd-in2.h: Regenerate.
2179 2001-06-18 H.J. Lu <hjl@gnu.org>
2181 * elflink.h (elf_info_failed): Add a new field, verdefs.
2182 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
2184 (elf_export_symbol): Check eif->verdefs to decide if a symbol
2187 2001-06-17 H.J. Lu <hjl@gnu.org>
2189 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
2190 readonly_reloc, to record if a relocation in the .rel.dyn
2191 section is against a read-only section.
2192 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
2194 (_bfd_mips_elf_check_relocs): Record if there is a relocation
2195 in the .rel.dyn section against a read-only section by setting
2196 DF_TEXTREL or readonly_reloc.
2197 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
2199 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
2200 there is a relocation in the .rel.dyn section against a
2202 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
2205 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2207 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
2208 function. Move flagword result into parameter list. Remove
2209 comment about setting bfd_error_handler to intercept failure
2211 * coffgen.c (make_a_section_from_file): Examine result of
2212 calling bfd_coff_styp_to_sec_flags and pass a failure back to
2214 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
2215 function. Move flagword result into parameter list.
2216 * libcoff.h: Regenerate.
2217 * libecoff.h: Regenerate.
2219 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
2221 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
2222 section is going to follow it.
2224 2001-06-12 Catherine Moore <clm@redhat.com>
2226 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
2227 with the file_align entry from elf_backend_data.
2228 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2229 (elf_gc_record_vtentry): Likewise.
2231 2001-06-10 Alan Modra <amodra@bigpond.net.au>
2233 * elflink.h: Whitespace changes.
2234 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
2235 rather than "unsigned char".
2236 (elf_link_output_relocs): Likewise.
2237 (elf_link_input_bfd): Likewise.
2238 (elf_reloc_link_order): LIkewise.
2239 * elf.c: s/CONST/const/. Whitespace changes.
2240 * elf32-mips.c: Formatting fix.
2242 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
2243 * Makefile.in: Regenerate.
2244 * po/Make-in: Remove trailing tab.
2246 2001-06-09 Philip Blundell <philb@gnu.org>
2248 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
2250 (elf32_arm_plt_entry): Likewise.
2252 2001-06-08 H.J. Lu <hjl@gnu.org>
2254 * elf.c (swap_out_syms): Keep names for global section symbols.
2256 2001-06-07 H.J. Lu <hjl@gnu.org>
2258 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
2259 MIPS-based machines need it.
2261 2001-06-07 H.J. Lu <hjl@gnu.org>
2263 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
2266 * config.bfd: Remove ecoff from Linux/mips.
2268 2001-06-07 Andreas Jaeger <aj@suse.de>
2270 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
2272 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
2273 alignment of 8 for .rela sections; handle further relocations.
2275 2001-06-06 Christian Groessler <cpg@aladdin.de>
2277 * coff-z8k.c: Fix formatting.
2278 Fix howtos: howto->size was always 1.
2280 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2282 * configure.host (mips64*-*-linux*): Define.
2284 2001-06-05 Alan Modra <amodra@bigpond.net.au>
2286 * elf32-i386.c (elf_i386_discard_copies): Rename to
2287 discard_copies, and use elf_link_hash_entry arg rather than
2288 elf_i386_link_hash_entry.
2289 (elf_i386_link_hash_traverse): Delete.
2290 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
2291 Tidy sizing of dynamic sections.
2292 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
2293 possible .plt entries.
2294 (elf_i386_gc_sweep_hook): Likewise.
2295 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
2296 everything with plt.refcount <= 0.
2298 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
2300 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
2301 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
2303 (allocate_plt_and_got): ..instead do it all here. New function.
2304 (elf_i386_size_dynamic_sections): Allocate local .got space and
2305 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
2306 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
2307 rather than gc variety).
2308 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2309 (elf_i386_relocate_section): Use it here and correct handling of
2310 R_386_GOT32. Provide section and offset for "unresolvable
2311 relocation" error message.
2312 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
2314 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
2315 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
2316 (elf_i386_link_hash_table_create): Init them.
2317 (create_got_section): New function.
2318 (elf_i386_create_dynamic_sections): New function.
2319 (elf_backend_create_dynamic_sections): Set to above.
2320 (elf_i386_check_relocs): Use shortcuts from hash table rather than
2321 calling bfd_get_section_by_name.
2322 (elf_i386_gc_sweep_hook): Likewise.
2323 (elf_i386_adjust_dynamic_symbol): Likewise.
2324 (elf_i386_size_dynamic_sections): Likewise.
2325 (elf_i386_relocate_section): Likewise.
2326 (elf_i386_finish_dynamic_sections): Likewise.
2328 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
2330 2001-06-02 H.J. Lu <hjl@gnu.org>
2332 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
2334 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
2336 2001-06-02 H.J. Lu <hjl@gnu.org>
2338 * aout-cris.c (MACHTYPE_OK): New. Defined.
2340 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
2342 * section.c (_bfd_strip_section_from_output): Handle NULL
2345 2001-06-02 H.J. Lu <hjl@gnu.org>
2347 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
2348 rs6000coff64_vec only if BFD64 is defined.
2349 (powerpc64-*-aix*): Enable only if BFD64 is defined.
2351 2001-06-02 H.J. Lu <hjl@gnu.org>
2353 * coff-ia64.c (ia64coff_object_p): Rewrite with
2354 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
2356 2001-06-01 Andreas Jaeger <aj@suse.de>
2358 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
2359 relocation, small reformatting.
2361 2001-05-29 Andreas Jaeger <aj@suse.de>
2363 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
2364 (elf64_x86_64_relocate_section): Likewise.
2366 2001-05-30 Alan Modra <amodra@one.net.au>
2368 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
2369 millicode. Don't allocate .got and .rela.got space here..
2370 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
2371 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
2373 (hppa_handle_PIC_calls): ..nor here..
2374 (allocate_plt_and_got): ..instead do it all here. New function.
2375 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
2376 call allocate_plt_and_got. No need to zap .got if not dynamic.
2377 (elf32_hppa_final_link): Call regular bfd_final_link instead of
2378 gc_common_final_link.
2379 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2380 (elf32_hppa_relocate_section): Use it here.
2381 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
2382 dynamic_sections_created.
2383 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
2385 2001-05-28 Andreas Jaeger <aj@suse.de>
2387 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
2388 generic version since we want a hashsize of 4.
2389 (elf_backend_size_info): Likewise.
2391 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2393 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
2395 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
2396 (elf_link_input_bfd): Likewise.
2397 (elf_reloc_link_order): Likewise.
2398 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
2399 relocations correctly.
2401 2001-05-28 Nicolas Pitre <nico@cam.org>
2403 * elf32-arm.h: fix PLT generation for big endian ARM
2405 2001-05-28 Alan Modra <amodra@one.net.au>
2407 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
2408 for symbols forced local that need plabels.
2409 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
2410 .plt.rela for local syms if non-shared.
2411 (hppa_build_one_stub): Mask lsb of plt.offset.
2412 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
2413 (clobber_millicode_symbols): Correct comment.
2414 (elf32_hppa_relocate_section): Likewise.
2415 (elf32_hppa_finish_dynamic_symbol): Likewise.
2417 2001-05-28 Jeff Sturm <jsturm@one-point.com>
2419 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
2420 * bfd-in2.h: Regenerate.
2421 * libbfd.h: Regenerate.
2422 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
2423 and BFD_RELOC_SPARC_UA64 mapping
2424 * elf64-sparc.c: Likewise.
2426 2001-05-25 H.J. Lu <hjl@gnu.org>
2428 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
2429 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
2430 (coff-rs6000.lo): Remove the old dependency.
2431 * Makefile.in: Rebuild.
2433 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
2436 2001-05-25 H.J. Lu <hjl@gnu.org>
2438 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
2439 rs6000coff_core_file_matches_executable_p,
2440 rs6000coff_core_file_failing_command and
2441 rs6000coff_core_file_failing_signal only if AIX_CORE is
2443 (pmac_xcoff_vec): Likewise.
2444 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2446 2001-05-25 Timothy Wall <twall@redhat.com>
2448 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
2449 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
2451 2001-05-25 H.J. Lu <hjl@gnu.org>
2453 * bfd-in2.h: Regenerated.
2454 * libcoff.h: Likewise.
2456 2001-05-25 Alan Modra <amodra@one.net.au>
2458 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
2459 undefined millicode syms in shared libs.
2460 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
2461 (elf32_hppa_check_relocs): Likewise.
2462 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2463 (elf32_hppa_size_dynamic_sections): Likewise.
2464 (elf32_hppa_relocate_section): Likewise.
2465 (elf32_hppa_finish_dynamic_symbol): Likewise.
2466 (elf32_hppa_finish_dynamic_sections): Likewise.
2468 2001-05-24 Tom Rix <trix@redhat.com>
2470 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
2471 xcoff-target.h not used to define rs6000 or ppc bfd.
2474 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
2477 * coff-rs6000.c : Many changes for 64 bit support. Move common
2478 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
2481 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
2482 linker now supported. Explictly define the rs6000coff64_vec.
2484 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
2485 (coff_print_aux) same
2486 (coff_write_object_contents) same
2487 (coff_slurp_line_table) same
2489 * coffgen.c : (coff_fix_symbol_name) formatting
2490 (coff_mangle_symbols) xcoff 64 bit support
2491 (coff_write_symbol) same
2492 (coff_write_alien_symbol) same
2493 (coff_write_native_symbol) same
2494 (coff_write_symbols) same
2495 (coff_get_symbol_info) same
2496 (bfd_coff_get_syment) same
2497 (coff_print_symbol) same
2499 * config.bfd : add powerpc64-*-aix* target
2501 * libcoff-in.h : formatting
2503 * libcoff.h : move xcoff extern declarations to libxcoff.h
2505 * libxcoff.h : New file
2507 * xcofflink.c : Many changes for xcoff64 support. Move common
2508 structures to include/coff/xcoff.h. Move specific structure to
2509 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
2510 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
2512 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
2515 (xcoff_build_ldsyms) : handle special __rtinit symbol.
2517 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2519 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
2522 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2524 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
2525 * libbfd.h: Regenerate.
2526 * bfd-in2.h: Regenerate.
2528 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
2529 * archures.c (bfd_mach_mips12000): Define.
2530 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
2531 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
2533 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
2534 * bfd-in2.h: Regenerate.
2535 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
2537 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
2539 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
2540 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
2541 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
2542 that is used by GCC.
2544 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2546 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
2547 of entries in a structured section.
2548 * elf.c: Use new macro.
2549 * elf32-i386.c: Use new macro.
2550 * elf32-mips.c: Use new macro.
2551 * elf64-alpha.c: Use new macro.
2552 * elf64-sparc.c: Use new macro.
2553 * elfcode.h: Use new macro.
2554 * elflink.h: Use new macro.
2556 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2558 * bfdint.texi: Replace -oformat with --oformat.
2560 2001-05-21 Andreas Jaeger <aj@suse.de>
2562 * dwarf2.c (decode_line_info): Fix error message.
2563 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
2564 adjust error message.
2566 2001-05-18 H.J. Lu <hjl@gnu.org>
2568 * elflink.h (elf_link_add_object_symbols): Revert the last
2571 2001-05-17 Alan Modra <amodra@one.net.au>
2573 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
2574 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
2575 (hppa_build_one_stub): Add an assert to check plt.offset.
2577 2001-05-17 H.J. Lu <hjl@gnu.org>
2579 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
2580 version definition to basename of the output filename.
2582 2001-05-17 H.J. Lu <hjl@gnu.org>
2584 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
2585 basename of the bfd filename.
2587 2001-05-16 Alan Modra <amodra@one.net.au>
2589 * section.c (asection): Add linker_has_input field.
2590 (STD_SECTION): Adjust initialization to suit.
2591 * ecoff.c (bfd_debug_section): Likewise.
2592 * bfd-in2.h: Regenerate.
2594 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
2596 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
2597 negative 32-bit operands to 16 operands when the operand is
2598 going to be zero-extended by the modified opcode.
2600 2001-05-12 Peter Targett <peter.targett@arccores.com>
2602 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
2603 name for 'arc5' core versions.
2604 (bfd_arc_arch): Make bfd_mach_arc_6 default.
2606 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
2608 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
2610 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2612 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
2614 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
2615 to .gnu.linkonce.t.FOO text section.
2617 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2619 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
2620 fields, change sec into secinfo.
2621 (struct sec_merge_info): Add chain, remove last fields.
2622 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
2623 (sec_merge_hash_lookup): If lookup could not use a string only
2624 because it has bad alignment, mark the old string for deletion.
2625 (sec_merge_add): Add secinfo argument. Don't compute entry's
2626 position, instead record the section.
2627 (sec_merge_emit): Update for the sec into secinfo change in
2628 struct sec_merge_hash_entry.
2629 (_bfd_merge_section): Only record the section for merging, defer
2630 putting strings into the hash table.
2631 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
2632 _bfd_merge_sections): New functions.
2633 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
2635 * libbfd-in.h (_bfd_merge_sections): Add prototype.
2636 (_bfd_nolink_bfd_merge_sections): Define.
2637 * libbfd.h: Likewise.
2638 (bfd_generic_merge_sections): Add prototype.
2639 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
2640 (struct bfd_target): Likewise.
2641 * bfd.c (bfd_merge_sections): Define.
2642 * bfd-in2.h: Rebuilt.
2643 * elf.c (_bfd_elf_merge_sections): New function.
2644 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
2645 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
2646 * reloc.c (bfd_generic_merge_sections): New function.
2647 * vms.c (vms_bfd_merge_sections): New function.
2648 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
2649 * aout-target.h (MY_bfd_merge_sections): Define.
2650 * aout-tic30.c (MY_bfd_merge_sections): Define.
2651 * binary.c (binary_bfd_merge_sections): Define.
2652 * bout.c (b_out_bfd_merge_sections): Define.
2653 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
2654 * coffcode.c (coff_bfd_merge_sections): Define.
2655 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
2656 * i386msdos.c (msdos_bfd_merge_sections): Define.
2657 * i386os9k.c (os9k_bfd_merge_sections): Define.
2658 * ieee.c (ieee_bfd_merge_sections): Define.
2659 * ihex.c (ihex_bfd_merge_sections): Define.
2660 * nlm-target.h (nlm_bfd_merge_sections): Define.
2661 * oasys.c (oasys_bfd_merge_sections): Define.
2662 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
2663 * som.c (som_bfd_merge_sections): Define.
2664 * srec.c (srec_bfd_merge_sections): Define.
2665 * tekhex.c (tekhex_bfd_merge_sections): Define.
2666 * versados.c (versados_bfd_merge_sections): Define.
2667 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
2669 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2671 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
2672 to be unsigned long, in order to match its use.
2674 2001-05-10 H.J. Lu <hjl@gnu.org>
2676 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
2679 2001-05-09 H.J. Lu <hjl@gnu.org>
2681 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
2682 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
2683 Remove the unused veriable `dynver'.
2685 2001-05-08 Ian Lance Taylor <ian@zembu.com>
2687 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
2688 NULL or is not COFF.
2689 (coff_i386_rtype_to_howto): Don't dump core if output section
2692 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2694 * ecoff.c (bfd_debug_section): Fix initialization.
2695 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
2696 is always a positive integer. Cast away sign mismatch.
2697 * elf32-mips.c: Fix misleading comment and typo.
2698 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
2700 * elflink.c: Fix typo.
2701 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
2702 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
2704 2001-05-04 Richard Henderson <rth@redhat.com>
2706 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
2708 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
2710 * elf32-arm.h (elf32_arm_final_link_relocate): Set
2711 EF_ARM_HASENTRY if the start address is set.
2713 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
2715 * targets.c (_bfd_target_vector_entries): Compute value based on
2716 the size of the _bfd_target_vector and not bfd_target_vector.
2718 2001-05-03 H.J. Lu <hjl@gnu.org>
2720 * elfcode.h: Include "libiberty.h".
2722 * elflink.h (elf_link_add_object_symbols): Set
2723 elf_dt_name (abfd) to basename of the bfd filename.
2724 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
2725 of the bfd filename.
2727 2001-05-03 Andreas Jaeger <aj@suse.de>
2729 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
2730 (elf_generic_info_to_howto_rel): Likewise.
2731 * coff-alpha.c (reloc_nil): Likewise.
2732 (alpha_ecoff_bad_format_hook): Likewise.
2733 (alpha_adjust_reloc_out): Likewise.
2734 (alpha_bfd_reloc_type_lookup): Likewise.
2735 (alpha_convert_external_reloc): Likewise.
2736 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
2737 (elf64_alpha_reloc_bad): Likewise.
2738 (elf64_alpha_reloc_gpdisp): Likewise.
2739 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
2740 (elf64_alpha_info_to_howto): Likewise.
2741 (elf64_alpha_add_symbol_hook): Likewise.
2742 (elf64_alpha_create_got_section): Likewise.
2743 (elf64_alpha_is_local_label_name): Likewise.
2744 (elf64_alpha_merge_ind_symbols): Likewise.
2745 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
2746 (mips_elf64_get_reloc_upper_bound): Likewise.
2747 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
2748 (nlm_alpha_get_public_offset): Likewise.
2750 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2752 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
2753 about overflow in R_OPENRISC_LO_16_IN_INSN and
2754 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
2756 2001-04-30 H.J. Lu <hjl@gnu.org>
2758 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
2759 only for ELF_LINK_FORCED_LOCAL.
2760 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
2761 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
2762 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
2764 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
2765 if the symbol has hidden or internal visibility.
2767 2001-04-30 Alan Modra <amodra@one.net.au>
2769 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
2770 calls to undefined weak symbols.
2772 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
2774 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
2775 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
2777 2001-04-27 Andreas Jaeger <aj@suse.de>
2779 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
2780 out handled entries.
2781 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
2782 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
2783 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
2786 2001-04-27 Sean McNeil <sean@mcneil.com>
2788 * config.bfd: Add arm-vxworks target.
2789 * coff-arm (coff_arm_relocate_section): Add in symbol value to
2790 addend (fro VXworks targets).
2792 2001-04-26 H.J. Lu <hjl@gnu.org>
2794 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
2797 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
2799 * bfd-in.h (bfd_cache_close): Declare newly exported function.
2800 * bfd-in2.h: Regenerated.
2802 2001-04-24 Jakub Jelinek <jakub@redhat.com>
2804 * merge.c (struct sec_merge_hash_entry): Add alignment field.
2805 (struct sec_merge_hash): Remove alignment_power.
2806 (sec_merge_hash_newfunc): Clear alignment.
2807 (sec_merge_hash_lookup): Pass alignment as argument.
2808 Use hashp->root.next, not hashp->next to walk the hash chain.
2809 If a string already in the hashtable does not have required
2810 alignment, create a new hashtable entry.
2811 (sec_merge_init): Remove alignment_power argument.
2812 (sec_merge_add): Add alignment argument.
2813 (sec_merge_emit): Alignment is now a per-entity thing, not per
2815 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
2816 for proper alignment.
2817 Pass alignment information to sec_merge_add.
2819 2001-04-24 Christian Groessler <cpg@aladdin.de>
2821 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
2822 and R_REL16 reloc types; accept odd values for R_REL16 type
2824 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
2826 * cpu-openrisc.c: New file.
2827 * elf32-openrisc.c: Likewise.
2829 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
2830 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
2831 (BFD32_BACKENDS): Add elf32-openrisc.lo.
2832 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
2833 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
2834 * Makefile.in: Regenerated.
2835 * config.bfd: (openrisc-*-elf): New target.
2836 * configure.in (bfd_elf32_openrisc_vec): New vector.
2837 * configure: Regenerated.
2838 * libbfd.h: Regenerated.
2839 * bfd-in2.h: Regenerated.
2840 * reloc.c: Add OpenRISC relocations.
2841 * targets.c (bfd_elf32_openrisc_vec): Declare.
2842 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
2843 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
2844 (bfd_openrisc_arch): Declare.
2845 (bfd_archures_list): Add bfd_openrisc_arch.
2846 * elf.c (prep_headers): Add bfd_arch_openrisc.
2848 2001-04-23 Bo Thorsen <bo@suse.de>
2850 * elf64-x86-64.c: Add c++ vtable hack.
2851 Small whitespace and comment changes.
2853 2001-04-19 Andreas Jaeger <aj@suse.de>
2855 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
2856 (elf64_x86_64_plt_entry): Likewise.
2857 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
2858 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
2860 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
2862 * elf32-cris.c: Tweak comments related to dynamic linking.
2863 (cris_elf_relocate_section): When not creating shared object, fill
2864 in the .got table for any symbol not in the dynamic symbol table.
2865 (elf_cris_finish_dynamic_symbol): When not creating shared object,
2866 only emit a .got.rela reloc if the symbol is in the dynamic symbol
2868 (cris_elf_check_relocs): Use variable r_type in all places rather
2869 than the original expression. Add default case in switch for
2871 (elf_cris_size_dynamic_sections): Iterate over
2872 elf_cris_discard_excess_program_dynamics when not creating shared
2874 (elf_cris_discard_excess_dso_dynamics): Renamed from
2875 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
2876 (elf_cris_discard_excess_program_dynamics): New.
2878 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
2880 * coffcode.h (coff_write_object_contents): Use
2881 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
2883 2001-04-14 H.J. Lu <hjl@gnu.org>
2885 * bfd-in2.h: Regenerate.
2887 2001-04-14 Jakub Jelinek <jakub@redhat.com>
2889 * section.c (STD_SECTION): Add entsize.
2891 2001-04-13 H.J. Lu <hjl@gnu.org>
2893 * section.c (SEC_MERGE): Define new flag for merging.
2894 (SEC_STRINGS): Likewise.
2895 (entsize): New field.
2897 2001-04-13 Roger Sayle <roger@metaphorics.com>
2899 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
2900 flag on pe-i386 targets.
2902 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2904 * libbfd-in.h (_bfd_merge_section): New.
2905 (_bfd_write_merged_section): New.
2906 (_bfd_merged_section_offset): New.
2907 * libbfd.h: Rebuilt.
2908 * linker.c (_bfd_generic_link_output_symbols): Handle
2910 * aoutx.h (aout_link_write_symbols): Likewise.
2911 * pdp11.c (aout_link_write_symbols): Likewise.
2912 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
2913 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
2915 (elf_link_sec_merge_syms): New.
2916 (elf_link_input_bfd): Call _bfd_merged_section_offset
2917 and _bfd_write_merged_section.
2918 Handle discard_sec_merge.
2919 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
2921 (struct bfd_elf_section_data): Likewise.
2922 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
2923 SEC_STRINGS section flags and entsize from their ELF counterparts.
2924 (_bfd_elf_link_hash_table_init): Initialize merge_info.
2925 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
2926 from their BFD counterparts.
2927 * merge.c: New file.
2928 * Makefile.am: Add strtab.lo.
2929 * Makefile.in: Rebuilt.
2931 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
2933 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
2934 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
2936 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2938 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
2939 endian MIPS ELF target.
2940 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
2943 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
2944 64bit big endian MIPS ELF target.
2945 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
2946 endian MIPS ELF target.
2947 * configure: Regenerated.
2949 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
2950 little endian targets.
2951 (mips_elf_sym_is_global): Handle traditional targets.
2953 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
2954 64bit big endian MIPS ELF target.
2955 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
2956 endian MIPS ELF target.
2958 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
2959 and bfd_elf64_tradlittlemips_vec.
2961 2001-04-05 David Mosberger <davidm@hpl.hp.com>
2963 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
2964 ordinary "progbits" section.
2966 2001-04-04 Alan Modra <alan@linuxcare.com.au>
2968 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
2969 when -Bsymbolic causes a symbol to no longer need a .plt entry.
2971 2001-04-03 David Mosberger <davidm@hpl.hp.com>
2973 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
2975 2001-03-30 H.J. Lu <hjl@gnu.org>
2977 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
2978 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
2980 2001-03-26 H.J. Lu <hjl@gnu.org>
2982 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
2983 if there are any relocations for generic ELF.
2984 (bfd_elf32_bfd_link_add_symbols): Defined to
2985 elf32_generic_link_add_symbols.
2986 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
2987 if there are any relocations for generic ELF.
2988 (bfd_elf64_bfd_link_add_symbols): Defined to
2989 elf64_generic_link_add_symbols.
2991 2001-03-23 Nick Clifton <nickc@redhat.com>
2993 * Makefile.am (BUILD_CFILES): New variable: List of C source
2994 files created in build directory.
2995 (BUILD_HFILES): New variable: List of header files created in
2998 (po/POTFILES.in): Replace rule with empty entry.
2999 (po/SRC-POTFILES.in): New rule: Create a list of source files
3000 in the source directory.
3001 (po/BLD-POTFILES.in): New rule: Create a list of source files
3002 in the build directory.
3003 (MOSTLYCLEAN): Do not delete source files created in build
3005 * Makefile.in: Regenerate.
3006 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
3008 * configure: Regenerate.
3010 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
3012 Add .. to the search path when building bfd.pot.
3013 Delete POTFILES when performing distclean.
3014 Add comment describing why distclean is broken in maintainer mode.
3015 * po/POTFILES.in: Delete.
3016 * po/SRC-POTFILES.in: New file.
3017 * po/BLD-POTFILES.in: New file.
3018 * po/bfd.pot: Regenerate.
3020 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
3022 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
3023 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
3024 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
3025 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
3026 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
3027 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
3029 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
3030 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
3031 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
3032 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
3033 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
3034 New HOWTO members for new relocs.
3035 (cris_reloc_map): Map new relocs.
3036 (ELF_DYNAMIC_INTERPRETER): Define.
3037 (PLT_ENTRY_SIZE): Define.
3038 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
3039 elf_cris_pic_plt_entry): New, PLT templates.
3040 (struct elf_cris_pcrel_relocs_copied, struct
3041 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
3042 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
3043 (cris_final_link_relocate): Check that 16-bit GOT relocs have
3044 positive values. Adjust PCREL relocs to be relative to location
3046 (cris_elf_relocate_section): Handle relocations to dynamic
3047 objects. Handle new relocations. Call error handler when seeing
3048 non-PIC relocation for read-only sections while generating shared
3050 (cris_elf_check_relocs): Set reference counts for GOT and PLT
3052 (bfd_elf32_bfd_link_hash_table_create,
3053 elf_backend_adjust_dynamic_symbol,
3054 elf_backend_size_dynamic_sections,
3055 elf_backend_finish_dynamic_symbol,
3056 elf_backend_finish_dynamic_sections,
3057 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
3058 elf_backend_hide_symbol, elf_backend_want_got_plt,
3059 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3060 elf_backend_got_header_size, elf_backend_plt_header_size):
3063 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
3064 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
3065 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
3066 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
3067 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
3068 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
3069 * bfd-in2.h, libbfd.h: Regenerate.
3071 2001-03-21 Diego Novillo <dnovillo@redhat.com>
3073 (_bfd_mips_elf_relocate_section): Give a better error message when
3074 a relocation is not recognized.
3076 2001-03-21 Alan Modra <alan@linuxcare.com.au>
3078 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
3079 non-NULL before attempting to dereference.
3081 2001-03-20 H.J. Lu <hjl@gnu.org>
3083 * configure.in: Remove the redundent AC_ARG_PROGRAM.
3084 * configure: Rebuild.
3086 2001-03-20 Andreas Schwab <schwab@suse.de>
3088 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
3089 relocation value when resolving a reference from a debugging
3092 2001-03-16 Scott Thomason <SThomaso@hii.com>
3094 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
3095 (xcoff64_swap_sym_out): Fix syntax errors.
3097 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
3099 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
3101 2001-03-15 Alan Modra <alan@linuxcare.com.au>
3103 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
3104 (hppa_link_hash_newfunc): Init it.
3105 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
3106 section appears to be non-PIC.
3107 (final_link_relocate): Likewise.
3108 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
3109 possible candidate function, and set pic_call for those that will
3110 only have a .plt entry for the PIC call stub.
3111 (hppa_handle_PIC_calls): Set maybe_pic_call.
3113 2001-03-12 DJ Delorie <dj@redhat.com>
3115 * elf32-sh.c (sh_elf_relocate_section): Only relocation
3116 R_SH_DIR8WP* relocs if they're against external symbols, else
3117 they're just for relaxing. Validate the reloc values.
3119 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3121 * binary.c (bfd_external_binary_architecture): Declare.
3122 (binary_object_p): If bfd_external_binary_architecture is defined,
3123 set the architecture to this string.
3125 2001-03-11 Philip Blundell <philb@gnu.org>
3127 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
3128 entries that could serve as a definition for a weak symbol.
3130 2001-03-08 Nick Clifton <nickc@redhat.com>
3132 * Most files: Update copyright notices using Perl script created
3133 by Kevin Buettner <kevinb@redhat.com>.
3135 2001-03-07 Nick Clifton <nickc@redhat.com>
3137 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
3138 prior patch on ! defined OLD_ARM_ABI.
3140 2001-03-07 Andreas Jaeger <aj@suse.de>
3142 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
3143 some relocation values.
3145 2001-03-06 Nick Clifton <nickc@redhat.com>
3147 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
3148 of offset in BLX(1) instruction.
3149 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
3150 offset in BLX(1) instruction.
3153 2001-03-06 Nick Clifton <nickc@redhat.com>
3155 * coff-arm.c (coff_arm_reloc_type_lookup): Add
3156 BFD_RELOC_THUMB_PCREL_BLX.
3158 2001-03-06 Igor Shevlyakov <igor@windriver.com>
3160 * archures.c (bfd_default_scan): Add Coldfire CPUs.
3161 * bfd-in2.h: Regenerate.
3162 * cpu-m68k.c: Add Coldfire CPUs for arch table.
3163 * ieee.c (ieee_write_processor): Set proper id for
3166 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
3168 * configure.in: Add s390 target.
3169 * configure: Regenerate.
3171 2001-02-28 Andreas Jaeger <aj@suse.de>
3173 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
3176 2001-02-28 Philip Blundell <pb@futuretv.com>
3178 * elf32-arm.h: Update mentions of renamed EF_xx constants.
3179 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
3181 2001-02-27 H.J. Lu <hjl@gnu.org>
3183 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
3184 abfd->tdata.aout_data == NULL.
3186 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3188 * elf32-hppa.c: Correct field selector in stub comments.
3189 (clobber_millicode_symbols): Formatting fix.
3191 * configure.in: Bump version to 2.11.90.
3192 * configure: Regenerate.
3193 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
3194 (CFILES): $SOURCE_CFILES + generated C files.
3195 (POTFILES): Include $HFILES not $SOURCE_HFILES.
3197 * Makefile.in: Regenerate.
3198 * doc/Makefile.in: This too.
3200 2001-02-26 Timothy Wall <twall@cygnus.com>
3202 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
3205 2001-02-26 Nick Clifton <nickc@redhat.com>
3207 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
3208 up, replacing multiple if statements with a switch.
3209 (handle_COMDAT): New function.
3211 2001-02-26 H.J. Lu <hjl@gnu.org>
3213 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
3214 a warning for section flags we do not handle instead of
3217 2001-02-26 Andreas Jaeger <aj@suse.de>
3219 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
3221 2001-02-22 Timothy Wall <twall@cygnus.com>
3223 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
3224 * configure.in: Add objects for elf64_ia64_aix vectors.
3225 * configure: Regenerated.
3226 * configure.host: Recognize ia64-*-aix*.
3227 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
3228 for AIX. AIX5 requires most relocations to be dynamic (*all*
3229 binaries are somewhat similar to shared libraries).
3230 * targets.c: Add elf64_ia64_aix vectors.
3232 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3234 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
3235 C8 said "1" instead of "8". Clarify error string for IMM22:
3236 "signed integer" instead of just "integer".
3238 2001-02-20 Andreas Jaeger <aj@suse.de>
3240 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
3241 PLT entries that could serve as a definition for a weak symbol.
3243 2001-02-19 Jakub Jelinek <jakub@redhat.com>
3245 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
3246 entries that could serve as a definition for a weak symbol.
3247 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
3249 2001-02-18 David O'Brien <obrien@FreeBSD>
3251 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
3252 FreeBSD/i386-CURRENT differently until I can figure out the needed
3254 * configure: Regenerate.
3255 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
3256 FreeBSD/PowerPC, and FreeBSD/sparc64.
3258 2001-02-18 lars brinkhoff <lars@nocrew.org>
3260 * Makefile.am: Add PDP-11 a.out target.
3261 * config.bfd: Likewise.
3262 * configure.in: Likewise.
3263 * targets.c: Likewise.
3264 * archures.c: Likewise.
3265 * bfd-in2.h: Likewise. Add PDP-11 relocations.
3266 * libbfd.h: Add PDP-11 relocations.
3267 * reloc.c: Likewise.
3268 * cpu-pdp11.c: New file.
3269 * pdp11.c: New file.
3271 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
3272 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3273 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3274 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
3275 (GET_MAGIC): New macro.
3276 (PUT_MAGIC): Likewise.
3277 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
3279 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
3281 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
3282 multiarch needs it).
3284 2001-02-18 H.J. Lu <hjl@gnu.org>
3286 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
3289 2001-02-18 Kazu Hirata <kazu@hxi.com>
3291 * vms-misc.c: Fix formatting.
3293 2001-02-16 Kazu Hirata <kazu@hxi.com>
3295 * vms.c: Fix formatting.
3297 2001-02-14 H.J. Lu <hjl@gnu.org>
3299 * elf.c (elf_find_function): New function.
3300 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
3301 the file name and function name.
3303 2001-02-14 Nick Clifton <nickc@redhat.com>
3305 * ecoff.c (bfd_debug_section): Update to initialise new fields in
3308 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
3309 (BFD64_BACKENDS): Add pepigen.c
3310 Add rules to create peigen.c and pepigen.c from peXXigen.c.
3312 * Makefile.in: Regenerate.
3313 * configure: Regenerate.
3314 * po/POTFILES.in: Regenerate.
3315 * po/bfd.pot: Regenerate.
3317 2001-02-14 H.J. Lu <hjl@gnu.org>
3319 * libcoff-in.h (pe_tdata): Add members target_subsystem and
3320 force_minimum_alignment.
3322 2001-02-14 Bo Thorsen <bo@suse.de>
3324 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
3325 (elf64_86_64_size_info): Struct added to fix a problem
3326 with the hashtable string entries.
3327 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
3328 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
3329 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
3330 remove the FIXME for this.
3331 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
3332 section. Also removed the FIXME for it.
3333 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
3334 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
3335 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
3337 2001-02-13 Richard Henderson <rth@redhat.com>
3339 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
3340 and not user provided.
3342 2001-02-13 Kazu Hirata <kazu@hxi.com>
3344 * vms.c (vms_print_symbol): Remove unreachable code.
3346 * rs6000-core.c: Fix formatting.
3348 2001-02-13 David Mosberger <davidm@hpl.hp.com>
3350 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
3351 as _bfd_XXi_only_swap_filehdr_out.
3352 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
3353 pe->force_minimum_alignment to TRUE.
3354 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
3355 PEI_TARGET_SUBSYSTEM.
3356 (pe_print_private_bfd_data): Call
3357 _bfd_XX_print_private_bfd_data_common() instead of
3358 _bfd_pe_print_private_bfd_data_common().
3359 (pe_bfd_copy_private_bfd_data): Call
3360 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
3361 _bfd_pe_bfd_copy_private_bfd_data_common().
3362 (coff_bfd_copy_private_section_data): Define as
3363 _bfd_XX_bfd_copy_private_section_data instead of
3364 _bfd_pe_bfd_copy_private_section_data.
3365 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
3366 of a _bfd_pe_get_symbol_info.
3370 * peXXigen.c: Renamed from peigen.c.
3371 (COFF_WITH_XX): Define this macro (will get expanded into
3372 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
3373 compiled as peigen.c or pepigen.c.
3374 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
3375 define the canonical PEP structures and definitions.
3376 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
3377 effect, enforce minimum file and section alignments. If
3378 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
3379 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
3380 so, by default, this is a no-op).
3382 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
3383 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
3384 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
3385 _bfd_pefoo if it's not defined. Use these macros to define
3388 * libcoff.h (pe_tdata): Add members target_subsystem and
3389 force_minimum_alignment.
3391 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
3393 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
3395 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
3398 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
3399 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
3402 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
3403 (BFD64_BACKENDS_CFILES): Mention pepigen.c
3404 (peigen.c): Add rule to generate from peXXigen.c.
3406 (pepigen.lo): List dependencies for pepigen.lo.
3408 2001-02-13 Alan Modra <alan@linuxcare.com.au>
3410 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
3411 $global$ referenced but not defined, set its value here.
3413 2001-02-09 Bo Thorsen <bo@suse.de>
3415 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
3417 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
3419 (elf64_x86_64_relocate_section): Fix formatting.
3420 (elf64_x86_64_relocate_section): Fix addend for relocation of
3421 R_X86_64_(8|16|32|PC8|PC16|PC32).
3423 2001-02-12 Jan Hubicka <jh@suse.cz>
3425 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
3427 2001-02-11 H.J. Lu <hjl@gnu.org>
3429 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
3432 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3434 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
3435 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
3436 relocations against dynsym symbols.
3438 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
3439 the R_MIPS_26 relocation.
3440 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
3441 the R_MIPS_26 relocation.
3442 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
3444 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
3445 the R_MIPS_26 relocation.
3446 (mips_elf64_howto_table_rela): Likewise.
3448 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
3449 member to mark symbols that have non-CALL relocations against
3451 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
3452 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
3454 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
3455 non-CALL relocation against it is encountered.
3456 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
3457 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
3458 no_fn_stub is not set.
3460 * elf32-mips.c (mips_elf_output_extsym): Get the output section
3461 information from the real symbol for indirect ones.
3462 Check no_fn_stub to find out if a symbol has a function stub
3465 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3467 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
3468 * Makefile.in: Regenerate.
3470 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3472 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
3473 true if section name is an unwind table section name.
3474 (elfNN_ia64_additional_program_headers): Count each unwind section
3476 (elfNN_ia64_modify_segment_map): Install one unwind program header
3477 for each unwind separate section. Note: normally the linker
3478 script merges the unwind sections that go into a single segment,
3479 so this still generates at most one unwind program header per
3482 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
3483 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
3484 (elfNN_ia64_fake_sections): Mark sections with names that start
3485 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
3488 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
3489 Use it to make sh_info in unwind section point to the text section
3492 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3494 * Makefile.am: Add linux target for S/390.
3495 * archures.c: Likewise.
3496 * bfd-in2.h: Likewise.
3497 * config.bfd: Likewise.
3498 * configure.in: Likewise.
3500 * libbfd.h: Likewise.
3501 * targets.c: Likewise.
3502 * cpu-s390.c: New file.
3503 * elf32-s390.c: New file.
3504 * elf64-s390.c: New file.
3506 2001-02-09 Nick Clifton <nickc@redhat.com>
3508 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
3509 ImageBase. This has already been done by coff_swap_hdr_in.
3511 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3513 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
3515 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3517 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
3518 (sparc64_elf_relocate_section): Likewise.
3520 2001-02-09 Mark Kettenis <kettenis@gnu.org>
3522 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
3523 similar to R_SPARC_32.
3524 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
3526 2001-02-08 H.J. Lu <hjl@gnu.org>
3528 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
3529 relocation entries for weak definitions when building DSO with
3532 2001-02-08 Richard Henderson <rth@redhat.com>
3534 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
3535 before visibility. Locally defined protected symbols are not
3538 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
3540 * config.bfd: Enable coff64 for rs6000-*. Patch from
3541 <hzoli@austin.ibm.com>.
3543 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
3545 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
3546 found, do not attempt to find dwarf2 info before returning.
3548 2001-02-07 Jakub Jelinek <jakub@redhat.com>
3550 * elflink.h (is_global_symbol_definition): Rename to
3551 is_global_data_symbol_definition and have it reject function
3553 (elf_link_is_defined_archive_symbol): Use renamed function.
3555 2001-02-07 Todd Vierling <tv@wasabisystems.com>
3557 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
3558 * libbfd.h (bfd_target_vector): Likewise.
3559 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
3560 make static; create pointer reference named bfd_target_vector.
3561 (_bfd_target_vector_entries): Calculate this based on the array
3562 typed _bfd_target_vector.
3564 2001-02-06 H.J. Lu <hjl@gnu.org>
3566 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
3567 internal symbols are not dynamic.
3568 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
3570 2001-02-06 Nick Clifton <nickc@redhat.com>
3572 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
3573 that it will not be pulled into the list of files that make up
3575 * Makefile.in: Regenerate.
3576 * po/bfd.pot: Regenerate.
3578 2001-02-06 H.J. Lu <hjl@gnu.org>
3580 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
3582 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
3583 external_PEI_IMAGE_hdr.
3585 2001-02-06 Kazu Hirata <kazu@hxi.com>
3587 * elf-m10200.c: Fix formatting.
3589 2001-02-04 Nick Clifton <nickc@redhat.com>
3591 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
3592 rel, it will be handled later on.
3594 2001-02-02 Fred Fish <fnf@ninemoons.com>
3596 * Makefile.in: Fix typo.
3598 2001-02-01 Kazu Hirata <kazu@hxi.com>
3600 * elf-m10300.c: Fix formatting.
3602 2001-01-30 Alan Modra <alan@linuxcare.com.au>
3604 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
3605 (elf_backend_get_symbol_type): Define.
3606 (elf64_hppa_object_p): Set architecture and machine from elf
3609 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
3611 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
3614 2001-01-26 Richard Henderson <rth@redhat.com>
3616 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
3617 for non-default visibility.
3618 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
3619 delete ugly macro and replace with pretty function.
3621 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
3623 * coff-go32.c: Update copyright.
3624 * coff-stgo32.c: Likewise.
3625 * coff-go32.c (COFF_LONG_FILENAMES): Define.
3626 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
3627 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
3628 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3630 2001-01-25 Kazu Hirata <kazu@hxi.com>
3632 * bfd-in2.h: Rebuild.
3633 * libbfd.h: Likewise.
3635 2001-01-23 H.J. Lu <hjl@gnu.org>
3637 * bfd-in2.h: Rebuild.
3639 2001-01-23 H.J. Lu <hjl@gnu.org>
3641 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
3642 is NULL or PRIV(vms_rec) is outside of the buffer.
3644 2001-01-23 Kazu Hirata <kazu@hxi.com>
3646 * coff64-rs6000.c: Fix formatting.
3647 * coff-arm.c: Likewise.
3648 * coffgen.c: Likewise.
3649 * cofflink.c: Likewise.
3650 * coff-mcore.c: Likewise.
3651 * coff-mips.c: Likewise.
3652 * coff-pmac.c: Likewise.
3653 * coff-ppc.c: Likewise.
3654 * coff-rs6000.c: Likewise.
3655 * elf32.c: Likewise.
3656 * elf32-fr30.c: Likewise.
3657 * elf32-i370.c: Likewise.
3658 * elf32-i860.c: Likewise.
3659 * elf32-m32r.c: Likewise.
3660 * elf32-m68k.c: Likewise.
3661 * elf32-mcore.c: Likewise.
3662 * elf32-ppc.c: Likewise.
3663 * elf32-sh.c: Likewise.
3664 * elf32-v850.c: Likewise.
3665 * elf64-alpha.c: Likewise.
3666 * elf64-sparc.c: Likewise.
3667 * elflink.c: Likewise.
3668 * elflink.h: Likewise.
3669 * elf-m10200.c: Likewise.
3670 * elf-m10300.c: Likewise.
3671 * elfxx-ia64.c: Likewise.
3673 * aoutx.h: Fix formatting.
3675 * bfd-in2.h: Likewise.
3676 * bfd-in.h: Likewise.
3677 * cpu-i386.c: Likewise.
3678 * cpu-m68hc11.c: Likewise.
3679 * dwarf2.c: Likewise.
3680 * elf64-x86-64.c: Likewise.
3681 * format.c: Likewise.
3682 * freebsd.h: Likewise.
3684 * hp300hpux.c: Likewise.
3685 * hppabsd-core.c: Likewise.
3686 * hpux-core.c: Likewise.
3688 2001-01-22 Bo Thorsen <bo@suse.de>
3690 * elf64-x86-64.c: Added PIC support for X86-64.
3691 (elf64_x86_64_link_hash_newfunc): Function added.
3692 (elf64_x86_64_link_hash_table_create): Likewise.
3693 (elf64_x86_64_check_relocs): Likewise.
3694 (elf64_x86_64_gc_mark_hook): Likewise.
3695 (elf64_x86_64_gc_sweep_hook): Likewise.
3696 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
3697 (elf64_x86_64_size_dynamic_sections): Likewise.
3698 (elf64_x86_64_discard_copies): Likewise.
3699 (elf64_x86_64_finish_dynamic_symbol): Likewise.
3700 (elf64_x86_64_finish_dynamic_sections): Likewise.
3701 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
3703 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3705 * Makefile.am (install-data-local): Make use of $(DESTDIR).
3706 * Makefile.in: Regenerate.
3708 2001-01-21 Kazu Hirata <kazu@hxi.com>
3710 * coff-a29k.c: Fix formatting.
3712 2001-01-19 H.J. Lu <hjl@gnu.org>
3714 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
3715 relocation section names.
3716 (elf_i386_relocate_section): Report files with bad relocation
3717 section names and return false.
3719 2001-01-17 Bo Thorsen <bo@suse.de>
3721 * targets.c: Alphabetize list of xvecs.
3723 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3725 * config.bfd: Add linux target variant for elfxx-hppa.
3726 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
3727 bfd_elf64_hppa_linux_vec.
3728 * configure: Regenerate.
3729 * elf64-hppa.c: Include elf64-target.h again to support linux
3731 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
3732 * elf32-hppa.c: Include elf32-target.h again to support linux
3734 (elf32_hppa_post_process_headers): New function.
3735 (elf_backend_post_process_headers): Define.
3736 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
3737 bfd_elf32_hppa_linux_vec.
3739 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
3740 and data_segment_base fields.
3741 (elf32_hppa_link_hash_table_create ): Init them.
3742 (elf32_hppa_check_relocs): Update comments.
3743 (hppa_record_segment_addr): New function.
3744 (elf32_hppa_relocate_section): Call it.
3745 (final_link_relocate): Handle R_PARISC_SEGREL32.
3746 (elf32_hppa_final_link): New function.
3747 (bfd_elf32_bfd_final_link): Define to call it.
3748 (hppa_unwind_entry_compare): New function.
3749 * cache.c (bfd_open_file): Create files in write+read mode.
3751 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
3752 SEGREL32 and numerous other relocs. Change duplicate
3753 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
3755 * opncls.c (bfd_fdopenr): Add parens like the comment says around
3758 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
3759 .plt entries for DT_INIT and DT_FINI.
3760 (elf32_hppa_finish_dynamic_sections): Remove special handling of
3761 DT_INIT and DT_FINI.
3763 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
3764 offsets for stub .plt access if wide mode. Check offset in range.
3766 2001-01-13 Nick Clifton <nickc@redhat.com>
3768 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
3771 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
3774 2001-01-12 Alan Modra <alan@linuxcare.com.au>
3776 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
3777 * configure: Regenerate.
3779 2001-01-11 Peter Targett <peter.targett@arccores.com>
3781 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
3782 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
3783 * cpu-arc.c (arch_info_struct): Add entries for variants.
3784 (bfd_arc_arch) Set default to bfd_mach_arc_5.
3785 (arc_get_mach) Don't assume machine names prefixed arc- before
3787 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
3789 (arc_elf_final_write_processing) Likewise.
3790 (ELF_MACHINE_CODE) Use EM_ARC.
3792 2001-01-10 Nick Clifton <nickc@redhat.com>
3794 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
3796 2001-01-07 Philip Blundell <philb@gnu.org>
3798 * README: Replace `bug-gnu-utils@gnu.org' with
3799 `bug-binutils@gnu.org'.
3801 2001-01-04 Kazu Hirata <kazu@hxi.com>
3803 * som.c: Fix formatting.
3805 2001-01-03 Kazu Hirata <kazu@hxi.com>
3807 * ecoffswap.h: Fix formatting.
3808 * elf-bfd.h: Likewise.
3809 * elfarm-nabi.c: Likewise.
3810 * elfarm-oabi.c: Likewise.
3811 * elfcode.h: Likewise.
3812 * elfcore.h: Likewise.
3813 * elflink.c: Likewise.
3814 * elflink.h: Likewise.
3815 * elfxx-ia64.c: Likewise.
3816 * elfxx-target.h: Likewise.
3817 * libbfd.c: Likewise
3818 * linker.c: Likewise.
3819 * lynx-core.c: Likewise.
3821 2001-01-02 Kazu Hirata <kazu@hxi.com>
3823 * pc532-mach.c: Fix formatting.
3824 * pe-arm.c: Likewise.
3825 * pe-i386.c: Likewise.
3826 * pe-mips.c: Likewise.
3827 * pe-ppc.c: Likewise.
3828 * pe-sh.c: Likewise.
3829 * pei-mips.c: Likewise.
3830 * pei-sh.c: Likewise.
3831 * peicode.h: Likewise.
3832 * ppcboot.c: Likewise.
3833 * ptrace-core.c: Likewise.
3835 2001-01-01 Kazu Hirata <kazu@hxi.com>
3837 * reloc.c: Fix formatting.
3838 * riscix.c: Likewise.
3839 * rs6000-core.c: Likewise.
3840 * xcoff-target.h: Likewise.
3842 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
3844 * elfcode.h (elf_object_p): Also restore the bfd mach field on
3845 error, by calling bfd_default_set_arch_mach with incoming
3848 2000-12-26 Kazu Hirata <kazu@hxi.com>
3850 * vaxnetbsd.c: Fix formatting.
3851 * versados.c: Likewise.
3852 * vms-gsd.c: Likewise.
3853 * vms-hdr.c: Likewise.
3854 * vms-misc.c: Likewise.
3856 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
3858 * archive.c (coff_write_armap): Don't write more than symbol_count
3859 `archive_member_file_ptr's.
3861 2000-12-25 Kazu Hirata <kazu@hxi.com>
3863 * vms-tir.c: Fix formatting.
3865 2000-12-23 Kazu Hirata <kazu@hxi.com>
3867 * vms.c: Fix formatting.
3870 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
3872 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
3874 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
3876 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
3879 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
3881 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
3883 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
3885 * libbfd.c (bfd_get_bits): Added
3886 (bfd_put_bits): Likewise
3887 * bfd-in.h: Declared the above.
3888 * bfd-in2.h: Regenerated.
3890 2000-12-20 Kazu Hirata <kazu@hxi.com>
3892 * targets.c: Fix formatting.
3893 * tekhex.c: Likewise.
3894 * trad-core.c: Likewise.
3896 2000-12-19 Kazu Hirata <kazu@hxi.com>
3898 * sco5-core.c: Fix formatting.
3899 * section.c: Likewise.
3900 * sparclinux.c: Likewise.
3901 * sparclynx.c: Likewise.
3902 * sparcnetbsd.c: Likewise.
3904 * stabs.c: Likewise.
3905 * stab-syms.c: Likewise.
3906 * sunos.c: Likewise.
3908 * sysdep.h: Likewise.
3910 2000-12-18 Nick Clifton <nickc@redhat.com>
3912 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
3914 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
3915 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
3917 2000-12-18 Nick Clifton <nickc@redhat.com>
3919 * vms-misc.c (_bfd_vms_get_record): Add default case to
3922 2000-12-15 Miloslav Trmac <mitr@volny.cz>
3924 * elfcore.h (elf_core_file_p): Move to the start of the program
3925 headers before attempting to read them.
3927 2000-12-14 Kazu Hirata <kazu@hxi.com>
3929 * peigen.c: Fix formatting.
3933 2000-12-13 Kazu Hirata <kazu@hxi.com>
3935 * peigen.c: Fix formatting.
3937 2000-12-12 Jim Wilson <wilson@redhat.com>
3939 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
3941 2000-12-08 Mark Salter <msalter@redhat.com>
3943 * binary.c (binary_set_section_contents): Ignore sections
3946 2000-12-12 Kazu Hirata <kazu@hxi.com>
3948 * m68klinux.c: Fix formatting.
3949 * m68knetbsd.c: Likewise.
3950 * mipsbsd.c: Likewise.
3951 * netbsd-core.c: Likewise.
3952 * netbsd.h: Likewise.
3953 * newsos3.c: Likewise.
3954 * nlm32-alpha.c: Likewise.
3955 * nlm32-i386.c: Likewise.
3956 * nlm32-ppc.c: Likewise.
3957 * nlm32-sparc.c: Likewise.
3958 * nlmcode.h: Likewise.
3959 * nlmswap.h: Likewise.
3960 * nlm-target.h: Likewise.
3961 * ns32knetbsd.c: Likewise.
3963 2000-12-10 Fred Fish <fnf@be.com>
3965 * elflink.h (elf_link_output_extsym): Don't complain about undefined
3966 symbols in shared objects if allow_shlib_undefined is true.
3968 2000-12-12 Nick Clifton <nickc@redhat.com>
3970 * cpu-sh.c: Fix formattng.
3971 * elf.c: Fix formattng.
3972 * elf32-mips.c: Fix formattng.
3973 * elf32-sh.c: Fix formattng.
3974 * elf64-alpha.c: Fix formattng.
3976 2000-12-09 Nick Clifton <nickc@redhat.com>
3978 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
3979 dwarf2_find_line_info as last parameter to invocation of
3980 _bfd_dwarf2_find_nearest_line.
3981 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
3982 dwarf2_find_line_info as last parameter to invocation of
3983 _bfd_dwarf2_find_nearest_line.
3985 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
3987 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
3988 (BFD_LIBS): ...to here.
3989 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
3990 (BFD_LIBS_CFILES): ...to here.
3991 * Makefile.in: Regenerate.
3992 * configure.in: Remove dwarf.lo from the elf shell variable.
3993 * configure: Regenerate.
3994 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
3995 * libcoff.h: Regenerate.
3996 * coffgen.c (coff_find_nearest_line): Call
3997 _bfd_dwarf2_find_nearest_line.
3998 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
4000 (read_abbrevs): Likewise
4001 (decode_line_info): Likewise.
4002 (parse_comp_unit): Likewise.
4003 (comp_unit_find_nearest_line): Likewise.
4004 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
4005 * libbfd.h: Regenerate.
4006 * elf.c (_bfd_elf_find_nearest_line): Update call.
4007 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
4008 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
4009 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
4010 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
4011 (styp_to_sec_flags): Handle DWARF2 sections.
4012 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
4013 to _bfd_find_nearest_line.
4014 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
4015 call to _bfd_find_nearest_line.
4017 2000-12-08 Kazu Hirata <kazu@hxi.com>
4019 * coffgen.c: Fix formatting.
4020 * elf-m10300.c: Likewise.
4021 * elf32-i386.c: Likewise.
4022 * elf32-i960.c: Likewise.
4023 * elf32-m68k.c: Likewise.
4024 * elf32-mcore.c: Likewise.
4025 * elf32-ppc.c: Likewise.
4026 * elf32-sh.c: Likewise.
4027 * elf32-sparc.c: Likewise.
4028 * elf32-v850.c: Likewise.
4029 * elf64-alpha.c: Likewise.
4030 * elf64-hppa.c: Likewise.
4031 * elf64-mips.c: Likewise.
4032 * elf64-sparc.c: Likewise.
4034 2000-12-07 Kazu Hirata <kazu@hxi.com>
4036 * elf32-ppc.c: Fix formatting.
4037 * elf64-x86-64.c: Likewise.
4039 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
4041 From Ralf Baechle <ralf@gnu.org>
4043 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
4044 BFDs containing no sections or empty .text, .data or .bss sections
4045 to be merged, regardless of their flags.
4047 2000-12-06 Kazu Hirata <kazu@hxi.com>
4049 * elf32-m32r.c: Fix formatting.
4050 * elf32-m68hc11.c: Likewise.
4051 * elf32-m68hc12.c: Likewise.
4052 * elf32-m68k.c: Likewise.
4053 * elf32-mcore.c: Likewise.
4054 * elf32-pj.c: Likewise.
4055 * elf32-ppc.c: Likewise.
4057 2000-12-05 Kazu Hirata <kazu@hxi.com>
4059 * elf32-fr30.c: Fix formatting.
4060 * elf32-hppa.c: Likewise.
4061 * elf32-i370.c: Likewise.
4062 * elf32-i386.c: Likewise.
4063 * elf32-i860.c: Likewise.
4064 * elf32-i960.c: Likewise.
4066 2000-12-03 Kazu Hirata <kazu@hxi.com>
4068 * elf32-arm.h: Fix formatting.
4069 * elf32-avr.c: Likewise.
4070 * elf32-cris.c: Likewise.
4071 * elf32-d10v.c: Likewise.
4072 * elf32-d30v.c: Likewise.
4073 * elf-hppa.h: Likewise.
4074 * elf-m10200.c: Likewise.
4075 * elf-m10300.c: Likewise.
4077 2000-12-01 Chris Demetriou <cgd@sibyte.com>
4079 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
4080 bfd_mach_mips32_4k. Update FIXME comment.
4081 * archures.c (bfd_mach_mips32): New constant.
4082 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4083 the latter, renumber it.
4084 * bfd-in2.h (bfd_mach_mips32): New constant.
4085 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4086 the latter, renumber it.
4087 * cpu-mips.c (I_mips32): New constant.
4088 (I_mips4K, I_mips32_4k): Rename the former to the latter.
4089 (arch_info_struct): Add bfd_mach_mips32 entry, replace
4090 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
4091 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
4092 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
4093 with E_MIPS_MACH_MIPS32_4K.
4094 (_bfd_mips_elf_final_write_processing): Replace
4095 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
4096 bfd_mach_mips32 case.
4097 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
4098 comparison with support for MIPS32.
4099 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
4102 * aoutx.h (NAME(aout,machine_type)): Add cases for
4103 bfd_mach_mips5 and bfd_mach_mips64.
4104 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
4105 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
4106 * cpu_mips.c (I_mips5, I_mips64): New definitions.
4107 (arch_info_struct): Add entries for bfd_mach_mips5 and
4109 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
4110 _bfd_mips_elf_print_private_bfd_data): Add cases for
4111 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
4112 (_bfd_mips_elf_final_write_processing): Add cases for
4113 bfd_mach_mips5 and bfd_mach_mips64.
4115 * aoutx.h (NAME(aout,machine_type)): Add a
4116 bfd_mach_mips_sb1 case.
4117 * archures.c (bfd_mach_mips_sb1): New constant.
4118 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
4119 * cpu-mips.c (I_sb1): New constant.
4120 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
4121 * elf32-mips.c (elf_mips_mach): Add case for
4123 (_bfd_mips_elf_final_write_processing): Add case for
4126 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4128 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
4129 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4130 (sparc*-*-rtems*): Switched from a.out to ELF.
4132 2000-11-30 Jan Hubicka <jh@suse.cz>
4134 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
4135 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
4136 (elf64-x86-64.lo): Add dependencies.
4137 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
4138 bfd_mach_x86_64_intel_syntax.
4139 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
4140 * config.bfd (x86_64): Add.
4141 * configure.in: Add support for bfd_elf64_x86_64_vec.
4142 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
4143 (bfd_i386_arch, i8086_ar): Link in.
4144 * elf64-x86-64.c: New file.
4145 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
4146 * targets.c (bfd_elf64_x86_64_vec): Add.
4147 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
4149 2000-11-30 Kazu Hirata <kazu@hxi.com>
4151 * xcofflink.c: Fix formatting.
4153 2000-11-28 Kazu Hirata <kazu@hxi.com>
4155 * aoutx.h: Fix formatting.
4156 * bfd-in.h: Likewise.
4157 * bfd-in2.h: Likewise.
4158 * cache.c: Likewise.
4159 * cisco-core.c: Likewise.
4160 * coff64-rs6000.c: Likewise.
4161 * coffcode.h: Likewise.
4162 * coffswap.h: Likewise.
4163 * corefile.c: Likewise.
4164 * elf32-mips.c: Likewise.
4166 2000-11-27 Kazu Hirata <kazu@hxi.com>
4168 * aout-adobe.c: Fix formatting.
4169 * coff64-rs6000.c: Likewise.
4170 * coffgen.c: Likewise.
4171 * cofflink.c: Likewise.
4173 2000-11-27 Philip Blundell <pb@futuretv.com>
4175 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
4176 (obj_coff_strings_written): New accessor macro for above.
4177 * libcoff.h: Regenerate.
4178 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
4180 * coffcode.h (coff_write_object_contents): No need to write out
4181 the string table if it's already been done.
4183 2000-11-22 Philip Blundell <pb@futuretv.com>
4185 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
4186 weak undefined symbols.
4188 2000-11-24 Nick Clifton <nickc@redhat.com>
4190 * archures.c (bfd_mach_arm_5TE): Define.
4191 (bfd_mach_arm+XScale): Define.
4192 * bfd-in2.h: Regenerate.
4194 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
4195 BFD_RELOC_ARM_PCREL_BLX.
4197 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
4198 XScale machine numbers.
4200 * config.bfd (xscale-elf): Add target.
4201 (xscale-coff): Add target.
4203 * cpu-arm.c: Add xscale machine name.
4204 Add v5t, v5te and XScale machine numbers.
4206 2000-11-23 Kazu Hirata <kazu@hxi.com>
4208 * aix386-core.c: Fix formatting.
4210 2000-11-22 Jim Wilson <wilson@redhat.com>
4212 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
4213 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
4214 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
4215 (ins_imms_scaled): Initialize sign_bit at function entry.
4216 (elf64_ia64_operands): Add missing initializers.
4217 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
4218 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
4219 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
4220 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
4221 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
4223 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
4224 and free_extsyms at function entry.
4225 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
4226 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
4227 (get_got): Delete unused local srel.
4228 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
4229 (elfNN_ia64_relocate_section): Delete unused local dynindx.
4231 2000-11-21 Kazu Hirata <kazu@hxi.com>
4233 * coff-a29k.c: Fix formatting.
4234 * coff-h8500.c: Likewise.
4235 * coff-i960.c: Likewise.
4236 * coff-ppc.c: Likewise.
4237 * coff-rs6000.c: Likewise.
4238 * coff-stgo32.c: Likewise.
4239 * coff-tic54x.c: Likewise.
4240 * coff-w65.c: Likewise.
4241 * cpu-h8500.c: Likewise.
4242 * cpu-hppa.c: Likewise.
4243 * cpu-ns32k.c: Likewise.
4244 * ecoff.c: Likewise.
4245 * ecofflink.c: Likewise.
4247 2000-11-21 Nick Clifton <nickc@redhat.com>
4249 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
4250 remove possibility of infinite loop.
4252 2000-11-20 Kazu Hirata <kazu@hxi.com>
4254 * aix386-core.c: Fix formatting.
4255 * aout-adobe.c: Likewise.
4256 * aout-arm.c: Likewise.
4257 * aout-encap.c: Likewise.
4258 * aout-ns32k.c: Likewise.
4259 * aout-target.h: Likewise.
4260 * aout-tic30.c: Likewise.
4261 * aoutf1.h: Likewise.
4262 * aoutx.h: Likewise.
4263 * archive.c: Likewise.
4264 * bfd-in.h: Likewise.
4265 * bfd-in2.h: Likewise.
4269 2000-11-17 H.J. Lu <hjl@gnu.org>
4271 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
4272 pltoff entries for DT_INIT and DT_FINI.
4273 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
4274 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
4277 2000-11-16 Richard Henderson <rth@redhat.com>
4279 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
4280 (allocate_dynrel_entries): Likewise.
4281 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
4282 (set_pltoff_entry): Likewise.
4283 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
4284 (elfNN_ia64_reloc_type_lookup): Likewise.
4285 (elfNN_ia64_install_value): Likewise.
4286 (elfNN_ia64_relocate_section): Likewise.
4287 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
4288 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
4290 2000-11-16 Kazu Hirata <kazu@hxi.com>
4292 * cpu-a29k.c: Fix formatting.
4293 * cpu-alpha.c: Likewise.
4294 * cpu-arm.c: Likewise.
4295 * cpu-avr.c: Likewise.
4296 * cpu-d10v.c: Likewise.
4297 * cpu-h8500.c: Likewise.
4298 * cpu-hppa.c: Likewise.
4299 * cpu-i370.c: Likewise.
4300 * cpu-i386.c: Likewise.
4301 * cpu-i960.c: Likewise.
4302 * cpu-ia64-opc.c: Likewise.
4303 * cpu-ia64.c: Likewise.
4304 * cpu-m32r.c: Likewise.
4305 * cpu-m68hc11.c: Likewise.
4306 * cpu-m68hc12.c: Likewise.
4307 * cpu-m68k.c: Likewise.
4308 * cpu-m88k.c: Likewise.
4309 * cpu-mips.c: Likewise.
4310 * cpu-ns32k.c: Likewise.
4311 * cpu-pj.c: Likewise.
4312 * cpu-powerpc.c: Likewise.
4313 * cpu-sh.c: Likewise.
4314 * cpu-sparc.c: Likewise.
4315 * cpu-tic54x.c: Likewise.
4316 * cpu-v850.c: Likewise.
4317 * cpu-vax.c: Likewise.
4318 * cpu-w65.c: Likewise.
4319 * cpu-we32k.c: Likewise.
4320 * cpu-z8k.c: Likewise.
4321 * dwarf1.c: Likewise.
4322 * dwarf2.c: Likewise.
4324 2000-11-15 Kazu Hirata <kazu@hxi.com>
4326 * coff-arm.c: Fix formatting.
4327 * coff-ppc.c: Likewise.
4328 * coff-rs6000.c: Likewise.
4329 * coff-sh.c: Likewise.
4330 * coff-sparc.c: Likewise.
4331 * coff-tic30.c: Likewise.
4332 * coff-tic54x.c: Likewise.
4333 * coff-tic80.c: Likewise.
4334 * coff-w65.c: Likewise.
4335 * coff-we32k.c: Likewise.
4336 * coff-z8k.c: Likewise.
4338 2000-11-15 Richard Henderson <rth@redhat.com>
4340 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
4341 section with the same ALLOC|LOAD flags as the source section.
4343 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4345 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
4346 by STO_ALPHA constants.
4348 2000-11-14 Kazu Hirata <kazu@hxi.com>
4350 * coff-pmac.c: Fix formatting.
4351 * coff-ppc.c: Likewise.
4353 2000-11-13 H.J. Lu <hjl@gnu.org>
4355 * elflink.h (elf_link_add_object_symbols): Also add indirect
4356 symbols for common symbols with the default version.
4358 2000-11-09 Philip Blundell <pb@futuretv.com>
4360 * section.c (STD_SECTION): Set gc_mark flag.
4362 2000-11-11 Kazu Hirata <kazu@hxi.com>
4364 * coff-i960.c: Likewise.
4365 * coff-m68k.c: Likewise.
4366 * coff-m88k.c: Likewise.
4367 * coff-mcore.c: Likewise.
4368 * coff-mips.c: Likewise.
4370 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
4372 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
4374 2000-11-10 Kazu Hirata <kazu@hxi.com>
4376 * coff-h8300.c: Fix formatting.
4377 * coff-h8500.c: Likewise.
4378 * coff-i386.c: Likewise.
4379 * coff-i860.c: Likewise.
4380 * coff-i960.c: Likewise.
4381 * coff-ia64.c: Likewise.
4383 2000-11-09 Kazu Hirata <kazu@hxi.com>
4385 * archive.c: Fix formatting.
4386 * archures.c: Likewise.
4388 2000-11-07 Richard Henderson <rth@redhat.com>
4390 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
4391 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
4392 * section.c (bfd_set_section_contents): Call memcpy if
4393 section->contents set and location not equal to contents plus offset.
4395 2000-11-08 Kazu Hirata <kazu@hxi.com>
4397 * bfd-in.h: Fix formatting.
4398 * bfd-in2.h: Likewise.
4400 * binary.c: Likewise.
4402 * coff-a29k.c: Likewise.
4403 * coff-alpha.c: Likewise.
4404 * coff-apollo.c: Likewise.
4405 * coff-aux.c: Likewise.
4407 2000-11-07 Kazu Hirata <kazu@hxi.com>
4409 * aix386-core.c: Fix formatting.
4410 * aoutf1.h: Likewise.
4411 * aoutx.h: Likewise.
4412 * archures.c: Likewise.
4413 * armnetbsd.c: Likewise.
4415 2000-11-07 Alan Modra <alan@linuxcare.com.au>
4417 * coff-h8300.c (special): Adjust reloc address.
4419 2000-11-06 Steve Ellcey <sje@cup.hp.com>
4421 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
4422 to differentiate elf32 and elf64 on ia64.
4423 * bfd-in2.h: Regenerate.
4424 * config.bfd: Add target for "ia64*-*-hpux*".
4425 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
4426 * configure: Regenerate.
4427 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
4428 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
4430 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
4431 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
4432 * Makefile.in: Regnerate.
4433 * elf64-ia64.c: Deleted.
4434 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
4436 2000-11-06 Kazu Hirata <kazu@hxi.com>
4438 * aout-adobe.c: Fix formatting.
4439 * aout-arm.c: Likewise.
4440 * aout-cris.c: Likewise.
4441 * aout-encap.c: Likewise.
4442 * aout-ns32k.c: Likewise.
4443 * aout-target.h: Likewise.
4444 * aout-tic30.c: Likewise.
4446 2000-11-05 Philip Blundell <philb@gnu.org>
4448 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
4449 BFDs containing no sections to be merged, regardless of their flags.
4451 2000-11-04 Philip Blundell <philb@gnu.org>
4453 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
4454 if a relocation for an undefined symbol also results in an
4457 2000-11-06 Christopher Faylor <cgf@cygnus.com>
4459 * config.bfd: Add support for Sun Chorus.
4461 2000-11-05 David O'Brien <obrien@FreeBSD.org>
4463 * configure.in: Recognize alpha-*-freebsd*.
4464 * configure: Regenerate.
4466 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
4468 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
4469 (Chunk): New global variable set by a parameter in objcopy.c.
4470 (S3Forced): New global variable set by a parameter in
4472 (srec_set_section_contents): If S3Forced is true, always generate
4474 (srec_write_section): Use 'Chunk' to limit maximum length of S
4477 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4479 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
4480 * Makefile.in: Regenerate.
4481 * bfd-in2.h: Regenerate.
4482 * po/bfd.pot: Regenerate.
4484 2000-10-31 Philip Blundell <philb@gnu.org>
4486 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
4487 EF_SOFT_FLOAT if it is defined.
4489 2000-10-27 Philip Blundell <philb@gnu.org>
4491 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
4492 attempts to mix PIC code with non-PIC, just mark the output as
4493 being position dependent.
4494 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
4495 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
4496 all mismatches, not just the first one.
4498 2000-10-25 Chris Demetriou <cgd@sibyte.com>
4500 * ieee.c (ieee_archive_p): Plug one of many possible
4501 memory leaks in error handling.
4503 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4505 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
4506 elf32_sparc_object_p, elf32_sparc_final_write_processing):
4508 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
4509 sparc64_elf_object_p): Support v9b.
4510 * archures.c: Declare v8plusb and v9b machines.
4512 * cpu-sparc.c: Ditto.
4514 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4516 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
4519 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
4520 (SYMBOL_CALLS_LOCAL): New macro.
4521 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
4522 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
4523 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
4524 (ppc_elf_relocate_section): Use flag variable to determine
4525 whether the relocation refers to a local symbol.
4526 Test whether a PLTREL24 reloc will produce a reloc by looking
4527 to see whether a PLT entry was made.
4529 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4531 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
4532 entries that could serve as a definition for a weak symbol.
4534 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
4536 From Ralf Baechle <ralf@gnu.org>
4538 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
4539 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
4540 against local symbols.
4541 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
4543 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4545 * section.c (struct sec): Add kept_section.
4546 (struct bfd_comdat_info): Remove sec, we can use above.
4547 (STD_SECTION): Add initializer.
4548 (bfd_make_section_anyway): Init here too.
4550 * bfd-in2.h: Regenerate.
4552 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
4554 (elf_link_input_bfd): Set all asection->symbol->value's here, and
4555 fudge values for discarded link-once section symbols.
4557 * elf64-hppa.c: Include alloca-conf.h
4559 2000-10-11 Alan Modra <alan@linuxcare.com.au>
4561 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
4563 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
4565 2000-10-10 Alan Modra <alan@linuxcare.com.au>
4567 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
4569 2000-10-10 Tom Rix <trix@redhat.com>
4571 * section.c (bfd_make_section_anyway): Release newsect ptr when
4572 newsect->symbol fails to alloc. Use bfd_release instead of free.
4574 2000-10-09 Richard Henderson <rth@cygnus.com
4576 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
4577 (elf64_ia64_unwind_entry_compare): New.
4578 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
4580 2000-10-07 Alan Modra <alan@linuxcare.com.au>
4582 * elflink.h (size_dynamic_sections): Don't create various tags if
4583 .dynstr is excluded from the link. Don't set first dynsym entry
4584 if dynsymcount is zero.
4585 (elf_bfd_final_link): Don't try to swap out dynamic syms if
4586 .dynsym excluded from the link. Don't try to write any dynamic
4587 sections excluded from the link.
4589 * elf.c (swap_out_syms): Handle global section symbols.
4591 2000-10-05 DJ Delorie <dj@redhat.com>
4593 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
4594 * coffcode.h (coff_set_alignment_hook): read extended reloc count
4595 (coff_write_relocs): write extended reloc count
4596 (coff_write_object_contents): account for extended relocs
4598 2000-10-05 Jim Wilson <wilson@cygnus.com>
4600 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
4602 * elf.c (_bfd_elf_make_section_from_shdr): Call the
4603 elf_backend_section_flags function.
4604 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
4606 (elf64_ia64_section_flags): New function containing flag conversion
4608 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
4609 * elfxx-target.h (elf_backend_section_flags): Define.
4610 (elfNN_bed): Initialize elf_backend_section_flags field.
4612 2000-10-02 Alan Modra <alan@linuxcare.com.au>
4614 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
4615 _bfd_elf32_gc_record_vtable. Correct a comment.
4617 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
4619 From Ralf Baechle <ralf@gnu.org>
4621 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
4622 produces binaries with got[1] = 0x80000001 to differenciate them
4623 for the dynamic linker from the broken binaries produced by old
4626 2000-09-30 Petr Sorfa <petrs@sco.com>
4628 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
4629 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
4630 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
4631 * configure: Regenerate.
4633 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
4635 Define two bfd_targets for absence and presence of leading
4636 underscore on symbols. Make sure to only link same kind.
4637 * elf32-cris.c (cris_elf_object_p,
4638 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
4639 cris_elf_merge_private_bfd_data): New.
4640 (elf_backend_object_p, elf_backend_final_write_processing,
4641 bfd_elf32_bfd_print_private_bfd_data,
4642 bfd_elf32_bfd_merge_private_bfd_data): Define.
4643 <Target vector definition>: Include elf32-target.h twice with
4644 different macro settings:
4645 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
4646 bfd_elf32_us_cris_vec.
4647 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
4648 (elf_symbol_leading_char): First as 0, then '_'.
4649 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
4650 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
4651 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
4652 * configure: Regenerate.
4653 * targets.c: Declare bfd_elf32_us_cris_vec.
4654 * po/bfd.pot: Regenerate.
4656 2000-09-29 Momchil Velikov <velco@fadata.bg>
4658 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
4659 R_ARM_THM_PC22 relocations.
4661 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
4663 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
4665 2000-09-29 Momchil Velikov <velco@fadata.bg>
4667 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
4668 is has the SEC_HAS_CONTENTS flag set.
4670 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
4671 Hans-Peter Nilsson <hp@axis.com>
4673 * aout-cris.c (N_TXTADDR): Define.
4675 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
4677 * som.c: Include alloca-conf.h.
4678 * Makefile.am: "make dep-am"
4679 * Makefile.in: Regenerate.
4681 2000-09-27 Alan Modra <alan@linuxcare.com.au>
4683 * elf32-hppa.c (plt_stub): New.
4684 (PLT_STUB_ENTRY): Define.
4685 (elf32_hppa_link_hash_table): Change multi_subspace to packed
4686 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
4687 (elf32_hppa_link_hash_table_create): Init to suit.
4688 (elf32_hppa_check_relocs): Set has_12bit_branch and
4689 has_17bit_branch as appropriate.
4690 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
4691 non-local functions.
4692 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
4693 Add space for plt_stub as needed.
4694 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
4695 functions at plt_stub.
4696 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
4697 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
4699 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
4700 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
4701 of fixed size, and if negative, disable handling of input sections
4702 before stub section. Set up default stub group size depending
4703 on detected branch relocs.
4704 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
4705 ensure different offsets from sym_value aren't rounded to
4706 different 2k blocks. Use lrsel and rrsel for other stubs too for
4707 consistency rather than necessity.
4708 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
4709 (final_link_relocate): Likewise.
4710 (elf32_hppa_relocate_section): Likewise.
4712 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
4713 (_bfd_elf_hppa_gen_reloc_type): Generate them.
4714 (elf_hppa_final_link_relocate): Handle them.
4715 (elf_hppa_relocate_insn): Likewise.
4716 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
4718 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
4720 * elfcode.h (elf_object_p): Preserve and clear abfd section
4721 information. Restore at error.
4723 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4725 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
4726 is empty, make sure that its rva also 0. NT loader dislikes
4729 2000-09-26 Steve Ellcey <sje@cup.hp.com>
4731 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
4734 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4736 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
4737 currently unused RELATIVE_DYNAMIC_RELOCS code.
4738 (hppa_discard_copies): Likewise.
4739 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
4740 comments. Don't check non-code output sections for stub grouping.
4742 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4744 * section.c (bfd_get_unique_section_name): Return NULL if
4747 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4749 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
4750 instruction sequence to actually work.
4751 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
4754 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
4756 * elf32-sh.c (sh_elf_relocate_section): Use
4757 _bfd_final_link_relocate to apply the relocation against a section
4758 symbol, when doing relocatable links.
4760 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4762 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
4764 (stub_hash_newfunc): Here too.
4765 (hppa_add_stub): And here.
4766 (elf32_hppa_link_hash_table): Remove stub_section_created,
4767 reloc_section_created, first_init_sec and first_fini_sec. Add
4769 (elf32_hppa_link_hash_table_create): Init to suit.
4770 (hppa_get_stub_entry): Add support for grouping stub sections.
4771 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
4772 section code. Index stub vars by section->id.
4773 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
4774 exit paths. Zap allocation of above removed vars. Refine
4777 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
4778 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
4779 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
4780 rather than pointer to bfd_link_info.
4781 (hppa_add_stub): Likewise.
4782 (final_link_relocate): Likewise.
4784 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
4786 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
4789 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
4791 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
4792 ld/emulparams/shelf.sh.
4794 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4796 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
4797 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
4798 * bfd-in2.h: Regenerate.
4800 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
4802 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
4803 LITUSE relocations incorrectly if -relax is specified on the ld
4804 command line and the displacement field of the load or store
4805 instruction is non-zero. (Patch by paul.winalski@compaq.com)
4807 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4809 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
4810 first_fini_sec here.
4811 (elf32_hppa_size_stubs): Instead correctly find the first .init
4812 and .fini section here.
4814 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
4816 * elf32-hppa.c (clobber_millicode_symbols): New function.
4817 (elf32_hppa_size_dynamic_sections): Call it.
4819 2000-09-14 Alan Modra <alan@linuxcare.com.au>
4821 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
4822 packed. Add plabel, plt_abs packed booleans.
4823 (hppa_link_hash_newfunc): Init new fields.
4824 (PLABEL_PLT_ENTRY_SIZE): Define.
4825 (hppa_stub_name): Use size_t len vars.
4826 (hppa_add_stub): Likewise.
4827 (elf32_hppa_build_stubs): Likewise.
4828 (hppa_build_one_stub): Kill some compiler warnings.
4829 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
4830 if dynamic linking. Munge the local plt offsets into
4831 local_got_refcounts. Set h->plabel for all global PLABELs. Use
4832 size_t len vars. Add assert for plabel addend.
4833 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
4834 (elf32_hppa_hide_symbol): New function.
4835 (elf_backend_hide_symbol): Define.
4836 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
4837 with h->plabel set. Don't make plt entries to have dynamic syms
4838 when they have been forced local. If plt entry is used by a
4839 plabel, make it PLABEL_PLT_ENTRY_SIZE.
4840 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
4841 Set up .plt offsets for local syms.
4842 (elf32_hppa_relocate_section): Initialise plt entries for local
4843 syms. Leave weak undefined plabels zero. Make global plabel
4844 relocs against function symbol, and leave the addend zero.
4845 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
4846 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
4847 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
4848 relocs instead of SEGREL32 for dynamic got relocs.
4849 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
4850 (elf_backend_got_header_size): Adjust.
4851 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
4853 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
4854 (hppa_type_of_stub): Use it instead of #if 0
4855 (hppa_discard_copies): Use it here too.
4856 (elf32_hppa_size_dynamic_sections): And here.
4858 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
4859 (elf32_hppa_link_hash_table_create): And here.
4860 (hppa_build_one_stub): And here. Instead keep track of stub
4861 offset using _raw_size.
4862 (elf32_hppa_size_stubs): Likewise.
4863 (elf32_hppa_build_stubs): Likewise.
4864 (hppa_size_one_stub): Likewise. Resize reloc section too.
4866 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
4867 first_fini_sec handling. Don't search for reloc section or set
4868 hplink->reloc_section_created here.
4869 (elf32_hppa_size_stubs): Instead search for reloc sections, and
4870 set reloc_section_created here.
4871 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
4872 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
4874 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
4876 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
4877 with `hplink->root.'.
4878 (elf32_hppa_check_relocs): Likewise.
4879 (elf32_hppa_gc_sweep_hook): Likewise.
4880 (elf32_hppa_adjust_dynamic_symbol): Likewise.
4881 (hppa_handle_PIC_calls): Likewise.
4882 (elf32_hppa_size_dynamic_sections): Likewise.
4883 (elf32_hppa_set_gp): Likewise.
4884 (elf32_hppa_relocate_section): Likewise.
4885 (elf32_hppa_finish_dynamic_symbol): Likewise.
4886 (elf32_hppa_finish_dynamic_sections): Likewise.
4888 From David Huggins-Daines <dhd@linuxcare.com>
4889 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
4890 defined weak symbols in shared links.
4891 (final_link_relocate): Calls to defined weak symbols in shared
4892 objects must go via import stubs, as the target might not be known
4895 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4897 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
4898 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
4899 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
4900 the original entries with EMPTY_HOWTOs, and added new ones to fill
4902 (sh_elf_info_to_howto): Make sure the new gap isn't used.
4903 (sh_elf_relocate_section): Likewise.
4905 2000-09-13 Anders Norlander <anorland@acc.umu.se>
4907 * cpu-mips.c (arch_info_struct): Add mips:4K
4908 * bfd-in2.h (bfd_mach_mips4K): New define.
4909 * archures.c: Add bfd_mach_mips4K to comment.
4910 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
4911 E_MIPS_ARCH_2 for bfd_mach_mips4K.
4913 2000-09-13 Marco Franzen <marcof@thyron.com>
4915 * som.c (som_write_symbol_strings): Do not used fixed buffers,
4916 use size_t as a counter.
4917 (som_write_space_strings): Similarly.
4919 2000-09-12 Jason Eckhardt <jle@cygnus.com>
4921 * elf32-i860.c (elf32_i860_relocate_pc26): New function
4923 (elf32_i860_relocate_section): Invoke new function from here.
4925 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4927 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
4930 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4932 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
4933 target section name instead of dumping core when the target symbol is
4936 2000-09-09 Kazu Hirata <kazu@hxi.com>
4938 * riscix.c: Remove DEFUN.
4940 2000-09-08 Nick Clifton <nickc@redhat.com>
4942 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
4943 initialise flags in output bfd if the input bfd is the default
4944 architecture with the default flags.
4946 2000-09-08 Kazu Hirata <kazu@hxi.com>
4948 * archive.c: Fix formatting.
4949 * coff-arm.c: Likewise.
4950 * doc/chew.c: Likewise.
4952 2000-09-08 Alan Modra <alan@linuxcare.com.au>
4954 * section.c (bfd_get_unique_section_name): Put a dot before the
4957 2000-09-07 Kazu Hirata <kazu@hxi.com>
4959 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
4960 * elf.c: Fix formatting.
4962 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
4964 * config.bfd (sh-*-linux*): Added.
4965 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
4966 * targets.c: Declare them.
4967 * elf32-sh-lin.c: New file.
4968 * Makefile.am: Compile it.
4969 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
4970 * configure, Makefile.in: Rebuilt.
4972 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
4974 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
4975 pseduo-section when determining where the TOC ends.
4977 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
4978 output x_tvndx as it is only two bytes wide.
4980 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
4981 reloc is 26 or 32 bits wide.
4983 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
4984 for relocs that don't change anything. Also look at the full
4987 2000-09-06 Philip Blundell <philb@gnu.org>
4989 * config.bfd (arm*-*-uclinux*): New target.
4991 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4993 * configure: Rebuilt with new libtool.m4.
4995 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4997 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
4998 word for variable name.
4999 * bfd-in2.h: Regenerate.
5001 2000-09-05 Nick Clifton <nickc@redhat.com>
5003 * config.in: Regenerate.
5004 * libbfd.h: Regenerate.
5005 * po/bfd.pot: Regenerate.
5006 * doc/bfdint.texi: Remove CVS date string - it foils compares with
5009 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
5011 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
5013 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5015 Shared library and PIC support.
5016 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
5017 (GOT_ENTRY_SIZE): New.
5018 (ELF_DYNAMIC_INTERPRETER): New.
5019 (STUB_SUFFIX): Define.
5020 (LONG_BRANCH_PIC_IN_SHLIB): Define.
5021 (RELATIVE_DYNAMIC_RELOCS): Define.
5022 (enum elf32_hppa_stub_type): New.
5023 (struct elf32_hppa_stub_hash_entry): Rename offset to
5024 stub_offset. Add a number of new fields.
5025 (struct elf32_hppa_link_hash_entry): New.
5026 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
5028 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
5029 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
5030 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
5032 (hppa_link_hash_newfunc): New function.
5033 (elf32_hppa_link_hash_table_create): Use above function. Init new
5035 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
5036 instead of addend, and remove sym_name from args. Don't use
5037 symbol name for local syms, instead use sym index.
5038 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
5039 stub type rather than size. Pass in hash and handle import stub
5040 case. Also pass in reloc instead of offset so we can calculate
5041 PCREL22F and PCREL12F branches properly.
5042 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
5043 import and export stubs too.
5044 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
5045 import and export stub sizing.
5046 (elf32_hppa_check_relocs): New function.
5047 (elf32_hppa_adjust_dynamic_symbol): New function.
5048 (hppa_discard_copies): New function.
5049 (elf32_hppa_size_dynamic_sections): New function.
5050 (elf_backend_size_dynamic_sections): Define.
5051 (elf32_hppa_finish_dynamic_symbol): New function.
5052 (elf_backend_finish_dynamic_symbol): Define.
5053 (elf32_hppa_size_stubs): Stash params in link hash table, and move
5054 some local vars into the link hash table too. For shared links,
5055 trundle over function syms, generating export stubs. Handle
5056 PCREL22F branches. Break out stub creation code from here..
5057 (hppa_add_stub): .. to here. New function.
5058 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
5059 call the bfd linker. Use elf_gp to record global pointer.
5060 Calculate a value from sections if $global$ is missing.
5061 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
5062 (elf32_hppa_gc_mark_hook): New function.
5063 (elf_backend_gc_mark_hook): Define.
5064 (elf32_hppa_gc_sweep_hook): New function.
5065 (elf_backend_gc_sweep_hook): Define.
5066 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
5067 Add rel to args, and remove howto, input_bfd, offset, addend,
5068 sym_name as we can recalculate these locally. Handle calls to
5069 dynamic objects, extra PIC relocs, PCREL22F branches. Change
5070 handling of undefined weak syms. Check that stubs are in range.
5071 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
5072 message on hitting a DPREL21L reloc that needs fixing. Subtract
5073 off PC for PCREL14F. Break out code that does a stub lookup from
5075 (hppa_get_stub_entry): ..to here. New function.
5076 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
5077 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
5079 (elf32_hppa_finish_dynamic_sections): New function.
5080 (elf_backend_finish_dynamic_sections): Define.
5081 (elf_backend_final_write_processing) Define.
5082 (hppa_handle_PIC_calls): New function.
5083 (elf32_hppa_build_stubs): Call it. Pass link_info to
5084 hppa_build_one_stub.
5085 (elf32_hppa_create_dynamic_sections): New function
5086 to create .plt and .got then set .plt flags correctly.
5087 (elf_backend_create_dynamic_sections): Define.
5088 (elf32_hppa_object_p): New function.
5089 (elf_backend_object_p): Define.
5090 (elf32_hppa_elf_get_symbol_type): New function.
5091 (elf_backend_get_symbol_type): Define.
5092 (elf_backend_can_gc_sections): Define.
5093 (elf_backend_want_got_plt): Define.
5094 (elf_backend_plt_alignment): Set to 2.
5095 (elf_backend_plt_readonly): Define.
5096 (elf_backend_want_plt_sym): Define.
5097 (elf_backend_got_header_size): Reserve one entry.
5099 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
5100 (elf32_hppa_size_stubs): Pass in multi_subspace.
5101 (elf32_hppa_set_gp): Declare.
5103 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
5104 (bfd_get_unique_section_name): New function.
5105 * bfd-in2.h: Regenerate.
5107 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
5108 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
5111 From David Huggins-Daines <dhd@linuxcare.com>
5112 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
5113 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
5114 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
5115 been updated in finish_dynamic_symbol before modifying function
5118 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
5119 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
5120 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
5121 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
5122 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
5123 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
5124 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
5125 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
5127 From David Huggins-Daines <dhd@linuxcare.com>
5128 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
5129 style of local labels as well.
5131 2000-09-03 Philip Blundell <philb@gnu.org>
5133 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
5134 references to undefined symbols in debugging sections.
5136 2000-09-02 H.J. Lu <hjl@gnu.org>
5138 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5139 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
5140 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
5143 2000-09-02 Jason Eckhardt <jle@cygnus.com>
5145 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
5146 (elf32_i860_is_local_label_name): New function and prototype.
5148 2000-09-02 Nick Clifton <nickc@redhat.com>
5150 * configure.in: Increase version number to 2.10.91.
5151 * configure: Regenerate.
5152 * aclocal.m4: Regenerate.
5153 * config.in: Regenerate.
5154 * po/bfd.pot: Regenerate.
5156 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5158 * elf.c (_bfd_elf_make_section_from_shdr): Add
5159 .gnu.linkobce.wi. to the list of debug section names.
5161 2000-09-02 Nick Clifton <nickc@redhat.com>
5163 * dwarf2.c (find_debug_info): New function: Locate a section
5164 containing dwarf2 debug information.
5165 (bfd_dwarf2_find_nearest_line): Find all sections containing
5166 debug information and include them in the stash.
5168 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5170 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
5171 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
5172 (sh_reloc_map): Add new relocs.
5173 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
5174 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
5175 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
5176 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
5178 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
5179 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
5180 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
5181 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
5182 New array constants.
5183 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
5185 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
5186 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
5187 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
5188 elf_sh_plt_reloc_offset): Define.
5189 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
5190 elf_sh_link_hash_table): New structs.
5191 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
5192 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
5194 (elf_backend_create_dynamic_sections,
5195 bfd_elf32_bfd_link_hash_table_create,
5196 elf_backend_adjust_dynamic_symbol,
5197 elf_backend_size_dynamic_sections,
5198 elf_backend_finish_dynamic_symbol,
5199 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
5200 elf_backend_plt_readonly, elf_backend_want_plt_sym,
5201 elf_backend_got_header_size, elf_backend_plt_header_size):
5203 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5204 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
5206 * bfd-in2.h, libbfd.h: Rebuilt.
5208 2000-09-01 Alan Modra <alan@linuxcare.com.au>
5210 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
5213 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
5215 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
5216 not initialized, set them to indicate the SH1 instruction set.
5218 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5220 * acinclude.m4: Include libtool and gettext macros from the
5222 * aclocal.m4, configure: Rebuilt.
5224 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
5226 * elf.c: Eliminate references to __sparcv9 macro; replace with
5227 autoconf variables HAVE_PSINFO32_T etc.
5228 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
5229 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
5231 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
5232 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
5233 * aclocal.m4: Ditto.
5234 * configure: Regenerate.
5236 2000-08-27 Alan Modra <alan@linuxcare.com.au>
5238 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
5239 for any shared link, not just shared -Bsymbolic.
5240 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
5241 any shared link, and pass link info to it.
5242 (elf_i386_size_dynamic_sections): Update comment.
5243 (elf_i386_discard_copies): Modify to discard relocs for symbols
5244 that have been forced local.
5245 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
5246 that have been forced local.
5248 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
5250 * elflink.h (elf_link_add_object_symbols): Allow common
5251 symbols to have an alignment of 1 if explicitly requested, and
5252 not overridden by other definitions.
5254 2000-08-22 Doug Kwan <dkwan@transmeta.com>
5256 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
5257 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
5259 2000-08-22 H.J. Lu <hjl@gnu.org>
5261 * elf-bfd.h (elf_link_hash_table): Add runpath.
5263 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
5264 * bfd-in2.h: Rebuilt.
5266 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
5267 "runpath" field to NULL.
5268 (bfd_elf_get_runpath_list): New function.
5270 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
5273 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
5275 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
5276 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
5277 explicitly. Improve validation of r_type.
5279 2000-08-21 H.J. Lu <hjl@gnu.org>
5281 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
5282 dynamic allocated content space. Add a comment to remind us that
5283 one day this ought to be fixed.
5284 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5285 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5286 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5288 2000-08-21 Jason Eckhardt <jle@cygnus.com>
5290 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
5291 field with the newly relocated value instead of adding it to the
5292 existing immediate field.
5293 (elf32_i860_relocate_splitn): Likewise.
5294 (elf32_i860_relocate_highadj): Likewise.
5296 2000-08-16 Jason Eckhardt <jle@cygnus.com>
5298 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
5299 was previously just a stub).
5301 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
5303 * elflink.c (_bfd_elf_create_got_section): Don't abort().
5305 (_bfd_elf_create_dynamic_sections): Likewise.
5307 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
5309 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
5310 for undefined symbols to be the beginning of the section.
5312 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
5313 four extra entries at the beginning of the .rela.plt section.
5314 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
5315 section to account for the four reserved entries in the .plt section.
5317 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
5319 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
5320 to the list of NOPs we recognize after a branch-and-link.
5321 Use the ori NOP when one is needed.
5323 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
5326 2000-08-14 Jim Wilson <wilson@cygnus.com>
5328 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
5329 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
5330 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
5333 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
5335 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
5337 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5339 * elf32-i860.c (elf32_i860_relocate_section): New function.
5340 (i860_final_link_relocate): New function.
5341 (elf32_i860_relocate_splitn): New function.
5342 (elf32_i860_relocate_pc16): New function.
5343 (elf32_i860_relocate_highadj): New function.
5344 (elf32_i860_howto): Minor adjustments to some relocations.
5345 (elf_info_to_howto_rel): Define.
5346 (elf_backend_relocate_section): Define.
5348 2000-08-10 Nick Clifton <nickc@cygnus.com>
5350 * elf32-arm.h: Fix formatting.
5352 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
5354 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
5356 2000-08-08 Jason Eckhardt <jle@cygnus.com>
5358 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
5360 2000-08-07 Kazu Hirata <kazu@hxi.com>
5362 * ieee.c (ieee_write_debug_part): Rewrite a comment.
5363 * elf64-ia64.c: Fix a typo.
5365 2000-08-05 Jason Eckhardt <jle@cygnus.com>
5367 * elf32-i860.c (elf32_i860_howto_table): New structure.
5368 (lookup_howto): New function.
5369 (elf32_i860_reloc_type_lookup): New function.
5370 (elf32_i860_info_to_howto_rela): New function.
5371 (elf_code_to_howto_index): New structure.
5372 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
5373 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
5374 elf32_i860_reloc_type_lookup.
5376 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
5378 * som.c (struct fixup_format): Constify `format'.
5379 (som_hppa_howto_table): Use SOM_HOWTO macro.
5380 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
5381 (som_bfd_reloc_type_lookup): Likewise.
5382 (compare_subspaces): Remove unused `count1', `count2'.
5383 (som_begin_writing): Remove unused `total_reloc_size'.
5384 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
5385 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
5386 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
5387 (som_find_nearest_line): Decorate unused parameter(s).
5388 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
5389 (som_bfd_link_split_section): Likewise.
5391 2000-08-03 Nick Clifton <nickc@cygnus.com>
5393 * section.c: Restore backed out code.
5394 * elf.c: Restore backed out code.
5395 (copy_private_bfd_data): Fix bug preventing stipped dynamic
5396 binaries from working.
5397 * bfd-in2.h: Regenerate.
5399 2000-08-03 H.J. Lu <hjl@gnu.org>
5401 * section.c: Back out the change made by Nick Clifton
5402 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
5404 * bfd-in2.h: Likewise.
5407 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
5409 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
5411 2000-07-31 Jason Eckhardt <jle@cygnus.com>
5413 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
5414 * bfd-in2.h, libbfd.h: Regenerate.
5416 2000-07-31 Nick Clifton <nickc@cygnus.com>
5418 * section.c (struct sec): Add new boolean field 'segment_mark'.
5419 (STD_SECTION): Initialise new field to zero.
5421 * bfd-in2.h: Regenerate.
5423 * elf.c (copy_private_bfd_data): Reorganise section to segment
5424 mapping to cope with moved sections requiring new segments,
5425 and overlapping segments.
5426 (SEGMENT_END): New macro: Return the end address of a segment.
5427 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
5428 contains a section by comparing their VMA addresses.
5429 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
5430 contains a section by comparing their LMA addresses.
5431 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
5432 section should be included in a segment.
5433 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
5434 follows another in memory.
5435 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
5438 2000-07-22 Jason Eckhardt <jle@cygnus.com>
5440 * cpu-i860.c: Added comments.
5442 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
5443 bfd_elf32_i860_little_vec.
5444 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
5445 (ELF_MAXPAGESIZE): Changed to 4096.
5447 * targets.c (bfd_elf32_i860_little_vec): Declaration of
5449 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
5451 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
5452 config for little endian elf32 i860.
5453 (targ_defvec): Define for the new config above
5454 as "bfd_elf32_i860_little_vec".
5455 (targ_selvecs): Define for the new config above
5456 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
5458 * configure.in (bfd_elf32_i860_little_vec): Added recognition
5461 * configure: Regenerated.
5463 2000-07-27 H.J. Lu <hjl@gnu.org>
5465 * elflink.h (elf_merge_symbol): Take one more argument,
5466 dt_needed, to indicate if the symbol comes from a DT_NEEDED
5467 entry. Don't overide the existing weak definition if dt_needed
5469 (elf_link_add_object_symbols): Pass dt_needed to
5470 elf_merge_symbol ().
5472 2000-07-27 Nick Clifton <nickc@cygnus.com>
5474 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
5477 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
5479 * configure.host (*-*-aix*): AIX has 'long long' always.
5481 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
5482 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
5483 (xcoff_write_archive_contents_big): Don't update the offset
5484 of the symbol table, xcoff_write_armap will do it.
5486 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
5488 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
5489 of dynobj for SGI_COMPAT checks.
5491 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5493 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
5494 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
5495 * bfd-in2.h: Regenerate.
5497 2000-07-21 Nick Clifton <nickc@cygnus.com>
5499 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
5500 range symbol indices in relocs and issue an error message.
5502 2000-07-20 H.J. Lu <hjl@gnu.org>
5504 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
5505 info->new_dtags when setting DT_FLAGS_1. It will only be set
5506 by the new linker options. It shouldn't break anything.
5508 2000-07-20 H.J. Lu <hjl@gnu.org>
5510 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
5511 only if info->new_dtags is true.
5513 2000-07-20 H.J. Lu <hjl@gnu.org>
5515 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
5516 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
5518 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5520 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
5521 (ALL_MACHINES_CFILES): Add cpu-cris.c.
5522 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
5523 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
5524 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
5525 * Makefile.in: Rebuild.
5526 * aclocal.m4: Rebuild.
5527 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
5528 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
5529 (bfd_cris_arch): Declare.
5530 (bfd_archures_list): Add bfd_cris_arch.
5531 * bfd-in2.h: Rebuild.
5532 * config.bfd: (cris-*-*): New target.
5533 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
5534 * configure: Rebuild.
5535 * elf.c (prep_headers): Add bfd_arch_cris.
5536 * libbfd.h: Rebuild.
5537 * libaout.h (enum machine_type): Add M_CRIS.
5538 * reloc.c: Add CRIS relocations.
5539 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
5540 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
5541 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
5542 * po/POTFILES.in, po/bfd.pot: Regenerate.
5544 2000-07-19 H.J. Lu <hjl@gnu.org>
5546 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
5547 DF_TEXTREL if DT_TEXTREL is set.
5548 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
5549 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
5550 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5551 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
5552 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
5553 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5554 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
5555 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5556 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
5557 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
5559 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
5560 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
5562 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
5564 2000-07-19 H.J. Lu <hjl@gnu.org>
5566 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
5567 * bfd-in2.h: Rebuild.
5569 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
5570 (elf_dt_soname): New.
5572 * elf.c (bfd_elf_set_dt_needed_soname): New.
5574 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
5575 entry if the shared object loaded by DT_NEEDED is used to
5576 resolve the reference in a regular object.
5578 2000-07-19 H.J. Lu <hjl@gnu.org>
5580 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
5581 DT_DEPAUDIT and DT_AUDIT as strings.
5583 2000-07-19 Nick Clifton <nickc@cygnus.com>
5585 * format.c: Fix formatting.
5587 2000-07-19 H.J. Lu <hjl@gnu.org>
5589 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
5591 2000-07-19 H.J. Lu <hjl@gnu.org>
5593 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
5594 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
5595 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
5596 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
5597 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
5598 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
5599 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
5601 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
5603 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
5604 renamed functions from here...
5605 (assign_section_numbers): Use renamed functions.
5606 (prep_headers): Use renamed functions.
5608 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
5609 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
5610 * bfd-in2.h: Regenerate.
5612 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
5614 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
5615 parenthesis in if statement.
5617 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
5619 Enable the support for Traditional MIPS.
5620 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
5621 return ict_none appropriately for traditional mips targets.
5622 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
5623 (STUB_MOVE): Conditionalize for traditonal mips.
5624 (STUB_LI16): Likewise.
5625 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
5626 room for RTPROC header.
5627 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
5628 the permission for the PT_DYNAMIC as read, write and execute.
5629 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
5630 for traditonal mips.
5631 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
5632 _DYNAMIC_LINKING for traditonal mips.
5633 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
5634 in case of traditonal mips.
5635 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
5636 entry is required. For a function if PLT is not required then set the
5637 corresponding hash table entry to 0.
5638 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
5640 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
5641 shared object set the value to 0.
5642 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
5643 _DYNAMIC_LINKING for traditonal mips.
5644 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
5645 for traditonal mips.
5647 2000-07-15 H.J. Lu <hjl@gnu.org>
5649 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
5651 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5653 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
5654 out a structure that is BFD_IN_MEMORY.
5656 2000-07-11 Alan Modra <alan@linuxcare.com.au>
5658 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
5659 bfd pointer. Print section id instead of bfd pointer for local
5660 syms. Prefix addend with `+' for global syms as well as local.
5661 Correct calculation of name component lengths.
5662 (elf64_hppa_check_relocs): Update call to get_dyn_name.
5664 From David Huggins-Daines <dhd@linuxcare.com>
5665 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
5666 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
5667 (elf64_hppa_modify_segment_map): Likewise.
5669 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5671 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
5672 addresses to be "naturally" sign extended. Return -1 if unknown.
5673 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
5674 * bfd-in2.h: Regenerate.
5676 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5678 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
5679 and ECOF_SIGNED_64 to list ways to extract an offset.
5680 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
5681 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
5683 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
5684 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
5686 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5688 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
5689 bfd_get_start_address.
5690 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
5691 (elf_swap_ehdr_out): Ditto.
5693 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
5695 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
5696 compatibility with older binutils.
5698 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5700 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
5701 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
5703 From Ryan Bradetich <rbradetich@uswest.net>
5704 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
5705 (parse_line_table): Ditto.
5706 (_bfd_dwarf1_find_nearest_line): Ditto.
5707 * syms.c (cmpindexentry): Remove extra `*' from params.
5709 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
5711 * elf32-mips.c (sort_dynamic_relocs): New Function.
5712 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
5713 via qsort to sort the dynamic relocations in increasing r_symndx
5716 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5718 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
5719 ATTRIBUTE_UNUSED to unused args.
5720 (get_opd): Likewise.
5721 (get_plt): Likewise.
5722 (get_dlt): Likewise.
5723 (get_stub): Likewise.
5724 (elf64_hppa_adjust_dynamic_symbol): Likewise.
5725 (elf64_hppa_link_output_symbol_hook): Likewise.
5726 (elf64_hppa_check_relocs): Delete unused var.
5727 (elf64_hppa_size_dynamic_sections): Likewise.
5728 (elf64_hppa_finalize_opd): Likewise.
5729 (elf64_hppa_finalize_dynreloc): Likewise.
5730 (elf64_hppa_modify_segment_map): Likewise.
5731 (elf64_hppa_finish_dynamic_sections): Likewise.
5733 * elf-hppa.h (elf_hppa_final_write_processing): Add
5734 ATTRIBUTE_UNUSED to unused args.
5735 (elf_hppa_final_link_relocate): Likewise.
5736 (elf_hppa_record_segment_addrs): Add paretheses.
5737 (elf_hppa_relocate_section): Constify dyn_name.
5739 From David Huggins-Daines <dhd@linuxcare.com>
5740 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
5741 rearrange case statement so that it gets preferred to 32-bit ones.
5743 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
5744 asection->id instead of address of asection structure.
5745 (elf32_hppa_size_stubs): Likewise.
5747 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
5748 for .init* and .fini*.
5750 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
5751 and addends used in stub names to 32 bits.
5752 (elf32_hppa_size_stubs): Likewise.
5754 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
5755 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
5756 not bfd_put_64. Fix minor comment typo and formatting.
5758 Changes to create multiple linker stubs, positioned immediately
5759 before the section where they are required.
5760 * elf32-hppa.c: Don't include hppa_stubs.h.
5761 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
5762 (elf32_hppa_stub_hash_table): Delete.
5763 (elf32_hppa_link_hash_entry): Delete.
5764 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
5765 stub_hash_table, and store the struct here rather than a pointer.
5766 Delete output_symbol_count. Add offset array. Change
5767 global_value to a bfd_vma.
5768 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
5769 (elf32_hppa_stub_hash_traverse): Delete.
5770 (elf32_hppa_name_of_stub): Delete.
5771 (elf32_hppa_link_hash_lookup): Delete.
5772 (elf32_hppa_link_hash_traverse): Delete.
5773 (elf32_hppa_stub_hash_table_init): Delete.
5774 (elf32_hppa_size_of_stub): Pass input section and offset rather
5775 than location and calculate location here. Don't pass name as all
5776 stubs are now the same size.
5777 (elf32_hppa_stub_hash_newfunc): Init new fields.
5778 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
5780 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
5781 comparing against ints. Rewrite stub handling code.
5782 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
5783 Case enums to int before comparing against ints. Remove
5784 bfd_reloc_dangerous case.
5785 (elf32_hppa_build_one_stub): Rewrite.
5786 (elf32_hppa_size_one_stub): New function.
5787 (elf32_hppa_build_stubs): Rewrite.
5788 (elf32_hppa_size_stubs): Pass in linker call-back functions.
5789 Rewrite stub-handling specific code.
5791 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
5793 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
5795 * hppa_stubs.h: Delete.
5796 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
5797 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
5798 * Makefile.in: Regenerate.
5800 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
5803 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
5805 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
5806 and section name for bfd_reloc_notsupported error message.
5807 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
5808 bfd_reloc_notsupported.
5809 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
5811 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
5812 undefined weak symbols for all relocs.
5813 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
5814 offsets are relative to one past the delay slot.
5815 (elf32_hppa_size_stubs): Account for reloc addend when calculating
5816 branch destination. Put addend into stub name too.
5817 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
5818 adjust by 8 when deciding whether a linker stub is needed. Put
5819 addend into stub name as for above.
5821 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
5822 various args and vars.
5823 (elf32_hppa_bfd_final_link_relocate): Here too.
5824 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
5825 inner block var to avoid shadowing.
5827 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
5829 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
5830 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
5831 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
5833 * libhppa.h: Change practically all unsigned ints to plain ints.
5834 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
5837 From Ryan Bradetich <rbradetich@uswest.net>
5838 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
5839 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
5841 From David Huggins-Daines <dhd@linuxcare.com>
5842 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
5843 to the new OP_* ones.
5845 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
5846 error exit. Bail out earlier on plabel relocs that we aren't
5847 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
5848 string, and then don't free our copy.
5849 (elf32_hppa_build_one_stub): Make insn unsigned int.
5851 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
5852 available with BL, not BE and BLE.
5854 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
5855 code for elf arg relocs.
5856 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
5857 argument with elf_link_hash_entry h. Handle undefined weak
5858 symbols. Move $global$ lookup from here...
5859 (elf32_hppa_relocate_section): ...to here. Return correct error
5860 message for non-handled relocs.
5861 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
5862 wrong test was -0x3ffff to +0x40000.
5864 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
5865 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
5866 Handle them as such.
5867 (elf_hppa_relocate_insn): Fix a typo.
5869 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
5870 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
5871 assemble_17, assemble_21): Delete.
5872 Supply defines for all 64 possible opcodes.
5873 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
5874 formats. Handle COMICLR.
5875 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
5878 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
5879 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
5880 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
5882 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
5883 the local syms - did this code get deleted accidentally? Ignore
5884 undefined and undefweak syms.
5886 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
5887 block. Use it instead of elf64_hppa_hash_table (info).
5888 (elf_hppa_final_link_relocate): Use hppa_info instead of
5889 elf64_hppa_hash_table (info).
5891 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
5892 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
5893 (hppa_rebuild_insn): Mask immediate bits here instead.
5894 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
5896 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5898 * section.c (struct sec): Add id field. Tidy comment formatting.
5899 (bfd_make_section_anyway): Set id.
5900 (STD_SECTION): Init id too.
5901 Change CONST to const throughout.
5902 * archures.c (bfd_arch_info): Tidy comment.
5903 (bfd_arch_list): Change a CONST to const.
5904 * libbfd-in.h: Tidy comments and replace CONST with const.
5905 * elf-bfd.h: Likewise.
5906 * libbfd.h: Regenerate.
5907 * bfd-in2.h: Regenerate.
5908 * libcoff.h: Regenerate.
5910 2000-07-07 DJ Delorie <dj@redhat.com>
5912 * archive.c (_bfd_write_archive_contents): Add an informative
5915 2000-07-06 Kazu Hirata <kazu@hxi.com>
5917 * srec.c: Fix formatting.
5919 2000-06-05 DJ Delorie <dj@redhat.com>
5923 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
5925 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
5926 value of PC-relative offsets.
5928 2000-07-03 Jim Wilson <wilson@cygnus.com>
5930 * elf64-alpha.c (alpha_elf_size_info): New.
5931 (elf_backend_size_info): Define to alpha_elf_size_info.
5932 * elfcode.h (elf_size_info): Change hash bucket size to 4.
5934 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
5936 * elf32-mips.c: Include elf32-target.h again for the traditional
5939 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
5941 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
5942 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
5943 (avr_info_to_howto_rela): Likewise.
5944 (elf32_avr_gc_mark_hook): Likewise.
5945 (elf32_avr_gc_sweep_hook): Likewise.
5946 (elf32_avr_relocate_section): Likewise.
5948 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
5950 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
5951 an external symbol for a non-shared, non-relocatable link.
5953 2000-07-03 Nick Clifton <nickc@redhat.com>
5955 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
5956 is an external symbol.
5957 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
5960 2000-07-03 Kazu Hirata <kazu@hxi.com>
5962 * reloc16.c: Fix formatting.
5964 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5966 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
5967 to add a new target for traditional mips i.e
5968 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
5969 * configure.in: Likewise.
5970 * configure: Rebuild.
5971 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
5973 (bfd_elf32_tradlittlemips_vec): Likewise.
5974 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
5975 to see that elfNN_bed does not get redefined even if the target file
5976 is included twice for a chip. See elf32-mips.c.
5978 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5980 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5981 (CLEANFILES): Add DEPA.
5982 * Makefile.in: Regenerate.
5984 2000-06-30 DJ Delorie <dj@cygnus.com>
5986 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
5987 can't assume the PE header is at 0x80.
5989 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
5991 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
5993 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
5995 * go32stub.h: Update stub.
5997 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5999 * archures.c (bfd_mach_avr5): Define.
6000 * bfd-in2.h (bfd_mach_avr5): Define.
6001 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
6002 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
6003 (compatible): Update comment. Add missing test.
6004 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
6005 for avr2 and avr4. Simplify 8K wrap code.
6006 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
6007 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
6009 2000-06-26 Kazu Hirata <kazu@hxi.com>
6011 * coff-h8300.c: Fix formatting.
6012 * cpu-h8300.c: Likewise.
6014 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
6016 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
6017 for local symbols whose names are unknown.
6019 2000-06-22 Alan Modra <alan@linuxcare.com.au>
6021 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
6023 * Makefile.in: Regenerate.
6024 * doc/Makefile.in: Regenerate.
6026 2000-06-20 H.J. Lu <hjl@gnu.org>
6028 * Makefile.am: Rebuild dependency.
6029 * Makefile.in: Rebuild.
6031 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6033 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
6034 (elf_backend_copy_indirect_symbol): Map to the new function.
6036 2000-06-20 Alan Modra <alan@linuxcare.com.au>
6038 * archive.c (normalize): Correct pointer comparison when checking
6040 (bfd_bsd_truncate_arname): Likewise.
6041 (bfd_gnu_truncate_arname): Likewise.
6043 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
6045 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
6046 sections elf_{text,data}_{section,symbol}.
6047 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
6048 (_bfd_mips_elf_hide_symbol): New function.
6049 (elf_backend_hide_symbol): Map to the new function.
6050 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
6051 definitions of mips_elf_{text,data}_{section,symbol}.
6052 (mips_elf_local_relocation_p): Try to find the direct symbol
6053 based on new check_forced argument.
6054 (mips_elf_calculate_relocation): Use new version of
6055 mips_elf_local_relocation_p.
6056 (mips_elf_relocate_section): Likewise.
6057 (_bfd_mips_elf_relocate_section): Likewise.
6058 (mips_elf_sort_hash_table): Only assert that have enough GOT
6060 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
6061 entry if the relocation based on the new external argument.
6062 (mips_elf_create_dynamic_relocation): Assert that we have a
6063 section contents allocated where we can swap out the dynamic
6065 (mips_elf_calculate_relocation): Find the real hash-table entry
6066 correctly by using h->root.root.type. Only create a dynamic
6067 relocation entry if the symbol is defined in a shared library.
6068 Create an external GOT entry for the GOT16 relocation if the
6069 symbol was forced local.
6070 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
6071 dynamic index if the symbol was forced local.
6073 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6075 * elf32-mips.c: Fix typos in comments.
6077 2000-06-19 Mark Kettenis <kettenis@gnu.org>
6079 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
6082 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6084 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
6085 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
6086 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
6087 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
6088 (bfd_elf32_m68hc11_vec): Likewise.
6089 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
6090 Supports 68hc11 & 68hc12 at the same time.
6091 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
6093 (bfd_elf32_m68hc11_vec): Likewise.
6094 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
6095 * archures.c (bfd_m68hc12_arch): Define and register in global list
6096 (bfd_m68hc11_arch): Likewise.
6097 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
6098 BFD_RELOC_M68HC11_3B): Define.
6099 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
6100 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
6102 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
6104 * elf_bfd.h (struct elf_backend_data): Add info argument to
6105 elf_backend_hide_symbol.
6106 (_bfd_elf_link_hash_hide_symbol): Likewise.
6107 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
6108 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
6109 * elflink.h (elf_link_add_object_symbols): Likewise.
6110 (elf_link_assign_sym_version): Likewise.
6112 2000-06-18 H.J. Lu <hjl@gnu.org>
6114 * coff-i386.c (coff_i386_reloc): Don't return in case of
6115 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
6116 Compensate PE relocations when linking with non-PE object
6117 files to generate a non-PE executable.
6119 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
6121 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
6122 GOT entries if we're doing a static link or -Bsymbolic link.
6124 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6126 * elflink.h (elf_link_adjust_relocs): Check for and call backend
6127 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
6129 (elf_link_output_relocs): Likewise.
6130 (elf_reloc_link_order): Likewise.
6132 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6134 * archures.c (enum bfd_architecture): #define constants for
6135 PowerPc and RS6000 machine numbers.
6136 * bfd-in2.h: Regenerate.
6137 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
6138 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
6139 and RS6000 machine numbers using #defined constants from
6141 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
6142 machine numbers using #defined constants from archures.c. Add
6143 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
6144 64-bit words in 620 entry.
6145 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
6147 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
6149 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
6151 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
6152 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
6153 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
6155 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6157 * bfd-in.h (bfd_family_coff): Define.
6158 * bfd-in2.h: Regenerate.
6159 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
6160 coff_find_nearest_line): Check COFFness using bfd_family_coff()
6161 instead of bfd_target_coff_flavour.
6162 * cofflink.c (_bfd_coff_final_link): Likewise.
6163 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
6164 exclude XCOFF files.
6165 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6167 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
6168 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
6169 * xcofflink.c (XCOFF_XVECP): Delete.
6170 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
6171 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
6172 bfd_xcoff_record_link_assignment,
6173 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
6174 check for bfd_target_xcoff_flavour.
6176 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6178 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
6180 (read_hdr): New function.
6181 (rs6000coff_core_p): Store mstsave or __context64 struct instead
6182 of trying to extract individual registers. Set abfd->arch_info
6183 to match the architecture that created the core file.
6184 (rs6000coff_get_section_contents): Delete.
6185 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
6187 2000-06-14 H.J. Lu <hjl@gnu.org>
6189 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
6192 2000-06-13 H.J. Lu <hjl@gnu.org>
6194 * configure: Regenerate.
6196 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
6198 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
6201 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6203 * configure.in (VERSION): Update to show this is the CVS mainline.
6205 2000-06-07 Alan Modra <alan@linuxcare.com.au>
6207 * elf32-d10v.c: Include elf/d10v.h
6208 (enum reloc_type): Delete.
6209 * elf32-d30v.c: Include elf/d30v.h
6210 (enum reloc_type): Delete.
6212 * Makefile.am: Run "make dep-am" to regenerate dependencies.
6213 * Makefile.in: Regenerate.
6215 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
6216 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
6217 move HOWTOs into elf_howto_table.
6218 (R_386_standard, R_386_ext_offset): Define.
6219 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
6220 (elf_i386_reloc_type_lookup): Modify calculation of index into
6221 elf_howto_table since we've removed the padding.
6222 (elf_i386_info_to_howto_rel): Likewise.
6223 (elf_i386_relocate_section): Likewise.
6225 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
6227 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
6229 2000-06-05 H.J. Lu <hjl@gnu.org>
6231 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
6232 an error when seeing an undefined symbol with hidden/internal
6233 attribute. It is handled in *_relocate_section ().
6235 2000-06-05 H.J. Lu <hjl@gnu.org>
6237 * elflink.h (elf_fix_symbol_flags): Follow the link for the
6238 indirect symbol for the ELF_LINK_NON_ELF bit.
6239 (elf_link_output_extsym): Don't output the indirect symbol even
6240 if the ELF_LINK_NON_ELF bit is set.
6242 2000-06-01 J.T. Conklin <jtc@redback.com>
6244 * config.bfd (i[3456]86-*-netbsdelf*): New target.
6245 (i[3456]86-*-netbsdaout*): New target.
6246 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
6247 (i[3456]86-*-openbsd*): Likewise.
6249 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
6251 * trad-core.c: From hpux-core.c, include <dirent.h> or
6252 <sys/ndir.h> when possible.
6254 2000-05-31 Ulrich Drepper <drepper@redhat.com>
6256 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
6257 definitions. We must not assume they are sorted in the file
6258 according to their index numbers.
6260 2000-05-31 Alan Modra <alan@linuxcare.com.au>
6262 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
6263 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
6264 R_PARISC_DIR17F are for absolute branches; Handle them as such.
6266 2000-05-30 Nick Clifton <nickc@cygnus.com>
6268 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
6269 80960CA, 80960MC as valid machine names.
6271 2000-05-30 H.J. Lu <hjl@gnu.org>
6273 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
6274 visibility bits if the symbol is undefined. Correctly handle
6275 weak undefined symbols with hidden and internal attributes.
6277 * elflink.h (elf_link_add_object_symbols): Always turn the
6278 symbol into local if it has the hidden or internal attribute.
6280 2000-05-29 Philip Blundell <philb@gnu.org>
6282 * ppcboot.c: Add packed attribute if compiling with GCC.
6284 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
6286 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
6288 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
6290 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
6291 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
6292 corefile on a 64-bit (Sparc Solaris) host. Also clean up
6295 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6297 * Makefile.am: Update dependencies with "make dep-am"
6298 * Makefile.in: Regenerate.
6300 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
6301 bindtextdomain): Replace defines with those from intl/libgettext.h
6302 to quieten gcc warnings.
6304 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6306 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
6308 * archive.c (normalize, bfd_bsd_truncate_arname,
6309 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
6310 file names with backslashes.
6312 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
6315 * sysdep.h: Include filenames.h.
6317 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6319 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
6321 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6323 * elf64-sparc.c (sparc64_elf_relax_section): New.
6324 (sparc64_elf_relocate_section): Optimize tail call into branch always
6326 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6327 (elf32_sparc_relax_section): New.
6329 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6331 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
6332 Remove unusued variables.
6333 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
6334 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
6335 previous fix, so that shared libs really don't influence targets
6336 extension mask and memory model.
6338 2000-05-23 H.J. Lu <hjl@gnu.org>
6340 * elf64-alpha.c (elf64_alpha_relocate_section): Check
6341 h->root.other not h->other.
6342 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6344 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
6346 2000-05-23 H.J. Lu <hjl@gnu.org>
6348 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
6349 undefined symbol with the non-default visibility attributes.
6350 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
6351 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
6352 * elf32-i370.c (i370_elf_relocate_section): Likewise.
6353 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6354 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
6355 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6356 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6357 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6358 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
6359 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
6360 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6362 2000-05-22 Richard Henderson <rth@cygnus.com>
6364 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
6365 PCREL22, PCREL64I. Zero size of special relocs.
6366 (elf64_ia64_reloc_type_lookup): Likewise.
6367 (USE_BRL, oor_brl, oor_ip): New.
6368 (elf64_ia64_relax_section): New.
6369 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
6370 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
6371 (elf64_ia64_relocate_section): Likewise.
6372 (bfd_elf64_bfd_relax_section): New.
6373 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
6374 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
6375 * bfd-in2.h, libbfd.h: Regenerate.
6377 2000-05-22 Nick Clifton <nickc@cygnus.com>
6379 * configure.in : Add peigen.lo to MIPS PE targets.
6380 * configure: Regenerate.
6382 2000-05-22 Momchil Velikov <velco@fadata.bg>
6384 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
6385 only if it is known for both input and output bfds. Separate
6386 error message strings as in some languages, it may be necessary
6387 to change more than one place in the string to change between
6390 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
6391 endianess checks, call _bfd_generic_verify_endian_match() instead.
6393 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
6395 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
6397 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
6398 endianess before checking bfd flavours.
6400 2000-05-22 H.J. Lu <hjl@gnu.org>
6402 * elflink.h (elf_link_output_extsym): Clear the visibility
6403 field for symbols not defined locally.
6405 2000-05-18 Alan Modra <alan@linuxcare.com.au>
6407 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6408 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6409 (hppa_rebuild_insn): Mask immediate bits here instead.
6410 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6412 2000-05-18 Momchil Velikov <velco@fadata.bg>
6414 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
6415 relocs for an executable, ensure that they are virtual addresses.
6417 2000-05-18 Jeffrey A Law (law@cygnus.com)
6419 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
6421 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6422 Rick Gorton <gorton@scrugs.lkg.dec.com>
6424 * elflink.h: Add emitrelocations support: when enabled, relocation
6425 information and relocation sections are put into final output
6426 executables. If the emitrelocations flag is set, do the following:
6427 (elf_bfd_final_link): Emit relocation sections.
6428 (elf_link_input_bfd): Compute relocation section contents.
6429 (elf_gc_sections): Don't clean relocation sections.
6431 2000-05-16 Catherine Moore <clm@cygnus.com>
6433 * som.c (som_decode_symclass): Recognize weak symbols.
6435 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
6437 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
6438 read idata section only from dataoff.
6439 (pe_print_edata): Correctly check for valid eat_member.
6441 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
6443 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
6445 2000-05-14 Philip Blundell <philb@gnu.org>
6447 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
6449 2000-05-12 Alan Modra <alan@linuxcare.com.au>
6451 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
6453 * peigen.c (pe_print_idata): Look for .idata section and print
6454 info even if data directory has zero entries. Read idata section
6455 starting from dataoff, and adjust all data offsets to suit. Cast
6456 all bfd_vma vars to unsigned long before passing to fprintf.
6457 * peigen.c (pe_print_edata): Similarly, look for .edata section
6458 and print info even if data directory has zero entries. Cast
6459 all bfd_vma vars to unsigned long before passing to fprintf.
6461 From Szabolcs Szakacsits <szaka@F-Secure.com>
6462 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
6463 directory size which may be bogus.
6464 * peigen.c (pe_print_edata): Similarly.
6466 2000-05-09 Alan Modra <alan@linuxcare.com.au>
6468 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
6470 (copy_private_bfd_data): Allow for space possibly taken up by elf
6471 headers when calculating segment physical address from lma.
6473 2000-05-08 Alan Modra <alan@linuxcare.com.au>
6475 * versados.c (versados_scan): Init stringlen and pass_2_done.
6477 * trad-core.c (trad_unix_core_file_p): Return
6478 bfd_error_wrong_format rather than bfd_error_file_truncated.
6480 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
6481 add_data_entry. DataDirectory virtual address is relative.
6482 (pe_print_idata): Account for relative DataDirectory virtual
6483 addresses. Don't trash datasize inside POWERPC_LE_PE code.
6484 (pe_print_edata): Similarly.
6486 From Szabolcs Szakacsits <szaka@F-Secure.com>
6487 * peigen.c (dir_names): Add Delay Import Directory.
6488 (pe_print_idata): Always search for bfd section containing
6489 idata address rather than looking up section name. Print this
6490 section name rather than .idata.
6491 (pe_print_edata): Similarly. Also print some fields as %08lx.
6492 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
6495 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6497 * xcoff.h: Rename to xcoff-target.h
6498 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
6499 * coff-rs6000.c: Ditto.
6500 * coff64-rs6000.c: Ditto.
6501 * coff-pmac.c: Ditto.
6502 * Makefile.in: Regenerate.
6504 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6506 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
6507 Change U802TOC64MAGIC to U803XTOCMAGIC.
6509 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
6511 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
6512 * bfd-in.h: Prototype bfd_elf_get_arch_size.
6513 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
6515 2000-05-04 Alan Modra <alan@linuxcare.com.au>
6517 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
6519 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
6521 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
6522 hidden and internal symbols.
6523 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
6525 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
6526 assign a PLT or GOT entry to symbols with hidden and
6527 internal visibility.
6529 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
6531 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
6533 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
6535 2000-05-02 H.J. Lu <hjl@gnu.org>
6537 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
6540 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6542 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
6543 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
6545 * Makefile.in: Regenerate.
6547 2000-05-01 Jim Wilson <wilson@cygnus.com>
6549 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
6550 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
6551 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
6552 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
6553 * Makefile.in: Rebuild.
6555 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6557 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
6558 doesn't work very well.
6560 * elf-hppa.h (elf_hppa_internal_shdr): Define.
6561 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
6562 Set hdr->s_type to 1 if ARCH_SIZE == 32.
6563 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
6564 (elf_hppa_info_to_howto): Likewise.
6565 (elf_hppa_info_to_howto_rel): Likewise.
6566 (elf_hppa_reloc_type_lookup): Likewise.
6567 (elf_hppa_is_local_label_name): Likewise.
6568 (elf_hppa_fake_sections): Likewise.
6569 (elf_hppa_final_write_processing): Likewise.
6570 (elf_hppa_howto_table): Fully initialise all entries.
6571 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
6572 (elf_hppa_info_to_howto): Likewise.
6573 (elf_hppa_info_to_howto_rel): Likewise.
6574 (elf_hppa_reloc_type_lookup): Likewise.
6575 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
6576 elf_hppa_unmark_useless_dynamic_symbols,
6577 elf_hppa_remark_useless_dynamic_symbols,
6578 elf_hppa_record_segment_addrs, elf_hppa_final_link,
6579 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
6580 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
6581 elf32-hppa.c mess is cleaned up.
6582 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
6583 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
6584 r_field then call hppa_field_adjust inline func with variable
6585 r_field arg, instead call hppa_field_adjust with fixed arg.
6586 In case R_PARISC_PCREL22F, don't set r_field.
6587 (elf_hppa_relocate_insn): Change args and return type to unsigned
6588 int. Call re_assemble_* funcs to do the work.
6590 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
6593 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
6595 (sign_extend): Mask first before sign extending.
6596 (low_sign_extend): Rewrite without condition expression.
6597 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
6598 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
6599 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6600 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
6601 result as function return value rather than through pointer arg.
6602 Accept unsigned int args, and return unsigned int.
6603 (re_assemble_3): New. Combines function of dis_assemble_3 with
6604 re-assembly of opcode and immediate.
6605 (re_assemble_12): Likewise.
6606 (re_assemble_16): Likewise.
6607 (re_assemble_17): Likewise.
6608 (re_assemble_21): Likewise.
6609 (re_assemble_22): Likewise.
6610 (hppa_field_adjust): Rewrite and document, paying attention to
6611 size of types and signed/unsigned issues.
6612 (get_opcode): Shift before masking.
6613 (FDLW): Rename to FLDW.
6614 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
6615 (hppa_rebuild_insn): Change args and return value to unsigned
6616 int. Make use of re_assemble_*. Correct case 11.
6618 * dep-in.sed: Handle ../opcodes/.
6619 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
6620 elf64-hppa.h, hppa_stubs.h, xcoff.h.
6621 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
6622 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
6623 elfarm-nabi.lo dependencies outside of auto-dependency area.
6624 Regenerate dependencies.
6625 * Makefile.in: Regenerate.
6627 * configure.in (TRAD_HEADER): Test non-null before
6629 * configure: Regenerate.
6631 * reloc.c: Fix mis-spelling in comment.
6633 2000-05-01 Alan Modra <alan@linuxcare.com.au>
6635 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
6636 * vms.c (vms_openr_next_archived_file): Return NULL.
6638 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6640 * coffcode.h Copy changes mistakenly done to libcoff.h in
6643 2000-04-29 Andreas Jaeger <aj@suse.de>
6645 * libbfd-in.h: Correctly check GCC version.
6646 * bfd-in.h: Likewise.
6647 * libhppa.h: Likewise.
6648 * libbfd.h: Regenerate.
6649 * bfd-in2.h: Regenerate.
6651 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6653 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
6654 coffdu-rs6000.{lo,c}.
6655 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
6657 * Makefile.in: Regenerate.
6658 * xcoff.h: New file.
6659 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
6660 * coff-rs6000.c: Move all declarations and defines that are
6661 common to the xcoff backends into xcoff.h
6662 * coff64-rs6000.c: Ditto,
6664 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6666 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
6667 _bfd_coff_force_symnames in strings and
6668 _bfd_coff_debug_string_prefix_length to their default values.
6669 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
6671 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6673 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
6674 _bfd_coff_force_symnames in strings and
6675 _bfd_coff_debug_string_prefix_length to their default values.
6677 2000-04-27 Alan Modra <alan@linuxcare.com.au>
6679 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
6680 Check local_got_refcounts before dereferencing.
6682 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
6683 before deciding we don't need R_PPC_PLT32 relocation.
6684 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
6687 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
6689 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
6691 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
6692 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
6693 (elf_i386_relocate_section): Allow for .plt to go missing.
6694 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
6695 can use a relative reloc for got as elf_i386_relocate_section.
6696 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
6698 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
6700 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
6702 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
6704 * Makefile.am (coff64-rs6000.lo): New rule.
6705 * Makefile.in: Regenerate.
6706 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
6707 xcoff_is_local_label_name, xcoff_rtype2howto,
6708 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
6709 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
6710 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
6711 (NO_COFF_SYMBOLS): Define.
6712 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
6713 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
6715 (MINUS_ONE): New macro.
6716 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
6718 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
6719 coff_SWAP_aux_out): Map to the new functions.
6720 * coff64-rs6000.c: New file.
6721 * libcoff.h (bfd_coff_backend_data): Add new fields
6722 _bfd_coff_force_symnames_in_strings and
6723 _bfd_coff_debug_string_prefix_length.
6724 (bfd_coff_force_symnames_in_strings,
6725 bfd_coff_debug_string_prefix_length): New macros for above fields.
6726 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
6727 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
6728 of using coff_swap_sym_in directly.
6729 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
6730 (coff_set_flags) Set magic for XCOFF64.
6731 (coff_compute_section_file_positions): Add symbol name length to
6732 string section length if bfd_coff_debug_string_prefix_length is
6734 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
6735 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
6736 using coff_swap_lineno_in directly.
6737 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
6738 and _bfd_coff_debug_string_prefix_length fields.
6739 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
6740 symbol names into strings table when
6741 bfd_coff_force_symnames_in_strings is true.
6742 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
6743 SET_RELOC_VADDR): New macros.
6744 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
6745 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
6747 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
6748 changes within RS6000COFF_C specific code.
6749 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
6750 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
6751 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6752 Extend existing hack on target name.
6753 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
6755 * coff-tic54x.c (ticof): Keep up to date with new fields
6756 in bfd_coff_backend_data.
6757 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
6758 targ_selvecs to include rs6000coff64_vec for rs6000.
6759 * configure.in: Add rs6000coff64_vec case.
6760 * cpu-powerpc.c: New bfd_arch_info_type.
6762 2000-04-24 Jeffrey A Law (law@cygnus.com)
6764 * config.bfd: Only disable elf32-hppa vectors, not all of the
6765 BSD and OSF configuration support. Provide (disabled) clauses
6767 * configure.in: Add clause for PA64 support.
6768 * configure: Rebuilt.
6770 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
6771 (bfd_elf64_hppa_vec): Declare.
6773 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
6774 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
6775 (elf64-hppa.lo): Add dependencies.
6776 * Makefile.in: Rebuilt.
6778 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
6780 2000-04-24 Jason Eckhardt <jle@cygnus.com>
6782 * libhppa.h (dis_assemble_16): New function.
6783 (pa_arch): Added pa20w element.
6785 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
6787 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
6788 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
6789 bfd_elf64_slurp_reloc_table.
6791 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
6792 definitions to get external names.
6793 (elf_write_relocs): Renamed from write_relocs and make global.
6794 (elf_slurp_reloc_table): Make global.
6795 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
6797 * archive.c (hpux_uid_gid_encode): New function.
6798 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
6799 defined and the ID is greater than 99999.
6800 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
6801 special uid/gid fields into 32 bit values.
6803 2000-04-21 Matthew Green <mrg@cygnus.com>
6805 * config.bfd: Add NetBSD/sparc64 support.
6807 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
6808 David Mosberger <davidm@hpl.hp.com>
6809 Timothy Wall <twall@cygnus.com>
6810 Jim Wilson <wilson@cygnus.com>
6812 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
6813 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
6814 (BFD64_BACKENDS): Add elf64-ia64.lo.
6815 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
6816 (cpu-ia64.lo, elf64-ia64.lo): New rules.
6817 * Makefile.in: Rebuild.
6818 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
6819 (bfd_ia64_arch): Declare.
6820 (bfd_archures_list): Add bfd_ia64_arch.
6821 * bfd-in2.h: Rebuild.
6822 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
6823 * configure: Rebuild.
6824 * configure.host: (ia64-*-linux*): New host.
6825 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
6826 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
6827 * elf.c (prep_headers): Add bfd_arch_ia64.
6828 * libbfd.h: Rebuild.
6829 * reloc.c: Add IA-64 relocations.
6830 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
6832 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
6833 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
6835 2000-04-21 Richard Henderson <rth@cygnus.com>
6837 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
6838 contents when performing a partial link.
6839 (bfd_elf_d30v_reloc_21): Likewise.
6841 2000-04-20 H.J. Lu <hjl@gnu.org>
6843 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
6844 patch to symbols defined by a shared object.
6845 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
6847 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6850 * dwarf2.c (concat_filename): Avoid string literal concatenation.
6851 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
6853 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
6855 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
6856 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
6857 (coff-ia64.lo): Add dependency.
6858 * Makefile.in: Regenerate.
6859 * coff-ia64.c: New file.
6860 * efi-app-ia32.c: Ditto.
6861 * efi-app-ia64.c: Ditto.
6862 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
6863 (coff_set_flags): Ditto.
6864 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
6865 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
6866 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
6867 * configure: Regenerate.
6868 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
6869 (PUT_OPTHDR_IMAGE_BASE): Ditto.
6870 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
6871 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
6872 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
6873 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
6874 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
6875 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
6876 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
6877 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
6878 (GET_PDATA_ENTRY): Ditto.
6879 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
6880 data_start. Use above macros to read fields that are 64 bit wide for
6881 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
6882 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
6883 FileAlignment and SectionAlignment to minimum alignment if they
6885 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
6886 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
6887 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
6888 Use above macros to write fields that are 64 bit wide for
6890 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
6891 5*4 otherwise. This should be right for IA-32 and IA-64, but may
6892 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
6893 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
6894 begin address, end address, and unwind info address only. Use
6895 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
6897 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
6898 HIGH3ADJ relocation names.
6899 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
6900 * targets.c: Declare bfd_efi_app_ia32_vec and
6901 bfd_efi_app_ia64_vec.
6902 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
6903 bfd_efi_app_ia64_vec.
6905 2000-04-17 Timothy Wall <twall@cygnus.com>
6907 * bfd-in2.h: Add prototypes for tic54x load page access.
6908 * bfd-in.h: Regenerate.
6909 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
6910 in customized _set_arch_mach function.
6911 * coffcode.h (coff_set_alignment_hook): Set section load page if
6912 the appropriate macro is defined.
6913 (write_object_contents): Read section load page.
6915 2000-04-13 Alan Modra <alan@linuxcare.com.au>
6917 * elf32-hppa.h: Update copyright date.
6919 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
6920 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
6922 * elf32-d30v.c (MAX32): Don't use LL suffix.
6923 (MIN32): Define in terms of MAX32.
6924 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
6926 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
6929 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
6931 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6933 * dep-in.sed: Match space before file name, not after.
6934 * Makefile.am: Regenerate dependencies.
6935 * Makefile.in: Regenerate.
6937 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
6938 case, allow address wrap-around stupidly removed 2000-03-17. Sign
6939 extend without an if statement.
6941 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6943 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
6945 * elf32-mips.c (gprel16_with_gp): Likewise.
6946 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
6947 here using -0x40000, not (int)0xfffc0000.
6948 (elf32_hppa_size_of_stub): Likewise.
6950 2000-04-11 Timothy Wall <twall@cygnus.com>
6952 * coff-tic54x.c: Now builds with all targets.
6953 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
6954 * Makefile.in: Regenerate.
6955 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
6956 unitialized variable.
6958 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
6960 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6961 --enable-build-warnings option.
6962 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6963 * Makefile.in, configure: Re-generate.
6965 2000-04-07 Nick Clifton <nickc@cygnus.com>
6967 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
6968 BFD_RELOC_THUMB_PCREL_BLX.
6970 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
6971 R_ARM_XPC25 and R_ARM_THM_PC22.
6973 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
6974 R_ARM_XPC25 and R_ARM_THM_XPC22.
6975 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
6976 R_ARM_[XPC25|THM_XPC22].
6978 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
6979 elf/arm-oabi.h to elf/arm.h
6981 * Makefile.am: Fix dependency for elfarm-oabi.c
6982 * Makefile.in: Regenerate.
6984 * bfd-in2.h: Regenerate.
6985 * libbfd.h: Regenerate.
6987 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
6989 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
6990 and restore it on failure. Release newly allocated tdata on
6993 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
6995 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
6996 (decode_line_info): Set it. Report error if unit->line_offset is
6997 equal to or larger than it.
6999 2000-04-07 Timothy Wall <twall@cygnus.com>
7001 * targets.c: Added vecs for tic54x.
7002 * reloc.c: Added relocs for tic54x.
7003 * libbfd.h: Regenerated.
7004 * configure: Add TI COFF vecs for tic54x.
7005 * configure.in: Ditto.
7006 * config.bfd (targ_cpu): Recognize new tic54x target.
7007 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
7008 * bfd-in2.h: Add tic54x target and relocations.
7009 * Makefile.am, Makefile.in: Add tic54x target.
7010 * archures.c (bfd_archures_list): Add tic54x target.
7011 * coff-tic54x.c: New.
7012 * cpu-tic54x.c: New.
7014 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7016 * elfcore.h (elf_core_file_p): call backend_object_p which
7017 thereby gets an opportunity to update the arch/machine type.
7019 2000-04-06 Timothy Wall <twall@cygnus.com>
7021 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
7022 class. Handle SEC_CLINK and SEC_BLOCK flags.
7023 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
7024 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
7026 2000-04-06 Nick Clifton <nickc@cygnus.com>
7028 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
7029 EF_INTERWORK if this is an unknown EABI.
7030 (elf32_arm_merge_private_bfd_data): Check EABI version
7031 numbers. Only check EF_xxx flags if the EABI version number
7033 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
7034 if the EABI version number is unknown.
7035 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
7036 if the EABI version number is unknown.
7038 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7040 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
7041 BFD_RELOC_SH_LOOP_END.
7042 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
7043 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
7044 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
7045 (sh_elf_reloc_loop): New function.
7046 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
7048 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
7049 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
7050 * bfd-in2.h, libbfd.h: Regenerate.
7052 2000-04-04 Alan Modra <alan@linuxcare.com.au>
7054 * po/bfd.pot: Regenerate.
7056 * Makefile.am: Remove extraneous mkdep comment.
7057 (MKDEP): Use gcc -MM rather than mkdep.
7058 (DEP): Quote when passing vars to sub-make. Add warning
7060 (DEP1): Rewrite for "gcc -MM".
7061 (CLEANFILES): Add DEP2.
7062 Update dependencies.
7063 * Makefile.in: Regenerate.
7065 2000-04-03 Kevin Buettner <kevinb@redhat.com>
7067 * configure.in: Added corefile support for AIX 4.3. In particular,
7068 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
7069 compiling rs6000-core.c.
7070 * configure: Regenerated.
7072 2000-04-03 H.J. Lu <hjl@gnu.org>
7074 * cache.c (bfd_open_file): Unlink the output file only if
7075 it has non-zero size.
7077 2000-04-01 Ken Block USG <block@zk3.dec.com>
7079 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
7080 relative relocations for non-loaded sections in shared objects.
7081 (elf64_alpha_check_relocs): Similarly.
7083 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
7085 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
7086 BFD_RELOC_16 to switch for extended relocs.
7087 (MY_swap_ext_reloc_in): New.
7088 (MY_swap_ext_reloc_out): New.
7089 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
7090 than NAME(aout,swap_ext_reloc_in) for extended relocs.
7091 (NAME(aout,squirt_out_relocs)): Similarly use
7092 MY_swap_ext_reloc_out.
7093 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
7095 2000-04-03 Kazu Hirata <kazu@hxi.com>
7097 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
7098 the R_PCRWORD_B case.
7100 2000-03-31 Thomas de Lellis <tdel@wrs.com>
7102 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
7106 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
7108 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
7109 HOWTO references to bfd_elf_generic_reloc, that have
7110 partial_inplace == true, now use the new function. The function
7111 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
7112 extends its fixes to the R_M32R_{16,24,32} relocs.
7113 The new logic in m32r_elf_lo16_reloc() has been removed, and
7114 it instead calls the new routine to obtain that functionality.
7116 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7118 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
7119 elf32_avr_check_relocs, avr_final_link_relocate,
7120 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
7121 elf32_avr_object_p): Add prototypes.
7122 (elf32_avr_gc_mark_hook): Add default for h->root.type.
7123 (bfd_elf_avr_final_write_processing): Make static.
7125 2000-03-27 Denis Chertykov <denisc@overta.ru>
7127 * cpu-avr.c: New file. BFD support routines for AVR architecture.
7128 * archures.c (bfd_architecture): Add AVR architecture.
7129 (bfd_archures_list): Add reference to AVR architecture info.
7130 * elf.c (prep_headers): Handle bfd_arch_avr.
7131 * reloc.c: Add various AVR relocation enums.
7132 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
7134 * Makefile.am: Add support for AVR elf.
7135 * configure.in: Likewise.
7136 * config.bfd: Likewise.
7137 * Makefile.in: Regenerate.
7138 * configure: This too.
7139 * bfd-in2.h: And this.
7140 * libbfd.h: And this.
7142 2000-03-24 H.J. Lu <hjl@gnu.org>
7144 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
7145 (elf64_alpha_find_reloc_at_ofs): Likewise.
7147 2000-03-17 Alan Modra <alan@linuxcare.com.au>
7149 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
7150 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
7151 allowable range used to be -2**(n-1) to 2**n-1.
7152 * reloc.c (_bfd_relocate_contents): Same here. Also replace
7153 "boolean overflow" with "bfd_reloc_status_type flag".
7155 2000-03-14 Doug Evans <dje@casey.transmeta.com>
7157 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
7159 2000-03-14 Kazu Hirata <kazu@hxi.com>
7161 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
7162 of shrinks properly, including the last reloc.
7164 2000-03-13 Kazu Hirata <kazu@hxi.com>
7166 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
7169 2000-03-11 Alan Modra <alan@linuxcare.com.au>
7171 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
7172 a format mismatch rather than an "error" from bfd_read such as
7173 bfd_error_file_truncated.
7175 2000-03-10 Geoff Keating <geoffk@cygnus.com>
7177 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
7178 sign-extension and big-endian compensation for
7179 R_MIPS_64 even in ld -r.
7181 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
7183 * elf32-mips.c (mips_elf_next_relocation): Rename from
7184 mips_elf_next_lo16_relocation, and generalize to look
7185 for any relocation type.
7186 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
7187 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
7188 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
7189 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
7190 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
7191 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
7192 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
7193 (mips_rtype_to_howto): Likewise.
7194 (mips_elf_calculate_relocation): Handle new relocs.
7195 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
7196 are paired. The addend for R_MIPS_GNU_REL16_S2
7197 is shifted right two bits.
7199 2000-03-10 Alan Modra <alan@linuxcare.com.au>
7201 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
7202 comment, and ensure it doesn't happen again.
7203 (bfd_install_relocation): Same here.
7204 (_bfd_relocate_contents): Don't bother assigning unused signmask
7205 shift result. Fix typos in comments.
7206 Remove trailing whitespace throughout file.
7208 2000-03-07 Doug Evans <dje@casey.transmeta.com>
7210 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
7211 * bfd-in2.h: Rebuild.
7213 2000-03-06 Nick Clifton <nickc@cygnus.com>
7215 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
7217 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
7218 (SIZEOF_ILF_STRINGS): Redefine.
7219 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
7220 relative reloc, as opposed to a section relative reloc.
7221 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
7223 Add length of symbol's prefix to string pointer.
7224 Store a pointer to the symbol in the symbol pointer table.
7225 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
7226 Initialise the symbol pointer table.
7227 Store the hint in the Hint/Name table.
7228 Make the jump reloc be symbol realtive, not section relative.
7229 Create an import symbol for imported code.
7231 2000-03-06 Catherine Moore <clm@cygnus.com>
7233 * elf.c (swap_out_syms): Check for null type_ptr.
7235 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
7237 * aout-target.h (MY(write_object_contents)): Remove unused
7238 and unusable "#if CHOOSE_RELOC_SIZE".
7239 * pc532-mach.c (MY(write_object_contents)): Ditto.
7240 * netbsd.h (MY(write_object_contents)): Ditto.
7241 * hp300hpux.c (MY(write_object_contents)): Ditto.
7242 * freebsd.h (MY(write_object_contents)): Ditto.
7243 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
7245 2000-02-29 H.J. Lu <hjl@gnu.org>
7247 * peicode.h (jtab): Make it static.
7249 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
7250 defined and COFF_IMAGE_WITH_PE is not defined.
7251 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
7252 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
7254 2000-03-01 Nick Clifton <nickc@cygnus.com>
7256 * coff-arm.c (bfd_arm_process_before_allocation): Make
7257 'symndx' signed to prevent compile time warning.
7259 * coff-mcore.c: Remove unused prototype for pe_object_p.
7261 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
7262 functions that are not used when COFF_IMAGE_WITH_PE is
7264 (struct sh_opcode): Change type of 'flags' field to unsigned
7265 long so that it can hold the USESAS flag.
7267 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
7269 * elf-m10300.c (mn10300_elf_relax_section): Initialise
7272 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
7274 Remove unusued variables and code.
7275 (elf_backend_add_symbol_hook): Fix prototype.
7277 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
7280 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
7283 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
7285 Remove unusued variables and code.
7286 (elf_backend_add_symbol_hook): Fix prototype.
7288 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
7290 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
7291 to unused function parameter.
7293 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
7295 Use EMPTY_HOWTO to initialise empty howto slots.
7296 Remove unused variables.
7298 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
7300 2000-03-01 H.J. Lu <hjl@gnu.org>
7302 * aoutx.h (aout_link_input_section_std): Pass "true" to
7303 the undefined_symbol callback.
7304 (aout_link_input_section_ext): Likewise.
7305 * bout.c (get_value): Likewise.
7306 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
7307 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
7309 (alpha_relocate_section): Likewise.
7310 * coff-arm.c (coff_arm_relocate_section): Likewise.
7311 * coff-i960.c (coff_i960_relocate_section): Likewise.
7312 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
7313 * coff-mips.c (mips_relocate_section): Likewise.
7314 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
7315 * coff-sh.c (sh_relocate_section): Likewise.
7316 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
7317 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
7318 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
7319 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
7320 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
7321 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
7322 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
7323 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7324 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
7325 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7326 * elf32-sh.c (sh_elf_relocate_section): Likewise.
7327 * elf32-v850.c (v850_elf_relocate_section): Likewise.
7328 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
7329 * elflink.h (elf_link_output_extsym): Likewise.
7330 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
7331 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
7332 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
7334 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
7335 undefined_symbol callback when building shared library with
7336 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
7338 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7339 * elf32-i386.c (elf_i386_relocate_section): Likewise.
7340 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7341 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7342 (elf32_mips_get_relocated_section_content): Likewise.
7343 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7344 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7345 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7346 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7348 2000-02-28 Nick Clifton <nickc@cygnus.com>
7350 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
7351 * Makefile.in: Regenerate.
7353 * configure.in: Add support for mips and sh pe vectors.
7354 * configure: regenerate.
7356 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
7359 * targets.c: Add mips and sh pe vectors.
7361 * libpei.h (coff_final_link_postscript): Only define if not
7364 * coffcode.h: Add support for WinCE magic numbers.
7366 * peigen.c (pe_print_reloc): Update comment and rearrange
7367 appending of newline character.
7369 * peicode.h: Add support for Image Library Format.
7370 (pe_ILF_vars): Structure containing data used by ILF code.
7371 (pe_ILF_make_a_section): New function. Create a section based
7373 (pe_ILF_make_a_reloc): New function. Create a reloc based on
7375 (pe_ILF_make_a_symbol): New function. Create a symbol based
7377 (pe_ILF_save_relocs): New function. Store the relocs created
7378 by pe_ILF_make_a_reloc in a section.
7379 (pe_ILF_build_a_bfd): New function. Create a BFD describing
7381 (pe_ILF_object_p): New function. Return a bfd_target pointer
7383 (pe_bfd_object_p): If an ILF object is detected call
7384 pe_ILF_object_p on it.
7386 * coff-arm.c: Add support for WinCE relocs which are different
7387 from normal ARM COFF relocs.
7388 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
7390 * coff-sh.c: Add support for sh-pe target.
7391 * pe-sh.c: New file. Support code for sh-pe target.
7392 * pei-sh.c: New file. Support code for sh-pe target.
7394 * pe-mips.c: New file. Support code for mips-pe target.
7395 * pei-mips.c: New file. Support code for mips-pe target.
7397 2000-02-27 Jakub Jelinek <jakub@redhat.com>
7399 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
7400 architecture if the object causing the bump is dynamic.
7401 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
7402 and also don't it for memory ordering.
7403 (sparc64_elf_write_relocs): Take src_rela out of the loop.
7405 2000-02-27 Ian Lance Taylor <ian@zembu.com>
7407 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
7408 calling bfd_get_section_size_before_reloc.
7409 (decode_line_info): Likewise.
7410 (_bfd_dwarf2_find_nearest_line): Likewise.
7412 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
7414 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
7415 name of the libtool directory.
7416 * Makefile.in: Rebuild.
7418 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
7420 * som.c (SOM_HOWTO): Define.
7421 (som_hppa_howto_table): Use it.
7423 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7425 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
7427 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
7429 2000-02-24 Catherine Moore <clm@cygnus.com>
7431 * som.c (som_misc_symbol_info): Add field
7433 (som_bfd_derive_misc_symbol_info): Initialize
7435 (som_build_and_write_symbol_table): Keep track
7436 of secondary_def field.
7437 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
7438 if secondary_def field is set.
7439 (som_bfd_ar_write_symbol_stuff): Initialize
7442 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
7444 * dwarf2.c (read_address): Read 16-bits addresses.
7445 (parse_comp_unit): Accept addr_size == 2.
7447 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
7449 * bfd-in.h: Update copyright date.
7451 2000-02-23 Linas Vepstas <linas@linas.org>
7453 * cpu-i370.c: New file.
7454 * elf32-i370.c: New file.
7455 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
7456 (bfd_i370_arch): New.
7457 (bfd_archures_list): Add bfd_i370_arch.
7458 * elf.c (prep_headers): Add bfd_arch_i370.
7459 * Makefile.am: Add support for IBM 370 elf.
7460 * config.bfd: Likewise.
7461 * configure.in: Likewise.
7462 * libbfd.h (bfd_reloc_code_real_names): Likewise.
7463 * reloc.c (bfd_reloc_code_type): Likewise.
7464 * targets.c: Likewise.
7466 * Makefile.in: Regenerate.
7467 * configure: Regenerate.
7468 * bfd-in2.h: Regenerate.
7470 2000-02-22 Ian Lance Taylor <ian@zembu.com>
7472 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
7473 invalid relocation types, and change them to R_386_NONE.
7475 2000-02-22 H.J. Lu <hjl@gnu.org>
7477 * elflink.h (elf_link_add_object_symbols): If a version symbol is
7478 not defined, don't add a second ELF_VER_CHR.
7480 * elflink.h (elf_bfd_final_link): Call output_extsym for global
7481 symbols converted to local symbols even when stripping all
7483 (elf_link_output_extsym): Process global symbols converted to
7484 local symbols even if they are being stripped.
7486 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
7488 * archures.c (bfd_octets_per_byte): Return unsigned int.
7489 (bfd_arch_mach_octets_per_byte): Ditto.
7490 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
7492 * section.c (bfd_get_section_size_before_reloc): Quell signed
7493 vs. unsigned comparison warning.
7494 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
7495 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
7496 change. What was I thinking?
7497 * bfd-in2.h: Regenerate.
7499 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
7500 (elf_gc_sections): Same here.
7501 (elf_gc_common_finalize_got_offsets): And here.
7503 2000-02-21 Ian Lance Taylor <ian@zembu.com>
7505 ELF HPPA doesn't work at present; remove it until it does.
7506 * config.bfd: Comment out setting targ_defvec to
7508 * Makefile.am: Rebuild dependencies.
7509 (BFD32_BACKENDS): Remove elf32-hppa.lo.
7510 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
7511 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
7512 * Makefile.in: Rebuild.
7513 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
7515 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7517 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
7518 is no bfd_free(). Revert bfd_free part of previous change.
7520 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7522 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
7524 (coff_compute_section_file_positions): Use bfd_free to pair
7526 (coff_write_object_contents): Likewise.
7528 * coff-rs6000.c (xcoff_howto_table_16): New variable.
7529 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
7531 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
7533 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
7534 (xcoff_ar_file_hdr_big): New structure.
7535 (SIZEOF_AR_FILE_HDR_BIG): New macro.
7536 (xcoff_ar_hdr_big): New structure.
7537 (SIZEOF_AR_HDR_BIG): New macro.
7538 (xcoff_big_format_p): New macro.
7539 (xcoff_ardata_big): New macro.
7540 (arch_xhdr_big): New macro.
7541 (xcoff_slurp_armap): Handle large archives.
7542 (xcoff_archive_p): Detect large archives.
7543 (xcoff_read_ar_hdr): Handle large archives.
7544 (xcoff_openr_next_archived_file): Handle large archives.
7545 (xcoff_generic_stat_arch_elt): Handle large archives.
7546 (xcoff_write_armap_old): Rename from xcoff_write_armap.
7547 (xcoff_write_armap_big): New function.
7548 (xcoff_write_armap): New function, dispatch to _old or _big.
7549 (xcoff_write_archive_contents_old): Rename from
7550 xcoff_write_archive_contents.
7551 (xcoff_write_archive_contents_big): New function.
7552 (xcoff_write_archive_contents): New function, dispatch to _old or
7555 2000-02-18 Richard Henderson <rth@cygnus.com>
7557 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
7558 and hide_symbol members.
7559 (elf_link_hash_copy_indirect): Remove.
7560 (elf_link_hash_hide_symbol): Remove.
7561 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
7562 and elf_backend_hide_symbol.
7563 (_bfd_elf_link_hash_copy_indirect): Declare.
7564 (_bfd_elf_link_hash_hide_symbol): Declare.
7565 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
7566 (_bfd_elf_link_hash_hide_symbol): Likewise.
7567 (_bfd_elf_link_hash_table_init): Don't init killed members.
7568 * elflink.h (elf_link_add_object_symbols): Use the bed function
7569 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
7570 (elf_link_assign_sym_version): Likewise.
7571 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
7572 (elf_backend_hide_symbol): Likewise.
7573 (elfNN_bed): Update for new members.
7575 2000-02-17 Kevin Buettner <kevinb@redhat.com>
7577 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
7578 STACK_END_ADDR): Define for new core file format.
7579 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
7580 for handling the vagaries of the various core file structures used
7581 by AIX over the years.
7582 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
7583 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
7584 core_dumpx structure.
7586 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7588 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
7589 (bfd_mach_sh3_dsp): Likewise.
7590 (bfd_mach_sh4): Reinstate.
7591 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
7592 * bfd-in2.h: Regenerate.
7593 * coff-sh.c (struct sh_opcode): flags is no longer short.
7594 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
7595 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
7596 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
7597 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
7598 (sh_opcodes): No longer const.
7599 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
7600 (sh_insn_uses_reg): Check for USESAS and USESR8.
7601 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
7602 (_bfd_sh_align_load_span): Return early for SH4.
7603 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
7604 Take into account that field b of a parallel processing insn
7605 could be mistaken for a separate insn.
7606 * cpu-sh.c (arch_info_struct): New array elements for
7607 sh2, sh-dsp and sh3-dsp.
7608 Reinstate element for sh4.
7609 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
7610 (SH4_NEXT): Reinstate.
7611 (SH3_NEXT, SH3E_NEXT): Adjust.
7612 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
7613 * elf32-sh.c (sh_elf_set_private_flags): New function.
7614 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
7615 (sh_elf_merge_private_data): New function.
7616 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
7617 (bfd_elf32_bfd_copy_private_bfd_data): Define.
7618 (bfd_elf32_bfd_merge_private_bfd_data): Change to
7619 sh_elf_merge_private_data.
7621 2000-02-13 Richard Henderson <rth@cygnus.com>
7623 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
7624 hide_symbol members.
7625 (elf_link_hash_copy_indirect): New.
7626 (elf_link_hash_hide_symbol): New.
7627 * elflink.h (elf_link_add_object_symbols): Break out copy from
7628 indirect new new symbol to elf.c.
7629 (elf_link_assign_sym_version): Break out privatization of
7630 non-exported symbol to elf.c.
7631 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
7632 (_bfd_elf_link_hash_hide_symbol): New.
7633 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
7635 2000-02-13 Ian Lance Taylor <ian@zembu.com>
7637 * section.c (_bfd_strip_section_from_output): Add info parameter.
7638 If it passed as non-NULL, use it to check whether any input BFD
7639 has an input section which uses this output section. Change all
7641 * bfd-in2.h: Rebuild.
7643 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
7644 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
7646 * bfd-in2.h: Rebuild.
7648 2000-02-10 Timothy Wall <twall@cygnus.com>
7650 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
7651 allow final modifications of swapped-in symbol.
7652 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
7653 * coffcode.h (coff_write_relocs): Use macro
7654 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
7655 symbol index should be set to -1.
7657 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
7659 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
7660 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
7661 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
7662 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
7663 sh_insns_uses_or_sets_freg): New functions.
7664 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
7665 * (sh_insns_conflict): Use new functions and new macros to
7666 detect conflicts when two instructions both set same integer registers,
7667 both set same fp register, and both set special register.
7669 2000-02-09 Timothy Wall <twall@cygnus.com>
7671 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
7672 swapping in sections, so that the swapping routines have access to
7675 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
7677 * coff-go32.c: Update comment. Update copyright.
7679 2000-01-27 Thomas de Lellis <tdel@windriver.com>
7681 * syms.c (bfd_decode_symclass)
7682 Two new class characters were added - 'V' and 'v'. The
7683 meaning of 'W' is now restricted to just weak non-object
7684 symbols. This allows differentiation between, for example,
7685 weak functions vs weak objects. nm for example now dumps:
7687 'w' = weak unresolved
7688 'V' = weak global object
7689 'v' = weak unresolved object
7691 (bfd_is_undefined_symclass): New function. Return true if the
7692 given symbol class represents and undefined/unresolved symbol.
7694 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
7697 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
7699 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
7700 STT_ARM_16BIT flag set, but it is not attached to a data object
7701 return STT_ARM_16BIT so that it will be treated as code by the
7704 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
7706 * coff-i386.c (i3coff_object_p): Remove prototype.
7709 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
7710 to name. Update copyright.
7712 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
7713 assignment to avoid warning. Update copyright.
7715 2000-01-24 Robert Lipe (robertl@sco.com)
7717 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
7718 instead of using GNU C extension.
7720 2000-01-21 Nick Clifton <nickc@cygnus.com>
7722 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
7723 amount from a bfd_in_memory structure.
7724 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
7727 2000-01-14 Nick Clifton <nickc@cygnus.com>
7729 * linker.c (default_indirect_link_order): oops - fix incorrectly
7730 applied patch from Tim Wall.
7732 2000-01-13 Timothy Wall (twall@tiac.net>
7734 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
7735 = scnhsz, filhsz, relsz, aoutsz, etc)
7737 * coffswap.h: Ditto.
7739 2000-01-13 Nick Clifton <nickc@cygnus.com>
7741 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
7742 interwork thumb to arm stub.
7744 2000-01-13 Timothy Wall (twall@tiac.net>
7746 * archures.c (bfd_octets_per_byte): New function: Return
7748 (bfd_arch_mach_octets_per_byte): New function: Return target
7751 * section.c: Distinguish between octets and bytes for usage of
7752 _cooked_size, _raw_size, and output_offset. Clarify
7753 description of bfd_set_section_contents.
7755 * bfd-in2.h: Regenerate.
7757 * coffgen.c: Indicate that the offset parameter is in bytes, not
7760 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
7761 where appropriate to get the octet offset when calling
7762 bfd_set_section_contents.
7763 (bfd_coff_reloc_link_order): Ditto.
7765 * linker.c (bfd_generic_reloc_link_order): Ditto.
7766 (_bfd_default_link_order): Ditto.
7768 * reloc.c (bfd_perform_relocation): Distinguish between octets
7769 and bytes. Use octets when indexing into octet data; use bytes
7770 when calculating target addresses.
7771 (bfd_install_relocation): Ditto.
7773 * srec.c (srec_write_section): Ditto.
7775 2000-01-13 Nick Clifton <nickc@cygnus.com>
7777 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
7778 3 to 2. This allows 4 byte sized sections, which is necessary for
7779 dlltool to build functioning DLLs.
7781 2000-01-10 Philip Blundell <pb@futuretv.com>
7783 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
7784 (arm*-*-conix*): New target.
7786 2000-01-10 Egor Duda <deo@logos-m.ru>
7788 * config.bfd: Include elf32_i386 vector to target list for cygwin
7791 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
7792 * configure.in: Test for structure win32_pstatus_t in
7794 * configure: Regenerate.
7796 * elf.c (elfcore_grok_win32pstatus): New function: process
7797 win32_pstatus_t notes in elf core file.
7798 (elfcore_grok_note): Detect win32_pstatus notes.
7800 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
7802 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
7804 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
7805 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
7807 For older changes see ChangeLog-9899
7813 version-control: never