Skip to content

Commit 1802759

Browse files
committed
[SOL] Fix debug relocation in SBF (#159)
1 parent 39026ce commit 1802759

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
@@ -1043,7 +1043,7 @@ void InputSection::relocateNonAlloc(Ctx &ctx, uint8_t *buf,
10431043
const uint64_t offset = rel.r_offset;
10441044

10451045
// FIX: Temporary remap BPF_64_64 relocations in debug sections.
1046-
if (config->emachine == EM_BPF && type == R_BPF_64_64 && isDebug)
1046+
if (config->emachine == EM_SBF && type == R_SBF_64_64 && isDebug)
10471047
type = R_BPF_64_ABS64;
10481048

10491049
uint8_t *bufLoc = buf + offset;

0 commit comments

Comments
 (0)