bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/19631] New: g++ -m32 -static -ggdb foo.cc segfaults when linked


From: doko at debian dot org
Subject: [Bug ld/19631] New: g++ -m32 -static -ggdb foo.cc segfaults when linked with ld.bfd, works with ld.gold
Date: Sat, 13 Feb 2016 12:19:45 +0000

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

            Bug ID: 19631
           Summary: g++ -m32 -static -ggdb foo.cc segfaults when linked
                    with ld.bfd, works with ld.gold
           Product: binutils
           Version: 2.26
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: doko at debian dot org
  Target Milestone: ---

seen with the 2.26 branch:

g++ -m32 -static -ggdb foo.cc segfaults when linked with ld.bfd, works with
ld.gold

#include <iostream>
int main(){
  std::cout << "Hello test" << std::endl;
  return 0;
}

$ g++ -static -ggdb foo.cc && ./a.out 
Hello test
$ g++ -m32 -static -ggdb foo.cc && ./a.out 
Segmentation fault (core dumped)
$ g++ -fuse-ld=gold -m32 -static -ggdb foo.cc

-- 
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]