Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update link scripts and elf build script #27

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

LucasSte
Copy link
Collaborator

@LucasSte LucasSte commented Jan 30, 2025

This PR is a split from #24.

Changes:

  1. Renamed elf_sbpfv1.ld to elf_sbpfv0.ld
  2. Updated the link script for SBPFv3.
  3. Updated the elf.sh build script to build files for SBPFv0 and SBPFv3, using the yet to be released v1.44 platform tools.

PS: SBPFv0 binaries will be changed in a follow-up PR.

RC_COMMON="$TOOLCHAIN/rust/bin/rustc --target sbf-solana-solana --crate-type lib -C panic=abort -C opt-level=2"
RC="$RC_COMMON -C target_cpu=sbfv2"
RC_V1="$RC_COMMON -C target_cpu=generic"
TOOLCHAIN="$HOME"/.cache/solana/v1.44/platform-tools/
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is where cargo-build-sbf installs the platform tools locally.

@LucasSte LucasSte requested a review from Lichtso January 30, 2025 20:15
@LucasSte LucasSte marked this pull request as ready for review January 30, 2025 20:15
@LucasSte LucasSte merged commit 1174253 into anza-xyz:main Jan 31, 2025
11 checks passed
@LucasSte LucasSte deleted the new-scripts branch January 31, 2025 12:50
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