struct RelItem{ string segName; Elf32_Rel* rel; string relName; RelItem(string seg, int addr, string lb, int t); }; RelItem::RelItem(string seg, int addr, string lb, int t){ segName = seg; relName = lb; //rel = new Elf32_Rel(); //root cause rel->r_of…