mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
llvm-readobj: Check for null section pointer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180006 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -799,7 +799,7 @@ void COFFDumper::printSymbol(symbol_iterator SymI) {
|
|||||||
W.printEnum("Selection", Aux->Selection, makeArrayRef(ImageCOMDATSelect));
|
W.printEnum("Selection", Aux->Selection, makeArrayRef(ImageCOMDATSelect));
|
||||||
W.printBinary("Unused", makeArrayRef(Aux->Unused));
|
W.printBinary("Unused", makeArrayRef(Aux->Unused));
|
||||||
|
|
||||||
if (Section->Characteristics & COFF::IMAGE_SCN_LNK_COMDAT
|
if (Section && Section->Characteristics & COFF::IMAGE_SCN_LNK_COMDAT
|
||||||
&& Aux->Selection == COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE) {
|
&& Aux->Selection == COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE) {
|
||||||
const coff_section *Assoc;
|
const coff_section *Assoc;
|
||||||
StringRef AssocName;
|
StringRef AssocName;
|
||||||
|
|||||||
Reference in New Issue
Block a user