commit | 64f140417d818aa374788acc9cb8328165747262 | [log] [tgz] |
---|---|---|
author | Masahiro Yamada <masahiroy@kernel.org> | Fri May 12 01:24:22 2023 +0900 |
committer | Masahiro Yamada <masahiroy@kernel.org> | Mon May 22 10:34:38 2023 +0900 |
tree | a57e3800f2f58237189e825916c81f90bda99eba | |
parent | 81d362732bac05f656cdc4bbe776ac20cfd30c45 [diff] |
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: Masahiro Yamada <masahiroy@kernel.org>