[llvm-dev] [RFC] Making .eh_frame more linker-friendly

Cary Coutant via llvm-dev llvm-dev at lists.llvm.org
Tue Nov 28 18:16:37 PST 2017

> With GNU gold (GNU Binutils 1.14 have an assert:
> ~/LLVM/Release/bin/clang++ test.cpp -ffunction-sections -o test.o
> /usr/local/bin/ld: internal error in layout_eh_frame_section, at
> .././../gold/object.cc:1309
> It is that place:
> https://github.com/gittup/binutils/blob/gittup/gold/object.cc#L1372
> Did not investigate it, but it looks it is place
> (https://sourceware.org/ml/binutils/2009-06/msg00097.html)
> mentioned in comment for
> https://marc.info/?l=llvm-commits&m=144683596826489.

I've committed a patch in gold that should fix this problem:


Can you try gold again with this patch applied? You should at least
get a little further.

If it still doesn't work, could I trouble you for a sample object file?


More information about the llvm-dev mailing list