[git commit branch/0.9.33] ldso: bfin: add alias from __start to _start

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Tue Apr 3 17:38:33 UTC 2012


commit: http://git.uclibc.org/uClibc/commit/?id=f597997376006df052ff5b5f49e77fa23261e66f
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0.9.33

On Blackfin systems, we have underscore prefixes in our ABI.  So instead
of _start, we use __start.  However, the makefile explicitly sets _start
as the entry point to support toolchains that implicitly use other symbols
as the default entry.  It's easy enough to add a hidden alias in the
Blackfin code for free to support this.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 ldso/ldso/bfin/dl-startup.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/ldso/ldso/bfin/dl-startup.h b/ldso/ldso/bfin/dl-startup.h
index b1c8002..76ae150 100644
--- a/ldso/ldso/bfin/dl-startup.h
+++ b/ldso/ldso/bfin/dl-startup.h
@@ -40,6 +40,10 @@ __asm__(
 	"	.text\n"
 	"	.global	__start\n"
 	"	.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.  */
+	"	.set	_start, __start\n"
+	"	.global	_start\n"
 	"__start:\n"
 	"	call	.Lcall\n"
 	".Lcall:\n"


More information about the uClibc-cvs mailing list