Skip to content

Commit ecdfcf8

Browse files
authored
[SOL] Fix debug relocation in SBF (#159)
1 parent 29ed9ce commit ecdfcf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/ELF/InputSection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ void InputSection::relocateNonAlloc(uint8_t *buf, Relocs<RelTy> rels) {
974974
const uint64_t offset = rel.r_offset;
975975

976976
// FIX: Temporary remap BPF_64_64 relocations in debug sections.
977-
if (config->emachine == EM_BPF && type == R_BPF_64_64 && isDebug)
977+
if (config->emachine == EM_SBF && type == R_SBF_64_64 && isDebug)
978978
type = R_BPF_64_ABS64;
979979

980980
uint8_t *bufLoc = buf + offset;

0 commit comments

Comments
 (0)