[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/22762] missing static variable constructor calls
From: |
ssbssa at yahoo dot de |
Subject: |
[Bug ld/22762] missing static variable constructor calls |
Date: |
Thu, 01 Feb 2018 16:50:51 +0000 |
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 ld/22762] missing static variable constructor calls, nickc at redhat dot com, 2018/02/01
- [Bug ld/22762] missing static variable constructor calls, ssbssa at yahoo dot de, 2018/02/01
- [Bug ld/22762] missing static variable constructor calls, nickc at redhat dot com, 2018/02/01
- [Bug ld/22762] missing static variable constructor calls, ssbssa at yahoo dot de, 2018/02/01
- [Bug ld/22762] missing static variable constructor calls, nickc at redhat dot com, 2018/02/01
- [Bug ld/22762] missing static variable constructor calls, ssbssa at yahoo dot de, 2018/02/01
- [Bug ld/22762] missing static variable constructor calls, nickc at redhat dot com, 2018/02/01
- [Bug ld/22762] missing static variable constructor calls,
ssbssa at yahoo dot de <=
- [Bug ld/22762] missing static variable constructor calls, nickc at redhat dot com, 2018/02/03
- [Bug ld/22762] missing static variable constructor calls, cvs-commit at gcc dot gnu.org, 2018/02/03
- [Bug ld/22762] missing static variable constructor calls, nickc at redhat dot com, 2018/02/03
- [Bug ld/22762] missing static variable constructor calls, ssbssa at yahoo dot de, 2018/02/03
- [Bug ld/22762] missing static variable constructor calls, cvs-commit at gcc dot gnu.org, 2018/02/05