summaryrefslogtreecommitdiff
path: root/tools/relocate-rela.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-02-04 10:58:31 +0900
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2014-02-13 15:16:47 +0100
commite60cfd531a5066f95ece02e1e76fa2c6326761b3 (patch)
tree98d32bb7584d3d6a0c8f6212f2bd28e0154fdaa9 /tools/relocate-rela.c
parent3cd534e4552770c1a8282c94832777a9ede75260 (diff)
downloadu-boot-imx-e60cfd531a5066f95ece02e1e76fa2c6326761b3.zip
u-boot-imx-e60cfd531a5066f95ece02e1e76fa2c6326761b3.tar.gz
u-boot-imx-e60cfd531a5066f95ece02e1e76fa2c6326761b3.tar.bz2
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>
Diffstat (limited to 'tools/relocate-rela.c')
-rw-r--r--tools/relocate-rela.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/relocate-rela.c b/tools/relocate-rela.c
index 93b4c39..670b9fd 100644
--- 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;
}