mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-17 20:51:39 +00:00
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>
This commit is contained in:
parent
3cd534e455
commit
e60cfd531a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue