[all-commits] [llvm/llvm-project] 3d9b11: [ELF][ARM] Add getPCBias()

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Nov 27 09:13:44 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3d9b1128d609323dd4017250be0f6def94495205
      https://github.com/llvm/llvm-project/commit/3d9b1128d609323dd4017250be0f6def94495205
  Author: Fangrui Song <maskray at google.com>
  Date:   2019-11-27 (Wed, 27 Nov 2019)

  Changed paths:
    M lld/ELF/Relocations.cpp

  Log Message:
  -----------
  [ELF][ARM] Add getPCBias()

ThunkCreator::getThunk and ThunkCreator::normalizeExistingThunk
currently assume that the implicit addends are -8 for ARM and -4 for
Thumb. In D70637, ThunkCreator::getThunk will need to take care of the
relocation addend explicitly.

Add the utility function getPCBias() as a prerequisite so that the getThunk change in D70637
can be more general.

Reviewed By: peter.smith

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




More information about the All-commits mailing list