Displaying 2 results from an estimated 2 matches for "xyzelfobjectwriter".
Did you mean:
  x86elfobjectwriter
  
2019 Mar 13
2
Need help implementing relocations
Hi all,
I have reached the relocation phase of my backend implementation and I'm having some trouble. The LLVM code I'm trying to compile is this:
%struct.Date = type { i32, i32, i32 }
@date = global %struct.Date { i32 2012, i32 10, i32 120000 }, align 4
; Function Attrs: nounwind
define i32 @foo() #0 {
  %1 = load i32, i32* getelementptr inbounds (%struct.Date, %struct.Date* @date, i32
2019 Mar 13
2
Need help implementing relocations
...he offset in with the relocation itself.
IMO it's simpler and neater, but it makes the object file slightly
bigger. If I was designing a backend and had the freedom, it's what
I'd choose to do. If you want to change it you set the
"HasRelocationAddend" variable to true in your XYZELFObjectWriter.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190313/6da7c042/attachment-0001.html>