Why is the binary much larger than the object files?

Henrik Mannerström henrik.mannerstrom@gmail.com
Tue Jul 9 13:34:00 GMT 2013


On 07/09/2013 03:30 PM, Florian Weimer wrote:
>
> Do you link statically, by chance?  What does "ldd ./main" show?
>
        linux-vdso.so.1 =>  (0x00007fffdbec0000)
        libgsl.so.0 => /usr/lib64/libgsl.so.0 (0x000000347b200000)
        libcblas.so.3 => /usr/lib64/atlas/libcblas.so.3 (0x0000003477c00000)
        libatlas.so.3 => /usr/lib64/atlas/libatlas.so.3 (0x0000003477000000)
        libc.so.6 => /lib64/libc.so.6 (0x0000003463e00000)
        libm.so.6 => /lib64/libm.so.6 (0x0000003464200000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003464a00000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003463a00000)




More information about the Gcc-help mailing list