diff options
author | 2022-09-08 14:54:58 -0700 | |
---|---|---|
committer | 2022-09-26 10:13:15 -0700 | |
commit | 5141d3a06b2da1731ac82091298b766a1f95d3d8 (patch) | |
tree | 94633d84a24c8e49b2e38318d6735dfaf01c672b /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | treewide: Drop __cficanonical (diff) | |
download | wireguard-linux-5141d3a06b2da1731ac82091298b766a1f95d3d8.tar.xz wireguard-linux-5141d3a06b2da1731ac82091298b766a1f95d3d8.zip |
objtool: Preserve special st_shndx indexes in elf_update_symbol
elf_update_symbol fails to preserve the special st_shndx values
between [SHN_LORESERVE, SHN_HIRESERVE], which results in it
converting SHN_ABS entries into SHN_UNDEF, for example. Explicitly
check for the special indexes and ensure these symbols are not
marked undefined.
Fixes: ead165fa1042 ("objtool: Fix symbol creation")
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220908215504.3686827-17-samitolvanen@google.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions