Date: Mon, 5 Dec 2016 21:33:25 -0500 From: Rich Felker <dalias@...c.org> To: musl@...ts.openwall.com Subject: Re: ldd not working on ET_EXEC executables On Mon, Dec 05, 2016 at 07:39:32PM -0600, Laine Gholson wrote: > Hello, > > I am running musl on a ARM platform, and ldd won't work on a executable with the ET_EXEC type. > > running GNU ld 2.25.1, gcc 6.2.0, and musl 1.1.15-git-71-g54991729 > > $ gcc -fPIE -pie test.c -o test-pie > $ ldd test-pie > <no error> > $ gcc -fno-PIE -no-pie test.c -o test-nopie > $ ldd test-nopie > ldd: test-nopie: Not a valid dynamic program > $ elfedit --output-type DYN test-nopie > $ ldd test-nopie > <no error> > > Any idea why ldd says executables with the ET_EXEC type aren't valid? strace it; I suspect you'll find that mmap is not honoring the requested address. This is a bug introduced intentionally by grsec/pax and perhaps other hardened kernels. Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.