]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
arch-mips: Ensure TUNE_LDARGS is set correctly
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 13 Aug 2023 09:22:17 +0000 (10:22 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 15 Aug 2023 07:14:32 +0000 (08:14 +0100)
Similarly to x86, ensure we have the flags to the linker operating correctly (it
defaults to 32 bit). Normally it is driven by gcc so this hasn't shown up but
it does lead to hundreds of binutils test failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/machine/include/mips/arch-mips.inc

index e48ddd2d6b474c32ceddf9f813008cca482a832e..e39cdcab5ddcf363180dde5b43dd5313f23d9d7b 100644 (file)
@@ -26,6 +26,8 @@ MACHINE_FEATURES_BACKFILL_CONSIDERED:append = " ${@bb.utils.contains('TUNE_FEATU
 TUNEVALID[n64] = "MIPS64 n64 ABI"
 TUNECONFLICTS[n64] = "o32 n32"
 TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'n64', ' -mabi=64', '', d)}"
+LD64ARG = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', '-m elf64btsmip', '-m elf64ltsmip', d)}"
+TUNE_LDARGS += "${@bb.utils.contains('TUNE_FEATURES', 'n64', '${LD64ARG}', '', d)}"
 
 # Floating point
 TUNEVALID[fpu-hard] = "Use hardware FPU"