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.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to