modpost: continue even with unknown relocation type
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 20 Jun 2023 12:05:21 +0000 (21:05 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 25 Jun 2023 14:12:20 +0000 (23:12 +0900)
commit8e86ebefdd5ca15458fcb3a03da89ab9cad6382b
treefaba256667adb429ecdd19b093715ae1545774d3
parent8aa00e2c3da470c82148f64b6a3cac2d79bb9d16
modpost: continue even with unknown relocation type

Currently, unknown relocation types are just skipped.

The value of r_addend is only needed to get the symbol name in case
is_valid_name(elf, sym) returns false.

Even if we do not know how to calculate r_addend, we should continue.
At worst, we will get "(unknown)" as the symbol name, but it is better
than failing to detect section mismatches.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/mod/modpost.c