Displaying 2 results from an estimated 2 matches for "lba3_foo_hack".
2010 Jan 03
0
[LLVMdev] 'Address of Label and Indirect Branches in LLVM IR' blog post
...ction, however with Clang it only goes to a .data.rel.ro section (with
-fPIC):
.section .data.rel.ro,"aw", at progbits
.align 4
foo.array:
.long (.LBA3_foo_return) - (.LBA3_foo_return)
.long (.LBA3_foo_bar) - (.LBA3_foo_return)
.long (.LBA3_foo_hack) - (.LBA3_foo_return)
.size foo.array, 12
While gcc does put it into a readonly section (with -fPIC):
.section .rodata
.align 4
.type array.1248, @object
.size array.1248, 12
array.1248:
.long 0
.long .L4-.L2
.long...
2010 Jan 03
5
[LLVMdev] 'Address of Label and Indirect Branches in LLVM IR' blog post
If you're interested in this new extension, here is some more information with some less-than-obvious aspects of the design:
http://blog.llvm.org/2010/01/address-of-label-and-indirect-branches.html
This feature was added to LLVM by Bob Wilson, Dan Gohman and I to mainline back in November. If you have questions or comments about the post, this is a good thread to discuss them on :)
-Chris