diff --git a/DumpOBJ.cc b/DumpOBJ.cc index 46078ca..bf46267 100644 --- a/DumpOBJ.cc +++ b/DumpOBJ.cc @@ -2349,7 +2349,7 @@ while (NextSeg()) { while (count <= mark) { PutCTPC(); GetOpCode(); - if (checkf && ((pc > codelen) || ((! opcode) && (pc == codelen)))) + if ((checkf || header) && ((pc > codelen) || ((! opcode) && (pc == codelen)))) break; if (((kind & 0x001F) == 1) && checkf && (opcode < OPALIGN) && (opcode != 0))