From 507eb11fc59cee5df9a38400ec77d15d2678f304 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 23 Jul 2009 05:38:44 -0400 Subject: 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 --- ldso/ldso/bfin/dl-startup.h | 13 +++++-------- ldso/ldso/bfin/dl-sysdep.h | 6 +++--- 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) \ -- cgit v1.2.3