HA: [lld] r257753 - [ELF] - implemented --eh-frame-hdr command line option.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 14 09:14:36 PST 2016


>Hi George,
>
>
>crtend.o file has .eh_frame section four byte length filled by zero.
>If i do not make a mistake after this commit LLD crashes on this
>section with "corrupted or unsupported CIE information" error.
>...
>
>--
>Simon Atanasyan

Hello, Simon,
thanks for info !

The case you're pointing really looks like a special case which we should support.
I`ll take a look closer on it tomorrow if you dont mind.

As far as I know both bfd and gold just drop the creation of eh_frame_hdr if are not able to parse something in eh_frame. 
We did it in another way. We assume that inputs should be correct and just exit with error. 
I wonder if this is the only such exception we can meet in real life ? Currently lld will error exit on all corrupted/unsupported eh_frames if --eh-frame-hdr is specified.


More information about the llvm-commits mailing list