edA-qa mort-ora-y
2013-Oct-18 08:36 UTC
[LLVMdev] mixing PIC/static with exception handling
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>
edA-qa mort-ora-y
2013-Oct-18 15:04 UTC
[LLVMdev] mixing PIC/static with exception handling
I can narrow down my problem to handling the type_table pointer from the LSDA. If the code is compiled with PIC then my type_table pointer is not valid. I'm not clear is this can come from a parsing issue, or is it a linker issue? Platform is Linux x86_64. On 18/10/13 10:36, edA-qa mort-ora-y wrote:> 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/cd9e0aaa/attachment.sig>
Maybe Matching Threads
- [LLVMdev] post-link Dwarf information appears wrong, works in JIT
- [LLVMdev] landingpad catch types not making it to Dwarf tables
- [LLVMdev] post-link Dwarf information appears wrong, works in JIT
- [LLVMdev] post-link Dwarf information appears wrong, works in JIT
- [LLVMdev] post-link Dwarf information appears wrong, works in JIT