Static linking issue with gcc
Konstantin Belousov
kostikbel at gmail.com
Mon Sep 19 08:37:21 UTC 2016
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.
More information about the freebsd-arm
mailing list