musl/arch/sh/crt_arch.h
Rich Felker 63caf1d207 add .text section directive to all crt_arch.h files missing it
i386 and x86_64 versions already had the .text directive; other archs
did not. normally, top-level (file scope) __asm__ starts in the .text
section anyway, but problems were reported with some versions of
clang, and it seems preferable to set it explicitly anyway, at least
for the sake of consistency between archs.
2015-05-22 01:50:05 -04:00

24 lines
477 B
C

__asm__(
".text \n"
".global " START " \n"
START ": \n"
" mova 1f, r0 \n"
" mov.l 1f, r5 \n"
" add r0, r5 \n"
" mov r15, r4 \n"
" mov #-16, r0 \n"
" and r0, r15 \n"
" bsr " START "_c \n"
" nop \n"
".align 2 \n"
".weak _DYNAMIC \n"
".hidden _DYNAMIC \n"
"1: .long _DYNAMIC-. \n"
);
/* used by gcc for switching the FPU between single and double precision */
#ifdef SHARED
__attribute__((__visibility__("hidden")))
#endif
const unsigned long __fpscr_values[2] = { 0, 0x80000 };