mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-23 05:14:19 +08:00
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.
11 lines
124 B
C
11 lines
124 B
C
#include <stdio.h>
|
|
|
|
int x3(void)
|
|
{
|
|
printf("x3\n");
|
|
return 3;
|
|
}
|
|
|
|
void callx4(void);
|
|
__asm__("callx4: call x4; ret");
|