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

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>
master
Masahiro Yamada 11 years ago committed by Albert ARIBAUD
parent 3cd534e455
commit e60cfd531a
  1. 2
      tools/relocate-rela.c

@ -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;
}

Loading…
Cancel
Save