--version-script
should be applicable for --export-dynamic
binaries
#19870
Milestone
--version-script
should be applicable for --export-dynamic
binaries
#19870
Zig Version
0.13.0-dev.46+3648d7df1
Steps to Reproduce and Observed Behavior
I'm trying to export a symbol from my binary (kinda similar to #6804).
For the following code:
Using
zig build-exe -O ReleaseSmall --force_undefined FOO -rdynamic src/main.zig
exports the symbolFOO
but also export a bunch of symbols that I don't need to export:-rdynamic
documentation mentionsAdd all symbols to the dynamic symbol table
.I tried using
--version-script <version_script> --no-undefined-version
but--version-script
doesn't seem to change the linker command at all (at least forbuild-exe
).--version-script
behavior is exactly what I need here although I cannot use this forbuild-exe
due to version script only used fordyn_libs
here. I think--version-script
behavior shouldn't be restricted only tois_dyn_libs
but also executables with-rdynamic
.Rust does this as well to ensure certain symbols are maintained in the executable here
Expected Behavior
--version-script
and related must apply for executables when-rdynamic
flag is applied.The text was updated successfully, but these errors were encountered: