diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-11-08 19:26:19 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-11-08 19:26:19 +0000 |
commit | 7812bf9c25192463489dfb439eb92b2fcd34f305 (patch) | |
tree | 170a00e5ea7f08d19d5a72163e9b9b74efb8e3c7 /bfd/xcofflink.c | |
parent | 417acf225f037c90f320d8913249e5600ff853e0 (diff) | |
download | gdb-7812bf9c25192463489dfb439eb92b2fcd34f305.zip gdb-7812bf9c25192463489dfb439eb92b2fcd34f305.tar.gz gdb-7812bf9c25192463489dfb439eb92b2fcd34f305.tar.bz2 |
* xcofflink.c (xcoff_find_reloc): Handle the case of a single
reloc correctly.
Diffstat (limited to 'bfd/xcofflink.c')
-rw-r--r-- | bfd/xcofflink.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bfd/xcofflink.c b/bfd/xcofflink.c index b13e900..fd1ed7e 100644 --- a/bfd/xcofflink.c +++ b/bfd/xcofflink.c @@ -860,7 +860,12 @@ xcoff_find_reloc (relocs, count, address) bfd_size_type min, max, this; if (count < 2) - return 0; + { + if (count == 1 && relocs[0].r_vaddr < address) + return 1; + else + return 0; + } min = 0; max = count; |