From 05d9958f685e3f0c51be4f1128348645451e51fb Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 21 Dec 2004 08:35:58 +0000 Subject: Add support for the Analog Devices Blackfin mmuless processor --- libc/sysdeps/linux/bfin/crtn.S | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 libc/sysdeps/linux/bfin/crtn.S (limited to 'libc/sysdeps/linux/bfin/crtn.S') diff --git a/libc/sysdeps/linux/bfin/crtn.S b/libc/sysdeps/linux/bfin/crtn.S new file mode 100644 index 000000000..4f15aec50 --- /dev/null +++ b/libc/sysdeps/linux/bfin/crtn.S @@ -0,0 +1,37 @@ +.file "initfini.c"; + .section .init + .section .fini + +.text; +.align 2 +.global _dummy; +.type _dummy, STT_FUNC; +_dummy: + P2 = R0; + LINK 0; + SP += -12; + cc =P2==0; + if cc jump L$L$1; + SP += 12; + UNLINK; + jump (P2); +L$L$1: + SP += 12; + UNLINK; + rts; + .size _dummy, .-_dummy +.align 2 +.global __init; +.type __init, STT_FUNC; + SP += 12; + UNLINK; + rts; + .size __init, .-__init +.align 2 +.global __fini; +.type __fini, STT_FUNC; + SP += 12; + UNLINK; + rts; + .size __fini, .-__fini + .ident "GCC: (GNU) 3.4.1" -- cgit v1.2.3