musl/arch/microblaze/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

18 lines
335 B
C

__asm__(
".text \n"
".global " START " \n"
".align 2 \n"
START ": \n"
" add r19, r0, r0 \n"
" ori r5, r1, 0 \n"
"1: mfs r6, rpc \n"
".weak _DYNAMIC \n"
".hidden _DYNAMIC \n"
" addik r6, r6, _GLOBAL_OFFSET_TABLE_+8 \n"
" addik r6, r6, _DYNAMIC@GOTOFF \n"
" andi r1, r1, -8 \n"
" addik r1, r1, -8 \n"
" bri " START "_c \n"
" nop \n"
);