summaryrefslogtreecommitdiffstats
path: root/drivers/tty/n_gsm.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2022-12-20 11:13:23 +0100
committerIngo Molnar <mingo@kernel.org>2023-01-09 17:53:46 +0100
commitcad90e5381d840cf2296aaac9b3eff71a30b7c5b (patch)
treeb0992c4b51bb596917ddf0ee662e3345a8a1f62e /drivers/tty/n_gsm.c
parentLinux 6.2-rc3 (diff)
downloadlinux-cad90e5381d840cf2296aaac9b3eff71a30b7c5b.tar.xz
linux-cad90e5381d840cf2296aaac9b3eff71a30b7c5b.zip
objtool: Tolerate STT_NOTYPE symbols at end of section
Hand-written asm often contains non-function symbols in executable sections. _end symbols for finding the size of instruction blocks for runtime processing is one such usage. optprobe_template_end is one example that causes the warning: objtool: optprobe_template_end(): can't find starting instruction This is because the symbol happens to be at the end of the file (and therefore end of a section in the object file). So ignore end-of-section STT_NOTYPE symbols instead of bailing out because an instruction can't be found. While we're here, add a more descriptive warning for STT_FUNC symbols found at the end of a section. [ This also solves a PowerPC regression reported by Sathvika Vasireddy. ] Reported-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> Reported-by: Sathvika Vasireddy <sv@linux.ibm.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Sathvika Vasireddy <sv@linux.ibm.com> Link: https://lore.kernel.org/r/20221220101323.3119939-1-npiggin@gmail.com
Diffstat (limited to 'drivers/tty/n_gsm.c')
0 files changed, 0 insertions, 0 deletions