D
Deleted member 63539
Guest
I compared two binary compiled by
So is it OK to just link with the system libgcc_s.so.1 or I have to link with the libgcc_s.so.1 shipped with
gcc
I installed from pkg
, the only different between them is libgcc_s.so.1:
Code:
ldd gntest
gntest:
libstdc++.so.6 => /usr/local/lib/gcc9/libstdc++.so.6 (0x800823000)
libm.so.5 => /lib/libm.so.5 (0x800c15000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x800e45000)
libc.so.7 => /lib/libc.so.7 (0x80105d000)
Code:
ldd gwtest
gwtest:
libstdc++.so.6 => /usr/local/lib/gcc9/libstdc++.so.6 (0x800824000)
libm.so.5 => /lib/libm.so.5 (0x800c16000)
libgcc_s.so.1 => /usr/local/lib/gcc9/libgcc_s.so.1 (0x800e46000)
libc.so.7 => /lib/libc.so.7 (0x80105d000)
So is it OK to just link with the system libgcc_s.so.1 or I have to link with the libgcc_s.so.1 shipped with
gcc
? Please let me know. Thanks.