crtend.asm: Move pointer to __do_global_ctors_aux in .init_array section to ...
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 21 Apr 2004 23:17:43 +0000 (23:17 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 21 Apr 2004 23:17:43 +0000 (16:17 -0700)
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

gcc/ChangeLog
gcc/config/ia64/crtbegin.asm
gcc/config/ia64/crtend.asm

index eab618e1998164ee3a0b045923700a09b19bed07..586132ff8907a11a7fab20923a34df530b0fdea9 100644 (file)
@@ -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
index 540cee2801f934af9246fb9fc6ca8f8db3d5add8..494def7fd81596ed69578b98de4d6950b7e75274 100644 (file)
@@ -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 */
 /*
index 885e0f946e525204eef2412f1ee038dd389bb9ed..8984d88f3d685768f3f22b2a75b9ee362157f88d 100644 (file)
@@ -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.