summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-07-23 05:38:44 -0400
committerMike Frysinger <vapier@gentoo.org>2009-07-23 16:01:26 -0400
commit507eb11fc59cee5df9a38400ec77d15d2678f304 (patch)
treed1eb63906bd5369212a875f71ba9b0f1dec6e7c4
parent562216ed313703032e9d0ccf76772b904c390b90 (diff)
Blackfin: rename __dl_boot to __start
The entry symbol is __start rather than __dl_boot. While in the past this was silently ignored, now with common code checking the _start symbol in C code, we end up with link errors: ldso/ldso/ld-uClibc_so.a(ldso.oS): In function `__dl_get_ready_to_run': ldso/ldso/ldso.c:(.text+0x2b30): undefined reference to `__start' collect2: ld returned 1 exit status make[1]: *** [lib/ld-uClibc.so] Error 1 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--ldso/ldso/bfin/dl-startup.h13
-rw-r--r--ldso/ldso/bfin/dl-sysdep.h6
2 files changed, 8 insertions, 11 deletions
diff --git a/ldso/ldso/bfin/dl-startup.h b/ldso/ldso/bfin/dl-startup.h
index 57a8ec80c..550b9bcba 100644
--- a/ldso/ldso/bfin/dl-startup.h
+++ b/ldso/ldso/bfin/dl-startup.h
@@ -21,10 +21,7 @@ USA. */
/* Any assembly language/system dependent hacks needed to setup
* boot1.c so it will work as expected and cope with whatever platform
* specific wierdness is needed for this architecture.
-
- * We override the default _dl_boot function, and replace it with a
- * bit of asm. Then call the real _dl_boot function, which is now
- * named _dl_boot2. */
+ */
/* At program start-up, p0 contains a pointer to a
elf32_fdpic_loadmap that describes how the executable was loaded
@@ -41,9 +38,9 @@ USA. */
__asm__(
" .text\n" \
- " .global __dl_boot\n" \
- " .type __dl_boot,@function\n" \
- "__dl_boot:\n" \
+ " .global __start\n" \
+ " .type __start,@function\n" \
+ "__start:\n" \
" call .Lcall\n" \
".Lcall:\n" \
" R4 = RETS;\n" \
@@ -83,7 +80,7 @@ __asm__(
" P0 = R5;\n" \
" SP += 32;\n" \
" JUMP (P4);\n" \
- " .size __dl_boot,.-__dl_boot\n"
+ " .size __start,.-__start\n"
);
#undef DL_START
diff --git a/ldso/ldso/bfin/dl-sysdep.h b/ldso/ldso/bfin/dl-sysdep.h
index 89483ae00..50c750990 100644
--- a/ldso/ldso/bfin/dl-sysdep.h
+++ b/ldso/ldso/bfin/dl-sysdep.h
@@ -137,10 +137,10 @@ struct funcdesc_ht;
/*
* Compute the GOT address. On several platforms, we use assembly
- * here. on FR-V FDPIC, there's no way to compute the GOT address,
+ * here. on FDPIC, there's no way to compute the GOT address,
* since the offset between text and data is not fixed, so we arrange
- * for the assembly _dl_boot to pass this value as an argument to
- * _dl_boot. */
+ * for the ldso assembly entry point to pass this value as an argument
+ * to _dl_start. */
#define DL_BOOT_COMPUTE_GOT(got) ((got) = dl_boot_got_pointer)
#define DL_BOOT_COMPUTE_DYN(dpnt, got, load_addr) \