modpost: factor out Elf_Sym pointer calculation to section_rel()
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 20 Jun 2023 12:05:20 +0000 (21:05 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 25 Jun 2023 14:12:20 +0000 (23:12 +0900)
commit8aa00e2c3da470c82148f64b6a3cac2d79bb9d16
tree12cd8af918ea78d770e2f55322be03270d63dc89
parentb31db651f745604371e4d3304f5b16fc3d9d0110
modpost: factor out Elf_Sym pointer calculation to section_rel()

Pass the Elf_Sym pointer to addend_arm_rel() as well as to
check_section_mismatch().

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
scripts/mod/modpost.c