diff options
author | Artem Savkov <[email protected]> | 2018-11-29 16:56:15 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2019-04-19 20:54:07 +0200 |
commit | f36e7495dd3990d6848e6d6703c78f1f17a97538 (patch) | |
tree | 915ca0fded734ef601f16cbc98fa3d34b6474aa6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 93ddedaa5c9cb828d39a19b5d6e7e1939393085a (diff) |
x86/tools/relocs: Fix big section header tables
In case when the number of entries in the section header table is larger
then or equal to SHN_LORESERVE the size of the table is held in the sh_size
member of the initial entry in section header table instead of e_shnum.
Same with the string table index which is located in sh_link instead of
e_shstrndx.
This case is easily reproducible with KCFLAGS="-ffunction-sections",
bzImage build fails with "String table index out of bounds" error.
Signed-off-by: Artem Savkov <[email protected]>
Reviewed-by: Josh Poimboeuf <[email protected]>
Acked-by: Joe Lawrence <[email protected]>
Cc: Eric W . Biederman <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
[ Simplify the die() lines. ]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions