Author: smh
Date: Thu Feb 11 17:31:17 2016
New Revision: 295531
URL: https://svnweb.freebsd.org/changeset/base/295531

Log:
  MFC r295356 (Partial)
  
  Fix EFI platform build failures on arm.armeb
  
  Approved by:  re (marius)
  Sponsored by: Multiplay

Modified:
  stable/10/sys/boot/common/load_elf.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/boot/common/load_elf.c
==============================================================================
--- stable/10/sys/boot/common/load_elf.c        Thu Feb 11 17:25:12 2016        
(r295530)
+++ stable/10/sys/boot/common/load_elf.c        Thu Feb 11 17:31:17 2016        
(r295531)
@@ -856,7 +856,7 @@ __elfN(parse_modmetadata)(struct preload
        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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to