Skip to content

Commit 561f60d

Browse files
t-8chRussell King (Oracle)
authored andcommitted
ARM: 9470/1: Handle BE8 vs BE32 in ARCH_CC_CAN_LINK
ARM big-endian has two different binary formats. BE8 and the older BE32. They are incompatible with each other. Handle those when evaluating ARCH_CC_CAN_LINK by using the respective configuration of the kernel itself. Fixes: 3df8585 ("ARM: 9469/1: Implement ARCH_HAS_CC_CAN_LINK") Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
1 parent 3df8585 commit 561f60d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

arch/arm/Kconfig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,12 +1719,14 @@ endmenu
17191719
config ARCH_CC_CAN_LINK
17201720
bool
17211721
default $(cc_can_link_user,-mlittle-endian) if CPU_LITTLE_ENDIAN
1722-
default $(cc_can_link_user,-mbig-endian) if CPU_BIG_ENDIAN
1722+
default $(cc_can_link_user,-mbig-endian -mbe8) if CPU_ENDIAN_BE8
1723+
default $(cc_can_link_user,-mbig-endian -mbe32) if CPU_ENDIAN_BE32
17231724

17241725
config ARCH_USERFLAGS
17251726
string
17261727
default "-mlittle-endian" if CPU_LITTLE_ENDIAN
1727-
default "-mbig-endian" if CPU_BIG_ENDIAN
1728+
default "-mbig-endian -mbe8" if CPU_ENDIAN_BE8
1729+
default "-mbig-endian -mbe32" if CPU_ENDIAN_BE32
17281730

17291731
menu "Power management options"
17301732

0 commit comments

Comments
 (0)