Message ID | 20210710145033.2804047-1-linux@roeck-us.net |
---|---|
State | New |
Headers | show |
Series | ARC: Fix CONFIG_STACKDEPOT | expand |
On 7/10/21 7:50 AM, Guenter Roeck wrote: > Enabling CONFIG_STACKDEPOT results in the following build error. > > arc-elf-ld: lib/stackdepot.o: in function `filter_irq_stacks': > stackdepot.c:(.text+0x456): undefined reference to `__irqentry_text_start' > arc-elf-ld: stackdepot.c:(.text+0x456): undefined reference to `__irqentry_text_start' > arc-elf-ld: stackdepot.c:(.text+0x476): undefined reference to `__irqentry_text_end' > arc-elf-ld: stackdepot.c:(.text+0x476): undefined reference to `__irqentry_text_end' > arc-elf-ld: stackdepot.c:(.text+0x484): undefined reference to `__softirqentry_text_start' > arc-elf-ld: stackdepot.c:(.text+0x484): undefined reference to `__softirqentry_text_start' > arc-elf-ld: stackdepot.c:(.text+0x48c): undefined reference to `__softirqentry_text_end' > arc-elf-ld: stackdepot.c:(.text+0x48c): undefined reference to `__softirqentry_text_end' > > Other architectures address this problem by adding IRQENTRY_TEXT and > SOFTIRQENTRY_TEXT to the text segment, so do the same here. > > Signed-off-by: Guenter Roeck <linux@roeck-us.net> Thx for the fix. Added to for-curr -Vineet
diff --git a/arch/arc/kernel/vmlinux.lds.S b/arch/arc/kernel/vmlinux.lds.S index e2146a8da195..529ae50f9fe2 100644 --- a/arch/arc/kernel/vmlinux.lds.S +++ b/arch/arc/kernel/vmlinux.lds.S @@ -88,6 +88,8 @@ SECTIONS CPUIDLE_TEXT LOCK_TEXT KPROBES_TEXT + IRQENTRY_TEXT + SOFTIRQENTRY_TEXT *(.fixup) *(.gnu.warning) }
Enabling CONFIG_STACKDEPOT results in the following build error. arc-elf-ld: lib/stackdepot.o: in function `filter_irq_stacks': stackdepot.c:(.text+0x456): undefined reference to `__irqentry_text_start' arc-elf-ld: stackdepot.c:(.text+0x456): undefined reference to `__irqentry_text_start' arc-elf-ld: stackdepot.c:(.text+0x476): undefined reference to `__irqentry_text_end' arc-elf-ld: stackdepot.c:(.text+0x476): undefined reference to `__irqentry_text_end' arc-elf-ld: stackdepot.c:(.text+0x484): undefined reference to `__softirqentry_text_start' arc-elf-ld: stackdepot.c:(.text+0x484): undefined reference to `__softirqentry_text_start' arc-elf-ld: stackdepot.c:(.text+0x48c): undefined reference to `__softirqentry_text_end' arc-elf-ld: stackdepot.c:(.text+0x48c): undefined reference to `__softirqentry_text_end' Other architectures address this problem by adding IRQENTRY_TEXT and SOFTIRQENTRY_TEXT to the text segment, so do the same here. Signed-off-by: Guenter Roeck <linux@roeck-us.net> --- arch/arc/kernel/vmlinux.lds.S | 2 ++ 1 file changed, 2 insertions(+)