From d1b0dffff4be58782a15ebec6595de2447f63dc2 Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Sat, 28 May 2005 23:44:06 +0000 Subject: Add Peter Mazinger fini/crt compat patch. Select DL_FINI_CRT_COMPAT to be able to run apps built with 0.9.27. This also renames __uClibc_start_main to __uClibc_main. This compat option should be removed some time after 0.9.28 is released. Let me know if you don't like this change. --- libc/sysdeps/linux/powerpc/crt1.S | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libc/sysdeps/linux/powerpc/crt1.S') diff --git a/libc/sysdeps/linux/powerpc/crt1.S b/libc/sysdeps/linux/powerpc/crt1.S index 6a3e0000b..a912481ef 100644 --- a/libc/sysdeps/linux/powerpc/crt1.S +++ b/libc/sysdeps/linux/powerpc/crt1.S @@ -31,15 +31,13 @@ #define r13 13 #define r31 31 -#include - .text .globl _start .type _start,%function .type _init,%function .type _fini,%function .type main,%function - .type __uClibc_start_main,%function + .type __uClibc_main,%function _start: mr r10,r1 /* Save the stack pointer */ @@ -64,7 +62,7 @@ _start: lwz r6,_init@got(r31) lwz r7,_fini@got(r31) lwz r3,main@got(r31) - b __uClibc_start_main@plt + b __uClibc_main@plt # else lis r6,_init@ha # load top 16 bits addi r6,r6,_init@l # load bottom 16 bits @@ -72,8 +70,9 @@ _start: addi r7,r7,_fini@l # load bottom 16 bits lis r3,main@ha # load top 16 bits addi r3,r3,main@l # load bottom 16 bits - b __uClibc_start_main + b __uClibc_main # endif + .size _start,.-_start /* Define a symbol for the first piece of initialized data. */ -- cgit v1.2.3