public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/maskray/grte] Add workarounds for clang and lld problems
@ 2021-08-27 23:23 Fangrui Song
0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-08-27 23:23 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=eb3215d3bdccdee47b3cff6bc3492d5de03bbf6a
commit eb3215d3bdccdee47b3cff6bc3492d5de03bbf6a
Author: Stan Shebs <stanshebs@google.com>
Date: Tue Feb 27 11:22:13 2018 -0800
Add workarounds for clang and lld problems
Diff:
---
elf/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/elf/Makefile b/elf/Makefile
index 6aefe50ca7..f1fda1d61d 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -62,6 +62,9 @@ rtld-routines = rtld $(all-dl-routines) dl-sysdep dl-environ dl-minimal \
dl-error-minimal dl-conflict
all-rtld-routines = $(rtld-routines) $(sysdep-rtld-routines)
+# Hack around a clang alias+optimization problem.
+CFLAGS-rtld.c += -O0
+
CFLAGS-dl-runtime.c += -fexceptions -fasynchronous-unwind-tables
CFLAGS-dl-lookup.c += -fexceptions -fasynchronous-unwind-tables
CFLAGS-dl-iterate-phdr.c += $(uses-callbacks)
@@ -282,6 +285,8 @@ $(objpfx)tst-gnu2-tls1: $(objpfx)tst-gnu2-tls1mod.so
tst-gnu2-tls1mod.so-no-z-defs = yes
CFLAGS-tst-gnu2-tls1mod.c += -mtls-dialect=gnu2
endif
+# Somehow configure is failing to notice that lld can't do protected data.
+ifeq ($(with-lld),no)
ifeq (yes,$(have-protected-data))
modules-names += tst-protected1moda tst-protected1modb
tests += tst-protected1a tst-protected1b
@@ -296,6 +301,7 @@ tst-protected1modb.so-no-z-defs = yes
test-xfail-tst-protected1a = yes
test-xfail-tst-protected1b = yes
endif
+endif # lld
ifeq (yesyes,$(have-fpie)$(build-shared))
modules-names += tst-piemod1
tests += tst-pie1 tst-pie2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-27 23:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27 23:23 [glibc/maskray/grte] Add workarounds for clang and lld problems 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).