[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/22762] missing static variable constructor calls
From: |
nickc at redhat dot com |
Subject: |
[Bug ld/22762] missing static variable constructor calls |
Date: |
Thu, 01 Feb 2018 16:33:43 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22762
--- Comment #7 from Nick Clifton <nickc at redhat dot com> ---
Hi Domani,
Thanks for the _ctor.o file. I think that I understand the problem
now. The _ctor.o file defines the __CTOR_LIST__ symbol as a common
symbol (ie uninitialized). These symbols can be overriden by a
definition that does define a value, which is why the linker scripts
used to work in the past. But the addition of the PROVIDE directive
changed that, because PROVIDE will not override a common symbol.
Hmm, I need to think about how to fix this.
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 ?
Cheers
Nick
--
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 <=
- [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/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