[PATCH] D63690: [ELF][PPC][X86] Use [-2**(n-1), 2**n) to check overflows for R_PPC_ADDR16, R_PPC64_ADDR{16,32}, R_X86_64_{8,16}

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 23 22:36:20 PDT 2019


MaskRay updated this revision to Diff 206156.
MaskRay retitled this revision from "[ELF][PPC][X86] Check overflow using [-2**(n-1), 2**n) for R_PPC_ADDR16, R_PPC64_ADDR{16,32}, R_X86_64_{8,16}" to "[ELF][PPC][X86] Use [-2**(n-1), 2**n) to check overflows for R_PPC_ADDR16, R_PPC64_ADDR{16,32}, R_X86_64_{8,16}".
MaskRay edited the summary of this revision.
MaskRay added a comment.

use .code16 to make i386 tests more reasonable


Repository:
  rLLD LLVM Linker

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63690/new/

https://reviews.llvm.org/D63690

Files:
  ELF/Arch/PPC.cpp
  ELF/Arch/PPC64.cpp
  ELF/Arch/X86_64.cpp
  ELF/Target.h
  test/ELF/Inputs/i386-reloc-16-error.s
  test/ELF/Inputs/i386-reloc-16.s
  test/ELF/Inputs/i386-reloc-8-error.s
  test/ELF/Inputs/i386-reloc-8.s
  test/ELF/Inputs/x86-64-reloc-16-error.s
  test/ELF/Inputs/x86-64-reloc-16.s
  test/ELF/Inputs/x86-64-reloc-8-error.s
  test/ELF/Inputs/x86-64-reloc-8.s
  test/ELF/aarch64-abs16.s
  test/ELF/aarch64-abs32.s
  test/ELF/aarch64-prel16.s
  test/ELF/aarch64-prel32.s
  test/ELF/i386-reloc-16.s
  test/ELF/i386-reloc-8.s
  test/ELF/ppc32-reloc-addr.s
  test/ELF/ppc64-addr16-error.s
  test/ELF/ppc64-reloc-addr.s
  test/ELF/x86-64-reloc-16.s
  test/ELF/x86-64-reloc-8-16.s
  test/ELF/x86-64-reloc-8.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63690.206156.patch
Type: text/x-patch
Size: 16274 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190624/0e64d7f9/attachment.bin>


More information about the llvm-commits mailing list