summaryrefslogtreecommitdiffstats
path: root/lib/csu
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csu')
-rw-r--r--lib/csu/amd64/crt1.c7
-rw-r--r--lib/csu/i386-elf/crt1.c7
2 files changed, 2 insertions, 12 deletions
diff --git a/lib/csu/amd64/crt1.c b/lib/csu/amd64/crt1.c
index f1f0f7b..943b07b 100644
--- a/lib/csu/amd64/crt1.c
+++ b/lib/csu/amd64/crt1.c
@@ -86,15 +86,10 @@ _start(char **ap, void (*cleanup)(void))
atexit(_fini);
#ifdef GCRT
monstartup(&eprol, &etext);
+__asm__("eprol:");
#endif
_init();
exit( main(argc, argv, env) );
}
-#ifdef GCRT
-__asm__(".text");
-__asm__("eprol:");
-__asm__(".previous");
-#endif
-
__asm__(".ident\t\"$FreeBSD$\"");
diff --git a/lib/csu/i386-elf/crt1.c b/lib/csu/i386-elf/crt1.c
index c6774b0..0934333 100644
--- a/lib/csu/i386-elf/crt1.c
+++ b/lib/csu/i386-elf/crt1.c
@@ -104,15 +104,10 @@ _start(char *ap, ...)
atexit(_fini);
#ifdef GCRT
monstartup(&eprol, &etext);
+__asm__("eprol:");
#endif
_init();
exit( main(argc, argv, env) );
}
-#ifdef GCRT
-__asm__(".text");
-__asm__("eprol:");
-__asm__(".previous");
-#endif
-
__asm__(".ident\t\"$FreeBSD$\"");
OpenPOWER on IntegriCloud