[PATCH] D91426: [PowerPC] Fix issue where binary uses a .got but is missing a .TOC.

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 30 13:02:26 PDT 2021


MaskRay accepted this revision.
MaskRay added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lld/test/ELF/ppc64-check-missing-tocbase.s:36
+.Lpcrel0:
+	.reloc .Lpcrel0-8,R_PPC64_PCREL_OPT,.-(.Lpcrel0-8)
+	lwa 3, 0(3)
----------------
I know there is prior art but why can't this be written as t`.reloc ., R_PPC64_PCREL_OPT, 0` before `pld`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D91426



More information about the llvm-commits mailing list