Commit e60cfd53 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Albert ARIBAUD

relocate-rela: replace a magic number with sizeof(Elf64_Rela)

Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: David Feng <fenghua@phytium.com.cn>
Acked-by: default avatarScott Wood <scottwood@freescale.com>
parent 3cd534e4
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment