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

Change .so load policy and fix symbol visibility problems #210

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

giulianobelinassi
Copy link
Collaborator

Previously, libpulp used RTLD_LAZY in dlopen, which resulted in livepatch that should have failed to apply being applied. In SLE-15-SP4, those patches seems to work regardless of that, but in SP5 it result in problems. Hence, change this policy to RTLD_NOW to force all symbols to be loaded by the linker at patch load time.

Also, this commit now encode the symbol references on packer even if not specified in .dsc by capturing it from the .json dumps, which should improve the support for strong externalizations.

Previously, libpulp used RTLD_LAZY in dlopen, which resulted in
livepatch that should have failed to apply being applied. In SLE-15-SP4,
those patches seems to work regardless of that, but in SP5 it result in
problems. Hence, change this policy to RTLD_NOW to force all symbols
to be loaded by the linker at patch load time.

Also, this commit now encode the symbol references on packer even if
not specified in .dsc by capturing it from the .json dumps, which
should improve the support for strong externalizations.

Signed-off-by: Giuliano Belinassi <[email protected]>
@giulianobelinassi giulianobelinassi merged commit b11427c into SUSE:master Jun 28, 2024
7 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.

1 participant