# compiler: make all Zig-provided libraries use \-ffunction-sections \-fdata-sections · gitcafe/zig

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

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

Visibility: public

Requested revision: a996a75e06193d377c3071042ece1c3af5cfdc6c

Requested commit: a996a75e06193d377c3071042ece1c3af5cfdc6c

Commit: a996a75e06193d377c3071042ece1c3af5cfdc6c

Tree: 389c9eb5b65a4cd639e9d3ca6c0ac0eed6b927c6

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
compiler: make all Zig-provided libraries use -ffunction-sections -fdata-sections

We already did this for some of them; this just makes us consistent. Doing this
gives the linker more flexibility to rearrange code/data, but more importantly,
allows --gc-sections to get rid of all the unused code, which is a real concern
for these libraries in particular.

```

## Parents

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

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