]> git.baikalelectronics.ru Git - uboot.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)
commitd2ef0c3b624fe5ce7f1fb61ce84dee52b31cae25
tree7bda9a8ca8aa0e2f895380908c3f77fd402db3df
parent03636424484890942edc7fca70180f1403d3c0c1
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