Object, COFF: Relax aux symbols for section definitions

We, I suppose naïvely, believed the COFF specification with regard to
auxiliary symbol records which defined sections: they specified that the
symbol value should be zero.  However, dumpbin and MinGW's objdump do
not consider the symbol value as a restriction.  Relaxing this allows us
to properly dump MinGW linked executables.

llvm-svn: 219479
This commit is contained in:
David Majnemer 2014-10-10 06:58:11 +00:00
parent 918df1abd8
commit 8ac78e6f21
1 changed files with 1 additions and 2 deletions

View File

@ -328,8 +328,7 @@ public:
bool isAppdomainGlobal =
getStorageClass() == COFF::IMAGE_SYM_CLASS_EXTERNAL &&
getSectionNumber() == COFF::IMAGE_SYM_ABSOLUTE;
bool isOrdinarySection =
getStorageClass() == COFF::IMAGE_SYM_CLASS_STATIC && getValue() == 0;
bool isOrdinarySection = getStorageClass() == COFF::IMAGE_SYM_CLASS_STATIC;
return isAppdomainGlobal || isOrdinarySection;
}