summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-10-10 06:58:11 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-10-10 06:58:11 +0000
commit8ac78e6f21bab27fbe9d9505e8a71350c395ede4 (patch)
treee831b3bfb395dd0b66921e7f178ffde693432bcb /llvm
parent918df1abd83df29d3069db55222177c3f0a8927c (diff)
downloadbcm5719-llvm-8ac78e6f21bab27fbe9d9505e8a71350c395ede4.tar.gz
bcm5719-llvm-8ac78e6f21bab27fbe9d9505e8a71350c395ede4.zip
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
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Object/COFF.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/include/llvm/Object/COFF.h b/llvm/include/llvm/Object/COFF.h
index c3428cdd1aa..d9cd2a6e6d0 100644
--- a/llvm/include/llvm/Object/COFF.h
+++ b/llvm/include/llvm/Object/COFF.h
@@ -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;
}
OpenPOWER on IntegriCloud