mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 14:42:08 +02:00
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>
This commit is contained in:
parent
012ea376a5
commit
3df8585afd
|
|
@ -6,6 +6,7 @@ config ARM
|
||||||
select ARCH_CORRECT_STACKTRACE_ON_KRETPROBE if HAVE_KRETPROBES && FRAME_POINTER && !ARM_UNWIND
|
select ARCH_CORRECT_STACKTRACE_ON_KRETPROBE if HAVE_KRETPROBES && FRAME_POINTER && !ARM_UNWIND
|
||||||
select ARCH_HAS_BINFMT_FLAT
|
select ARCH_HAS_BINFMT_FLAT
|
||||||
select ARCH_HAS_CACHE_LINE_SIZE if OF
|
select ARCH_HAS_CACHE_LINE_SIZE if OF
|
||||||
|
select ARCH_HAS_CC_CAN_LINK
|
||||||
select ARCH_HAS_CPU_CACHE_ALIASING
|
select ARCH_HAS_CPU_CACHE_ALIASING
|
||||||
select ARCH_HAS_CPU_FINALIZE_INIT if MMU
|
select ARCH_HAS_CPU_FINALIZE_INIT if MMU
|
||||||
select ARCH_HAS_CURRENT_STACK_POINTER
|
select ARCH_HAS_CURRENT_STACK_POINTER
|
||||||
|
|
@ -1715,6 +1716,16 @@ config KERNEL_MODE_NEON
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
config ARCH_CC_CAN_LINK
|
||||||
|
bool
|
||||||
|
default $(cc_can_link_user,-mlittle-endian) if CPU_LITTLE_ENDIAN
|
||||||
|
default $(cc_can_link_user,-mbig-endian) if CPU_BIG_ENDIAN
|
||||||
|
|
||||||
|
config ARCH_USERFLAGS
|
||||||
|
string
|
||||||
|
default "-mlittle-endian" if CPU_LITTLE_ENDIAN
|
||||||
|
default "-mbig-endian" if CPU_BIG_ENDIAN
|
||||||
|
|
||||||
menu "Power management options"
|
menu "Power management options"
|
||||||
|
|
||||||
source "kernel/power/Kconfig"
|
source "kernel/power/Kconfig"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user