diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2024-04-22 08:51:07 +0100 |
---|---|---|
committer | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2024-04-22 08:51:07 +0100 |
commit | 564e57955306b413ca3e9ee463cc989f1fd387c0 (patch) | |
tree | d917d1403e9a85a7ef123dbee1e6c9990041285c | |
parent | d262969d04f28ef77ae5d9cb121a84a61f294bd0 (diff) | |
download | openbios-564e57955306b413ca3e9ee463cc989f1fd387c0.zip openbios-564e57955306b413ca3e9ee463cc989f1fd387c0.tar.gz openbios-564e57955306b413ca3e9ee463cc989f1fd387c0.tar.bz2 |
switch-arch: disable generation of position independent code (-fno-pic)
This is required to ensure that the output binaries are generated in a
form that will execute correctly as firmware at a fixed location.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
-rwxr-xr-x | config/scripts/switch-arch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config/scripts/switch-arch b/config/scripts/switch-arch index f4da5c6..013116b 100755 --- a/config/scripts/switch-arch +++ b/config/scripts/switch-arch @@ -266,7 +266,7 @@ for ARCH in $arch_list; do select_prefix powerpc powerpc64 if [ "$unix" = "no" ]; then # 604 cpu includes support for PReP as well as Mac - CFLAGS="-m32 -mcpu=604 -msoft-float -fno-builtin-bcopy -fno-builtin-log2 -fno-stack-protector" + CFLAGS="-m32 -mcpu=604 -msoft-float -fno-builtin-bcopy -fno-builtin-log2 -fno-stack-protector -fno-pic" AS_FLAGS="-m32" else CFLAGS="-fno-builtin -fno-stack-protector" @@ -278,25 +278,25 @@ for ARCH in $arch_list; do select_prefix powerpc64 # 970 cpu is used in all 64-bit Macs but disable altivec - CFLAGS="-mcpu=970 -mno-altivec -Wa,-a64 -m64 -msoft-float -fno-builtin -fno-stack-protector" + CFLAGS="-mcpu=970 -mno-altivec -Wa,-a64 -m64 -msoft-float -fno-builtin -fno-stack-protector -fno-pic" AS_FLAGS="-Wa,-a64" ;; sparc32) select_prefix sparc sparc64 - CFLAGS="-Wa,-xarch=v8 -Wa,-32 -m32 -mcpu=supersparc -fno-builtin -fno-stack-protector" + CFLAGS="-Wa,-xarch=v8 -Wa,-32 -m32 -mcpu=supersparc -fno-builtin -fno-stack-protector -fno-pic" AS_FLAGS="-Wa,-xarch=v8 -Wa,-32" ;; sparc64) select_prefix sparc64 - CFLAGS="-Wa,-xarch=v9b -Wa,-64 -m64 -mcpu=ultrasparc -mcmodel=medany -fno-builtin -fno-stack-protector" + CFLAGS="-Wa,-xarch=v9b -Wa,-64 -m64 -mcpu=ultrasparc -mcmodel=medany -fno-builtin -fno-stack-protector -fno-pic" AS_FLAGS="-Wa,-xarch=v9b -Wa,-64" ;; x86) select_prefix i486 x86_64 - CFLAGS="-fno-builtin -m32 -fno-stack-protector" + CFLAGS="-fno-builtin -m32 -fno-stack-protector -fno-pic" AS_FLAGS="-Wa,-32" ;; esac |