[LLVMdev] post-link Dwarf information appears wrong, works in JIT

Bill Wendling isanbard at gmail.com
Thu Oct 17 14:57:39 PDT 2013


On Oct 17, 2013, at 11:35 AM, edA-qa mort-ora-y <eda-qa at disemia.com> wrote:

> I'm working on exception handling and having some trouble with type
> information. My personality/types work fine when running in the JIT, but
> when I produce object files and link them it fails.
> 
> In particular, from an action record and the LSDA I get a type table
> entry. The problem is this doesn't appear to be pointing to a valid
> location. If I derefence it a segfault occurs.
> 
> Are there perhaps some linker flags that I must use to get this working
> correctly?
> 
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?

-bw





More information about the llvm-dev mailing list