Browse Source

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>
Mike Frysinger 13 years ago
parent
commit
6287cacef2

+ 1 - 0
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"

+ 1 - 0
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"

+ 2 - 0
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"

+ 1 - 0
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"

+ 2 - 0
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"		\

+ 1 - 0
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"

+ 1 - 0
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\

+ 1 - 0
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\

+ 1 - 0
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"

+ 1 - 0
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"

+ 1 - 0
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"

+ 1 - 0
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"					\

+ 1 - 0
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\

+ 1 - 0
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"

+ 1 - 0
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"