
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 ---
tools/relocate-rela.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/tools/relocate-rela.c b/tools/relocate-rela.c index 090fb1acb20c..13cce24151c7 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",