]> granicus.if.org Git - yasm/commit
Allow @ signs in identifiers in win32/win64 only.
authorPeter Johnson <peter@tortall.net>
Fri, 2 Jan 2009 08:33:21 +0000 (08:33 -0000)
committerPeter Johnson <peter@tortall.net>
Fri, 2 Jan 2009 08:33:21 +0000 (08:33 -0000)
commitb7a38ed4fdb71dd6b9f16614b2f015a0051e8ae2
treede2c31f88e8331db09e1f429681e39fedfdcd617
parentf8113755e55da628a1f903ed74f1b97562ea5bd2
Allow @ signs in identifiers in win32/win64 only.
In ELF, @ is used to indicate special relocations.

Fixes #164.

Reported by: Gregory McGarry on yasm-devel@
Testcase by: Gregory McGarry

We don't allow identifiers to start with @; doing so conflicts with use of
e.g. "@function" in some directives.  Need to look into what GAS does.

svn path=/trunk/yasm/; revision=2166
14 files changed:
libyasm/objfmt.h
modules/objfmts/bin/bin-objfmt.c
modules/objfmts/coff/coff-objfmt.c
modules/objfmts/dbg/dbg-objfmt.c
modules/objfmts/elf/elf-objfmt.c
modules/objfmts/macho/macho-objfmt.c
modules/objfmts/rdf/rdf-objfmt.c
modules/objfmts/win32/tests/Makefile.inc
modules/objfmts/win32/tests/gas/Makefile.inc [new file with mode: 0644]
modules/objfmts/win32/tests/gas/win32_gas_test.sh [new file with mode: 0755]
modules/objfmts/win32/tests/gas/win32at.asm [new file with mode: 0644]
modules/objfmts/win32/tests/gas/win32at.hex [new file with mode: 0644]
modules/objfmts/xdf/xdf-objfmt.c
modules/parsers/gas/gas-token.re