[llvm-commits] Uninitialized EH DWARF in the JIT

Reid Kleckner rnk at mit.edu
Thu Aug 20 16:16:26 PDT 2009


Hello,

This patch fixes a bug where the DWARF emitter in the JIT was not
initializing alignment bytes.  libgcc doesn't seem to mind, but if you
pass this EH info to GDB, it doesn't like it.  I don't think that in
general the JIT should initialize the alignment bytes, since they
aren't used, so I added a method emitAlignmentWithFill that does it.

Also, note that if you try to adjust the length to not include the
uninitialized bytes, readelf -wf *really* doesn't like it, so I went
with this solution instead.

Please review; I can commit the patch myself.

Reid
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jit-eh-patch.diff
Type: text/x-patch
Size: 4677 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090820/f55d8c4b/attachment.bin>


More information about the llvm-commits mailing list