Closed
Description
Bugzilla Link | 13641 |
Resolution | FIXED |
Resolved on | Aug 28, 2012 14:08 |
Version | trunk |
OS | Linux |
Reporter | LLVM Bugzilla Contributor |
Extended Description
On powerpc64-unknown-linux-gnu, the mandatory traceback table for debug and exception handling support is not produced. See section 3.3 of the 64-bit PowerPC ELF Application Binary Interface Supplement at http://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi-1.9.html. A traceback table should appear after the last instruction of each function, and should look something like this:
blr
.long 0
.byte 0,0,0,0,128,1,0,1
.size foo,.-.L.foo
The .long field is an illegal instruction that signals the start of the traceback table, and the eight-byte entry that follows is the mandatory portion of the traceback table. Code generated by LLVM does not include these two fields.