]> Git Repo - J-u-boot.git/commitdiff
relocate-rela: replace a magic number with sizeof(Elf64_Rela)
authorMasahiro Yamada <[email protected]>
Tue, 4 Feb 2014 01:58:31 +0000 (10:58 +0900)
committerAlbert ARIBAUD <[email protected]>
Thu, 13 Feb 2014 14:16:47 +0000 (15:16 +0100)
Signed-off-by: Masahiro Yamada <[email protected]>
Cc: Scott Wood <[email protected]>
Cc: David Feng <[email protected]>
Acked-by: Scott Wood <[email protected]>
tools/relocate-rela.c

index 93b4c3923e701381e86bd6f23a97714ac9a61295..670b9fd73af88f0c7ffd44bb68c1d670f3fc2929 100644 (file)
@@ -120,7 +120,7 @@ int main(int argc, char **argv)
        }
 
        if (rela_start > rela_end || rela_start < text_base ||
-           (rela_end - rela_start) % 24) {
+           (rela_end - rela_start) % sizeof(Elf64_Rela)) {
                fprintf(stderr, "%s: bad rela bounds\n", argv[0]);
                return 3;
        }
This page took 0.035231 seconds and 4 git commands to generate.