summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2017-12-09 02:23:33 +0000
committerKamil Rytarowski <n54@gmx.com>2017-12-09 02:23:33 +0000
commitf6510a01a663a2e249462ef0ca98a5b94c22f59b (patch)
tree8f88127e60b9631c192f77f4e118131f07c579db /clang/lib/Frontend/CompilerInvocation.cpp
parentababedd0b08e5084c5df93d54a291d6c7981249c (diff)
downloadbcm5719-llvm-f6510a01a663a2e249462ef0ca98a5b94c22f59b.tar.gz
bcm5719-llvm-f6510a01a663a2e249462ef0ca98a5b94c22f59b.zip
Correct handling of the TLS/NetBSD block of the main program
Summary: Include <sys/tls.h> for: - struct tls_tcb - thread control block structure - __HAVE___LWP_GETTCB_FAST - __lwp_gettcb_fast() is available - __HAVE___LWP_GETPRIVATE_FAST - __lwp_getprivate_fast() is available - __HAVE_TLS_VARIANT_I - TLS Variant I for this architecture - __HAVE_TLS_VARIANT_II - TLS Variant II for this architecture Rename ThreadSelfSegbase() to ThreadSelfTlsTcb and switch it to retrieve in a portable way TCB. Switch ThreadSelf() to retrieve pthread from struct tcb_tls. Use dl_iterate_phdr() to find out the size of TLS block of the main program. Correct the index of the TLS block of the main program (dlpi_tls_modid); it's 1, not 2. New NetBSD code is now CPU (NetBSD port) agnostic. Stop sharing the same code with FreeBSD. Sponsored by <The NetBSD Foundation> Reviewers: dvyukov, joerg, vitalybuka Reviewed By: vitalybuka Subscribers: emaste, kubamracek, llvm-commits, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D40159 llvm-svn: 320234
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud