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: investigate ld crash using ld64.zld generated combined relocatable file #98

Closed
kubkon opened this issue Jan 6, 2024 · 2 comments · Fixed by #101
Closed

macho: investigate ld crash using ld64.zld generated combined relocatable file #98

kubkon opened this issue Jan 6, 2024 · 2 comments · Fixed by #101
Labels
bug Something isn't working

Comments

@kubkon
Copy link
Owner

kubkon commented Jan 6, 2024

Extracted from #95

@kubkon kubkon added the bug Something isn't working label Jan 6, 2024
@kubkon
Copy link
Owner Author

kubkon commented Jan 8, 2024

I have managed to narrow it down and create a minimal repro which allowed me to debug the issue with Apple's linker. Namely, it expects all relocations to be ordered in descending order (largest offset first).

@kubkon
Copy link
Owner Author

kubkon commented Jan 8, 2024

I should add that both LLD and zld do not have any problem with input like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant