diff options
author | Andrew Pinski <apinski@cavium.com> | 2013-07-27 23:58:43 +0000 |
---|---|---|
committer | Andrew Pinski <apinski@cavium.com> | 2013-07-27 23:58:43 +0000 |
commit | 54757ed169780b965031861d5c6dd918545a88cf (patch) | |
tree | 4ff8c7450217ce99e7ad4e8adeee0b8297497ba1 /bfd/elfnn-aarch64.c | |
parent | f6518c488a569b2c32c062f16412ffbf869bbbe3 (diff) | |
download | gdb-54757ed169780b965031861d5c6dd918545a88cf.zip gdb-54757ed169780b965031861d5c6dd918545a88cf.tar.gz gdb-54757ed169780b965031861d5c6dd918545a88cf.tar.bz2 |
2013-07-27 Andrew Pinski <apinski@cavium.com>
* elfnn-aarch64.c (elfNN_aarch64_howto_from_bfd_reloc): Handle
BFD_RELOC_AARCH64_NONE explicitly.
Diffstat (limited to 'bfd/elfnn-aarch64.c')
-rw-r--r-- | bfd/elfnn-aarch64.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c index 8e191cf..a219310 100644 --- a/bfd/elfnn-aarch64.c +++ b/bfd/elfnn-aarch64.c @@ -1465,6 +1465,9 @@ elfNN_aarch64_howto_from_bfd_reloc (bfd_reloc_code_real_type code) if (elfNN_aarch64_howto_table[code - BFD_RELOC_AARCH64_RELOC_START].type) return &elfNN_aarch64_howto_table[code - BFD_RELOC_AARCH64_RELOC_START]; + if (code == BFD_RELOC_AARCH64_NONE) + return &elfNN_aarch64_howto_none; + return NULL; } |