Skip to content

Instantly share code, notes, and snippets.

View vladimyr's full-sized avatar
💭
fantom slobode

Dario Vladović vladimyr

💭
fantom slobode
View GitHub Profile
@vladimyr
vladimyr / glibc-check.sh
Last active April 20, 2021 00:10 — forked from fasterthanlime/glibc-check.sh
Prints the various glibc versions required by an executable
#!/bin/bash
# This scripts lets you check which minimum GLIBC version an executable requires.
# Simply run './glibc-check.sh path/to/your/binary'
#
# You can set `MAX_VER` however low you want, although I (fasterthanlime)
# feel like `2.13` is a good target (For reference, Ubuntu 12.04 has GLIBC 2.15)
MAX_VER="${MAX_VER:-2.13}"
BINARY="$1"