# macho: resolve special section/segment boundary symbols · gitcafe/zig

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

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

Visibility: public

Requested revision: 0f2489d8fc314c67bec7d77832cb6ba773f48738

Requested commit: 0f2489d8fc314c67bec7d77832cb6ba773f48738

Commit: 0f2489d8fc314c67bec7d77832cb6ba773f48738

Tree: d70f526927583c469cce908851102714e1701ecc

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
macho: resolve special section/segment boundary symbols

Boundary symbols have a special name prefix:

* section$start$segname$sectname
* section$stop$segname$sectname
* segment$start$segname
* segment$stop$segname

and will resolve to either start or end of the respective
section/segment if found.

If not found, we return an error stating we couldn't find the
requested section/segment rather than silently failing and resolving
the address to 0 which seems to be the case with Apple's ld64.

```

## Parents

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

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