# zld: allow for existence of \_\_DATA_CONST segments in objects · gitcafe/zig

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

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

Visibility: public

Requested revision: ac587744e30817df86b9c759b307d41fe7951832

Requested commit: ac587744e30817df86b9c759b307d41fe7951832

Commit: ac587744e30817df86b9c759b307d41fe7951832

Tree: 381dfc50274b71d2071c115e28e4a1cf527c6810

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
zld: allow for existence of __DATA_CONST segments in objects

Up until now, we only expected old-fashioned objects which carried
two basic segments by name: __TEXT and __DATA. Since macOS 11.1,
there is a new segment __DATA_CONST, and we should expect and
correctly parse sections designated to that segment explicitly
as is the case in golang.

```

## Parents

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

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