diff options
Diffstat (limited to 'gold/arm.cc')
-rw-r--r-- | gold/arm.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gold/arm.cc b/gold/arm.cc index d19d04c..76d466b 100644 --- a/gold/arm.cc +++ b/gold/arm.cc @@ -8410,6 +8410,13 @@ Target_arm<big_endian>::Relocate::relocate( // be converted into an NOP. is_weakly_undefined_without_plt = true; } + else if (gsym->is_undefined() && reloc_property->uses_symbol()) + { + // This relocation uses the symbol value but the symbol is + // undefined. Exit early and have the caller reporting an + // error. + return true; + } else { // Set thumb bit if symbol: |