From 966b3e0b90bc1b950a84eb85d36f38229a2c19b6 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 3 May 2001 17:49:49 +0000 Subject: [PATCH] Compute value of _bfd_target_vector_entries based on the size of _bfd_target_vector and not bfd_target_vector. --- bfd/ChangeLog | 5 +++++ bfd/targets.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 85055bf39ff..3aa478f061f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2001-05-03 Nick Clifton + + * 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 * elfcode.h: Include "libiberty.h". diff --git a/bfd/targets.c b/bfd/targets.c index bfcafb1b927..0e2ca4d78c9 100644 --- a/bfd/targets.c +++ b/bfd/targets.c @@ -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); /* This array maps configuration triplets onto BFD vectors. */ -- 2.30.2