modpost: show offset from symbol for section mismatch warnings
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 11 Jun 2023 15:50:59 +0000 (00:50 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 22 Jun 2023 12:21:06 +0000 (21:21 +0900)
commitf234627898d7644998e28938390fa3d63efeefb7
treec4942186ad3600c1d39104beee010ce740011a0c
parent78dac1a22944910ba5c1475c384309d30c99afaa
modpost: show offset from symbol for section mismatch warnings

Currently, modpost only shows the symbol names and section names, so it
repeats the same message if there are multiple relocations in the same
symbol. It is common the relocation spans across multiple instructions.

It is better to show the offset from the symbol.

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