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

            Bug ID: 27741
           Summary: Using --emit-relocs with --gc-sections or -flto ends
                    in failure
           Product: binutils
           Version: 2.27
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: 806251055 at qq dot com
                CC: ian at airs dot com
  Target Milestone: ---

test.c:
main(){ return 0; }


1) CFLAGS="-fuse-ld=gold -Wl,--emit-relocs -Wl,--gc-sections" make test
2) CFLAGS="-fuse-ld=gold -Wl,--emit-relocs -flto" make test

1)
/usr/bin/ld.gold: internal error in do_layout, at object.cc:1821
collect2: error: ld returned 1 exit status

2)
/usr/bin/ld.gold: internal error in emit_relocs_scan, at reloc.cc:518
collect2: error: ld returned 1 exit status

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to