]> git.baikalelectronics.ru Git - kernel.git/commit
objtool: Use '.strtab' if '.shstrtab' doesn't exist, to support ORC tables on Clang
authorSimon Ser <contact@emersion.fr>
Mon, 9 Jul 2018 16:17:22 +0000 (11:17 -0500)
committerIngo Molnar <mingo@kernel.org>
Sat, 14 Jul 2018 12:59:42 +0000 (14:59 +0200)
commit2061079c245c0269756b6bc1263ba1ae0fa3ce0c
treef4ce8047ac13a65209141973bb35b90b4c2f5ebe
parent0701dfe656049f79376f692015fe0a2fb87b9850
objtool: Use '.strtab' if '.shstrtab' doesn't exist, to support ORC tables on Clang

Clang puts its section header names in the '.strtab' section instead of
'.shstrtab', which causes objtool to fail with a "can't find
.shstrtab section" warning when attempting to write ORC metadata to an
object file.

If '.shstrtab' doesn't exist, use '.strtab' instead.

Signed-off-by: Simon Ser <contact@emersion.fr>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.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/d1c1c3fe55872be433da7bc5e1860538506229ba.1531153015.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/objtool/elf.c