crtbegin.S (__dso_handle): Put in .sdata/.sbss rather than .data/.bss so it can be...
authorJames Clarke <jrtc27@jrtc27.com>
Wed, 5 Jun 2019 22:27:37 +0000 (22:27 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 5 Jun 2019 22:27:37 +0000 (16:27 -0600)
* config/ia64/crtbegin.S (__dso_handle): Put in .sdata/.sbss
rather than .data/.bss so it can be accessed via gp-relative
addressing.

From-SVN: r271977

libgcc/ChangeLog
libgcc/config/ia64/crtbegin.S

index 371876a45ff4d755730f875a7c7049c640e045f7..82c124f8ece0531360ac89fdd39b26b3040f8c0a 100644 (file)
@@ -1,3 +1,9 @@
+2019-06-05  James Clarke  <jrtc27@jrtc27.com>
+
+       * config/ia64/crtbegin.S (__dso_handle): Put in .sdata/.sbss
+       rather than .data/.bss so it can be accessed via gp-relative
+       addressing.
+
 2019-06-05  David Edelsohn  <dje.gcc@gmail.com>
 
        * config/rs6000/aix-unwind.h (LR_REGNO): Rename to R_LR.
index 5b2f55936dd8d6126d4e5a058279489eaed48beb..213ccd7ab8b33395efdd2b1ccf12c82b9d3110ac 100644 (file)
@@ -45,11 +45,11 @@ dtor_ptr:
        .type __dso_handle,@object
        .size __dso_handle,8
 #ifdef SHARED
-       .section .data
+       .section .sdata
 __dso_handle:
        data8   __dso_handle
 #else
-       .section .bss
+       .section .sbss
        .align 8
 __dso_handle:
        .skip   8