# zig: expose linker options and include '\-z notext' · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/2cdffc97f062feb898f4c8268f1ec6e252077e96)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 2cdffc97f062feb898f4c8268f1ec6e252077e96

Requested commit: 2cdffc97f062feb898f4c8268f1ec6e252077e96

Commit: 2cdffc97f062feb898f4c8268f1ec6e252077e96

Tree: 4e173d722842737d1e995592f45d9e8577fbd091

Author: Kenta Iwasaki

Committer: Andrew Kelley

## Message

```
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.

```

## Parents

- [83a4bb6e6957325b744a08e16cab6b2a4a045f3e](https://git.cafe/gitcafe/zig/commit/83a4bb6e6957325b744a08e16cab6b2a4a045f3e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/2cdffc97f062feb898f4c8268f1ec6e252077e96?format=markdown)
