Executables built with (e.g.) g++ -static still show a runtime dependency
on /lib/ld-musl-x86_64.so.1. My recollection from the past was that it was
possible to achieve a completely static a.out. Is there a way?
On 3/6/20 9:12 AM, Benson Margulies wrote:
> Executables built with (e.g.) g++ -static still show a runtime > dependency on /lib/ld-musl-x86_64.so.1. My recollection from the past > was that it was possible to achieve a completely static a.out. Is there > a way?>
It is not possible to run PIE binary without dynamic linker - it needs
to do relocations at runtime.
I don't know if it's possible to bundle dynamic linker with your binary.
Thank you.
Is it possible to turn off the PIE?
I may be able to ship the linker along with, but I just want to understand
the options.
On Fri, Mar 6, 2020 at 12:42 AM Konstantin Kulikov <k.kulikov2@gmail.com>
wrote:
> On 3/6/20 9:12 AM, Benson Margulies wrote:> > Executables built with (e.g.) g++ -static still show a runtime> > dependency on /lib/ld-musl-x86_64.so.1. My recollection from the past> > was that it was possible to achieve a completely static a.out. Is there> > a way?> >>> It is not possible to run PIE binary without dynamic linker - it needs> to do relocations at runtime.>> I don't know if it's possible to bundle dynamic linker with your binary.>