diff options
-rw-r--r-- | bfd/ChangeLog | 1 | ||||
-rw-r--r-- | bfd/xcofflink.c | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index df7678c..1334726 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -4,6 +4,7 @@ Wed Nov 8 11:31:11 1995 Ian Lance Taylor <ian@cygnus.com> Change all uses. (xcoff_swap_ldhdr_in): New static function. (xcoff_swap_ldsym_in): New static function. + (xcoff_find_reloc): Handle the case of a single reloc correctly. (xcoff_link_add_symbols): If we just created a descriptor, pass it to _bfd_generic_link_add_one_symbol, to save a hash lookup. Handle XTY_ER/XMC_XO symbols correctly. 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; |