Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macho: create dummy atom of size 0 marking the end of a section #21680

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

kubkon
Copy link
Member

@kubkon kubkon commented Oct 12, 2024

Some compilers such as Go reference the end of a section (addr + size) which cannot be contained in any non-zero atom (since then this atom would exceed section boundaries). In order to facilitate this behaviour, we create a dummy zero-sized atom at section end (addr + size).

Closes #20243

Some compilers such as Go reference the end of a section (addr + size)
which cannot be contained in any non-zero atom (since then this atom
would exceed section boundaries). In order to facilitate this behaviour,
we create a dummy zero-sized atom at section end (addr + size).
@andrewrk andrewrk enabled auto-merge (rebase) October 12, 2024 06:58
@andrewrk andrewrk merged commit 7e530c1 into master Oct 12, 2024
10 checks passed
@andrewrk andrewrk deleted the issue-20243 branch October 12, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cgo build failed when cc='zig cc'
2 participants