diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-01-16 19:15:39 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-01-16 19:15:39 +0000 |
commit | 7480936a077860c1e71ecc8c121c71c55a853261 (patch) | |
tree | c3f00e610a6bf8b918931272bafe60da695afb96 /lib/csu/hppa | |
parent | 1b0dcb93b4f421142871927f128716d361290917 (diff) |
extern the eprol and etext; better eprol definition
Diffstat (limited to 'lib/csu/hppa')
-rw-r--r-- | lib/csu/hppa/crt0.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/csu/hppa/crt0.c b/lib/csu/hppa/crt0.c index cd2e2c05715..bcf45f5111d 100644 --- a/lib/csu/hppa/crt0.c +++ b/lib/csu/hppa/crt0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crt0.c,v 1.4 2002/11/10 22:49:54 mickey Exp $ */ +/* $OpenBSD: crt0.c,v 1.5 2003/01/16 19:15:38 mickey Exp $ */ /* * Copyright (c) 2001 Michael Shalayeff @@ -35,7 +35,7 @@ int global __asm ("$global$") = 0; int sh_func_adrs __asm ("$$sh_func_adrs") = 0; #if defined(LIBC_SCCS) && !defined(lint) -static const char rcsid[] = "$OpenBSD: crt0.c,v 1.4 2002/11/10 22:49:54 mickey Exp $"; +static const char rcsid[] = "$OpenBSD: crt0.c,v 1.5 2003/01/16 19:15:38 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdlib.h> @@ -61,6 +61,7 @@ extern void __fini(void); #ifdef MCRT0 extern void monstartup(u_long, u_long); extern void _mcleanup(void); +extern unsigned char etext, eprol; #endif /* MCRT0 */ void __start(char **, void (*)(void), const Obj_Entry *); @@ -112,5 +113,5 @@ __strrchr(const char *p, char ch) } #ifdef MCRT0 -__asm (".export eprol, entry\neprol"); +__asm (".export eprol, entry\n\t.label eprol"); #endif |