From b56170c258a41a7e97a5de8dfb4d8ac7aa7a5347 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Staff=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Thu, 4 Oct 2018 19:24:25 +0900 Subject: [PATCH] [enco] Emit Portable ASM code (#1743) GNU "an" interprtes '@' symbol as a comment symbole for some architecture, such as ARM. Signed-off-by: Jonghyun Park --- contrib/enco/core/src/AsmCode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/enco/core/src/AsmCode.cpp b/contrib/enco/core/src/AsmCode.cpp index 221cb34..70d6f30 100644 --- a/contrib/enco/core/src/AsmCode.cpp +++ b/contrib/enco/core/src/AsmCode.cpp @@ -23,7 +23,8 @@ void AsmCode::dump(std::ostream &os) const { os << ".section .rodata" << std::endl; os << ".global " << _varname << std::endl; - os << ".type " << _varname << ", @object" << std::endl; + // Please refer to https://www.sourceware.org/binutils/docs/as/Type.html#Type for details + os << ".type " << _varname << ", STT_OBJECT" << std::endl; os << ".align " << 4 << std::endl; os << _varname << ":" << std::endl; os << ".incbin " << '"' << _filename << '"' << std::endl; -- 2.7.4