aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2004-04-21 23:17:43 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2004-04-21 16:17:43 -0700
commite24e0aa7fb4a0e9bc5f6977be63bde9b57d9fce4 (patch)
tree7b7d3a578a842f9c72f1bae6bb2a1ac78ce4a71b /gcc
parenta0b96bb76c4a979f5ac7c199f3e337020d751ac2 (diff)
downloadgcc-e24e0aa7fb4a0e9bc5f6977be63bde9b57d9fce4.zip
gcc-e24e0aa7fb4a0e9bc5f6977be63bde9b57d9fce4.tar.gz
gcc-e24e0aa7fb4a0e9bc5f6977be63bde9b57d9fce4.tar.bz2
crtend.asm: Move pointer to __do_global_ctors_aux in .init_array section to ...
2004-04-21 H.J. Lu <hongjiu.lu@intel.com> * config/ia64/crtend.asm: Move pointer to __do_global_ctors_aux in .init_array section to ... * config/ia64/crtbegin.asm: Here. * config/ia64/crtend.asm: Mark __do_global_ctors_aux global and hidden if HAVE_INITFINI_ARRAY is defined. From-SVN: r80986
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog10
-rw-r--r--gcc/config/ia64/crtbegin.asm1
-rw-r--r--gcc/config/ia64/crtend.asm6
3 files changed, 13 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index eab618e..586132f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,13 @@
+2004-04-21 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR target/14813
+ * config/ia64/crtend.asm: Move pointer to __do_global_ctors_aux
+ in .init_array section to ...
+ * config/ia64/crtbegin.asm: Here.
+
+ * config/ia64/crtend.asm: Mark __do_global_ctors_aux global
+ and hidden if HAVE_INITFINI_ARRAY is defined.
+
2004-04-21 James E Wilson <wilson@specifixinc.com>
* Makefile.in (fixinc.sh): Don't set or export WARN_CFLAGS. Fix
diff --git a/gcc/config/ia64/crtbegin.asm b/gcc/config/ia64/crtbegin.asm
index 540cee2..494def7 100644
--- a/gcc/config/ia64/crtbegin.asm
+++ b/gcc/config/ia64/crtbegin.asm
@@ -62,6 +62,7 @@ __dso_handle:
.section .init_array, "a"
data8 @fptr(__do_jv_register_classes)
+ data8 @fptr(__do_global_ctors_aux)
#else /* !HAVE_INITFINI_ARRAY */
/*
diff --git a/gcc/config/ia64/crtend.asm b/gcc/config/ia64/crtend.asm
index 885e0f9..8984d88 100644
--- a/gcc/config/ia64/crtend.asm
+++ b/gcc/config/ia64/crtend.asm
@@ -34,10 +34,8 @@ __JCR_END__:
data8 0
#ifdef HAVE_INITFINI_ARRAY
-
-.section .init_array, "a"
- data8 @fptr(__do_global_ctors_aux)
-
+ .global __do_global_ctors_aux
+ .hidden __do_global_ctors_aux
#else /* !HAVE_INITFINI_ARRAY */
/*
* Fragment of the ELF _init routine that invokes our dtor cleanup.