diff options
author | Roland McGrath <roland@gnu.org> | 2002-08-12 06:25:47 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-08-12 06:25:47 +0000 |
commit | e6f526809dbca3e772147b7bdedc3ebca8aff30e (patch) | |
tree | 8d01638a6124709150e9dd99bdd2073c1da27378 /elf/tst-tlsmod3.c | |
parent | 7a8bdff02c8bc80d5068eadf83302595d11f46d4 (diff) | |
download | glibc-e6f526809dbca3e772147b7bdedc3ebca8aff30e.zip glibc-e6f526809dbca3e772147b7bdedc3ebca8aff30e.tar.gz glibc-e6f526809dbca3e772147b7bdedc3ebca8aff30e.tar.bz2 |
* elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
of the TLS macros, otherwise the compiler might not have initialized
the PIC register yet when we use the PLT via asm.
* elf/tst-tlsmod3.c (in_dso2): Likewise.
* elf/tst-tlsmod2.c (in_dso): Likewise.
Diffstat (limited to 'elf/tst-tlsmod3.c')
-rw-r--r-- | elf/tst-tlsmod3.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/elf/tst-tlsmod3.c b/elf/tst-tlsmod3.c index 087c11b..6b7fbcc 100644 --- a/elf/tst-tlsmod3.c +++ b/elf/tst-tlsmod3.c @@ -15,10 +15,15 @@ COMMON_INT_DEF(comm_n); int in_dso2 (void) { - int *foop = TLS_GD (foo); + int *foop; int result = 0; static int n; - int *np = TLS_GD (comm_n); + int *np; + + puts ("foo"); /* Make sure PLT is used before macros. */ + + foop = TLS_GD (foo); + np = TLS_GD (comm_n); if (n != *np) { |