Skip to content
Commit 64f14041 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

modpost: error out if addend_*_rel() is not implemented for REL arch



The section mismatch check relies on the relocation entries.

For REL, the addend value is implicit, so we need some code to compute
it. Currently, EM_386, EM_ARM, and EM_MIPS are supported. This commit
makes sure we covered all the cases.

I believe the other architectures use RELA, where the explicit r_addend
field exists.

Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 81d36273
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment