[U-Boot] [PATCH 1/1] x86: detect unsupported relocation types

Bin Meng bmeng.cn at gmail.com
Sat Oct 13 04:54:20 UTC 2018


On Sat, Oct 13, 2018 at 9:30 AM Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> 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 at gmx.de>
> ---
>  arch/x86/lib/relocate.c | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list