]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: detect unsupported relocation types
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 14 Oct 2018 03:52:06 +0000 (20:52 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 22 Oct 2018 09:51:45 +0000 (17:51 +0800)
commit80df194f0165cb540a2a984f95dd2b37948f54d7
tree7bda9a8ca8aa0e2f895380908c3f77fd402db3df
parent194924d88184ed90fcbd5903404794ef60a84f9a
x86: detect unsupported relocation types

Currently we support only relocations of type ELF64_R_TYPE or ELF32_R_TYPE.
We should be warned if other relocation types appear in the relocation
sections.

This type of message has helped to identify code overwriting a relocation
section before relocation and incorrect parsing of relocation tables.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/relocate.c