[LLVMdev] mixing PIC/static with exception handling

edA-qa mort-ora-y eda-qa at disemia.com
Fri Oct 18 01:36:44 PDT 2013


I was having problems with my exception handling due to mixing PIC and
non-PIC code into my executable. Now I'm confused as to how I'm supposed
to do this correctly when I do have to mix different code types.

The basic setup:
- shared library which throws and catches exceptions, some exceptions
leave it's library bounds
- main executable which throws and catches exceptions, exceptions cross
library bounds

Do I need to have two different personality routines for each of the
PIC/non-PIC components? Is the some linker flag I can set which allows
me to just use PIC everywhere?


-- 
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: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131018/69683c32/attachment.sig>


More information about the llvm-dev mailing list