summaryrefslogtreecommitdiff
path: root/arch/csky
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-10-07 20:04:48 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2023-10-18 11:16:09 +0300
commit77f9f57164561d0acbb9d6b2ca78280925f52aaa (patch)
tree4e2ac05604f71ab9365a5b62ef2b56e6cde53288 /arch/csky
parent29ae5c02ed743c62e3c0619013b2bcd280bc562d (diff)
downloadlinux-77f9f57164561d0acbb9d6b2ca78280925f52aaa.tar.xz
modpost: factor out the common boilerplate of section_rel(a)
The first few lines of section_rel() and section_rela() are the same. They both retrieve the index of the section to which the relocaton applies, and skip known-good sections. This common code should be moved to check_sec_ref(). Avoid ugly casts when computing 'start' and 'stop', and also make the Elf_Rel and Elf_Rela pointers const. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'arch/csky')
0 files changed, 0 insertions, 0 deletions