summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/sh')
-rw-r--r--libc/sysdeps/linux/sh/Makefile16
-rw-r--r--libc/sysdeps/linux/sh/crti.S22
-rw-r--r--libc/sysdeps/linux/sh/crtn.S17
3 files changed, 1 insertions, 54 deletions
diff --git a/libc/sysdeps/linux/sh/Makefile b/libc/sysdeps/linux/sh/Makefile
index 9b46c965a..6ff7f87e3 100644
--- a/libc/sysdeps/linux/sh/Makefile
+++ b/libc/sysdeps/linux/sh/Makefile
@@ -45,7 +45,7 @@ all: $(OBJS) $(LIBC)
$(LIBC): ar-target
-ar-target: $(OBJS) $(CRT0_OBJ) $(TOPDIR)lib/crti.o $(TOPDIR)lib/crtn.o
+ar-target: $(OBJS) $(CRT0_OBJ)
$(AR) $(ARFLAGS) $(LIBC) $(OBJS)
cp $(CRT0_OBJ) $(TOPDIR)lib/$(CRT0_OBJ)
@@ -53,20 +53,6 @@ $(CRT0_OBJ): %.o : %.S
$(CC) $(SFLAGS) -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o
-crti.o: crti.S
- $(CC) $(SAFECFLAGS) -c crti.S -o crti.o
-
-$(TOPDIR)lib/crti.o: crti.o
- mkdir -p $(TOPDIR)lib/
- cp crti.o $(TOPDIR)lib/
-
-crtn.o: crtn.S
- $(CC) $(SAFECFLAGS) -c crtn.S -o crtn.o
-
-$(TOPDIR)lib/crtn.o: crtn.o
- mkdir -p $(TOPDIR)lib/
- cp crtn.o $(TOPDIR)lib/
-
$(SOBJS): %.o : %.S
$(CC) $(SFLAGS) -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o
diff --git a/libc/sysdeps/linux/sh/crti.S b/libc/sysdeps/linux/sh/crti.S
deleted file mode 100644
index f79b6d2cf..000000000
--- a/libc/sysdeps/linux/sh/crti.S
+++ /dev/null
@@ -1,22 +0,0 @@
- .file "crti.S"
-
- .section .init
- .align 2
- .global _init
- .hidden _init
- .type _init,@function
-_init:
- mov.l r14,@-r15
- sts.l pr,@-r15
- mov r15,r14
-
- .section .fini
- .align 2
- .global _fini
- .hidden _fini
- .type _fini,@function
-_fini:
- mov.l r14,@-r15
- sts.l pr,@-r15
- mov r15,r14
-
diff --git a/libc/sysdeps/linux/sh/crtn.S b/libc/sysdeps/linux/sh/crtn.S
deleted file mode 100644
index 3a8761c1d..000000000
--- a/libc/sysdeps/linux/sh/crtn.S
+++ /dev/null
@@ -1,17 +0,0 @@
- .file "crtn.S"
-
- .section .init
- mov r14,r15
- lds.l @r15+,pr
- rts
- mov.l @r15+,r14
-.Lfe1:
- .size _init,.Lfe1-_init
-
- .section .fini
- mov r14,r15
- lds.l @r15+,pr
- rts
- mov.l @r15+,r14
-.Lfe2:
- .size _fini,.Lfe2-_fini