Skip to content

Commit bf79167

Browse files
groeckvineetgarc
authored andcommitted
ARC: Fix CONFIG_STACKDEPOT
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 <[email protected]> Signed-off-by: Vineet Gupta <[email protected]>
1 parent 81e82fa commit bf79167

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arc/kernel/vmlinux.lds.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ SECTIONS
8888
CPUIDLE_TEXT
8989
LOCK_TEXT
9090
KPROBES_TEXT
91+
IRQENTRY_TEXT
92+
SOFTIRQENTRY_TEXT
9193
*(.fixup)
9294
*(.gnu.warning)
9395
}

0 commit comments

Comments
 (0)