crtend.asm [...]: Make __do_global_ctors_aux hidden global and don't put it in .init_...
authorAndreas Schwab <schwab@suse.de>
Sat, 25 Jan 2003 17:26:55 +0000 (17:26 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Sat, 25 Jan 2003 17:26:55 +0000 (17:26 +0000)
* config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
__do_global_ctors_aux hidden global and don't put it in
.init_array.
* config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
instead so that it comes first.

From-SVN: r61782

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

index fbe7feba44dbe861461754c2ae2c7916c96e5563..a0e85ec86bb241a018887f2a2363ef0c2882fb1d 100644 (file)
@@ -1,3 +1,11 @@
+2003-01-23  Andreas Schwab  <schwab@suse.de>
+
+       * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
+       __do_global_ctors_aux hidden global and don't put it in
+       .init_array.
+       * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
+       instead so that it comes first.
+
 Sat Jan 25 16:11:22 CET 2003  Jan Hubicka  <jh@suse.cz>
 
        * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
index 75ffc3d906ca2bf4314773883d2f1564b590e482..cb49e10bc56cc6128759d1942a9c848f16e294de 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
    Contributed by Jes Sorensen, <Jes.Sorensen@cern.ch>
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -61,6 +61,7 @@ __dso_handle:
 
 .section .init_array,"a","progbits"
        data8 @fptr(__do_jv_register_classes)
+       data8 @fptr(__do_global_ctors_aux)
 
 #else /* !HAVE_INITFINI_ARRAY */
 /*
index 17c3be41d898dc29f9b93034f197b14ada269bb6..303f30cbce87ef522698e28f5a4abe218ccba55d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
    Contributed by Jes Sorensen, <Jes.Sorensen@cern.ch>
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -33,12 +33,7 @@ __DTOR_END__:
 __JCR_END__:
        data8   0
 
-#ifdef HAVE_INITFINI_ARRAY
-
-.section .init_array,"a","progbits"
-       data8 @fptr(__do_global_ctors_aux)
-
-#else /* !HAVE_INITFINI_ARRAY */
+#ifndef HAVE_INITFINI_ARRAY
 /*
  * Fragment of the ELF _init routine that invokes our dtor cleanup.
  *
@@ -71,6 +66,12 @@ __JCR_END__:
 
 .text
        .align 16
+#ifdef HAVE_INITFINI_ARRAY
+       /* This is referenced from crtbegin.o.  */
+       .globl __do_global_ctors_aux#
+       .type __do_global_ctors_aux#,@function
+       .hidden __do_global_ctors_aux#
+#endif
        .proc __do_global_ctors_aux#
 __do_global_ctors_aux:
        /*