summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorsmh <smh@FreeBSD.org>2016-02-11 17:31:17 +0000
committersmh <smh@FreeBSD.org>2016-02-11 17:31:17 +0000
commit1f678f8c8fa0e9ab39ec82b54e92b43041f7948f (patch)
tree371d3770efb26ac3ea226c7d6bb7f441de2a0851 /sys/boot
parentfd560f49734672a8d1c7f809460d6a57c5f396c8 (diff)
downloadFreeBSD-src-1f678f8c8fa0e9ab39ec82b54e92b43041f7948f.zip
FreeBSD-src-1f678f8c8fa0e9ab39ec82b54e92b43041f7948f.tar.gz
MFC r295356 (Partial)
Fix EFI platform build failures on arm.armeb Approved by: re (marius) Sponsored by: Multiplay
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/common/load_elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/common/load_elf.c b/sys/boot/common/load_elf.c
index 6a88e39..e352ef7 100644
--- a/sys/boot/common/load_elf.c
+++ b/sys/boot/common/load_elf.c
@@ -856,7 +856,7 @@ __elfN(parse_modmetadata)(struct preloaded_file *fp, elf_file_t ef,
error = __elfN(reloc_ptr)(fp, ef, v, &md, sizeof(md));
if (error == EOPNOTSUPP) {
md.md_cval += ef->off;
- md.md_data = (void *)((uintptr_t)md.md_data + ef->off);
+ md.md_data = (void *)((uintptr_t)md.md_data + (uintptr_t)ef->off);
} else if (error != 0)
return (error);
#endif
OpenPOWER on IntegriCloud