From 6b611e1c52f6f7fa0ea0b18820058a4ab671aafe Mon Sep 17 00:00:00 2001 From: Dmitri Makarov Date: Mon, 11 Apr 2022 17:35:05 -0700 Subject: [PATCH] Bump bpf-tools to v1.25 - Tweak linker script Ensure that all read only sections end up in one segment, and everything else in other segments. Discard .eh_frame, .hash and .gnu.hash since they are unused. - Don't create invalid string slices in stdout/stderr on Solana - Report exceeded stack size as a warning if dynamic frames are off - Native support for signed division in SBF Adds BPF_SDIV, which is enabled only for the SBF subtarget. - Introduce dynamic stack frames and the SBFv2 flag Dynamic stack frames are currently opt-in and enabled setting cpu=sbfv2. When sbfv2 is used, ELF files are flagged with e_flags=EF_SBF_V2 so the runtime can detect it and react accordingly. --- sdk/bpf/scripts/install.sh | 2 +- sdk/cargo-build-bpf/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/bpf/scripts/install.sh b/sdk/bpf/scripts/install.sh index f442820d6c..1a42b647ca 100755 --- a/sdk/bpf/scripts/install.sh +++ b/sdk/bpf/scripts/install.sh @@ -102,7 +102,7 @@ if [[ ! -e criterion-$version.md || ! -e criterion ]]; then fi # Install Rust-BPF -version=v1.24 +version=v1.25 if [[ ! -e bpf-tools-$version.md || ! -e bpf-tools ]]; then ( set -e diff --git a/sdk/cargo-build-bpf/src/main.rs b/sdk/cargo-build-bpf/src/main.rs index 9341f2f6f7..e2f330f078 100644 --- a/sdk/cargo-build-bpf/src/main.rs +++ b/sdk/cargo-build-bpf/src/main.rs @@ -710,7 +710,7 @@ fn main() { // The following line is scanned by CI configuration script to // separate cargo caches according to the version of sbf-tools. - let bpf_tools_version = "v1.24"; + let bpf_tools_version = "v1.25"; let version = format!("{}\nbpf-tools {}", crate_version!(), bpf_tools_version); let matches = clap::Command::new(crate_name!()) .about(crate_description!())