mirror of
https://github.com/frida/tinycc
synced 2024-11-24 08:39:37 +03:00
accept multiple comma separated symbols for .globl/.global directives, like gas does
This commit is contained in:
parent
0a50e6c933
commit
f43fafc680
4
tccasm.c
4
tccasm.c
@ -481,7 +481,7 @@ static void asm_parse_directive(TCCState *s1)
|
||||
break;
|
||||
case TOK_ASM_globl:
|
||||
case TOK_ASM_global:
|
||||
{
|
||||
do {
|
||||
Sym *sym;
|
||||
|
||||
next();
|
||||
@ -492,7 +492,7 @@ static void asm_parse_directive(TCCState *s1)
|
||||
}
|
||||
sym->type.t &= ~VT_STATIC;
|
||||
next();
|
||||
}
|
||||
} while (tok == ',');
|
||||
break;
|
||||
case TOK_ASM_string:
|
||||
case TOK_ASM_ascii:
|
||||
|
@ -196,6 +196,11 @@ call *%eax
|
||||
call *0x1000
|
||||
call func1
|
||||
|
||||
.global L5,L6
|
||||
|
||||
L5:
|
||||
L6:
|
||||
|
||||
lcall $0x100, $0x1000
|
||||
|
||||
jmp 0x1000
|
||||
|
Loading…
Reference in New Issue
Block a user