Date: Mon, 19 Sep 2016 10:21:03 +0200 From: Alexandre Martins <alexandre.martins@stormshield.eu> To: freebsd-arm@freebsd.org Subject: Static linking issue with gcc Message-ID: <11701790.A313naQeaZ@pc-alex>
index | next in thread | raw e-mail
[-- Attachment #1 --]
Hi,
I'm currently facing an annoying problem when compiling a STATIC binary with gcc5 on ARM architecture, with FreeBSD 10.3.
The problem is some of the softfloat eabi symbols are coming from two sources:
- The libc (/usr/lib/libc.a)
- The libgcc (/usr/local/lib/gcc5/gcc/armv6-portbld-freebsd10.2/5.4.0/libgcc.a)
The firsts duplicated symbols that the linker complain are "__subdf3" , "__adddf3", "__floatsidf", "__extendsfdf2", ...
I don't know how to fix that or, perhaps, use a workaround.
Can you help me ?
Best regards,
--
Alexandre Martins
test.c
--------------------------------------
#include <stdio.h>
#include <math.h>
int main(void) {
float f = 42.42f;
printf("%f\n", sqrtf(f));
return 0;
}
--------------------------------------
gcc5 -static -lm -o test test.c
[-- Attachment #2 --]
0 *H
010
`He 0 *H
00n 0
*H
0H10 UFR10U
STORMSHIELD1#0!UStormshield Root Authority0
140904150710Z
240901150710Z0I10 UFR10U
STORMSHIELD1$0"UStormshield Users Authority0"0
*H
0
X6[t.D Uge0-2;h@eȻClΫpB#M,FY=.{ya{2πߢ
7 <d~O;ޅԋ&C 8ُ6@CXX>|abqenmI, O&'۰@%OhW&
{52D%_8#f]G0ct y\ v0t0Uml||uu4[ׁ0U#0BgDaP0U00U0 `HB0
*H
N9-؞>m-K!M-7zD6IZʾr>q?u
?xr6_'NջZ7]V\5Y&))m@~^Qdp/H3ͦ`o⬋U,z,0Bdp!C2K8.r>0-1!C%3U2ϠMg~3͟wͲAZ&vF/BA$_ڀV!
s7)=-nP>qH~g/Rs,PAJVm#QXJo
*/V|sĿj~y߽j
3]v3ƌqe`Y|HB3lC!^J2$4A`Z+( 7b{e˄wʈ<L=6[3`>IQFaiܝ ?:_yԊ
/`0W0? (˻0
*H
0I10 UFR10U
STORMSHIELD1$0"UStormshield Users Authority0
160901151108Z
170901151108Z0p10 UFR10U
STORMSHIELD10UAlexandre MARTINS1/0- *H
alexandre.martins@stormshield.eu0"0
*H
0
~
{x~;#3BgXC[rSVuv#>aL0w}""v`B)Db8qHkH\d qB6rd|:%Ze[wi3)$! hXε<صVO}#
EjJegk0%L퉬Q'b}3"*(_T-
w?gR H,\aWO4Ǘ
Y3TR(Wn7Sv1n8xIan 00UD0IM_W]A$v#<0U#0ml||uu4[ׁ0 U0 0U0 `HB0U%0++0JUC0A0?=;9https://pki.netasq.com/auth/certificaterevocationlist.crl0U
00U 0+U$0" alexandre.martins@stormshield.eu0
*H
5hhN
̛U92+Ejr@|f{`J2X!ȳ.ڤ|^*$"vlHtSeeAܟ-bC$*)ЖWJL >5@|N%·%{i-4akG앏]%.ݤp]7B/
*1WE@zZoq@fk0NpHObD$9jXḓSk~LKX100R0I10 UFR10U
STORMSHIELD1$0"UStormshield Users Authority (˻0
`He 0 *H
1 *H
0 *H
1
160919082103Z0( *H
100 `He0
*H
0/ *H
1" N[4}e|;ot!\0
*H
zJ
i_d͞ 7-`8SRUߕe(Vb[q &,\OA7F:J?ȱ-" c4ƃB.0[(v7&vCց
4Lڏ1';t+9HN/y nig]<y ٜ@*W'Ʋ`4к_d}ىUb^\\2FCEry?MJC>T
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?11701790.A313naQeaZ>
