diff options
author | Josh Poimboeuf <jpoimboe@kernel.org> | 2023-05-30 20:21:07 +0300 |
---|---|---|
committer | Josh Poimboeuf <jpoimboe@kernel.org> | 2023-06-07 20:03:22 +0300 |
commit | fcee899d2794319c9dbeb7b877b0c4ac92f5dd16 (patch) | |
tree | d5878b621427d0613909257645ded8d0d4efc6f0 /tools/objtool/arch/x86/decode.c | |
parent | e4cbb9b81f1f7519c7ae3abda09cb15794022952 (diff) | |
download | linux-fcee899d2794319c9dbeb7b877b0c4ac92f5dd16.tar.xz |
objtool: Get rid of reloc->type
Get the type from the embedded GElf_Rel[a] struct.
Link: https://lore.kernel.org/r/d1c1f8da31e4f052a2478aea585fcf355cacc53a.1685464332.git.jpoimboe@kernel.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'tools/objtool/arch/x86/decode.c')
-rw-r--r-- | tools/objtool/arch/x86/decode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/objtool/arch/x86/decode.c b/tools/objtool/arch/x86/decode.c index 9ef024fd648c..ffb12e83b238 100644 --- a/tools/objtool/arch/x86/decode.c +++ b/tools/objtool/arch/x86/decode.c @@ -84,7 +84,7 @@ bool arch_pc_relative_reloc(struct reloc *reloc) * All relocation types where P (the address of the target) * is included in the computation. */ - switch (reloc->type) { + switch (reloc_type(reloc)) { case R_X86_64_PC8: case R_X86_64_PC16: case R_X86_64_PC32: |