http://sourceware.org/bugzilla/show_bug.cgi?id=13359

             Bug #: 13359
           Summary: gold internal error in relocate_tls, at
                    gold/x86_64.cc:3187
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
        AssignedTo: i...@airs.com
        ReportedBy: belys...@depni.sinp.msu.ru
                CC: ccout...@google.com
    Classification: Unclassified


Created attachment 6038
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6038
preprocessed and reduced testcase (compile with -O0 -std=gnu++0x -fPIC)

gold crashes if this testcase is compiled with g++ -std=gnu++0x -fPIC:

#include <future>

int main()
{
  std::promise<int&> p1;
  int i1 = 0;
  p1.set_value(i1);
  return 0;
}

/usr/bin/ld: internal error in relocate_tls, at ../../gold/x86_64.cc:3187
or with -m32:
/usr/bin/ld: internal error in relocate_tls, at ../../gold/i386.cc:2715

Tested on gold 2.21.90.20111025 and current trunk with g++ 4.6 and 4.7, fails
everywhere.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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