diff --git a/lib/csu/amd64/crt1.c b/lib/csu/amd64/crt1.c index f1f0f7b0b0c2..943b07b31a94 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 c6774b0f394f..093433330e35 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$\"");