aboutsummaryrefslogtreecommitdiffstats
path: root/tools/objtool/builtin-check.c
diff options
context:
space:
mode:
authorSami Tolvanen <samitolvanen@google.com>2020-10-28 10:16:26 -0700
committerKees Cook <keescook@chromium.org>2021-02-23 12:46:56 -0800
commit18a14575ae31c5a97a5e87e961932a5016d369be (patch)
treed7ea195c1f2189a7655ccb1755175eb05ea2dd71 /tools/objtool/builtin-check.c
parentobjtool: Add a pass for generating __mcount_loc (diff)
downloadlinux-dev-18a14575ae31c5a97a5e87e961932a5016d369be.tar.xz
linux-dev-18a14575ae31c5a97a5e87e961932a5016d369be.zip
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 e81e07244325 ("objtool: Support Clang non-section symbols in ORC generation"). Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Diffstat (limited to 'tools/objtool/builtin-check.c')
0 files changed, 0 insertions, 0 deletions