]> git.sur5r.net Git - u-boot/commitdiff
relocate-rela: replace a magic number with sizeof(Elf64_Rela)
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Tue, 4 Feb 2014 01:58:31 +0000 (10:58 +0900)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 13 Feb 2014 14:16:47 +0000 (15:16 +0100)
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: David Feng <fenghua@phytium.com.cn>
Acked-by: Scott Wood <scottwood@freescale.com>
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;
        }