From f8a078764773263c596e67d3dd49a59423895c7c Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 6 Mar 2003 15:03:33 +0000 Subject: Finish off gmon based profiling for powerpc --- libc/sysdeps/linux/powerpc/crt0.S | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'libc/sysdeps/linux/powerpc/crt0.S') diff --git a/libc/sysdeps/linux/powerpc/crt0.S b/libc/sysdeps/linux/powerpc/crt0.S index 47fe7e786..24110850d 100644 --- a/libc/sysdeps/linux/powerpc/crt0.S +++ b/libc/sysdeps/linux/powerpc/crt0.S @@ -68,14 +68,14 @@ _start: add r5,r5,r4 /* Ok, now run uClibc's main() -- shouldn't return */ -#if defined L_crt0 || ! defined __UCLIBC_CTOR_DTOR__ - bl __uClibc_main -#else +#if (defined L_crt1 || defined L_gcrt1 ) && defined __UCLIBC_CTOR_DTOR__ lis r6,_init@ha # load top 16 bits addi r6,r6,_init@l # load bottom 16 bits lis r7,_fini@ha # load top 16 bits of &msg addi r7,r7,_fini@l # load bottom 16 bits bl __uClibc_start_main +#else + bl __uClibc_main #endif .size _start,.-_start @@ -83,3 +83,8 @@ _start: .globl __data_start __data_start: +#if defined L_gcrt1 && defined __UCLIBC_PROFILING__ +# include "./gmon-start.S" +#endif + + -- cgit v1.2.3