]> git.sur5r.net Git - cc65/commitdiff
Do also write the im-/export flags to the symbol flags in an object file.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 16 Aug 2011 11:37:19 +0000 (11:37 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 16 Aug 2011 11:37:19 +0000 (11:37 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5179 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/symentry.c

index a3f2183423ac6ab6b4635ac0dacd504c2b1f048b..81e63df9866eea6b9617e30a632792faecfcf476 100644 (file)
@@ -692,6 +692,12 @@ unsigned GetSymInfoFlags (const SymEntry* S, long* ConstVal)
     Flags |= SymIsConst (S, ConstVal)? SYM_CONST : SYM_EXPR;
     Flags |= (S->Flags & SF_LABEL)? SYM_LABEL : SYM_EQUATE;
     Flags |= (S->Flags & SF_LOCAL)? SYM_CHEAP_LOCAL : SYM_STD;
+    if (S->Flags & SF_EXPORT) {
+        Flags |= SYM_EXPORT;
+    }
+    if (S->Flags & SF_IMPORT) {
+        Flags |= SYM_IMPORT;
+    }
 
     /* Return the result */
     return Flags;