Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
authordrepper <drepper>
Thu, 28 Feb 2002 22:36:18 +0000 (22:36 +0000)
committerdrepper <drepper>
Thu, 28 Feb 2002 22:36:18 +0000 (22:36 +0000)
15 files changed:
sysdeps/alpha/dl-machine.h
sysdeps/arm/dl-machine.h
sysdeps/cris/dl-machine.h
sysdeps/hppa/dl-machine.h
sysdeps/i386/dl-machine.h
sysdeps/ia64/dl-machine.h
sysdeps/m68k/dl-machine.h
sysdeps/mips/dl-machine.h
sysdeps/mips/mips64/dl-machine.h
sysdeps/s390/s390-32/dl-machine.h
sysdeps/s390/s390-64/dl-machine.h
sysdeps/sh/dl-machine.h
sysdeps/sparc/sparc32/dl-machine.h
sysdeps/sparc/sparc64/dl-machine.h
sysdeps/x86_64/dl-machine.h

index 6024f13..490f1f1 100644 (file)
@@ -328,7 +328,7 @@ $fixup_stack_ret:                                           \n\
 " RTLD_START_SPECIAL_INIT "                                    \n\
        /* Call _dl_init(_dl_loaded, argc, argv, envp) to run   \n\
           initializers.  */                                    \n\
-       ldq     $16, _rtld_global                               \n\
+       ldq     $16, _rtld_local                                \n\
        ldq     $17, 0($sp)                                     \n\
        lda     $18, 8($sp)                                     \n\
        s8addq  $17, 8, $19                                     \n\
index 5d16564..177a375 100644 (file)
@@ -324,7 +324,7 @@ _dl_start_user:
 .L_STACK_END:
        .word   __libc_stack_end(GOT)
 .L_LOADED:
-       .word   _rtld_global(GOT)
+       .word   _rtld_local(GOT)
 .previous\n\
 ");
 
index 34d29fa..966d86b 100644 (file)
@@ -212,7 +212,7 @@ _dl_start_user:
        move.d  $sp,$r12
        addq    4,$r12
        ;  main_map: at _dl_loaded.
-       move.d  [$r0+_rtld_global:GOT16],$r9
+       move.d  [$r0+_rtld_local:GOT16],$r9
        move.d  [$r9],$r10
        move.d  _dl_init_internal:PLTG,$r9
        add.d   $r0,$r9
index bc3a983..6d42494 100644 (file)
@@ -362,8 +362,8 @@ asm (                                                                       \
 "      stw     %r24,-44(%sp)\n"                                        \
                                                                        \
 ".Lnofix:\n"                                                           \
-"      addil   LT'_rtld_global,%r19\n"                                 \
-"      ldw     RT'_rtld_global(%r1),%r26\n"                            \
+"      addil   LT'_rtld_local,%r19\n"                                  \
+"      ldw     RT'_rtld_local(%r1),%r26\n"                             \
 "      bl      set_dp, %r2\n"                                          \
 "      ldw     0(%r26),%r26\n"                                         \
                                                                        \
index 9ae18a4..f51dab8 100644 (file)
@@ -239,11 +239,10 @@ _dl_start_user:\n\
 " RTLD_START_SPECIAL_INIT "\n\
        # Load the parameters again.\n\
        # (eax, edx, ecx, *--esp) = (_dl_loaded, argc, argv, envp)\n\
-       movl _rtld_global@GOT(%ebx), %esi\n\
-       leal 8(%esp,%edx,4), %eax\n\
+       movl _rtld_local@GOTOFF(%ebx), %eax\n\
+       leal 8(%esp,%edx,4), %esi\n\
        leal 4(%esp), %ecx\n\
-       pushl %eax\n\
-       movl (%esi), %eax\n\
+       pushl %esi\n\
        # Call the function to run the initializers.\n\
        call _dl_init_internal@PLT\n\
        # Pass our finalizer function to the user in %edx, as per ELF ABI.\n\
index 49a5ef2..a115b90 100644 (file)
@@ -381,7 +381,7 @@ elf_machine_runtime_setup (struct link_map *l, int lazy, int profile)
 "      { .mmi\n"                                                             \
 "        mov out3 = r11\n"                                                   \
 "        sub r17 = r17, r3     /* Substract _dl_skip_args. */\n"             \
-"        addl out0 = @ltoff(_rtld_global), gp\n"                             \
+"        addl out0 = @gprel(_rtld_local), gp\n"                              \
 "      }\n"                                                                  \
 "1:    /* Copy env. */\n"                                                    \
 "      { .mfi\n"                                                             \
@@ -396,11 +396,9 @@ elf_machine_runtime_setup (struct link_map *l, int lazy, int profile)
 "      }\n"                                                                  \
 "      { .mmb\n"                                                             \
 "        st8 [r10] = out1              /* Record the new argc. */\n"         \
-"        ld8 out0 = [out0]\n"                                                \
-"        ;;\n"                                                               \
+"        ld8 out0 = [out0]             /* get the linkmap */\n"              \
 "      }\n"                                                                  \
 "      { .mmb\n"                                                             \
-"        ld8 out0 = [out0]             /* get the linkmap */\n"              \
 "        st8 [r2] = r17                /* Load the new _dl_argv. */\n"       \
 "        br.call.sptk.many b0 = _dl_init_internal#\n"                        \
 "        ;;\n"                                                               \
index 1645d83..b2e1c6b 100644 (file)
@@ -176,7 +176,7 @@ _dl_start_user:\n\
        pea 8(%sp, %d1*4)\n\
        pea 8(%sp)\n\
        move.l %d1, -(%sp)\n\
-       move.l ([_rtld_global@GOT.w, %a5]), -(%sp)\n\
+       move.l ([_rtld_local@GOT.w, %a5]), -(%sp)\n\
        jbsr _dl_init_internal@PLTPC\n\
        addq.l #8, %sp\n\
        addq.l #8, %sp\n\
index 893f104..fcf37f6 100644 (file)
@@ -441,7 +441,7 @@ _dl_start_user:\n\
        # Save back the modified argument count.\n\
        sw $4, 0($29)\n\
 1:     # Call _dl_init (struct link_map *main_map, int argc, char **argv, char **env) \n\
-       lw $4, _rtld_global\n\
+       lw $4, _rtld_local\n\
        lw $5, 0($29)\n\
        la $6, 4($29)\n\
        sll $7, $5, 2\n\
index 6f89c0b..64731b8 100644 (file)
@@ -480,7 +480,7 @@ _dl_start_user:\n\
        # Save back the modified argument count.\n\
        sd $4, 0($29)\n\
 1:     # Call _dl_init (struct link_map *main_map, int argc, char **argv, char **env) \n\
-       ld $4, _rtld_global\n\
+       ld $4, _rtld_local\n\
        ld $5, 0($29)\n\
        dla $6, 4($29)\n\
        dla $7, 8($29)\n\
@@ -492,7 +492,7 @@ _dl_start_user:\n\
        dla $31, _dl_fini\n\
        # Jump to the user entry point.\n\
 1:     # Call _dl_init (struct link_map *main_map, int argc, char **argv, char **env) \n\
-       lw $4, _rtld_global\n\
+       lw $4, _rtld_local\n\
        lw $5, 0($29)\n\
        la $6, 4($29)\n\
        la $7, 8($29)\n\
index 344d247..5a8f706 100644 (file)
@@ -287,7 +287,7 @@ _dl_start_user:\n\
        # Call the function to run the initializers.\n\
        # Load the parameters:\n\
        # (%r2, %r3, %r4, %r5) = (_dl_loaded, argc, argv, envp)\n\
-       l     %r2,_rtld_global@GOT(%r12)\n\
+       l     %r2,_rtld_local@GOT(%r12)\n\
        l     %r2,0(%r2)\n\
        l     %r3,96(%r15)\n\
        la    %r4,100(%r15)\n\
index fcbd02e..c4f2a45 100644 (file)
@@ -262,7 +262,7 @@ _dl_start_user:\n\
        # Call the function to run the initializers.\n\
        # Load the parameters:\n\
        # (%r2, %r3, %r4, %r5) = (_dl_loaded, argc, argv, envp)\n\
-       lghi  %r2,_rtld_global@GOT
+       lghi  %r2,_rtld_local@GOT
        lg    %r2,0(%r2,%r12)\n\
        lg    %r2,0(%r2)\n\
        lg    %r3,160(%r15)\n\
index 24e301e..74495fa 100644 (file)
@@ -388,7 +388,7 @@ _dl_start_user:\n\
 .L_dl_init:\n\
        .long _dl_init_internal@PLT\n\
 .L_dl_loaded:\n\
-       .long _rtld_global@GOT\n\
+       .long _rtld_local@GOT\n\
 .L_dl_starting_up:\n\
        .long _dl_starting_up@GOT\n\
 .L_dl_fini:\n\
index 6905457..17a1aa6 100644 (file)
@@ -312,9 +312,9 @@ _dl_start_user:
        bne     23b
         add    %i1, 8, %i1
   /* %o0 = _dl_loaded, %o1 = argc, %o2 = argv, %o3 = envp.  */
-3:     sethi   %hi(_rtld_global), %o0
+3:     sethi   %hi(_rtld_local), %o0
        add     %sp, 23*4, %o2
-       orcc    %o0, %lo(_rtld_global), %o0
+       orcc    %o0, %lo(_rtld_local), %o0
        sll     %i5, 2, %o3
        ld      [%l7+%o0], %o0
        add     %o3, 4, %o3
index c0cccf3..af3b2d2 100644 (file)
@@ -745,9 +745,9 @@ elf_machine_runtime_setup (struct link_map *l, int lazy, int profile)
 "       add    %i1, 16, %i1\n"                                         \
 "      stx     %l5, [%l4]\n"                                           \
 "  /* %o0 = _dl_loaded, %o1 = argc, %o2 = argv, %o3 = envp.  */\n"     \
-"2:    sethi   %hi(_rtld_global), %o0\n"                               \
+"2:    sethi   %hi(_rtld_local), %o0\n"                                \
 "      add     %sp, " __S(STACK_BIAS) " + 23*8, %o2\n"                 \
-"      orcc    %o0, %lo(_rtld_global), %o0\n"                          \
+"      orcc    %o0, %lo(_rtld_local), %o0\n"                           \
 "      sllx    %i5, 3, %o3\n"                                          \
 "      ldx     [%l7 + %o0], %o0\n"                                     \
 "      add     %o3, 8, %o3\n"                                          \
index 949e8ec..182bd5f 100644 (file)
@@ -250,7 +250,7 @@ _dl_start_user:\n\
        # argc -> rsi\n\
        movq %rdx, %rsi\n\
        # _dl_loaded -> rdi\n\
-       movq _rtld_global@GOTPCREL(%rip), %rdi\n\
+       movq _rtld_local@GOTPCREL(%rip), %rdi\n\
        movq (%rdi), %rdi\n\
        # env -> rcx\n\
        leaq 16(%rsp,%rdx,8), %rcx\n\