summaryrefslogtreecommitdiff
path: root/libc/misc/internals/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-19 10:19:17 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-19 10:19:17 +0000
commit0d86dfc46feaf8cce5a1d1e383e80f29d83ceaf1 (patch)
tree8af39ed3dac134788a169f5fa6e1d31bc7d07d6e /libc/misc/internals/Makefile
parentc0dc392defac1b8ab00fd0d2483675d1d0805127 (diff)
Add a .note section to make gdb happy
Diffstat (limited to 'libc/misc/internals/Makefile')
-rw-r--r--libc/misc/internals/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/libc/misc/internals/Makefile b/libc/misc/internals/Makefile
index e9b4e55b8..473ea926c 100644
--- a/libc/misc/internals/Makefile
+++ b/libc/misc/internals/Makefile
@@ -27,7 +27,11 @@ include $(TOPDIR)Rules.mak
CSRC=__uClibc_main.c tempname.c errno.c __errno_location.c __h_errno_location.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
-OBJS=$(COBJS)
+
+SSRC=abi-note.S
+SOBJS=$(patsubst %.S,%.o, $(SSRC))
+
+OBJS=$(COBJS) $(SOBJS)
all: $(OBJS) interp.o $(LIBC)
@@ -47,6 +51,10 @@ $(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o
+$(SOBJS): %.o : %.S
+ $(CC) $(CFLAGS) -c $< -o $@
+ $(STRIPTOOL) -x -R .note -R .comment $*.o
+
interp.o: %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o