bug-binutils
[Top][All Lists]
Advanced

[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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]