:: commit 3fbf612ff2a3d44891c95a442563e7862a22d18d

mintsuki <mintsuki@protonmail.com> — 2024-08-09 12:28

parents: a4c22dfba9

build: Get rid of redundant -no-pie linker flag

diff --git a/bootstrap b/bootstrap
index c0131648..db84e195 100755
--- a/bootstrap
+++ b/bootstrap
@@ -76,9 +76,9 @@ if ! test -f version; then
     done
 
     download_by_hash \
-        https://github.com/osdev0/freestanding-toolchain/raw/a8b871c2a952f7efe89bd38658f8356bc00d4d29/freestanding-toolchain \
+        https://github.com/osdev0/freestanding-toolchain/raw/278277e9ade987528f95e011f233837a31233ff6/freestanding-toolchain \
         build-aux/freestanding-toolchain \
-        6e167855d2ea68ebaf1e3d7450f3297bec2ab3f425e56ed11ed7c72396f6b540
+        89efde3df328d8e2eaa2e6893195a95c0472cd96217805d7fee0a5738ddc5908
     chmod +x build-aux/freestanding-toolchain
 
     clone_repo_commit \
diff --git a/common/GNUmakefile b/common/GNUmakefile
index 3368a341..69bf06f2 100644
--- a/common/GNUmakefile
+++ b/common/GNUmakefile
@@ -181,10 +181,6 @@ ifeq ($(TARGET),bios)
         -m elf_i386 \
         -static \
         --build-id=sha1
-
-    ifeq ($(LD_FOR_TARGET_HAS_NO_PIE),yes)
-        override LDFLAGS_FOR_TARGET += -no-pie
-    endif
 endif
 
 ifeq ($(TARGET),uefi-x86-64)
diff --git a/decompressor/GNUmakefile b/decompressor/GNUmakefile
index 95f95bf7..79095a22 100644
--- a/decompressor/GNUmakefile
+++ b/decompressor/GNUmakefile
@@ -57,10 +57,6 @@ override LDFLAGS_FOR_TARGET += \
     -static \
     -T linker.ld
 
-ifeq ($(LD_FOR_TARGET_HAS_NO_PIE),yes)
-    override LDFLAGS_FOR_TARGET += -no-pie
-endif
-
 override NASMFLAGS_FOR_TARGET += \
     -Wall \
     -w-reloc \
tab: 248 wrap: offon