Skip to content

Conversation

LucasSte
Copy link
Collaborator

Problem

#65 rectified a problem in the old BPF target whereby we were emitting the wrong relocation type for debug sections.

After abandoning the EM_BPF machine flag, these lines were not patched.

Solution

Swap BPF by SBF.

The definitive fix to the wrong relocation emission is in SBPFv3. See FeatureRelocAbs64 here:

FeatureDisableNeg, FeatureReverseSubImm, ALU32, FeatureStaticSyscalls, FeatureRelocAbs64]>;

@LucasSte
Copy link
Collaborator Author

Fixes anza-xyz/rust#131

@LucasSte LucasSte requested a review from Lichtso June 27, 2025 22:48
@LucasSte LucasSte marked this pull request as ready for review June 27, 2025 22:48
@LucasSte LucasSte merged commit ecdfcf8 into anza-xyz:solana-rustc/19.1-2024-12-03 Jun 30, 2025
8 checks passed
@LucasSte LucasSte deleted the fix-debug branch June 30, 2025 14:02
LucasSte added a commit to LucasSte/llvm-project that referenced this pull request Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants