summaryrefslogtreecommitdiff
path: root/tests/string_test.cpp
AgeCommit message (Collapse)Author
2012-10-25Per-thread -fstack-protector guards for x86.Elliott Hughes
Based on a pair of patches from Intel: https://android-review.googlesource.com/#/c/43909/ https://android-review.googlesource.com/#/c/44903/ For x86, this patch supports _both_ the global that ARM/MIPS use and the per-thread TLS entry (%gs:20) that GCC uses by default. This lets us support binaries built with any x86 toolchain (right now, the NDK is emitting x86 code that uses the global). I've also extended the original tests to cover ARM/MIPS too, and be a little more thorough for x86. Change-Id: I02f279a80c6b626aecad449771dec91df235ad01
2012-10-16Make dlerror(3) thread-safe.Elliott Hughes
I gave up trying to use the usual thread-local buffer idiom; calls to calloc(3) and free(3) from any of the "dl" functions -- which live in the dynamic linker -- end up resolving to the dynamic linker's stubs. I tried to work around that, but was just making things more complicated. This alternative costs us a well-known TLS slot (instead of the dynamically-allocated TLS slot we'd have used otherwise, so no difference there), plus an extra buffer inside every pthread_internal_t. Bug: 5404023 Change-Id: Ie9614edd05b6d1eeaf7bf9172792d616c6361767
2012-09-13Make strerror(3) and strsignal(3) thread-safe, and add psignal(3) and ↵Irina Tirdea
psiginfo(3). Change-Id: I426109db25e907980d6cb3a7a695796e45783b78