]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Enable relaxed relocations when building certain object files for x86_64.
authorSiva Chandra Reddy <sivachandra@google.com>
Tue, 2 Apr 2019 17:18:01 +0000 (10:18 -0700)
committerFangrui Song <i@maskray.me>
Sat, 28 Aug 2021 00:26:01 +0000 (17:26 -0700)
sysdeps/x86_64/Makefile

index 049f8914fedff5dc7eafd8a63a4a60e2af5cf76b..18b82e2428b2b4bf50d9e77c57355f7908e99498 100644 (file)
@@ -6,6 +6,9 @@ ifeq ($(with-clang),yes)
 # allowed. (-mavx512 is the preferred option but does not work in 5.0)
 ASFLAGS-.o += -march=knl
 ASFLAGS-.os += -march=knl
+# We want clang to generate relaxed relocations so that they can work with
+# static-pie as well.
+ASFLAGS-.o += -Wa,-mrelax-relocations=yes
 endif
 
 ifeq ($(subdir),csu)