diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2022-08-24 19:26:05 +0000 |
---|---|---|
committer | Sami Tolvanen <samitolvanen@google.com> | 2022-08-24 19:30:13 +0000 |
commit | a79060e275440ccd8d403d5af5fb5b9395ea3fac (patch) | |
tree | 7d29f75ff6c6a0cd2ceba3945e7d7cc0951c1d79 /llvm/lib/MC/MCObjectFileInfo.cpp | |
parent | dda38786534af733786c681e0c47b863e0626a0e (diff) | |
download | llvm-a79060e275440ccd8d403d5af5fb5b9395ea3fac.zip llvm-a79060e275440ccd8d403d5af5fb5b9395ea3fac.tar.gz llvm-a79060e275440ccd8d403d5af5fb5b9395ea3fac.tar.bz2 |
Revert "KCFI sanitizer"
This reverts commit 67504c95494ff05be2a613129110c9bcf17f6c13 as using
PointerEmbeddedInt to store 32 bits breaks 32-bit arm builds.
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r-- | llvm/lib/MC/MCObjectFileInfo.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp index 03ee0c0..a7655c9 100644 --- a/llvm/lib/MC/MCObjectFileInfo.cpp +++ b/llvm/lib/MC/MCObjectFileInfo.cpp @@ -1141,25 +1141,6 @@ MCObjectFileInfo::getBBAddrMapSection(const MCSection &TextSec) const { } MCSection * -MCObjectFileInfo::getKCFITrapSection(const MCSection &TextSec) const { - if (Ctx->getObjectFileType() != MCContext::IsELF) - return nullptr; - - const MCSectionELF &ElfSec = static_cast<const MCSectionELF &>(TextSec); - unsigned Flags = ELF::SHF_LINK_ORDER | ELF::SHF_ALLOC; - StringRef GroupName; - if (const MCSymbol *Group = ElfSec.getGroup()) { - GroupName = Group->getName(); - Flags |= ELF::SHF_GROUP; - } - - return Ctx->getELFSection(".kcfi_traps", ELF::SHT_PROGBITS, Flags, 0, - GroupName, - /*IsComdat=*/true, ElfSec.getUniqueID(), - cast<MCSymbolELF>(TextSec.getBeginSymbol())); -} - -MCSection * MCObjectFileInfo::getPseudoProbeSection(const MCSection *TextSec) const { if (Ctx->getObjectFileType() == MCContext::IsELF) { const auto *ElfSec = static_cast<const MCSectionELF *>(TextSec); |