projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cd534e
)
relocate-rela: replace a magic number with sizeof(Elf64_Rela)
author
Masahiro Yamada
<yamada.m@jp.panasonic.com>
Tue, 4 Feb 2014 01:58:31 +0000
(10:58 +0900)
committer
Albert 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
patch
|
blob
|
history
diff --git
a/tools/relocate-rela.c
b/tools/relocate-rela.c
index 93b4c3923e701381e86bd6f23a97714ac9a61295..670b9fd73af88f0c7ffd44bb68c1d670f3fc2929 100644
(file)
--- a/
tools/relocate-rela.c
+++ b/
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;
}