aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-01-26 02:05:49 +0000
committerRoland McGrath <roland@gnu.org>2005-01-26 02:05:49 +0000
commit70a8119bf0429692aa5ce181c79470ab2f3e3681 (patch)
tree4989572441907b6734364639d4011566f18c49ed /sysdeps/i386/Makefile
parent792dcd77cdafb46c746119e250a5ba9d20598f8f (diff)
downloadglibc-70a8119bf0429692aa5ce181c79470ab2f3e3681.tar
glibc-70a8119bf0429692aa5ce181c79470ab2f3e3681.tar.gz
glibc-70a8119bf0429692aa5ce181c79470ab2f3e3681.tar.bz2
glibc-70a8119bf0429692aa5ce181c79470ab2f3e3681.zip
2005-01-23 Roland McGrath <roland@redhat.com>
* sysdeps/i386/Makefile (defines): If -mno-tls-direct-seg-refs appears in $(CFLAGS), add -DNO_TLS_DIRECT_SEG_REFS. * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD] (SYSCALL_ERROR_HANDLER) [NO_TLS_DIRECT_SEG_REFS]: Load thread pointer from %gs:0 and add to that value, rather that direct %gs:OFFSET access. * sysdeps/unix/i386/sysdep.S [NO_TLS_DIRECT_SEG_REFS]: Likewise.
Diffstat (limited to 'sysdeps/i386/Makefile')
-rw-r--r--sysdeps/i386/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/i386/Makefile b/sysdeps/i386/Makefile
index 52faaa3109..ece94f3610 100644
--- a/sysdeps/i386/Makefile
+++ b/sysdeps/i386/Makefile
@@ -61,3 +61,7 @@ CFLAGS-dlopenold.c += -mpreferred-stack-boundary=4
CFLAGS-dlclose.c += -mpreferred-stack-boundary=4
CFLAGS-dlerror.c += -mpreferred-stack-boundary=4
endif
+
+ifneq (,$(filter -mno-tls-direct-seg-refs,$(CFLAGS)))
+defines += -DNO_TLS_DIRECT_SEG_REFS
+endif