[all-commits] [llvm/llvm-project] 4101aa: [BOLT] Support PC-relative relocations with addends

maksfb via All-commits all-commits at lists.llvm.org
Wed Feb 23 22:55:50 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4101aa130a829a3121adb5b4c134a40c4272158e
      https://github.com/llvm/llvm-project/commit/4101aa130a829a3121adb5b4c134a40c4272158e
  Author: Maksim Panchenko <maks at fb.com>
  Date:   2022-02-23 (Wed, 23 Feb 2022)

  Changed paths:
    M bolt/include/bolt/Core/BinaryFunction.h
    M bolt/include/bolt/Core/Relocation.h
    M bolt/lib/Core/BinaryFunction.cpp
    M bolt/lib/Core/Relocation.cpp
    M bolt/lib/Rewrite/RewriteInstance.cpp
    A bolt/test/X86/fptr-addend-pcrel.s

  Log Message:
  -----------
  [BOLT] Support PC-relative relocations with addends

PC-relative memory operand could reference a different object from
the one located at the target address, e.g. when a negative offset
is used. Check relocations for the real referenced object.

Reviewed By: rafauler

Differential Revision: https://reviews.llvm.org/D120379




More information about the All-commits mailing list