Some time ago, bfd_target_vector was changed from beeing an array, to be

a pointer to an array. Unfortunately, the sizeof(bfd_target_vector) was
not changed. That made ar(1) allocate 4 bytes for an 48 bytes array...

This solves PR bin/8200 from Matthias Buelow.
This commit is contained in:
kristerw 1999-10-04 18:47:33 +00:00
parent f3919f30c3
commit 6a61754bb2

View File

@ -860,7 +860,7 @@ const bfd_target *bfd_default_vector[] = {
/* When there is an ambiguous match, bfd_check_format_matches puts the
names of the matching targets in an array. This variable is the maximum
number of entries that the array could possibly need. */
const size_t _bfd_target_vector_entries = sizeof(bfd_target_vector)/sizeof(*bfd_target_vector);
const size_t _bfd_target_vector_entries = sizeof(_bfd_target_vector)/sizeof(*_bfd_target_vector);
/* This array maps configuration triplets onto BFD vectors. */