diff options
author | Nick Clifton <nickc@redhat.com> | 2020-08-26 15:50:36 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-08-26 15:51:56 +0100 |
commit | b74a6c6086033907f4ea1dbd61166ee63b6f0a99 (patch) | |
tree | b202af1dd450ff3d97e0bb02dd8d17352426909f /bfd/elfnn-aarch64.c | |
parent | 31b3f3e6e42083e411c47e789eb617070d5ba0e4 (diff) | |
download | gdb-b74a6c6086033907f4ea1dbd61166ee63b6f0a99.zip gdb-b74a6c6086033907f4ea1dbd61166ee63b6f0a99.tar.gz gdb-b74a6c6086033907f4ea1dbd61166ee63b6f0a99.tar.bz2 |
Fix a sanitization problem running the linker testsuite for the AArch64 target.
PR 26411
* elfnn-aarch64.c (elfNN_aarch64_relocate_section): Use an
unsigned long constant when creating a mask to test for alignment
issues.
Diffstat (limited to 'bfd/elfnn-aarch64.c')
-rw-r--r-- | bfd/elfnn-aarch64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c index 9b0b51b..302d8dd 100644 --- a/bfd/elfnn-aarch64.c +++ b/bfd/elfnn-aarch64.c @@ -7139,7 +7139,7 @@ elfNN_aarch64_relocate_section (bfd *output_bfd, Try to catch this situation here and provide a more helpful error message to the user. */ - if (addend & ((1 << howto->rightshift) - 1) + if (addend & ((1UL << howto->rightshift) - 1) /* FIXME: Are we testing all of the appropriate reloc types here ? */ && (real_r_type == BFD_RELOC_AARCH64_LD_LO19_PCREL |