From: 박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 Date: Thu, 4 Oct 2018 10:24:25 +0000 (+0900) Subject: [enco] Emit Portable ASM code (#1743) X-Git-Tag: nncc_backup~1628 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b56170c258a41a7e97a5de8dfb4d8ac7aa7a5347;p=platform%2Fcore%2Fml%2Fnnfw.git [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 --- 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;