diff options
Diffstat (limited to 'libc')
-rw-r--r-- | libc/misc/internals/Makefile | 4 | ||||
-rw-r--r-- | libc/misc/internals/static.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libc/misc/internals/Makefile b/libc/misc/internals/Makefile index 9150933a8..1df05a934 100644 --- a/libc/misc/internals/Makefile +++ b/libc/misc/internals/Makefile @@ -37,7 +37,7 @@ endif OBJ_LIST=../../obj.misc.internals -all: $(OBJ_LIST) interp.o +all: $(OBJ_LIST) interp.o static.o $(OBJ_LIST): $(OBJS) echo $(patsubst %, misc/internals/%, $(OBJS)) > $(OBJ_LIST) @@ -50,7 +50,7 @@ interp.c: Makefile "(\".interp\"))) =\""$(SHARED_LIB_LOADER_PREFIX)/$(UCLIBC_LDSO)"\";" >> interp.c echo "#endif" >> interp.c -$(COBJS) interp.o: %.o : %.c +$(COBJS) interp.o static.o: %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o diff --git a/libc/misc/internals/static.c b/libc/misc/internals/static.c new file mode 100644 index 000000000..cd39ffdd7 --- /dev/null +++ b/libc/misc/internals/static.c @@ -0,0 +1,4 @@ +#include <stddef.h> + +/* Force static libraries to know about ... */ +void *__libc_stack_end=NULL; |