]> 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)
commit35494365f43946bb946820e91222904819e976a7
treef4f7b5db837c2722e8e423021fac55d79c47e9eb
parentaff2a4f69257cbce6774bd88c13f4070ac15d50f
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