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

            Bug ID: 19002
           Summary: .eh_frame error: "no .eh_frame_hdr table will be
                    created" with gold
           Product: binutils
           Version: 2.25
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: gregory.masters at hds dot com
                CC: ian at airs dot com
  Target Milestone: ---

Created attachment 8628
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8628&action=edit
.cpp and .h files with a Makefile to reproduce

Hi. I've attached a small example reproducer for the problem, but essentially,
we're using gold to perform a partial link on some objects, then when it comes
to the final link, we see an error and no .eh_frame_hdr created.

$ make
g++ -c T.cpp
g++ -c c1.cpp
g++ -c c2.cpp
gold -r -o c.so T.o c1.o c2.o
g++ -c main.cpp
g++ -o a.out c.so main.o
/usr/bin/ld: error in c.so(.eh_frame); no .eh_frame_hdr table will be created.

We're not seeing the problem if we use ld for the partial link instead, but
we'd like to keep using gold for the substantial speed increase.

Any help would be appreciated.

$ ld.gold -v
GNU gold (GNU Binutils for Debian 2.25) 1.11

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