diff options
author | Michal Simek | 2022-07-08 08:15:05 +0200 |
---|---|---|
committer | Michal Simek | 2022-07-26 08:23:55 +0200 |
commit | bb7468b4c9d7ce0f7cdd5bc5eae11e8fe87250cf (patch) | |
tree | f6e013164b21aafb47883c9bc6d7dd455c4bd59d /tools/relocate-rela.c | |
parent | 165694b1254909953eea9768ea3d914555c17cc5 (diff) |
tools: relocate-rela: Remove guard around R_AARCH64_RELATIVE
In code you can find out this fragment:
19 #ifndef R_AARCH64_RELATIVE
20 #define R_AARCH64_RELATIVE 1027
21 #endif
which means that R_AARCH64_RELATIVE is defined all the time that's why
ifdef is not needed.
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/0d40a09ab6edcd88ba3059f7a0b63a819b71256a.1657260903.git.michal.simek@amd.com
Diffstat (limited to 'tools/relocate-rela.c')
-rw-r--r-- | tools/relocate-rela.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/relocate-rela.c b/tools/relocate-rela.c index fcf3fb201f0..5f31d8a746d 100644 --- a/tools/relocate-rela.c +++ b/tools/relocate-rela.c @@ -43,10 +43,8 @@ static bool supported_rela(Elf64_Rela *rela) uint32_t type = rela->r_info & mask; switch (type) { -#ifdef R_AARCH64_RELATIVE case R_AARCH64_RELATIVE: return true; -#endif default: fprintf(stderr, "warning: unsupported relocation type %" PRIu32 " at %" PRIx64 "\n", |