From cc6cb7f0e294f0c98c4970c7ec993709fc2daa1a Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 4 Dec 2017 03:51:14 +0100 Subject: Fix another corner case with C/asm symtable See testcase (from grischka). If the asm has no .globl, but there's a (non-static) C definition the symbol should be exported, even if the first reference comes from asm. --- tests/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests/Makefile') diff --git a/tests/Makefile b/tests/Makefile index 61b585e..f06f39c 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -235,9 +235,16 @@ vla_test-run: vla_test$(EXESUF) asm-c-connect$(EXESUF): asm-c-connect-1.c asm-c-connect-2.c $(TCC) -o $@ $^ -asm-c-connect-test: asm-c-connect$(EXESUF) +asm-c-connect-%.o: asm-c-connect-%.c + $(TCC) -c -o $@ $< + +asm-c-connect-sep$(EXESUF): asm-c-connect-1.o asm-c-connect-2.o + $(TCC) -o $@ $^ + +asm-c-connect-test: asm-c-connect$(EXESUF) asm-c-connect-sep$(EXESUF) @echo ------------ $@ ------------ ./asm-c-connect$(EXESUF) + ./asm-c-connect-sep$(EXESUF) cross-test : @echo ------------ $@ ------------ -- cgit v1.3.1