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

Makefile: add -rdynamic on macOS to fix plugins with LTO #4680

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

widlarizer
Copy link
Collaborator

Prior to this change, some symbols would be missing from the yosys executable if built on macOS with LTO. This would break plugins on dlopen. By adding -rdynamic to the linker flags, we can export all symbols even if they're unused due to LTO-enabled inlining or otherwise. You can check the exported symbols by building yosys with LTO on macOS and running objdump --macho --exports-trie yosys.

@widlarizer widlarizer added the merge-before-release Merge: PR should be included in the next release label Nov 4, 2024
@widlarizer
Copy link
Collaborator Author

Oh well

@widlarizer widlarizer merged commit 792de6e into main Nov 8, 2024
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-before-release Merge: PR should be included in the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant