[LLVMdev] post-link Dwarf information appears wrong, works in JIT
edA-qa mort-ora-y
eda-qa at disemia.com
Thu Oct 17 19:24:57 PDT 2013
On 17/10/13 23:57, Bill Wendling wrote:
> There shouldn't be any special linker flags you need to use. If
> you're getting segfaults, it's probably trying to access the data at
> an invalid location or something. Make sure that your EH table is
> properly aligned. You might want to hand calculate the values to make
> sure that they're correct. What platform are you using?
I don't know that I do anything to alter the alignment: I'm just using
the "addClause" function of the landingpad. Platform is x86_64 on Linux.
Note that in the JIT my code does work, so my assumption is that I
haven't done something completely wrong, just partially wrong.
I'm looking at code generated by clang from C++, and I notice a few
differences. Are these relevant?
- the clauses are always cast to i8* (I'm using an i64* as that is my
type information)
- the global variable is marked linkonce_odr unnamed_addr
--
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/c711ad23/attachment.sig>
More information about the llvm-dev
mailing list