[PATCH] D14957: [ELF/AArch64] Fix overflow checks for R_AARCH64_{ABS, PREL}{16, 32} relocations.

Igor Kudrin via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 24 08:45:12 PST 2015


ikudrin created this revision.
ikudrin added reviewers: ruiu, davide, rafael.
ikudrin added a subscriber: llvm-commits.
ikudrin added a project: lld.
Herald added subscribers: rengolin, aemerson.

ABI specifies the allowed range for the result of these relocations as 2^(n-1) <= X < 2^n.

In addition, this patch makes tests for these relocations precise.

http://reviews.llvm.org/D14957

Files:
  ELF/Target.cpp
  test/ELF/Inputs/abs255.s
  test/ELF/Inputs/abs256.s
  test/ELF/Inputs/abs257.s
  test/ELF/aarch64-abs16-error.s
  test/ELF/aarch64-abs16.s
  test/ELF/aarch64-abs32-error.s
  test/ELF/aarch64-abs32.s
  test/ELF/aarch64-data-relocs.s
  test/ELF/aarch64-prel16-error.s
  test/ELF/aarch64-prel16.s
  test/ELF/aarch64-prel32-error.s
  test/ELF/aarch64-prel32.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14957.41055.patch
Type: text/x-patch
Size: 10319 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151124/6d15aa34/attachment.bin>


More information about the llvm-commits mailing list