diff options
author | Sathvika Vasireddy <sv@linux.ibm.com> | 2022-11-14 18:57:51 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-11-18 09:00:16 +0100 |
commit | c1449735211dd8c4c2d54fa0ece6890ecbd74e24 (patch) | |
tree | 01c2bc7ca7e7ca6303d32f9c8628690503e07c8a /tools/objtool/arch/x86 | |
parent | objtool: Read special sections with alts only when specific options are selected (diff) | |
download | linux-c1449735211dd8c4c2d54fa0ece6890ecbd74e24.tar.xz linux-c1449735211dd8c4c2d54fa0ece6890ecbd74e24.zip |
objtool: Use macros to define arch specific reloc types
Make relocation types architecture specific.
Tested-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Reviewed-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Sathvika Vasireddy <sv@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221114175754.1131267-14-sv@linux.ibm.com
Diffstat (limited to 'tools/objtool/arch/x86')
-rw-r--r-- | tools/objtool/arch/x86/include/arch/elf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/objtool/arch/x86/include/arch/elf.h b/tools/objtool/arch/x86/include/arch/elf.h index 69cc4264b28a..ac14987cf687 100644 --- a/tools/objtool/arch/x86/include/arch/elf.h +++ b/tools/objtool/arch/x86/include/arch/elf.h @@ -2,5 +2,7 @@ #define _OBJTOOL_ARCH_ELF #define R_NONE R_X86_64_NONE +#define R_ABS64 R_X86_64_64 +#define R_ABS32 R_X86_64_32 #endif /* _OBJTOOL_ARCH_ELF */ |