Skip to content

Commit 5d86fb7

Browse files
authored
Revert "[Object] Handle SHT_CREL relocation sections when resolving relocation data" (#142068)
Reverts #141843 The test case relies on clang, which LLVM test cases can't use.
1 parent fc1484b commit 5d86fb7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Object/RelocationResolver.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -888,8 +888,7 @@ uint64_t resolveRelocation(RelocationResolver Resolver, const RelocationRef &R,
888888
return Elf64BEObj->getRelSection(R.getRawDataRefImpl())->sh_type;
889889
};
890890

891-
if (GetRelSectionType() == ELF::SHT_RELA ||
892-
GetRelSectionType() == ELF::SHT_CREL) {
891+
if (GetRelSectionType() == ELF::SHT_RELA) {
893892
Addend = getELFAddend(R);
894893
// LoongArch and RISCV relocations use both LocData and Addend.
895894
if (Obj->getArch() != Triple::loongarch32 &&

0 commit comments

Comments
 (0)