search for: addr_of_symbol

Displaying 2 results from an estimated 2 matches for "addr_of_symbol".

2014 Jun 09
4
[LLVMdev] MachO non-external X86_64_RELOC_UNSIGNED
Hello everybody, I would like some insights on the semantics of the X86_64_RELOC_UNSIGNED relocation type. When r_extern=1, the semantics seem pretty clear: Let x be a pointer to r_offset of appropriate size given by r_size, then *x += addr_of_symbol(r_symbolnum) However, when r_extern=0 the correct behavior is not clear. By analogy with the above, I would have expected *x += addr_of_section(r_symbolnum) but what LLVM implements is different. In RTDyld it implements *x = (*x-addr_of_section(r_symbolnum)) + addr_of_section(r_symbolnum) or e...
2014 Jun 10
4
[LLVMdev] MachO non-external X86_64_RELOC_UNSIGNED
...gt; > Hello everybody, > > > > I would like some insights on the semantics of the X86_64_RELOC_UNSIGNED > relocation type. When r_extern=1, the semantics seem pretty clear: > > > > Let x be a pointer to r_offset of appropriate size given by r_size, then > > *x += addr_of_symbol(r_symbolnum) > > > > However, when r_extern=0 the correct behavior is not clear. By analogy > with the above, I would have expected > > > > *x += addr_of_section(r_symbolnum) > > > > but what LLVM implements is different. In RTDyld it implements > > >...