Compute value of _bfd_target_vector_entries based on the size of
authorNick Clifton <nickc@redhat.com>
Thu, 3 May 2001 17:49:49 +0000 (17:49 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 3 May 2001 17:49:49 +0000 (17:49 +0000)
 _bfd_target_vector and not bfd_target_vector.

bfd/ChangeLog
bfd/targets.c

index 85055bf39ff0fc67f22798f7c64ee1f0f58b601a..3aa478f061f568bd5d044ac1034320312e891f81 100644 (file)
@@ -1,3 +1,8 @@
+2001-05-03  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * targets.c (_bfd_target_vector_entries): Compute value based on
+       the size of the _bfd_target_vector and not bfd_target_vector.
+
 2001-05-03  H.J. Lu  <hjl@gnu.org>
 
        * elfcode.h: Include "libiberty.h".
index bfcafb1b927f5c79b4ef2cc6242558fb0b5da332..0e2ca4d78c9cfa95a94b781021244375933bdd61 100644 (file)
@@ -1005,7 +1005,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);
 \f
 /* This array maps configuration triplets onto BFD vectors.  */