Skip to content

std.os.linux.pie: Remove .weak/.hidden usage in inline assembly. #21260

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

Closed
wants to merge 3 commits into from

Conversation

alexrp
Copy link
Member

@alexrp alexrp commented Aug 31, 2024

This code is only compiled into the executable in PIE builds, so there really doesn't seem to be a compelling reason for _DYNAMIC to be accessed as a weak symbol.

Small step towards #10761.

alexrp added 3 commits August 31, 2024 11:12
This just reflects the name it's actually exposed with in code.
This code is only compiled into the executable in PIE builds, so there really
doesn't seem to be a compelling reason for `_DYNAMIC` to be accessed as a weak
symbol.

Small step towards ziglang#10761.
@alexrp
Copy link
Member Author

alexrp commented Aug 31, 2024

Resulting executables appear broken in some cases, so this didn't work out as well as I'd hoped. 🙁

@alexrp alexrp closed this Aug 31, 2024
@alexrp alexrp deleted the pie-weak-sym branch August 31, 2024 11: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.

1 participant