]> git.baikalelectronics.ru Git - kernel.git/commit
modpost: refactor sech_name()
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 25 May 2020 05:47:05 +0000 (14:47 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 28 May 2020 18:08:49 +0000 (03:08 +0900)
commitb71ed63f96b3f1fda9386269f10c856ff841ce8c
treef4f7b5db837c2722e8e423021fac55d79c47e9eb
parent0acae76617369924027e9949548fba410ffe3c6b
modpost: refactor sech_name()

Use sym_get_data_by_offset() helper to get access to the .shstrtab
section data. No functional change is intended because
elf->sechdrs[elf->secindex_strings].sh_addr is 0 for both ET_REL
and ET_EXEC object types.

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