/opt/stbgcc-4.8-1.5/bin/../lib/gcc/mipsel-linux-gnu/4.8.5/../../../../mipsel-linux-gnu/bin/ld: vmxmod: hidden symbol `fstat' in /opt/stbgcc-4.8-1.5/bin/../mipsel-linux-gnu/sys-root/usr/lib/libc_nonshared.a(fstat.oS) is referenced by DSO
/opt/stbgcc-4.8-1.5/bin/../lib/gcc/mipsel-linux-gnu/4.8.5/../../../../mipsel-linux-gnu/bin/ld: final link failed: Bad value
Поиск в сети находит похожее для библиотек, но у меня не библиотека, и наклядывание патчей на binutils, но у меня готовая сборка от производителя.
Как бы решить проблему с ld: final link failed: Bad value?
Спасибо.
Собирается приложение и оно линкуется с некоторыми библиотеками.
Нашёл такое:
(https://www-01.ibm.com/support/docview.wss?uid=swg1PK66543) писал(а):When linking a library,
'hidden symbol `fstat' in /usr/lib/libc_nonshared.a(fstat.oS) is referenced by DSO' happens.
It appears due to the difference between gcc and ld. Gcc links l ibraries dynamically and ld links statically.
Workaround is to set gcc to DLLER in TDP.
# cat /opt/stbgcc-4.8-1.5/mipsel-linux-gnu/sys-root//usr/lib/libc.so
/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
OUTPUT_FORMAT(elf32-tradlittlemips)
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld.so.1 ) )