File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 33pushd storage_program
44./build.sh
55popd
6- storage_binary=./storage_program/target/x86_64-unknown-linux-musl/ release/demo
6+ storage_binary=./storage_program/target/release/demo
77objcopy -w --extract-symbol --strip-symbol=! remote* --strip-symbol=* $storage_binary storage.syms
88gcc-12 -static -O2 symbol_offset.c -o symbol_offset
99./symbol_offset storage.syms 0x44000000
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -e
3- RUSTFLAGS=" -Zexport-executable-symbols" cargo build --target x86_64-unknown-linux-musl --release
3+ RUSTFLAGS=" -Ctarget-feature=+crt-static -Zexport-executable-symbols" cargo build --release
4+ # RUSTFLAGS="-Zexport-executable-symbols" cargo build --target x86_64-unknown-linux-musl --release
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ use std::process::ExitCode;
22
33#[ no_mangle]
44extern "C" fn remote_function ( arg : fn ( i32 ) -> i32 , value : i32 ) -> i32 {
5+ //println!("In remote_function with value: {}", value);
56 return arg ( value) ;
67}
78
You can’t perform that action at this time.
0 commit comments