OSDN Git Service

ldso: mark _start hidden
authorMike Frysinger <vapier@gentoo.org>
Tue, 27 Mar 2012 03:50:12 +0000 (23:50 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 29 Mar 2012 04:14:58 +0000 (00:14 -0400)
There's no need to export this symbol, so mark them all hidden.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 files changed:
ldso/ldso/arm/dl-startup.h
ldso/ldso/avr32/dl-startup.h
ldso/ldso/bfin/dl-startup.h
ldso/ldso/c6x/dl-startup.h
ldso/ldso/cris/dl-startup.h
ldso/ldso/i386/dl-startup.h
ldso/ldso/m68k/dl-startup.h
ldso/ldso/microblaze/dl-startup.h
ldso/ldso/mips/dl-startup.h
ldso/ldso/powerpc/dl-startup.h
ldso/ldso/sh/dl-startup.h
ldso/ldso/sh64/dl-startup.h
ldso/ldso/sparc/dl-startup.h
ldso/ldso/x86_64/dl-startup.h
ldso/ldso/xtensa/dl-startup.h

index f7d6052..0723d29 100644 (file)
@@ -14,6 +14,7 @@ __asm__(
     "  .text\n"
     "  .globl  _start\n"
     "  .type   _start,%function\n"
+       "       .hidden _start\n"
        "_start:\n"
        "       @ at start time, all the args are on the stack\n"
        "       mov     r0, sp\n"
index a7179e4..e491019 100644 (file)
@@ -12,6 +12,7 @@
 __asm__("      .text\n"
        "       .global _start\n"
        "       .type   _start,@function\n"
+       "       .hidden _start\n"
        "_start:\n"
        /* All arguments are on the stack initially */
        "       mov     r12, sp\n"
index 76ae150..cb39112 100644 (file)
@@ -42,8 +42,10 @@ __asm__(
        "       .type   __start,@function\n"
        /* Build system expects a "_start" for the entry point;
           provide it as it's free to do so with aliases.  */
+       "       .hidden __start\n"
        "       .set    _start, __start\n"
        "       .global _start\n"
+       "       .hidden _start\n"
        "__start:\n"
        "       call    .Lcall\n"
        ".Lcall:\n"
index 6ad801f..70a8b89 100644 (file)
@@ -42,6 +42,7 @@ _dl_start (unsigned placeholder, \
 
 __asm__("      .text\n"
        ".globl _start\n"
+       ".hidden _start\n"
        "_start:\n"
        "          B .S2                _dl_start\n"
        "          STW .D2T2            B14, *+B14[1]\n"
index 57f84ea..6658000 100644 (file)
@@ -10,6 +10,7 @@ __asm__(""                                    \
 "      .text\n"                        \
 "      .globl _start\n"                \
 "      .type _start,@function\n"       \
+"      .hidden _start\n"               \
 "_start:\n"                            \
 "      move.d  $sp,$r10\n"             \
 "      lapc    _dl_start,$r9\n"        \
@@ -28,6 +29,7 @@ __asm__(""                                    \
 "      .text\n"                        \
 "      .globl _start\n"                \
 "      .type _start,@function\n"       \
+"      .hidden _start\n"               \
 "_start:\n"                            \
 "      move.d  $sp,$r10\n"             \
 "      move.d  $pc,$r9\n"              \
index 973ed72..125132c 100644 (file)
@@ -7,6 +7,7 @@ __asm__ (
     "  .text\n"
     "  .globl  _start\n"
     "  .type   _start,@function\n"
+    "  .hidden _start\n"
     "_start:\n"
     "  call _dl_start\n"
     "  # Save the user entry point address in %edi.\n"
index 8755ecf..52a950c 100644 (file)
@@ -19,6 +19,7 @@ __asm__ ("\
        .text\n\
        .globl _start\n\
        .type _start,@function\n\
+       .hidden _start\n\
 _start:\n\
        move.l %sp, -(%sp)\n\
        jbsr _dl_start\n\
index 44966d6..4c6de5f 100644 (file)
@@ -20,6 +20,7 @@ __asm__ ("\
        .text\n\
        .globl _start\n\
        .type _start,@function\n\
+       .hidden _start\n\
 _start:\n\
        addk  r5,r0,r1\n\
        addk  r3,r0,r0\n\
index 31730d4..4d9918d 100644 (file)
@@ -12,6 +12,7 @@ __asm__(""
     "  .globl  _start\n"
     "  .ent    _start\n"
     "  .type   _start,@function\n"
+    "  .hidden _start\n"
     "_start:\n"
     "  .set noreorder\n"
     "  move    $25, $31\n"
index d7b5548..8b2a517 100644 (file)
@@ -8,6 +8,7 @@ __asm__(
     "  .text\n"
     "  .globl  _start\n"
     "  .type   _start,@function\n"
+    "  .hidden _start\n"
     "_start:\n"
     "  mr      3,1\n" /* Pass SP to _dl_start in r3 */
     "  li      0,0\n"
index 2f91d0f..3222e09 100644 (file)
@@ -6,6 +6,7 @@ __asm__(
     "  .text\n"
     "  .globl  _start\n"
     "  .type   _start,@function\n"
+    "  .hidden _start\n"
     "_start:\n"
     "  mov     r15, r4\n"
     "  mov.l   .L_dl_start, r0\n"
index 89bfe1f..9dac5ef 100644 (file)
@@ -7,6 +7,7 @@ __asm__("" \
 "      .section .text..SHmedia32,\"ax\"\n"                             \
 "      .globl _start\n"                                                \
 "      .type _start, @function\n"                                      \
+"      .hidden _start\n"                                               \
 "      .align 5\n"                                                     \
 "_start:\n"                                                            \
 "      ! Set r12 to point to GOT\n"                                    \
index 1abad11..8c8c2c4 100644 (file)
@@ -8,6 +8,7 @@ __asm__ ("\
        .text\n\
        .global _start\n\
        .type   _start,%function\n\
+       .hidden _start\n\
        .align 32\n\
        .register %g2, #scratch\n\
 _start:\n\
index b2ea93d..2f5e6ec 100644 (file)
@@ -10,6 +10,7 @@ __asm__ (
        "       .text\n"
        "       .global _start\n"
        "       .type   _start,%function\n"
+       "       .hidden _start\n"
        "_start:\n"
        "       movq %rsp, %rdi\n"
        "       call _dl_start\n"
index 8ae9624..45af82d 100644 (file)
@@ -13,6 +13,7 @@ __asm__ (
     "  .align  4\n"
     "  .global _start\n"
     "  .type   _start, @function\n"
+    "  .hidden _start\n"
     "_start:\n"
     "  # Compute load offset in a2: the GOT has not yet been relocated\n"
     "  # but the entries for local symbols contain the relative offsets\n"