mirror of
https://github.com/libffi/libffi.git
synced 2026-01-26 10:07:53 +00:00
add CFLAGS -mcmodel=medium for loongarch64 (#945)
The default code model of gcc for loongarch64 platform provides 256MiB PC-relative addressing space[1], which is not enough for linking large binaries like chromium. Setting it to medium can let libffi_pic.a get linked to large binaries successfully. [1] https://github.com/loongson/la-abi-specs/blob/release/laelf.adoc#code_models
This commit is contained in:
parent
3276df05a7
commit
f067aef649
@ -190,6 +190,9 @@ case "$TARGET" in
|
||||
fi
|
||||
CFLAGS="$CFLAGS -sMEMORY64=$WASM64_MEMORY64"
|
||||
;;
|
||||
LOONGARCH64)
|
||||
CFLAGS="$CFLAGS -mcmodel=medium"
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_CACHE_CHECK([whether compiler supports pointer authentication],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user