Skip to content

Commit 3df8585

Browse files
t-8chRussell King (Oracle)
authored andcommitted
ARM: 9469/1: Implement ARCH_HAS_CC_CAN_LINK
The generic CC_CAN_LINK detection does not handle different byte orders. This may lead to userprogs which are not actually runnable on the target kernel. Use architecture-specific logic supporting byte orders instead. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
1 parent 012ea37 commit 3df8585

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

arch/arm/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ config ARM
66
select ARCH_CORRECT_STACKTRACE_ON_KRETPROBE if HAVE_KRETPROBES && FRAME_POINTER && !ARM_UNWIND
77
select ARCH_HAS_BINFMT_FLAT
88
select ARCH_HAS_CACHE_LINE_SIZE if OF
9+
select ARCH_HAS_CC_CAN_LINK
910
select ARCH_HAS_CPU_CACHE_ALIASING
1011
select ARCH_HAS_CPU_FINALIZE_INIT if MMU
1112
select ARCH_HAS_CURRENT_STACK_POINTER
@@ -1715,6 +1716,16 @@ config KERNEL_MODE_NEON
17151716

17161717
endmenu
17171718

1719+
config ARCH_CC_CAN_LINK
1720+
bool
1721+
default $(cc_can_link_user,-mlittle-endian) if CPU_LITTLE_ENDIAN
1722+
default $(cc_can_link_user,-mbig-endian) if CPU_BIG_ENDIAN
1723+
1724+
config ARCH_USERFLAGS
1725+
string
1726+
default "-mlittle-endian" if CPU_LITTLE_ENDIAN
1727+
default "-mbig-endian" if CPU_BIG_ENDIAN
1728+
17181729
menu "Power management options"
17191730

17201731
source "kernel/power/Kconfig"

0 commit comments

Comments
 (0)