commit | 28fe1d7bf89f8ed5be70b98a33932dbaf99345dd | [log] [tgz] |
---|---|---|
author | Sami Tolvanen <samitolvanen@google.com> | Tue Apr 21 15:08:42 2020 -0700 |
committer | Peter Zijlstra <peterz@infradead.org> | Fri May 15 10:35:13 2020 +0200 |
tree | bd543c11212349d8d87237f35aec063390b18577 | |
parent | ab3852ab5cb8fd2e2c5bfa176e5f953353836907 [diff] |
objtool: use gelf_getsymshndx to handle >64k sections Currently, objtool fails to load the correct section for symbols when the index is greater than SHN_LORESERVE. Use gelf_getsymshndx instead of gelf_getsym to handle >64k sections. Signed-off-by: Sami Tolvanen <samitolvanen@google.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Kees Cook <keescook@chromium.org> Link: https://lkml.kernel.org/r/20200421220843.188260-2-samitolvanen@google.com