diff options
| author | Masahiro Yamada <masahiroy@kernel.org> | 2023-10-08 02:04:48 +0900 |
|---|---|---|
| committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-10-18 17:16:09 +0900 |
| commit | 77f9f57164561d0acbb9d6b2ca78280925f52aaa (patch) | |
| tree | 4e2ac05604f71ab9365a5b62ef2b56e6cde53288 /scripts/stackusage | |
| parent | modpost: refactor check_sec_ref() (diff) | |
| download | linux-77f9f57164561d0acbb9d6b2ca78280925f52aaa.tar.gz linux-77f9f57164561d0acbb9d6b2ca78280925f52aaa.zip | |
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 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
