[Bug libgcc/60790] libatomic convenience library selects IFUNC implementation before obtaining cpu info.

ian at airs dot com gcc-bugzilla@gcc.gnu.org
Wed Apr 9 13:32:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60790

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |NEW
   Last reconfirmed|                            |2014-04-09
                 CC|                            |ian at airs dot com
         Resolution|INVALID                     |---
     Ever confirmed|0                           |1

--- Comment #3 from Ian Lance Taylor <ian at airs dot com> ---
Andrew, you are closing this way too fast.  This same problem is going to arise 
whenever libatomic is statically linked.  The library assumes that global
constructors are run before IFUNC selectors, but that is not the case in a
static link.  IFUNC selectors are run first.



More information about the Gcc-bugs mailing list