Displaying 2 results from an estimated 2 matches for "9e2345b0a".
2018 Jun 07
2
[lld] ObjFile::createRegular is oblivious of PendingComdat
...MinGW) from Linux. The problem happens with objects built by gcc. The
problem is that ObjFile::CreateRegular considers a PendingComdat to be
valid (and later causes an illegal pointer dereference). The following
patch fixes the crash:
diff --git a/COFF/InputFiles.cpp b/COFF/InputFiles.cpp
index 9e2345b0a..f47d612df 100644
--- a/COFF/InputFiles.cpp
+++ b/COFF/InputFiles.cpp
@@ -229,11 +229,11 @@ Symbol *ObjFile::createRegular(COFFSymbolRef Sym) {
if (Sym.isExternal()) {
StringRef Name;
COFFObj->getSymbolName(Sym, Name);
- if (SC)
+ if (SC && SC != PendingComdat)...
2018 Jun 07
2
[lld] ObjFile::createRegular is oblivious of PendingComdat
...built by gcc. The
>> problem is that ObjFile::CreateRegular considers a PendingComdat to be
>> valid (and later causes an illegal pointer dereference). The following
>> patch fixes the crash:
>>
>> diff --git a/COFF/InputFiles.cpp b/COFF/InputFiles.cpp
>> index 9e2345b0a..f47d612df 100644
>> --- a/COFF/InputFiles.cpp
>> +++ b/COFF/InputFiles.cpp
>> @@ -229,11 +229,11 @@ Symbol *ObjFile::createRegular(COFFSymbolRef Sym) {
>> if (Sym.isExternal()) {
>> StringRef Name;
>> COFFObj->getSymbolName(Sym, Name);
>> -...