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



--- Comment #4 from Timo Teräs <timo.teras at iki dot fi> ---

The minimal way to reproduce this seems to be:



-- test.cc

struct foo { int a; };



namespace

{

  struct foo *get_global() throw()

  {

    static __thread struct foo global;

    return &global;

  }

} // anonymous namespace

--



And compile .so with:

g++ -fPIC test.cc -shared -o test.so



Without -fPIC it looks better.



-- 

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