X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile;h=b1efef604d0a33cf90225d84a8dc6d4301e50a8e;hb=365287cc2fd49eda91f7ce17f94308ecd52fb980;hp=a59a01e13e548ade174b020acb201e94045e5939;hpb=6e55048a898262ce44f9bf7676689e0126ba5884;p=musl-tables diff --git a/Makefile b/Makefile index a59a01e..b1efef6 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ MUSL=../musl -all: tables sizeof +all: tables abi.ARCH.musl clean: rm -f sizeof*.o sizeof-glibc sizeof-musl sizeof.diff tab_*.html @@ -32,3 +32,17 @@ sizeof-musl: sizeof.c sizeof-g++: sizeof.c g++ -std=gnu99 -nostdinc -fno-stack-protector -isystem $(MUSL)/include -isystem $(LIBGCC) -isystem /usr/include -c -o $@.o $< ld -o $@ $@.o -X -d -e _start -Bstatic $(MUSL)/lib/crti.o $(MUSL)/lib/crt1.o $(MUSL)/lib/crtn.o -L$(MUSL)/lib -lc -L$(LIBGCC) -lgcc -nostdlib + +abi: abi.ARCH.diff + cp abi.ARCH.* data/ + +abi.cc: + ./abi.sh +abi.ARCH.glibc: abi.cc + g++ -std=c++11 $(GLIBC_FLAGS) -c -o $@.o $< + nm -C $@.o |sed -n 's/^[[:xdigit:]]* T //p' |sort >$@ +abi.ARCH.musl: abi.cc + g++ -std=c++11 -nostdinc -fno-stack-protector -isystem $(MUSL)/include -isystem $(LIBGCC) -isystem /usr/include -c -o $@.o $< + nm -C $@.o |sed -n 's/^[[:xdigit:]]* T //p' |sort >$@ +abi.ARCH.diff: abi.ARCH.glibc abi.ARCH.musl + diff -U0 $^ >$@ || true