[git commit] ldso: mark _start hidden
Mike Frysinger
vapier at gentoo.org
Thu Mar 29 04:14:58 UTC 2012
commit: http://git.uclibc.org/uClibc/commit/?id=6287cacef2feb129050449d79769b5fd907e1062
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
There's no need to export this symbol, so mark them all hidden.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
ldso/ldso/arm/dl-startup.h | 1 +
ldso/ldso/avr32/dl-startup.h | 1 +
ldso/ldso/bfin/dl-startup.h | 2 ++
ldso/ldso/c6x/dl-startup.h | 1 +
ldso/ldso/cris/dl-startup.h | 2 ++
ldso/ldso/i386/dl-startup.h | 1 +
ldso/ldso/m68k/dl-startup.h | 1 +
ldso/ldso/microblaze/dl-startup.h | 1 +
ldso/ldso/mips/dl-startup.h | 1 +
ldso/ldso/powerpc/dl-startup.h | 1 +
ldso/ldso/sh/dl-startup.h | 1 +
ldso/ldso/sh64/dl-startup.h | 1 +
ldso/ldso/sparc/dl-startup.h | 1 +
ldso/ldso/x86_64/dl-startup.h | 1 +
ldso/ldso/xtensa/dl-startup.h | 1 +
15 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/ldso/ldso/arm/dl-startup.h b/ldso/ldso/arm/dl-startup.h
index f7d6052..0723d29 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 a7179e4..e491019 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, at 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 76ae150..cb39112 100644
--- a/ldso/ldso/bfin/dl-startup.h
+++ b/ldso/ldso/bfin/dl-startup.h
@@ -42,8 +42,10 @@ __asm__(
" .type __start, at 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 6ad801f..70a8b89 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 57f84ea..6658000 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, at 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, at 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 973ed72..125132c 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, at 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 8755ecf..52a950c 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, at 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 44966d6..4c6de5f 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, at 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 31730d4..4d9918d 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, at 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 d7b5548..8b2a517 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, at 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 2f91d0f..3222e09 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, at 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 89bfe1f..9dac5ef 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 1abad11..8c8c2c4 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 b2ea93d..2f5e6ec 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 8ae9624..45af82d 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"
More information about the uClibc-cvs
mailing list