Displaying 2 results from an estimated 2 matches for "relocation_type".
2016 Oct 18
2
Proposal: arbitrary relocations in constant global initializers
...ch what the ConstantExpr arithmetic
> is doing.)
>
> Design
>
> A relocation can be seen as having three inputs: the relocation type (on
> Mach-O this also includes a pcrel flag), the target, and the addend. So
> let’s define a relocation constant like this:
>
> iNN reloc relocation_type (ptr target, iNN addend)
>
> where iNN is some integer type, and ptr is some pointer type. For example,
> an ARM jump table entry might look like this:
>
> i32 reloc 0x1d (void ()* @foo, i32 0xeafffffe) ; R_ARM_JUMP24 = 0x1d
>
> There is no error checking for this; if you use...
2015 Jul 29
0
[LLVMdev] Proposal: arbitrary relocations in constant global initializers
...of a
PLT entry, which doesn’t entirely match what the ConstantExpr arithmetic
is doing.)
Design
A relocation can be seen as having three inputs: the relocation type (on
Mach-O this also includes a pcrel flag), the target, and the addend. So
let’s define a relocation constant like this:
iNN reloc relocation_type (ptr target, iNN addend)
where iNN is some integer type, and ptr is some pointer type. For example,
an ARM jump table entry might look like this:
i32 reloc 0x1d (void ()* @foo, i32 0xeafffffe) ; R_ARM_JUMP24 = 0x1d
There is no error checking for this; if you use the wrong integer type for
a par...