aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Clarke <jrtc27@jrtc27.com>2019-06-05 22:27:37 +0000
committerJeff Law <law@gcc.gnu.org>2019-06-05 16:27:37 -0600
commitb009eac1575fab705384306a5c877945184d7ffc (patch)
tree9a1cee1c508f6066cd2c9cb1d6d17886603e3712
parent5a9422664e8646313278d50666e2e4c8427cd5df (diff)
downloadgcc-b009eac1575fab705384306a5c877945184d7ffc.zip
gcc-b009eac1575fab705384306a5c877945184d7ffc.tar.gz
gcc-b009eac1575fab705384306a5c877945184d7ffc.tar.bz2
crtbegin.S (__dso_handle): Put in .sdata/.sbss rather than .data/.bss so it can be accessed via...
* 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
-rw-r--r--libgcc/ChangeLog6
-rw-r--r--libgcc/config/ia64/crtbegin.S4
2 files changed, 8 insertions, 2 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 371876a..82c124f 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -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.
diff --git a/libgcc/config/ia64/crtbegin.S b/libgcc/config/ia64/crtbegin.S
index 5b2f559..213ccd7 100644
--- a/libgcc/config/ia64/crtbegin.S
+++ b/libgcc/config/ia64/crtbegin.S
@@ -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