public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/google/grte/v5-2.27/master] Enable relaxed relocations when building certain object files for x86_64.
@ 2021-08-28 0:42 Fangrui Song
0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-08-28 0:42 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=738baca8657cd6d69beb4783ff922dfa9a64b9ce
commit 738baca8657cd6d69beb4783ff922dfa9a64b9ce
Author: Siva Chandra Reddy <sivachandra@google.com>
Date: Tue Apr 2 10:18:01 2019 -0700
Enable relaxed relocations when building certain object files for x86_64.
Diff:
---
sysdeps/x86_64/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sysdeps/x86_64/Makefile b/sysdeps/x86_64/Makefile
index 049f8914fe..18b82e2428 100644
--- a/sysdeps/x86_64/Makefile
+++ b/sysdeps/x86_64/Makefile
@@ -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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-28 0:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-28 0:42 [glibc/google/grte/v5-2.27/master] Enable relaxed relocations when building certain object files for x86_64 Fangrui Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).