OSDN Git Service

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)
commit565587d8d5b518234652063820561587fc269c11
treef4f7b5db837c2722e8e423021fac55d79c47e9eb
parentd2e4d05cf1a1f8bfe168ea29b217355be7a4e9ec
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