diff options
author | Artem Savkov <asavkov@redhat.com> | 2018-11-29 16:56:15 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-04-19 20:54:07 +0200 |
commit | f36e7495dd3990d6848e6d6703c78f1f17a97538 (patch) | |
tree | 915ca0fded734ef601f16cbc98fa3d34b6474aa6 /scripts/gdb/linux/dmesg.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 <asavkov@redhat.com>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Acked-by: Joe Lawrence <joe.lawrence@redhat.com>
Cc: Eric W . Biederman <ebiederm@xmission.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20181129155615.2594-1-asavkov@redhat.com
[ Simplify the die() lines. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/dmesg.py')
0 files changed, 0 insertions, 0 deletions