[PATCH] D117612: [BOLT] Update dynamic relocations from section relocations

Vladislav Khmelevsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 20 14:05:23 PST 2022


yota9 updated this revision to Diff 401777.
yota9 added a comment.

Replace isJmpRel() with IsJmpRel flag in relocation struct. Since some of the linkers are inconsistent (e.g. the LD places R_AARCH64_TLSDESC in .rela.plt and lld places it in .rela.dyn) the flag usage looks like more robust solution, then on-type decisions.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D117612

Files:
  bolt/include/bolt/Core/BinaryContext.h
  bolt/include/bolt/Core/BinarySection.h
  bolt/include/bolt/Core/Relocation.h
  bolt/include/bolt/Rewrite/RewriteInstance.h
  bolt/lib/Core/BinaryContext.cpp
  bolt/lib/Core/Relocation.cpp
  bolt/lib/Rewrite/RewriteInstance.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117612.401777.patch
Type: text/x-patch
Size: 17816 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220120/da9fb04e/attachment.bin>


More information about the llvm-commits mailing list