diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-03-26 23:54:32 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-03-27 00:07:45 -0400 |
commit | 7a8e2cdaeb295b53fed4b1b03ad7fd741c61a59e (patch) | |
tree | 529ce58fb85005adb5fd46d1b7706f973cbf0d0e /ldso | |
parent | e2a32f75141fe523df98f4e25186391b345668d0 (diff) |
ldso: bfin: add alias from __start to _start
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@gentoo.org>
Diffstat (limited to 'ldso')
-rw-r--r-- | 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 b1c800280..76ae15076 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,@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" |