Lines Matching refs:Obj

125 static void iterateOnSegments(const object::MachOObjectFile &Obj,  in iterateOnSegments()  argument
127 for (const auto &LCI : Obj.load_commands()) { in iterateOnSegments()
130 Segment = adaptFrom32bits(Obj.getSegmentLoadCommand(LCI)); in iterateOnSegments()
132 Segment = Obj.getSegment64LoadCommand(LCI); in iterateOnSegments()
177 static unsigned transferSymbols(const object::MachOObjectFile &Obj, in transferSymbols() argument
181 StringRef Strings = Obj.getStringTableData(); in transferSymbols()
182 bool IsLittleEndian = Obj.isLittleEndian(); in transferSymbols()
185 if (Obj.is64Bit()) { in transferSymbols()
186 for (const object::SymbolRef &Symbol : Obj.symbols()) { in transferSymbols()
188 if (transferSymbol(Obj.getSymbol64TableEntry(DRI), IsLittleEndian, in transferSymbols()
193 for (const object::SymbolRef &Symbol : Obj.symbols()) { in transferSymbols()
195 if (transferSymbol(Obj.getSymbolTableEntry(DRI), IsLittleEndian, Strings, in transferSymbols()
204 getSection(const object::MachOObjectFile &Obj, in getSection() argument
207 return Obj.getSection(LCI, Idx); in getSection()
211 getSection(const object::MachOObjectFile &Obj, in getSection() argument
214 return Obj.getSection64(LCI, Idx); in getSection()
228 const object::MachOObjectFile &Obj, MCObjectWriter &Writer, in transferSegmentAndSections() argument
254 if (Obj.isLittleEndian() != sys::IsLittleEndianHost) in transferSegmentAndSections()
259 auto Sect = getSection(Obj, Segment, LCI, i); in transferSegmentAndSections()
261 if (Obj.isLittleEndian() != sys::IsLittleEndianHost) in transferSegmentAndSections()
293 static bool isExecutable(const object::MachOObjectFile &Obj) { in isExecutable() argument
294 if (Obj.is64Bit()) in isExecutable()
295 return Obj.getHeader64().filetype != MachO::MH_OBJECT; in isExecutable()
297 return Obj.getHeader().filetype != MachO::MH_OBJECT; in isExecutable()
300 static bool hasLinkEditSegment(const object::MachOObjectFile &Obj) { in hasLinkEditSegment() argument
302 iterateOnSegments(Obj, [&](const MachO::segment_command_64 &Segment) { in hasLinkEditSegment()