Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/InitTweak.cc

    raff7e86 r02f4eb8  
    1010// Created On       : Fri May 13 11:26:36 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Dec 13 23:15:52 2019
    13 // Update Count     : 8
     12// Last Modified On : Wed Jun 16 20:57:22 2021
     13// Update Count     : 18
    1414//
    1515
     
    12171217        void addDataSectonAttribute( ObjectDecl * objDecl ) {
    12181218                objDecl->attributes.push_back(new Attribute("section", {
    1219                         new ConstantExpr( Constant::from_string(".data#") ),
    1220                 }));
     1219                        new ConstantExpr( Constant::from_string(".data"
     1220#if defined( __x86_64 ) || defined( __i386 ) // assembler comment to prevent assembler warning message
     1221                                        "#"
     1222#else // defined( __ARM_ARCH )
     1223                                        "//"
     1224#endif
     1225                                ))}));
    12211226        }
    12221227
    12231228        void addDataSectionAttribute( ast::ObjectDecl * objDecl ) {
    12241229                objDecl->attributes.push_back(new ast::Attribute("section", {
    1225                         ast::ConstantExpr::from_string(objDecl->location, ".data#"),
    1226                 }));
     1230                        ast::ConstantExpr::from_string(objDecl->location, ".data"
     1231#if defined( __x86_64 ) || defined( __i386 ) // assembler comment to prevent assembler warning message
     1232                                        "#"
     1233#else // defined( __ARM_ARCH )
     1234                                        "//"
     1235#endif
     1236                                )}));
    12271237        }
    12281238
Note: See TracChangeset for help on using the changeset viewer.