// If it gets cumbersome to maintain this whitelist, we could just check for
// startswith("/lib/ld") || startswith("/lib64/ld"), and trust that no admin
// would install untrustworthy loaders in those paths.
- if ((interpreter != "/lib/ld.so.1" // ppc / s390
- && interpreter != "/lib/ld64.so.1" // s390x
- && interpreter != "/lib64/ld64.so.1"
- && interpreter != "/lib/ld-linux-ia64.so.2" // ia64
- && interpreter != "/emul/ia32-linux/lib/ld-linux.so.2"
- && interpreter != "/lib64/ld-linux-x86-64.so.2" // x8664
- && interpreter != "/lib/ld-linux.so.2" // x86
- && interpreter != "/lib/ld-linux.so.3")) // arm
+ // See also http://sourceware.org/git/?p=glibc.git;a=blob;f=shlib-versions;hb=HEAD
+ if (interpreter != "/lib/ld.so.1" // s390, ppc
+ && interpreter != "/lib/ld64.so.1" // s390x, ppc64
+ && interpreter != "/lib64/ld64.so.1"
+ && interpreter != "/lib/ld-linux-ia64.so.2" // ia64
+ && interpreter != "/emul/ia32-linux/lib/ld-linux.so.2"
+ && interpreter != "/lib64/ld-linux-x86-64.so.2" // x8664
+ && interpreter != "/lib/ld-linux.so.2" // x86
+ && interpreter != "/lib/ld-linux.so.3" // arm
+ && interpreter != "/lib/ld-linux-armhf.so.3" // arm
+ )
{
sess.print_warning (_F("module %s --ldd skipped: unsupported interpreter: %s",
module_name.c_str(), interpreter.c_str()));