Browse Source

Blackfin: fix generation of Scrt1.o for FDPIC

Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Jie Zhang 18 years ago
parent
commit
c55766ba90
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/sysdeps/linux/bfin/crt1.S

+ 1 - 1
libc/sysdeps/linux/bfin/crt1.S

@@ -109,7 +109,7 @@ __start:
 	[SP + 20] = R7;
 
 /*	Ok, now run uClibc's main() -- shouldn't return */
-#if defined L_crt1 && defined __UCLIBC_CTOR_DTOR__
+#if (defined L_crt1 || defined L_Scrt1) && defined __UCLIBC_CTOR_DTOR__
 
 #ifdef __BFIN_FDPIC__
 	R3 = [P3 + __init@FUNCDESC_GOT17M4];