aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/c.zig
diff options
context:
space:
mode:
authorKenta Iwasaki <kenta@lithdew.net>2021-10-29 18:03:55 +0900
committerAndrew Kelley <andrew@ziglang.org>2021-10-29 19:18:44 -0400
commit2cdffc97f062feb898f4c8268f1ec6e252077e96 (patch)
tree4e173d722842737d1e995592f45d9e8577fbd091 /src/codegen/c.zig
parent83a4bb6e6957325b744a08e16cab6b2a4a045f3e (diff)
downloadzig-2cdffc97f062feb898f4c8268f1ec6e252077e96.tar.gz
zig-2cdffc97f062feb898f4c8268f1ec6e252077e96.zip
zig: expose linker options and include '-z notext'
Add an option to allow the '-z notext' option to be passed to the linker via. the compiler frontend, which is a flag that tells the linker that relocations in read-only sections are permitted. Certain targets such as Solana BPF rely on this flag. Expose all linker options i.e. '-z nodelete', '-z now', '-z relro' in the compiler frontend. Usage documentation has been updated accordingly. Expose the '-z notext' flag in the standard library build runner.
Diffstat (limited to 'src/codegen/c.zig')
0 files changed, 0 insertions, 0 deletions