diff options
author | Joakim Tjernlund <joakim.tjernlund@transmode.se> | 2005-03-17 17:14:06 +0000 |
---|---|---|
committer | Joakim Tjernlund <joakim.tjernlund@transmode.se> | 2005-03-17 17:14:06 +0000 |
commit | 2331c7f052ef946d357037e694430a2f473e7af5 (patch) | |
tree | 25f311c14b0dfc3d90bfa1cfd0a452f8a7569432 /ldso/ldso/sparc | |
parent | fde774dc47375abbad649b5de91b8e96dcc014a8 (diff) |
General arch cleanup and prepare support for standalone
execution of ldso.
Added new asm for MIPS to be tested.
All arches should retest.
Diffstat (limited to 'ldso/ldso/sparc')
-rw-r--r-- | ldso/ldso/sparc/dl-startup.h | 16 |
1 files changed, 9 insertions, 7 deletions
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") - - - - |