0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2024-12-16 06:48:48 +00:00
libsql/libsql-sqlite3/ext/crr/rs/bundle/keep-stack-sizes.x
2023-10-16 13:58:16 +02:00

12 lines
392 B
Plaintext

/* file: keep-stack-sizes.x */
SECTIONS
{
/* `INFO` makes the section not allocatable so it won't be loaded into memory */
.stack_sizes (INFO) :
{
KEEP(*(.stack_sizes));
}
}
/* RUSTFLAGS="-Z emit-stack-sizes" cargo rustc --release -- -C link-arg=-Wl,-Tkeep-stack-sizes.x -C link-arg=-N */
/* https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/emit-stack-sizes.html */