]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools: relocate-rela: Remove guard around R_AARCH64_RELATIVE
authorMichal Simek <michal.simek@amd.com>
Fri, 8 Jul 2022 06:15:05 +0000 (08:15 +0200)
committerMichal Simek <michal.simek@amd.com>
Tue, 26 Jul 2022 06:23:55 +0000 (08:23 +0200)
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
tools/relocate-rela.c

index fcf3fb201f07c5e6b18f76cb8ea7cf7b9d5cd9b3..5f31d8a746d2ae1f9965637c61cfc88b88d30ec9 100644 (file)
@@ -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",