[LLVMdev] object file/linking is missing my exception handlers

edA-qa mort-ora-y eda-qa at disemia.com
Wed Apr 10 21:06:51 PDT 2013


I have some exception handling which works fine using the JIT. Now I am
producing object files and linking them, but the exception handling
tables seem to be missing. I call _Unwind_RaiseException and get
_URC_END_OF_STACK as a result.

I produce my object file using TargetMachine::addPassesToEmitFile and
then I link my resulting files with:

gcc -o prog input.o -fexceptions

I'm sure I'm just missing some option to generate the Dwarf tables, but
I can't figure out what it is. For the JIT version I set
JITExceptionHandling and JITEmitDebugInfo on TargetOptions.

-- 
edA-qa mort-ora-y
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130411/397f99a5/attachment.sig>


More information about the llvm-dev mailing list