https://sourceware.org/bugzilla/show_bug.cgi?id=22762

--- Comment #8 from Hannes Domani <ssbssa at yahoo dot de> ---
(In reply to Nick Clifton from comment #7)
>   In the meantime please could you see if adding:
> 
>      -Wl,--defsym,__CTOR_LIST__=.ctors
> 
>   to your command line will act a workaround for the problem ?
Then I get this result:
> $ g++ -ostatic-var.exe static-var.cpp -Wl,--defsym,__CTOR_LIST__=.ctors
> c:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.3.0/../../../../i686-w64-mingw32/lib/../lib/libmingw32.a(lib32_libmingw32_a-gccmain.o):
>  reference to ___CTOR_LIST__
> c:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.3.0/libgcc.a(_ctors.o): 
> definition of ___CTOR_LIST__
> --defsym:1: undefined symbol `.ctors' referenced in expression
> collect2.exe: error: ld returned 1 exit status

But I've just removed the PROVIDE()'s to make it work again, that's good enough
as a workaround for me.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to