diff --git a/cc/config/arm64_device.go b/cc/config/arm64_device.go index 025d3a5f6..0d22ed498 100644 --- a/cc/config/arm64_device.go +++ b/cc/config/arm64_device.go @@ -60,7 +60,7 @@ var ( "-Wl,--build-id=md5", "-Wl,--warn-shared-textrel", "-Wl,--fatal-warnings", - "-Wl,-maarch64linux", + "-Wl,-m,aarch64_elf64_le_vec", "-Wl,--hash-style=gnu", "-Wl,--fix-cortex-a53-843419", "-fuse-ld=gold", diff --git a/cc/config/arm_device.go b/cc/config/arm_device.go index 38816aabe..d50de2b4f 100644 --- a/cc/config/arm_device.go +++ b/cc/config/arm_device.go @@ -67,6 +67,7 @@ var ( "-Wl,--icf=safe", "-Wl,--hash-style=gnu", "-Wl,--no-undefined-version", + "-Wl,-m,armelf", } armArmCflags = []string{