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

Check for glibc version when installing #1332

Open
NobodyXu opened this issue Aug 27, 2023 · 5 comments
Open

Check for glibc version when installing #1332

NobodyXu opened this issue Aug 27, 2023 · 5 comments

Comments

@NobodyXu
Copy link
Member

The best way forward is to check the glibc version used by the binary, if it is newer than the system-installed glibc, then fallback to musl

Originally posted by @NobodyXu in #19 (comment)

@NobodyXu
Copy link
Member Author

From https://stackoverflow.com/a/3436360 :

objdump -T /usr/sbin/nordvpnd | grep GLIBC | sed 's/.*GLIBC_\([.0-9]*\).*/\1/g' | sort -Vu

This will list glibc version of symbols pulled in.

@NobodyXu
Copy link
Member Author

I've found object crate that can parse ELFs, however I still don't know how to get the version info gimli-rs/object#572

@messense
Copy link

FYI, you can refer to https://github.com/messense/auditwheel-symbols/blob/master/src/main.rs for how to use goblin to get symbol version info.

@NobodyXu
Copy link
Member Author

Thanks!

@NobodyXu
Copy link
Member Author

NobodyXu commented May 8, 2024

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

No branches or pull requests

2 participants