Andreas Enge on Tue, 12 Mar 2013 16:52:22 +0100

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Static gp?

The documentation states that "make bench" creates a static gp binary.

$ file gp-sta
gp-sta: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0xb9f06eef5d69688139e94b16aadd10825bff4933, not stripped

$ ldd gp-sta =>  (0x00007fffce1ff000) => /lib/x86_64-linux-gnu/ (0x00007fb0030d8000) => /usr/lib/x86_64-linux-gnu/ (0x00007fb002d9b000) => /lib/x86_64-linux-gnu/ (0x00007fb002b97000) => /usr/local/gmp-5.0.5/lib/ (0x00007fb00292b000) => /lib/x86_64-linux-gnu/ (0x00007fb0026a9000) => /lib/x86_64-linux-gnu/ (0x00007fb00231e000) => /lib/x86_64-linux-gnu/ (0x00007fb0020f5000) => /usr/lib/x86_64-linux-gnu/ (0x00007fb001ed5000)
        /lib64/ (0x00007fb00333d000) => /usr/lib/x86_64-linux-gnu/ (0x00007fb001cd1000) => /usr/lib/x86_64-linux-gnu/ (0x00007fb001acc000)

It looks like the only part that is really static is,
which appears in "ldd gp-dyn", but not here. Is this intentional and just
a problem with the documentation?

Having a static binary can be handy when one just wants to copy gp to another