diff options
author | Stefan Liebler <stli@linux.vnet.ibm.com> | 2017-06-27 15:23:43 +0200 |
---|---|---|
committer | Stefan Liebler <stli@linux.vnet.ibm.com> | 2017-06-27 15:23:43 +0200 |
commit | 83653f804dca6e8e9606e20e708be45b8422d96c (patch) | |
tree | ac749dfd641118813b3f4f377eaac00442ae6638 /benchtests/thread_create-inputs | |
parent | 39bd76df3d61c6d83c5aa8bab06c7c1dbe7159ac (diff) | |
download | glibc-83653f804dca6e8e9606e20e708be45b8422d96c.tar.gz glibc-83653f804dca6e8e9606e20e708be45b8422d96c.tar.xz glibc-83653f804dca6e8e9606e20e708be45b8422d96c.zip |
S390: Save and restore r12 in TLS_IE macro.
The testcases elf/tst-tls1-static and elf/tst-tls2-static are failing on s390 if gcc is configured with --enable-default-pie. According to binutils, there are only four valid cases for IE -> LE transition: lg %rx,(0,%ry) -> sllg %rx,%ry,0 lg %rx,(%ry,0) -> sllg %rx,%ry,0 lg %rx,(%ry,%r12) -> sllg %rx,%ry,0 lg %rx,(%r12,%ry) -> sllg %rx,%ry,0 Thus I've adjusted the TLS_IE macro in s390 tls-macros.h files in PIC case in order to use r12 for the address of global offset table. The adjusted macro definition is not used if gcc is not configured with --enable-default-pie. ChangeLog: * sysdeps/s390/s390-32/tls-macros.h (TLS_IE): Use r12 for GOT address. * sysdeps/s390/s390-64/tls-macros.h (TLS_IE): Likewise.
Diffstat (limited to 'benchtests/thread_create-inputs')
0 files changed, 0 insertions, 0 deletions