summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-03-26 23:50:12 -0400
committerMike Frysinger <vapier@gentoo.org>2012-03-29 00:14:58 -0400
commit6287cacef2feb129050449d79769b5fd907e1062 (patch)
tree6997c406f9cb00609272cda6d7df6382bc81a6e5
parent238f52fdab1f18577c7aaa749f4f24118403926f (diff)
ldso: mark _start hidden
There's no need to export this symbol, so mark them all hidden. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--ldso/ldso/arm/dl-startup.h1
-rw-r--r--ldso/ldso/avr32/dl-startup.h1
-rw-r--r--ldso/ldso/bfin/dl-startup.h2
-rw-r--r--ldso/ldso/c6x/dl-startup.h1
-rw-r--r--ldso/ldso/cris/dl-startup.h2
-rw-r--r--ldso/ldso/i386/dl-startup.h1
-rw-r--r--ldso/ldso/m68k/dl-startup.h1
-rw-r--r--ldso/ldso/microblaze/dl-startup.h1
-rw-r--r--ldso/ldso/mips/dl-startup.h1
-rw-r--r--ldso/ldso/powerpc/dl-startup.h1
-rw-r--r--ldso/ldso/sh/dl-startup.h1
-rw-r--r--ldso/ldso/sh64/dl-startup.h1
-rw-r--r--ldso/ldso/sparc/dl-startup.h1
-rw-r--r--ldso/ldso/x86_64/dl-startup.h1
-rw-r--r--ldso/ldso/xtensa/dl-startup.h1
15 files changed, 17 insertions, 0 deletions
diff --git a/ldso/ldso/arm/dl-startup.h b/ldso/ldso/arm/dl-startup.h
index f7d605267..0723d29e9 100644
--- a/ldso/ldso/arm/dl-startup.h
+++ b/ldso/ldso/arm/dl-startup.h
@@ -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"
diff --git a/ldso/ldso/avr32/dl-startup.h b/ldso/ldso/avr32/dl-startup.h
index a7179e4cd..e49101955 100644
--- a/ldso/ldso/avr32/dl-startup.h
+++ b/ldso/ldso/avr32/dl-startup.h
@@ -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"
diff --git a/ldso/ldso/bfin/dl-startup.h b/ldso/ldso/bfin/dl-startup.h
index 76ae15076..cb39112ef 100644
--- a/ldso/ldso/bfin/dl-startup.h
+++ b/ldso/ldso/bfin/dl-startup.h
@@ -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"
diff --git a/ldso/ldso/c6x/dl-startup.h b/ldso/ldso/c6x/dl-startup.h
index 6ad801f1b..70a8b89a7 100644
--- a/ldso/ldso/c6x/dl-startup.h
+++ b/ldso/ldso/c6x/dl-startup.h
@@ -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"
diff --git a/ldso/ldso/cris/dl-startup.h b/ldso/ldso/cris/dl-startup.h
index 57f84eab6..66580004e 100644
--- a/ldso/ldso/cris/dl-startup.h
+++ b/ldso/ldso/cris/dl-startup.h
@@ -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" \
diff --git a/ldso/ldso/i386/dl-startup.h b/ldso/ldso/i386/dl-startup.h
index 973ed72cb..125132c87 100644
--- a/ldso/ldso/i386/dl-startup.h
+++ b/ldso/ldso/i386/dl-startup.h
@@ -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"
diff --git a/ldso/ldso/m68k/dl-startup.h b/ldso/ldso/m68k/dl-startup.h
index 8755ecf92..52a950c87 100644
--- a/ldso/ldso/m68k/dl-startup.h
+++ b/ldso/ldso/m68k/dl-startup.h
@@ -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\
diff --git a/ldso/ldso/microblaze/dl-startup.h b/ldso/ldso/microblaze/dl-startup.h
index 44966d6fd..4c6de5f5a 100644
--- a/ldso/ldso/microblaze/dl-startup.h
+++ b/ldso/ldso/microblaze/dl-startup.h
@@ -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\
diff --git a/ldso/ldso/mips/dl-startup.h b/ldso/ldso/mips/dl-startup.h
index 31730d4ad..4d9918dc4 100644
--- a/ldso/ldso/mips/dl-startup.h
+++ b/ldso/ldso/mips/dl-startup.h
@@ -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"
diff --git a/ldso/ldso/powerpc/dl-startup.h b/ldso/ldso/powerpc/dl-startup.h
index d7b554823..8b2a517e2 100644
--- a/ldso/ldso/powerpc/dl-startup.h
+++ b/ldso/ldso/powerpc/dl-startup.h
@@ -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"
diff --git a/ldso/ldso/sh/dl-startup.h b/ldso/ldso/sh/dl-startup.h
index 2f91d0f1a..3222e0933 100644
--- a/ldso/ldso/sh/dl-startup.h
+++ b/ldso/ldso/sh/dl-startup.h
@@ -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"
diff --git a/ldso/ldso/sh64/dl-startup.h b/ldso/ldso/sh64/dl-startup.h
index 89bfe1f20..9dac5ef2c 100644
--- a/ldso/ldso/sh64/dl-startup.h
+++ b/ldso/ldso/sh64/dl-startup.h
@@ -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" \
diff --git a/ldso/ldso/sparc/dl-startup.h b/ldso/ldso/sparc/dl-startup.h
index 1abad1121..8c8c2c4f3 100644
--- a/ldso/ldso/sparc/dl-startup.h
+++ b/ldso/ldso/sparc/dl-startup.h
@@ -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\
diff --git a/ldso/ldso/x86_64/dl-startup.h b/ldso/ldso/x86_64/dl-startup.h
index b2ea93db7..2f5e6ece7 100644
--- a/ldso/ldso/x86_64/dl-startup.h
+++ b/ldso/ldso/x86_64/dl-startup.h
@@ -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"
diff --git a/ldso/ldso/xtensa/dl-startup.h b/ldso/ldso/xtensa/dl-startup.h
index 8ae962408..45af82d2d 100644
--- a/ldso/ldso/xtensa/dl-startup.h
+++ b/ldso/ldso/xtensa/dl-startup.h
@@ -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"