# stage2 macho: cleanup indirect symbol table writes · gitcafe/zig

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

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

Visibility: public

Requested revision: e32131cfae60859340ea43893fa1d0f70701ec31

Requested commit: e32131cfae60859340ea43893fa1d0f70701ec31

Commit: e32131cfae60859340ea43893fa1d0f70701ec31

Tree: db2a51cb72d126c4fe08d43facf48217c0d47fe9

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
stage2 macho: cleanup indirect symbol table writes

Also, force rewriting of code signature padding at every update so
that we take into account possible section relocs and expansion of
the last preceeding section, e.g., the string table.

This commit also tweak the logic responsible for managing debug lines
in `DebugSymbols`. In particular, in case we update the same function,
we'd previously incorrectly create a cycle adding pointer to the same
`SrcFn` to itself.

```

## Parents

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

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