diff options
author | Roland McGrath <roland@gnu.org> | 2005-01-26 02:05:49 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2005-01-26 02:05:49 +0000 |
commit | 70a8119bf0429692aa5ce181c79470ab2f3e3681 (patch) | |
tree | 4989572441907b6734364639d4011566f18c49ed /sysdeps/i386/Makefile | |
parent | 792dcd77cdafb46c746119e250a5ba9d20598f8f (diff) | |
download | glibc-70a8119bf0429692aa5ce181c79470ab2f3e3681.zip glibc-70a8119bf0429692aa5ce181c79470ab2f3e3681.tar.gz glibc-70a8119bf0429692aa5ce181c79470ab2f3e3681.tar.bz2 |
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/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/i386/Makefile b/sysdeps/i386/Makefile index 52faaa3..ece94f3 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 |