From 8da6027e733ccde8982035ddca27c26949e8b49f Mon Sep 17 00:00:00 2001 From: bellard Date: Sat, 2 Oct 2004 14:01:26 +0000 Subject: [PATCH] both .globl and .global directives are accepted by as --- tcc-doc.texi | 2 ++ tccasm.c | 1 + tcctok.h | 1 + 3 files changed, 4 insertions(+) diff --git a/tcc-doc.texi b/tcc-doc.texi index 6261b5d9..7379434f 100644 --- a/tcc-doc.texi +++ b/tcc-doc.texi @@ -603,6 +603,7 @@ They can be defined several times in the same source. Use 'b' @cindex .long @cindex .string @cindex .globl +@cindex .global @cindex .section @cindex .text @cindex .data @@ -621,6 +622,7 @@ supported: @item .int value1[,value2...] @item .long value1[,value2...] @item .string string +@item .globl symbol @item .global symbol @item .section section @item .text diff --git a/tccasm.c b/tccasm.c index 7fb40621..c3f7e353 100644 --- a/tccasm.c +++ b/tccasm.c @@ -362,6 +362,7 @@ static void asm_parse_directive(TCCState *s1) } break; case TOK_ASM_globl: + case TOK_ASM_global: { Sym *sym; diff --git a/tcctok.h b/tcctok.h index cfefb095..4f90fc9e 100644 --- a/tcctok.h +++ b/tcctok.h @@ -163,6 +163,7 @@ DEF_ASM(space) DEF_ASM(string) DEF_ASM(globl) + DEF_ASM(global) DEF_ASM(text) DEF_ASM(data) DEF_ASM(bss) -- 2.11.4.GIT