From 2331c7f052ef946d357037e694430a2f473e7af5 Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Thu, 17 Mar 2005 17:14:06 +0000 Subject: General arch cleanup and prepare support for standalone execution of ldso. Added new asm for MIPS to be tested. All arches should retest. --- ldso/ldso/sparc/dl-startup.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'ldso/ldso/sparc') diff --git a/ldso/ldso/sparc/dl-startup.h b/ldso/ldso/sparc/dl-startup.h index b0d6a4361..ce51aa244 100644 --- a/ldso/ldso/sparc/dl-startup.h +++ b/ldso/ldso/sparc/dl-startup.h @@ -3,9 +3,15 @@ * needed for this architecture. See arm/boot1_arch.h for an example of what * can be done. */ - -#define DL_BOOT(X) __attribute_used__ void _dl_boot (X) - +asm( + " .text\n" + " .globl _start\n" + " .type _start,@function\n" + "_start:\n" + " .set _start,_dl_start\n" + " .size _start,.-_start\n" + " .previous\n" +); /* * Get a pointer to the argv array. On many platforms this can be just @@ -56,7 +62,3 @@ "restore %%g0,%%g0,%%g0\n\t" \ : /*"=r" (status) */ : \ "r" (_dl_elf_main): "g1", "o0", "o1") - - - - -- cgit v1.2.3