Forráskód Böngészése

_start.c is a failed experiment. Go back to using asm...

Eric Andersen 23 éve
szülő
commit
a9d3b94d6c

+ 2 - 1
libc/stdlib/Makefile

@@ -34,9 +34,10 @@ MOBJ2=on_exit.o atexit.o __do_exit.o exit.o
 CSRC =	abort.c getenv.c  mktemp.c  qsort.c  realpath.c strtod.c strtoul.c \
 	abs.c   bsearch.c mkstemp.c putenv.c rand.c setenv.c strtol.c system.c
 COBJS=$(patsubst %.c,%.o, $(CSRC))
-OBJS=$(MOBJ) $(MOBJ2) $(COBJS)
 
 
+OBJS=$(MOBJ) $(MOBJ2) $(COBJS)
+
 all: $(OBJS) $(LIBC)
 
 $(LIBC): ar-target subdirs

+ 9 - 4
libc/sysdeps/linux/common/Makefile

@@ -25,8 +25,13 @@ TOPDIR=../../../
 include $(TOPDIR)Rules.mak
 LIBC=$(TOPDIR)libc.a
 
-#The file makefile.objs defines $(COBJS)
-include makefile.objs
+
+CSRC =closedir.o dirfd.o getdnnm.o gethstnm.o getpagesize.o \
+isatty.o kernel_version.o mkfifo.o opendir.o rewinddir.o \
+seekdir.o setegid.o seteuid.o setpgrp.o tcgetatr.o tell.o \
+telldir.o wait.o wait3.o _fxstat.o _lxstat.o _xstat.o _xmknod.o
+COBJS=$(patsubst %.c,%.o, $(CSRC))
+
 
 MSRC=syscalls.c
 MOBJ=$(shell ./list_syscalls.sh)
@@ -45,8 +50,8 @@ $(MOBJ): $(MSRC)
 	$(STRIPTOOL) -x -R .note -R .comment $*.o
 
 $(COBJS):
-	$(CC) $(CFLAGS) $< -c $*.c -o $*.o
-	$(STRIPTOOL) -x -R .note -R .comment $*.o
+	$(CC) $(CFLAGS) -g $< -c $*.c -o $*.o
+	#$(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
 	rm -f *.[oa] *~ core

+ 1 - 1
libc/sysdeps/linux/i386/Makefile

@@ -25,7 +25,7 @@ include $(TOPDIR)Rules.mak
 LIBC=$(TOPDIR)libc.a
 ASFLAGS=$(CFLAGS)
 
-SSRC=longjmp.S setjmp.S #_start.S #clone.S
+SSRC=_start.S longjmp.S setjmp.S #_start.S #clone.S
 SOBJS=$(patsubst %.S,%.o, $(SSRC))
 
 CSRC=readdir.c #select.c