# elf: Put constant data in the \.rodata section · gitcafe/zig

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

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

Visibility: public

Requested revision: e15a267668bae168f2bba06cc3706c54bc062522

Requested commit: e15a267668bae168f2bba06cc3706c54bc062522

Commit: e15a267668bae168f2bba06cc3706c54bc062522

Tree: b84e6f17eda1e677dbb7a9adcf630741ae94c05b

Author: Ersikan

Committer: Andrew Kelley

## Message

```
elf: Put constant data in the .rodata section

Allocate a new program header and a new section to accomodate the read-only data
section ".rodata".

Separate TextBlock into multiple TextBlockList, to separate decl in different
sections.

If a Decl is not a function, it is added to the .rodata section.

```

## Parents

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

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