Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Sep 2016 11:37:13 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Alexandre Martins <alexandre.martins@stormshield.eu>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Static linking issue with gcc
Message-ID:  <20160919083713.GD38409@kib.kiev.ua>
In-Reply-To: <11701790.A313naQeaZ@pc-alex>
References:  <11701790.A313naQeaZ@pc-alex>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 19, 2016 at 10:21:03AM +0200, Alexandre Martins wrote:
> 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.

For workardound, try adding -Wl,--allow-multiple-definition to the compiler
invocation for linking.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160919083713.GD38409>