From b4f51aad89fe816804389b927a9644e5affa8110 Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Tue, 1 Sep 2015 00:04:47 +0200 Subject: [PATCH] MakePEF: warn rather than abort for unexpected relocs --- PEFTools/MakePEF.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PEFTools/MakePEF.cc b/PEFTools/MakePEF.cc index 07e68fa345..1062dcaecc 100755 --- a/PEFTools/MakePEF.cc +++ b/PEFTools/MakePEF.cc @@ -391,7 +391,10 @@ void mkpef(std::istream& in, std::ostream& out, std::string mainSymbol = "__star else if(getI16(syms[symndx].e_scnum) == xcoffSectionNumbers[".bss"]) relocInstructions.push_back(PEFRelocComposeBySectD(1)); else - assert(false); + { + //assert(false); + std::cerr << "RELOC for section " << getI16(syms[symndx].e_scnum) << std::endl; + } } delete[] relocs; }