public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset
@ 2024-04-17 20:13 Adhemerval Zanella
  0 siblings, 0 replies; 19+ messages in thread
From: Adhemerval Zanella @ 2024-04-17 20:13 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0b0c655d880f0b541dd5cb3d08248a6832af7f6a

commit 0b0c655d880f0b541dd5cb3d08248a6832af7f6a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Apr 3 11:23:20 2022 -0300

    elf: Use volatile to set __rseq_size and __rseq_offset
    
    To avoid compiler to optimize them away.

Diff:
---
 sysdeps/nptl/dl-tls_init_tp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 092c274f36..4510c32404 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -107,7 +107,7 @@ __tls_init_tp (void)
       {
         /* We need a writable view of the variables.  They are in
            .data.relro and are not yet write-protected.  */
-        extern unsigned int size __asm__ ("__rseq_size");
+        extern volatile unsigned int size __asm__ ("__rseq_size");
         size = sizeof (pd->rseq_area);
       }
 
@@ -117,7 +117,7 @@ __tls_init_tp (void)
        all targets support __thread_pointer, so set __rseq_offset only
        if the rseq registration may have happened because RSEQ_SIG is
        defined.  */
-    extern ptrdiff_t offset __asm__ ("__rseq_offset");
+    extern volatile ptrdiff_t offset __asm__ ("__rseq_offset");
     offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
 #endif
   }

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset
@ 2024-04-02 15:59 Adhemerval Zanella
  0 siblings, 0 replies; 19+ messages in thread
From: Adhemerval Zanella @ 2024-04-02 15:59 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8ca1c06db8a1a37366f43ef15388cd66880e0f7b

commit 8ca1c06db8a1a37366f43ef15388cd66880e0f7b
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Apr 3 11:23:20 2022 -0300

    elf: Use volatile to set __rseq_size and __rseq_offset
    
    To avoid compiler to optimize them away.

Diff:
---
 sysdeps/nptl/dl-tls_init_tp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 092c274f36..4510c32404 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -107,7 +107,7 @@ __tls_init_tp (void)
       {
         /* We need a writable view of the variables.  They are in
            .data.relro and are not yet write-protected.  */
-        extern unsigned int size __asm__ ("__rseq_size");
+        extern volatile unsigned int size __asm__ ("__rseq_size");
         size = sizeof (pd->rseq_area);
       }
 
@@ -117,7 +117,7 @@ __tls_init_tp (void)
        all targets support __thread_pointer, so set __rseq_offset only
        if the rseq registration may have happened because RSEQ_SIG is
        defined.  */
-    extern ptrdiff_t offset __asm__ ("__rseq_offset");
+    extern volatile ptrdiff_t offset __asm__ ("__rseq_offset");
     offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
 #endif
   }

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset
@ 2024-02-09 17:37 Adhemerval Zanella
  0 siblings, 0 replies; 19+ messages in thread
From: Adhemerval Zanella @ 2024-02-09 17:37 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7f804e3daf94594ede54a1b7648a3a07cd4a5425

commit 7f804e3daf94594ede54a1b7648a3a07cd4a5425
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Apr 3 11:23:20 2022 -0300

    elf: Use volatile to set __rseq_size and __rseq_offset
    
    To avoid compiler to optimize them away.

Diff:
---
 sysdeps/nptl/dl-tls_init_tp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 092c274f36..4510c32404 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -107,7 +107,7 @@ __tls_init_tp (void)
       {
         /* We need a writable view of the variables.  They are in
            .data.relro and are not yet write-protected.  */
-        extern unsigned int size __asm__ ("__rseq_size");
+        extern volatile unsigned int size __asm__ ("__rseq_size");
         size = sizeof (pd->rseq_area);
       }
 
@@ -117,7 +117,7 @@ __tls_init_tp (void)
        all targets support __thread_pointer, so set __rseq_offset only
        if the rseq registration may have happened because RSEQ_SIG is
        defined.  */
-    extern ptrdiff_t offset __asm__ ("__rseq_offset");
+    extern volatile ptrdiff_t offset __asm__ ("__rseq_offset");
     offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
 #endif
   }

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset
@ 2024-02-07 14:12 Adhemerval Zanella
  0 siblings, 0 replies; 19+ messages in thread
From: Adhemerval Zanella @ 2024-02-07 14:12 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=11a9ba0bca6c18f8a46b2705b2ee670434d2db81

commit 11a9ba0bca6c18f8a46b2705b2ee670434d2db81
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Apr 3 11:23:20 2022 -0300

    elf: Use volatile to set __rseq_size and __rseq_offset
    
    To avoid compiler to optimize them away.

Diff:
---
 sysdeps/nptl/dl-tls_init_tp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 092c274f36..4510c32404 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -107,7 +107,7 @@ __tls_init_tp (void)
       {
         /* We need a writable view of the variables.  They are in
            .data.relro and are not yet write-protected.  */
-        extern unsigned int size __asm__ ("__rseq_size");
+        extern volatile unsigned int size __asm__ ("__rseq_size");
         size = sizeof (pd->rseq_area);
       }
 
@@ -117,7 +117,7 @@ __tls_init_tp (void)
        all targets support __thread_pointer, so set __rseq_offset only
        if the rseq registration may have happened because RSEQ_SIG is
        defined.  */
-    extern ptrdiff_t offset __asm__ ("__rseq_offset");
+    extern volatile ptrdiff_t offset __asm__ ("__rseq_offset");
     offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
 #endif
   }

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset
@ 2024-01-29 18:03 Adhemerval Zanella
  0 siblings, 0 replies; 19+ messages in thread
From: Adhemerval Zanella @ 2024-01-29 18:03 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3463b1ba27822bbb737b3f181d6882e1c97bf482

commit 3463b1ba27822bbb737b3f181d6882e1c97bf482
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Apr 3 11:23:20 2022 -0300

    elf: Use volatile to set __rseq_size and __rseq_offset
    
    To avoid compiler to optimize them away.

Diff:
---
 sysdeps/nptl/dl-tls_init_tp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 092c274f36..4510c32404 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -107,7 +107,7 @@ __tls_init_tp (void)
       {
         /* We need a writable view of the variables.  They are in
            .data.relro and are not yet write-protected.  */
-        extern unsigned int size __asm__ ("__rseq_size");
+        extern volatile unsigned int size __asm__ ("__rseq_size");
         size = sizeof (pd->rseq_area);
       }
 
@@ -117,7 +117,7 @@ __tls_init_tp (void)
        all targets support __thread_pointer, so set __rseq_offset only
        if the rseq registration may have happened because RSEQ_SIG is
        defined.  */
-    extern ptrdiff_t offset __asm__ ("__rseq_offset");
+    extern volatile ptrdiff_t offset __asm__ ("__rseq_offset");
     offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
 #endif
   }

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset
@ 2023-12-21 18:59 Adhemerval Zanella
  0 siblings, 0 replies; 19+ messages in thread
From: Adhemerval Zanella @ 2023-12-21 18:59 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d53ca41b98e2aad774f0393ebc439b553425d5da

commit d53ca41b98e2aad774f0393ebc439b553425d5da
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Apr 3 11:23:20 2022 -0300

    elf: Use volatile to set __rseq_size and __rseq_offset
    
    To avoid compiler to optimize them away.

Diff:
---
 sysdeps/nptl/dl-tls_init_tp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 2ed98c5a31..dfd8591575 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -107,7 +107,7 @@ __tls_init_tp (void)
       {
         /* We need a writable view of the variables.  They are in
            .data.relro and are not yet write-protected.  */
-        extern unsigned int size __asm__ ("__rseq_size");
+        extern volatile unsigned int size __asm__ ("__rseq_size");
         size = sizeof (pd->rseq_area);
       }
 
@@ -117,7 +117,7 @@ __tls_init_tp (void)
        all targets support __thread_pointer, so set __rseq_offset only
        if the rseq registration may have happened because RSEQ_SIG is
        defined.  */
-    extern ptrdiff_t offset __asm__ ("__rseq_offset");
+    extern volatile ptrdiff_t offset __asm__ ("__rseq_offset");
     offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
 #endif
   }

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset
@ 2023-09-28 17:57 Adhemerval Zanella
  0 siblings, 0 replies; 19+ messages in thread
From: Adhemerval Zanella @ 2023-09-28 17:57 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5892184fa1332e91def618f16a74decf947d4966

commit 5892184fa1332e91def618f16a74decf947d4966
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Apr 3 11:23:20 2022 -0300

    elf: Use volatile to set __rseq_size and __rseq_offset
    
    To avoid compiler to optimize them away.

Diff:
---
 sysdeps/nptl/dl-tls_init_tp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 2ed98c5a31..dfd8591575 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -107,7 +107,7 @@ __tls_init_tp (void)
       {
         /* We need a writable view of the variables.  They are in
            .data.relro and are not yet write-protected.  */
-        extern unsigned int size __asm__ ("__rseq_size");
+        extern volatile unsigned int size __asm__ ("__rseq_size");
         size = sizeof (pd->rseq_area);
       }
 
@@ -117,7 +117,7 @@ __tls_init_tp (void)
        all targets support __thread_pointer, so set __rseq_offset only
        if the rseq registration may have happened because RSEQ_SIG is
        defined.  */
-    extern ptrdiff_t offset __asm__ ("__rseq_offset");
+    extern volatile ptrdiff_t offset __asm__ ("__rseq_offset");
     offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
 #endif
   }

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset
@ 2023-08-30 12:42 Adhemerval Zanella
  0 siblings, 0 replies; 19+ messages in thread
From: Adhemerval Zanella @ 2023-08-30 12:42 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=262706b313386a963a7ec5afd3bab550add73732

commit 262706b313386a963a7ec5afd3bab550add73732
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Apr 3 11:23:20 2022 -0300

    elf: Use volatile to set __rseq_size and __rseq_offset
    
    To avoid compiler to optimize them away.

Diff:
---
 sysdeps/nptl/dl-tls_init_tp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 2ed98c5a31..dfd8591575 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -107,7 +107,7 @@ __tls_init_tp (void)
       {
         /* We need a writable view of the variables.  They are in
            .data.relro and are not yet write-protected.  */
-        extern unsigned int size __asm__ ("__rseq_size");
+        extern volatile unsigned int size __asm__ ("__rseq_size");
         size = sizeof (pd->rseq_area);
       }
 
@@ -117,7 +117,7 @@ __tls_init_tp (void)
        all targets support __thread_pointer, so set __rseq_offset only
        if the rseq registration may have happened because RSEQ_SIG is
        defined.  */
-    extern ptrdiff_t offset __asm__ ("__rseq_offset");
+    extern volatile ptrdiff_t offset __asm__ ("__rseq_offset");
     offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
 #endif
   }

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset
@ 2023-02-09 19:54 Adhemerval Zanella
  0 siblings, 0 replies; 19+ messages in thread
From: Adhemerval Zanella @ 2023-02-09 19:54 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9b5a101aae11fc4d6b4f6fd1cc6d6228486a25e6

commit 9b5a101aae11fc4d6b4f6fd1cc6d6228486a25e6
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Apr 3 11:23:20 2022 -0300

    elf: Use volatile to set __rseq_size and __rseq_offset
    
    To avoid compiler to optimize them away.

Diff:
---
 sysdeps/nptl/dl-tls_init_tp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 0db0349c4b..05856095a9 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -109,7 +109,7 @@ __tls_init_tp (void)
       {
         /* We need a writable view of the variables.  They are in
            .data.relro and are not yet write-protected.  */
-        extern unsigned int size __asm__ ("__rseq_size");
+        extern volatile unsigned int size __asm__ ("__rseq_size");
         size = sizeof (pd->rseq_area);
       }
 
@@ -119,7 +119,7 @@ __tls_init_tp (void)
        all targets support __thread_pointer, so set __rseq_offset only
        if thre rseq registration may have happened because RSEQ_SIG is
        defined.  */
-    extern ptrdiff_t offset __asm__ ("__rseq_offset");
+    extern volatile ptrdiff_t offset __asm__ ("__rseq_offset");
     offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
 #endif
   }

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset
@ 2022-10-28 17:47 Adhemerval Zanella
  0 siblings, 0 replies; 19+ messages in thread
From: Adhemerval Zanella @ 2022-10-28 17:47 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=945ed2ab282805e76763c9b134d5b63a404ab8c1

commit 945ed2ab282805e76763c9b134d5b63a404ab8c1
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Apr 3 11:23:20 2022 -0300

    elf: Use volatile to set __rseq_size and __rseq_offset
    
    To avoid compiler to optimize them away.

Diff:
---
 sysdeps/nptl/dl-tls_init_tp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 53fba774a5..01ff90117c 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -109,7 +109,7 @@ __tls_init_tp (void)
       {
         /* We need a writable view of the variables.  They are in
            .data.relro and are not yet write-protected.  */
-        extern unsigned int size __asm__ ("__rseq_size");
+        extern volatile unsigned int size __asm__ ("__rseq_size");
         size = sizeof (pd->rseq_area);
       }
 
@@ -119,7 +119,7 @@ __tls_init_tp (void)
        all targets support __thread_pointer, so set __rseq_offset only
        if thre rseq registration may have happened because RSEQ_SIG is
        defined.  */
-    extern ptrdiff_t offset __asm__ ("__rseq_offset");
+    extern volatile ptrdiff_t offset __asm__ ("__rseq_offset");
     offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
 #endif
   }

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset
@ 2022-10-04 13:05 Adhemerval Zanella
  0 siblings, 0 replies; 19+ messages in thread
From: Adhemerval Zanella @ 2022-10-04 13:05 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=bea75ec35c3b0108fd8dcc27b1dc52df1350b96a

commit bea75ec35c3b0108fd8dcc27b1dc52df1350b96a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Apr 3 11:23:20 2022 -0300

    elf: Use volatile to set __rseq_size and __rseq_offset
    
    To avoid compiler to optimize them away.

Diff:
---
 sysdeps/nptl/dl-tls_init_tp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 53fba774a5..01ff90117c 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -109,7 +109,7 @@ __tls_init_tp (void)
       {
         /* We need a writable view of the variables.  They are in
            .data.relro and are not yet write-protected.  */
-        extern unsigned int size __asm__ ("__rseq_size");
+        extern volatile unsigned int size __asm__ ("__rseq_size");
         size = sizeof (pd->rseq_area);
       }
 
@@ -119,7 +119,7 @@ __tls_init_tp (void)
        all targets support __thread_pointer, so set __rseq_offset only
        if thre rseq registration may have happened because RSEQ_SIG is
        defined.  */
-    extern ptrdiff_t offset __asm__ ("__rseq_offset");
+    extern volatile ptrdiff_t offset __asm__ ("__rseq_offset");
     offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
 #endif
   }

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset
@ 2022-06-09 21:26 Adhemerval Zanella
  0 siblings, 0 replies; 19+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 21:26 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=fa021b2a0d044607cd1bc4240834963e7023ee38

commit fa021b2a0d044607cd1bc4240834963e7023ee38
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Apr 3 11:23:20 2022 -0300

    elf: Use volatile to set __rseq_size and __rseq_offset
    
    To avoid compiler to optimize them away.

Diff:
---
 sysdeps/nptl/dl-tls_init_tp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 53fba774a5..01ff90117c 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -109,7 +109,7 @@ __tls_init_tp (void)
       {
         /* We need a writable view of the variables.  They are in
            .data.relro and are not yet write-protected.  */
-        extern unsigned int size __asm__ ("__rseq_size");
+        extern volatile unsigned int size __asm__ ("__rseq_size");
         size = sizeof (pd->rseq_area);
       }
 
@@ -119,7 +119,7 @@ __tls_init_tp (void)
        all targets support __thread_pointer, so set __rseq_offset only
        if thre rseq registration may have happened because RSEQ_SIG is
        defined.  */
-    extern ptrdiff_t offset __asm__ ("__rseq_offset");
+    extern volatile ptrdiff_t offset __asm__ ("__rseq_offset");
     offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
 #endif
   }


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset
@ 2022-06-09 13:22 Adhemerval Zanella
  0 siblings, 0 replies; 19+ messages in thread
From: Adhemerval Zanella @ 2022-06-09 13:22 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=fa021b2a0d044607cd1bc4240834963e7023ee38

commit fa021b2a0d044607cd1bc4240834963e7023ee38
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Apr 3 11:23:20 2022 -0300

    elf: Use volatile to set __rseq_size and __rseq_offset
    
    To avoid compiler to optimize them away.

Diff:
---
 sysdeps/nptl/dl-tls_init_tp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 53fba774a5..01ff90117c 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -109,7 +109,7 @@ __tls_init_tp (void)
       {
         /* We need a writable view of the variables.  They are in
            .data.relro and are not yet write-protected.  */
-        extern unsigned int size __asm__ ("__rseq_size");
+        extern volatile unsigned int size __asm__ ("__rseq_size");
         size = sizeof (pd->rseq_area);
       }
 
@@ -119,7 +119,7 @@ __tls_init_tp (void)
        all targets support __thread_pointer, so set __rseq_offset only
        if thre rseq registration may have happened because RSEQ_SIG is
        defined.  */
-    extern ptrdiff_t offset __asm__ ("__rseq_offset");
+    extern volatile ptrdiff_t offset __asm__ ("__rseq_offset");
     offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
 #endif
   }


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset
@ 2022-06-03 14:12 Adhemerval Zanella
  0 siblings, 0 replies; 19+ messages in thread
From: Adhemerval Zanella @ 2022-06-03 14:12 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9476302f3d43f49e201ba76a9ad362936c3ed89a

commit 9476302f3d43f49e201ba76a9ad362936c3ed89a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Apr 3 11:23:20 2022 -0300

    elf: Use volatile to set __rseq_size and __rseq_offset
    
    To avoid compiler to optimize them away.

Diff:
---
 sysdeps/nptl/dl-tls_init_tp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 53fba774a5..01ff90117c 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -109,7 +109,7 @@ __tls_init_tp (void)
       {
         /* We need a writable view of the variables.  They are in
            .data.relro and are not yet write-protected.  */
-        extern unsigned int size __asm__ ("__rseq_size");
+        extern volatile unsigned int size __asm__ ("__rseq_size");
         size = sizeof (pd->rseq_area);
       }
 
@@ -119,7 +119,7 @@ __tls_init_tp (void)
        all targets support __thread_pointer, so set __rseq_offset only
        if thre rseq registration may have happened because RSEQ_SIG is
        defined.  */
-    extern ptrdiff_t offset __asm__ ("__rseq_offset");
+    extern volatile ptrdiff_t offset __asm__ ("__rseq_offset");
     offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
 #endif
   }


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset
@ 2022-05-13 14:26 Adhemerval Zanella
  0 siblings, 0 replies; 19+ messages in thread
From: Adhemerval Zanella @ 2022-05-13 14:26 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e21bdbd5f948f03bed74417fe711cf76be37a038

commit e21bdbd5f948f03bed74417fe711cf76be37a038
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Apr 3 11:23:20 2022 -0300

    elf: Use volatile to set __rseq_size and __rseq_offset
    
    To avoid compiler to optimize them away.

Diff:
---
 sysdeps/nptl/dl-tls_init_tp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 53fba774a5..01ff90117c 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -109,7 +109,7 @@ __tls_init_tp (void)
       {
         /* We need a writable view of the variables.  They are in
            .data.relro and are not yet write-protected.  */
-        extern unsigned int size __asm__ ("__rseq_size");
+        extern volatile unsigned int size __asm__ ("__rseq_size");
         size = sizeof (pd->rseq_area);
       }
 
@@ -119,7 +119,7 @@ __tls_init_tp (void)
        all targets support __thread_pointer, so set __rseq_offset only
        if thre rseq registration may have happened because RSEQ_SIG is
        defined.  */
-    extern ptrdiff_t offset __asm__ ("__rseq_offset");
+    extern volatile ptrdiff_t offset __asm__ ("__rseq_offset");
     offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
 #endif
   }


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset
@ 2022-05-12 19:39 Adhemerval Zanella
  0 siblings, 0 replies; 19+ messages in thread
From: Adhemerval Zanella @ 2022-05-12 19:39 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3e5728f1dbe2b10c690a99c0fb79dd723ca00c9b

commit 3e5728f1dbe2b10c690a99c0fb79dd723ca00c9b
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Apr 3 11:23:20 2022 -0300

    elf: Use volatile to set __rseq_size and __rseq_offset
    
    To avoid compiler to optimize them away.

Diff:
---
 sysdeps/nptl/dl-tls_init_tp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 53fba774a5..01ff90117c 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -109,7 +109,7 @@ __tls_init_tp (void)
       {
         /* We need a writable view of the variables.  They are in
            .data.relro and are not yet write-protected.  */
-        extern unsigned int size __asm__ ("__rseq_size");
+        extern volatile unsigned int size __asm__ ("__rseq_size");
         size = sizeof (pd->rseq_area);
       }
 
@@ -119,7 +119,7 @@ __tls_init_tp (void)
        all targets support __thread_pointer, so set __rseq_offset only
        if thre rseq registration may have happened because RSEQ_SIG is
        defined.  */
-    extern ptrdiff_t offset __asm__ ("__rseq_offset");
+    extern volatile ptrdiff_t offset __asm__ ("__rseq_offset");
     offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
 #endif
   }


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset
@ 2022-05-10 18:30 Adhemerval Zanella
  0 siblings, 0 replies; 19+ messages in thread
From: Adhemerval Zanella @ 2022-05-10 18:30 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2eef58aa05788913117fb6e6f7a8d5011642e8eb

commit 2eef58aa05788913117fb6e6f7a8d5011642e8eb
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Apr 3 11:23:20 2022 -0300

    elf: Use volatile to set __rseq_size and __rseq_offset
    
    To avoid compiler to optimize them away.

Diff:
---
 sysdeps/nptl/dl-tls_init_tp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 53fba774a5..01ff90117c 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -109,7 +109,7 @@ __tls_init_tp (void)
       {
         /* We need a writable view of the variables.  They are in
            .data.relro and are not yet write-protected.  */
-        extern unsigned int size __asm__ ("__rseq_size");
+        extern volatile unsigned int size __asm__ ("__rseq_size");
         size = sizeof (pd->rseq_area);
       }
 
@@ -119,7 +119,7 @@ __tls_init_tp (void)
        all targets support __thread_pointer, so set __rseq_offset only
        if thre rseq registration may have happened because RSEQ_SIG is
        defined.  */
-    extern ptrdiff_t offset __asm__ ("__rseq_offset");
+    extern volatile ptrdiff_t offset __asm__ ("__rseq_offset");
     offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
 #endif
   }


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset
@ 2022-04-29 14:10 Adhemerval Zanella
  0 siblings, 0 replies; 19+ messages in thread
From: Adhemerval Zanella @ 2022-04-29 14:10 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=bbcaa0cf76725ca4f26a76f6d7ecb0258172775c

commit bbcaa0cf76725ca4f26a76f6d7ecb0258172775c
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Apr 3 11:23:20 2022 -0300

    elf: Use volatile to set __rseq_size and __rseq_offset
    
    To avoid compiler to optimize them away.

Diff:
---
 sysdeps/nptl/dl-tls_init_tp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 53fba774a5..01ff90117c 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -109,7 +109,7 @@ __tls_init_tp (void)
       {
         /* We need a writable view of the variables.  They are in
            .data.relro and are not yet write-protected.  */
-        extern unsigned int size __asm__ ("__rseq_size");
+        extern volatile unsigned int size __asm__ ("__rseq_size");
         size = sizeof (pd->rseq_area);
       }
 
@@ -119,7 +119,7 @@ __tls_init_tp (void)
        all targets support __thread_pointer, so set __rseq_offset only
        if thre rseq registration may have happened because RSEQ_SIG is
        defined.  */
-    extern ptrdiff_t offset __asm__ ("__rseq_offset");
+    extern volatile ptrdiff_t offset __asm__ ("__rseq_offset");
     offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
 #endif
   }


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset
@ 2022-04-04 13:00 Adhemerval Zanella
  0 siblings, 0 replies; 19+ messages in thread
From: Adhemerval Zanella @ 2022-04-04 13:00 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6cf5a5d458c11b838bfbcaa6c6a5cf6c45bc3047

commit 6cf5a5d458c11b838bfbcaa6c6a5cf6c45bc3047
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Apr 3 11:23:20 2022 -0300

    elf: Use volatile to set __rseq_size and __rseq_offset
    
    To avoid compiler to optimize them away.

Diff:
---
 sysdeps/nptl/dl-tls_init_tp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/nptl/dl-tls_init_tp.c b/sysdeps/nptl/dl-tls_init_tp.c
index 1294c91816..f30e1399f3 100644
--- a/sysdeps/nptl/dl-tls_init_tp.c
+++ b/sysdeps/nptl/dl-tls_init_tp.c
@@ -109,7 +109,7 @@ __tls_init_tp (void)
       {
         /* We need a writable view of the variables.  They are in
            .data.relro and are not yet write-protected.  */
-        extern unsigned int size __asm__ ("__rseq_size");
+        extern volatile unsigned int size __asm__ ("__rseq_size");
         size = sizeof (pd->rseq_area);
       }
 
@@ -119,7 +119,7 @@ __tls_init_tp (void)
        all targets support __thread_pointer, so set __rseq_offset only
        if thre rseq registration may have happened because RSEQ_SIG is
        defined.  */
-    extern ptrdiff_t offset __asm__ ("__rseq_offset");
+    extern volatile ptrdiff_t offset __asm__ ("__rseq_offset");
     offset = (char *) &pd->rseq_area - (char *) __thread_pointer ();
 #endif
   }


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2024-04-17 20:13 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-17 20:13 [glibc/azanella/clang] elf: Use volatile to set __rseq_size and __rseq_offset Adhemerval Zanella
  -- strict thread matches above, loose matches on Subject: below --
2024-04-02 15:59 Adhemerval Zanella
2024-02-09 17:37 Adhemerval Zanella
2024-02-07 14:12 Adhemerval Zanella
2024-01-29 18:03 Adhemerval Zanella
2023-12-21 18:59 Adhemerval Zanella
2023-09-28 17:57 Adhemerval Zanella
2023-08-30 12:42 Adhemerval Zanella
2023-02-09 19:54 Adhemerval Zanella
2022-10-28 17:47 Adhemerval Zanella
2022-10-04 13:05 Adhemerval Zanella
2022-06-09 21:26 Adhemerval Zanella
2022-06-09 13:22 Adhemerval Zanella
2022-06-03 14:12 Adhemerval Zanella
2022-05-13 14:26 Adhemerval Zanella
2022-05-12 19:39 Adhemerval Zanella
2022-05-10 18:30 Adhemerval Zanella
2022-04-29 14:10 Adhemerval Zanella
2022-04-04 13:00 Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).