Skip to content

Fix macOS linking + argv #40

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

Merged
merged 2 commits into from
May 21, 2025
Merged

Fix macOS linking + argv #40

merged 2 commits into from
May 21, 2025

Conversation

soxfox42
Copy link
Contributor

@soxfox42 soxfox42 commented May 16, 2025

Moving array data to .rodata means I can throw away some linker arguments that were used to work around position-independence issues. Also this is the logical place for it IMO.

Also now the executable will run the libSystem startup code that manages argv.

You'll probably want to test that the .rodata change is fine on x86_64 Linux, I was too lazy 😆

update: s/rodata/data

@MESYETI MESYETI merged commit 892c9b5 into callisto-lang:main May 21, 2025
3 checks passed
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.

2 participants