• Alexander Graf's avatar
    efi_loader: Fix relocations above 64kb image size · b1237c6e
    Alexander Graf authored
    We were truncating the image offset within the target image to 16 bits
    which again meant that we were potentially overwriting random memory
    in the lower 16 bits of the image.
    
    This patch casts the offset to a more reasonable 32bits.
    
    With this applied, I can successfully see Shell.efi assert because it
    can't find a protocol it expects to be available.
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    b1237c6e
Name
Last commit
Last update
..
bzip2 Loading commit data...
dhry Loading commit data...
efi Loading commit data...
efi_loader Loading commit data...
libfdt Loading commit data...
lzma Loading commit data...
lzo Loading commit data...
rsa Loading commit data...
tizen Loading commit data...
zlib Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
addr_map.c Loading commit data...
aes.c Loading commit data...
asm-offsets.c Loading commit data...
bch.c Loading commit data...
bitrev.c Loading commit data...
circbuf.c Loading commit data...
crc16.c Loading commit data...
crc32.c Loading commit data...
crc7.c Loading commit data...
crc8.c Loading commit data...
ctype.c Loading commit data...
display_options.c Loading commit data...
div64.c Loading commit data...
errno.c Loading commit data...
errno_str.c Loading commit data...
fdtdec.c Loading commit data...
fdtdec_common.c Loading commit data...
fdtdec_test.c Loading commit data...
gunzip.c Loading commit data...
gzip.c Loading commit data...
hang.c Loading commit data...
hashtable.c Loading commit data...
initcall.c Loading commit data...
ldiv.c Loading commit data...
linux_compat.c Loading commit data...
linux_string.c Loading commit data...
list_sort.c Loading commit data...
lmb.c Loading commit data...
lz4.c Loading commit data...
lz4_wrapper.c Loading commit data...
md5.c Loading commit data...
membuff.c Loading commit data...
net_utils.c Loading commit data...
panic.c Loading commit data...
physmem.c Loading commit data...
qsort.c Loading commit data...
rand.c Loading commit data...
rbtree.c Loading commit data...
rc4.c Loading commit data...
sha1.c Loading commit data...
sha256.c Loading commit data...
slre.c Loading commit data...
string.c Loading commit data...
strmhz.c Loading commit data...
strto.c Loading commit data...
time.c Loading commit data...
tiny-printf.c Loading commit data...
tpm.c Loading commit data...
trace.c Loading commit data...
uuid.c Loading commit data...
vsprintf.c Loading commit data...