[JITLink][i386] Adds absolute and pc relative relocation support for ELF/i386.
authorKshitij Jain <jkshtj@outlook.com>
Mon, 31 Oct 2022 00:24:57 +0000 (17:24 -0700)
committerLang Hames <lhames@gmail.com>
Mon, 31 Oct 2022 00:35:41 +0000 (17:35 -0700)
commit2a3b257a935aa49886ccd073695e75b385b3822f
treebb1b54e906f1570de4cd0b371d82ff6f59728370
parent66fdfff7bcc3da851a0aeaf261a9a5a46fe8bbf9
[JITLink][i386] Adds absolute and pc relative relocation support for ELF/i386.

This commit adds support for 32 bit absolute and pc relative relocations in
ELF/i386 objects, along with simple regression tests.

Reviewed By: sgraenitz, lhames

Differential Revision: https://reviews.llvm.org/D135523
llvm/include/llvm/ExecutionEngine/JITLink/i386.h
llvm/lib/ExecutionEngine/JITLink/ELFLinkGraphBuilder.h
llvm/lib/ExecutionEngine/JITLink/ELF_aarch64.cpp
llvm/lib/ExecutionEngine/JITLink/ELF_i386.cpp
llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
llvm/lib/ExecutionEngine/JITLink/ELF_x86_64.cpp
llvm/lib/ExecutionEngine/JITLink/i386.cpp
llvm/test/ExecutionEngine/JITLink/i386/ELF_i386_absolute_relocations_32.s [new file with mode: 0644]
llvm/test/ExecutionEngine/JITLink/i386/ELF_i386_pc_relative_relocations_32.s [new file with mode: 0644]
llvm/test/ExecutionEngine/JITLink/i386/lit.local.cfg