Displaying 4 results from an estimated 4 matches for "reloc_absolute_word_sext".
2010 Jun 17
2
[LLVMdev] Relocation issue with jump tables in ELF object files on X86_64
(llvm 2.6)
We have an application where we are using LLVM to generate ELF object files for X86_64. At runtime we load these objects files into memory using our own ELF loader.
Everything is working except for the jump tables.
The ELF emitter is generating JMPQ instructions using X86::reloc_absolute_word_sext relocations which we are unable to patch to the jump table in the .rodata segment unless we force that segment to load in the low 2GB of the address range. Currently we just request pages of memory from the OS and that memory is much deeper in the address space.
Is there proper way to patch the a...
2010 Jun 17
0
[LLVMdev] Relocation issue with jump tables in ELF object files on X86_64
...are using LLVM to generate ELF object files
> for X86_64. At runtime we load these objects files into memory using our
> own ELF loader.
>
>
>
> Everything is working except for the jump tables.
>
>
>
> The ELF emitter is generating JMPQ instructions using
> X86::reloc_absolute_word_sext relocations which we are unable to patch to
> the jump table in the .rodata segment unless we force that segment to load
> in the low 2GB of the address range. Currently we just request pages of
> memory from the OS and that memory is much deeper in the address space.
>
>
>
>...
2010 Jun 17
2
[LLVMdev] Relocation issue with jump tables in ELF object files on X86_64
...are using LLVM to generate ELF object files
> for X86_64. At runtime we load these objects files into memory using our
> own ELF loader.
>
>
>
> Everything is working except for the jump tables.
>
>
>
> The ELF emitter is generating JMPQ instructions using
> X86::reloc_absolute_word_sext relocations which we are unable to patch to
> the jump table in the .rodata segment unless we force that segment to load
> in the low 2GB of the address range. Currently we just request pages of
> memory from the OS and that memory is much deeper in the address space.
>
>
>
>...
2010 Jun 17
0
[LLVMdev] Relocation issue with jump tables in ELF object files on X86_64
...are using LLVM to generate ELF object files
> for X86_64. At runtime we load these objects files into memory using our
> own ELF loader.
>
>
>
> Everything is working except for the jump tables.
>
>
>
> The ELF emitter is generating JMPQ instructions using
> X86::reloc_absolute_word_sext relocations which we are unable to patch to
> the jump table in the .rodata segment unless we force that segment to load
> in the low 2GB of the address range. Currently we just request pages of
> memory from the OS and that memory is much deeper in the address space.
>
>
>
>...