From 9e0d23cc47359149a39eafffdbb133963980b6ed Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 27 Nov 2017 04:03:03 +0100 Subject: tccasm: Unify C and asm symbol table This makes the asm symbols use the same members as the C symbols for global decls, e.g. using the ELF symbol to hold offset and section. That allows us to use only one symbol table for C and asm symbols and to get rid of hacks to synch between them. We still need some special handling for symbols that come purely from asm sources. --- tests/asm-c-connect-2.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/asm-c-connect-2.c') diff --git a/tests/asm-c-connect-2.c b/tests/asm-c-connect-2.c index 3a8cff2..7ab9dc3 100644 --- a/tests/asm-c-connect-2.c +++ b/tests/asm-c-connect-2.c @@ -5,3 +5,6 @@ int x3(void) printf("x3\n"); return 3; } + +void callx4(void); +__asm__("callx4: call x4; ret"); -- cgit v1.3.1