android_kernel_motorola_sm6375/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Naveen N Rao b157987242 powerpc: Fail build if using recordmcount with binutils v2.37
commit 25ea739ea1d4d3de41acc4f4eb2d1a97eee0eb75 upstream.

binutils v2.37 drops unused section symbols, which prevents recordmcount
from capturing mcount locations in sections that have no non-weak
symbols. This results in a build failure with a message such as:
	Cannot find symbol for section 12: .text.perf_callchain_kernel.
	kernel/events/callchain.o: failed

The change to binutils was reverted for v2.38, so this behavior is
specific to binutils v2.37:
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=c09c8b42021180eee9495bd50d8b35e683d3901b

Objtool is able to cope with such sections, so this issue is specific to
recordmcount.

Fail the build and print a warning if binutils v2.37 is detected and if
we are using recordmcount.

Cc: [email protected]
Suggested-by: Joel Stanley <[email protected]>
Signed-off-by: Naveen N Rao <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2023-07-27 08:37:34 +02:00
..
alpha
arc ARC: define ASM_NL and __ALIGN(_STR) outside #ifdef __ASSEMBLY__ guard 2023-07-27 08:37:18 +02:00
arm ARM: orion5x: fix d2net gpio initialization 2023-07-27 08:37:26 +02:00
arm64 arm64: dts: renesas: ulcb-kf: Remove flow control for SCIF1 2023-07-27 08:37:14 +02:00
c6x
csky
h8300
hexagon
ia64 treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
m68k m68k: Move signal frame following exception on 68020/030 2023-05-30 12:44:09 +01:00
microblaze
mips Remove DECnet support from kernel 2023-06-21 15:44:10 +02:00
nds32
nios2 nios2: dts: Fix tse_mac "max-frame-size" property 2023-06-21 15:44:10 +02:00
openrisc openrisc: Properly store r31 to pt_regs on unhandled exceptions 2023-05-17 11:35:53 +02:00
parisc parisc: Improve cache flushing for PCXL in arch_sync_dma_for_cpu() 2023-06-21 15:44:09 +02:00
powerpc powerpc: Fail build if using recordmcount with binutils v2.37 2023-07-27 08:37:34 +02:00
riscv
s390 KVM: s390: vsie: fix the length of APCB bitmap 2023-07-27 08:37:22 +02:00
sh sh: dma: Fix DMA channel offset calculation 2023-07-27 08:37:24 +02:00
sparc
um
unicore32
x86 x86/resctrl: Only show tasks' pid in current pid namespace 2023-07-27 08:37:04 +02:00
xtensa
.gitignore
Kconfig