linux/tools/objtool
Sami Tolvanen 4ebe2a37ac ANDROID: objtool: Fix __mcount_loc generation with Clang's assembler
When objtool generates relocations for the __mcount_loc section, it
tries to reference __fentry__ calls by their section symbol offset.
However, this fails with Clang's integrated assembler as it may not
generate section symbols for every section. This patch looks up a
function symbol instead if the section symbol is missing, similarly
to commit e81e072443 ("objtool: Support Clang non-section symbols
in ORC generation").

Bug: 145210207
Change-Id: I1069c45a81a3b60eb8f8333581c379701145982f
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
2020-12-16 08:56:35 -08:00
..
arch/x86 objtool: Decode unwind hint register depending on architecture 2020-09-10 10:43:13 -05:00
Documentation objtool: Add support for intra-function calls 2020-04-30 20:14:33 +02:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
arch.h objtool: Decode unwind hint register depending on architecture 2020-09-10 10:43:13 -05:00
Build objtool: Enable compilation of objtool for all architectures 2020-05-20 09:17:28 -05:00
builtin-check.c FROMLIST: objtool: Add a pass for generating __mcount_loc 2020-12-16 08:56:35 -08:00
builtin-orc.c objtool: Move ORC logic out of check() 2020-09-01 17:19:11 -05:00
builtin.h FROMLIST: objtool: Add a pass for generating __mcount_loc 2020-12-16 08:56:35 -08:00
cfi.h objtool: Fix !CFI insn_state propagation 2020-04-22 10:53:50 +02:00
check.c ANDROID: objtool: Fix __mcount_loc generation with Clang's assembler 2020-12-16 08:56:35 -08:00
check.h FROMLIST: objtool: Add a pass for generating __mcount_loc 2020-12-16 08:56:35 -08:00
elf.c x86/static_call: Add inline static call implementation for x86-64 2020-09-01 09:58:05 +02:00
elf.h x86/static_call: Add inline static call implementation for x86-64 2020-09-01 09:58:05 +02:00
Makefile objtool: Allow nested externs to enable BUILD_BUG() 2020-10-06 09:32:13 -05:00
objtool.c FROMLIST: objtool: Add a pass for generating __mcount_loc 2020-12-16 08:56:35 -08:00
objtool.h FROMLIST: objtool: Add a pass for generating __mcount_loc 2020-12-16 08:56:35 -08:00
orc_dump.c objtool: Make unwind hint definitions available to other architectures 2020-09-10 10:43:13 -05:00
orc_gen.c objtool: Make unwind hint definitions available to other architectures 2020-09-10 10:43:13 -05:00
special.c objtool: Abstract alternative special case handling 2020-09-10 10:43:13 -05:00
special.h objtool: Refactor jump table code to support other architectures 2020-09-10 10:43:13 -05:00
sync-check.sh objtool: Make unwind hint definitions available to other architectures 2020-09-10 10:43:13 -05:00
warn.h objtool: Rename find_containing_func() 2020-03-25 18:28:29 +01:00
weak.c objtool: Abstract alternative special case handling 2020-09-10 10:43:13 -05:00