Home
last modified time | relevance | path

Searched refs:load_command_data (Results 1 – 16 of 16) sorted by relevance

/external/llvm-project/llvm/unittests/BinaryFormat/
DMachOTest.cpp43 swapStruct(LC->load_command_data); in TEST()
44 ASSERT_EQ(LC->load_command_data.cmd, LC_SEGMENT); in TEST()
45 Current += LC->load_command_data.cmdsize; in TEST()
/external/llvm-project/llvm/tools/llvm-objcopy/MachO/
DMachOObjcopy.cpp33 return LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_RPATH || in isLoadCommandWithPayloadString()
34 LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_ID_DYLIB || in isLoadCommandWithPayloadString()
35 LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_LOAD_DYLIB || in isLoadCommandWithPayloadString()
36 LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_LOAD_WEAK_DYLIB; in isLoadCommandWithPayloadString()
118 LC.MachOLoadCommand.load_command_data.cmdsize = NewCmdsize; in updateLoadCommandPayloadString()
142 if (LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_RPATH) { in processLoadCommands()
173 if (LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_RPATH) in processLoadCommands()
192 switch (LC.MachOLoadCommand.load_command_data.cmd) { in processLoadCommands()
DObject.cpp38 switch (LC.MachOLoadCommand.load_command_data.cmd) { in updateLoadCommandIndexes()
119 switch (MLC.load_command_data.cmd) { in nextAvailableSegmentAddress()
174 switch (MLC.load_command_data.cmd) { in getSegmentName()
186 switch (MLC.load_command_data.cmd) { in getSegmentVMAddr()
DMachOLayoutBuilder.cpp30 auto cmd = MLC.load_command_data.cmd; in computeSizeOfCmds()
69 assert(MLC.load_command_data.cmd == MachO::LC_DYSYMTAB); in updateDySymTab()
124 switch (MLC.load_command_data.cmd) { in layoutSegments()
190 switch (MLC.load_command_data.cmd) { in layoutSegments()
272 switch (LinkEditLoadCommand->load_command_data.cmd) { in layoutTail()
290 auto cmd = MLC.load_command_data.cmd; in layoutTail()
DMachOWriter.cpp170 switch (MLC.load_command_data.cmd) { in writeLoadCommands()
195 MLC.load_command_data.cmdsize); \ in writeLoadCommands()
206 switch (MLC.load_command_data.cmd) { in writeLoadCommands()
209 MLC.load_command_data.cmdsize); in writeLoadCommands()
211 MachO::swapStruct(MLC.load_command_data); in writeLoadCommands()
212 memcpy(Begin, &MLC.load_command_data, sizeof(MachO::load_command)); in writeLoadCommands()
DMachOReader.cpp173 memcpy((void *)&(LC.MachOLoadCommand.load_command_data), LoadCmd.Ptr, in readLoadCommands()
176 MachO::swapStruct(LC.MachOLoadCommand.load_command_data); in readLoadCommands()
/external/llvm-project/llvm/lib/ObjectYAML/
DMachOEmitter.cpp235 switch (LC.Data.load_command_data.cmd) { in writeLoadCommands()
238 MachO::swapStruct(Data.load_command_data); in writeLoadCommands()
239 OS.write(reinterpret_cast<const char *>(&(Data.load_command_data)), in writeLoadCommands()
261 auto BytesRemaining = LC.Data.load_command_data.cmdsize - BytesWritten; in writeLoadCommands()
270 switch (LC.Data.load_command_data.cmd) { in writeSectionData()
361 switch (LC.Data.load_command_data.cmd) { in writeRelocations()
453 switch (LC.Data.load_command_data.cmd) { in writeLinkEditData()
DMachOYAML.cpp245 LoadCommand.Data.load_command_data.cmd); in mapping()
247 LoadCommand.Data.load_command_data.cmd = TempCmd; in mapping()
248 IO.mapRequired("cmdsize", LoadCommand.Data.load_command_data.cmdsize); in mapping()
257 switch (LoadCommand.Data.load_command_data.cmd) { in mapping()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DMachOEmitter.cpp224 switch (LC.Data.load_command_data.cmd) { in writeLoadCommands()
227 MachO::swapStruct(Data.load_command_data); in writeLoadCommands()
228 OS.write(reinterpret_cast<const char *>(&(Data.load_command_data)), in writeLoadCommands()
250 auto BytesRemaining = LC.Data.load_command_data.cmdsize - BytesWritten; in writeLoadCommands()
260 switch (LC.Data.load_command_data.cmd) { in writeSectionData()
395 switch (LC.Data.load_command_data.cmd) { in writeLinkEditData()
DMachOYAML.cpp243 LoadCommand.Data.load_command_data.cmd); in mapping()
245 LoadCommand.Data.load_command_data.cmd = TempCmd; in mapping()
246 IO.mapRequired("cmdsize", LoadCommand.Data.load_command_data.cmdsize); in mapping()
255 switch (LoadCommand.Data.load_command_data.cmd) { in mapping()
/external/llvm/tools/yaml2obj/
Dyaml2macho.cpp199 switch (LC.Data.load_command_data.cmd) { in writeLoadCommands()
201 OS.write(reinterpret_cast<const char *>(&(LC.Data.load_command_data)), in writeLoadCommands()
222 auto BytesRemaining = LC.Data.load_command_data.cmdsize - BytesWritten; in writeLoadCommands()
232 switch (LC.Data.load_command_data.cmd) { in writeSectionData()
343 switch (LC.Data.load_command_data.cmd) { in writeLinkEditData()
/external/llvm-project/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/
DDynamicLoaderMacOSXDYLD.cpp763 DataExtractor *load_command_data) { in ReadMachHeader() argument
801 if (load_command_data == nullptr) in ReadMachHeader()
814 load_command_data->SetData(load_cmd_data_sp, 0, header->sizeofcmds); in ReadMachHeader()
815 load_command_data->SetByteOrder(data.GetByteOrder()); in ReadMachHeader()
816 load_command_data->SetAddressByteSize(data.GetAddressByteSize()); in ReadMachHeader()
DDynamicLoaderMacOSXDYLD.h92 lldb_private::DataExtractor *load_command_data);
/external/llvm/lib/ObjectYAML/
DMachOYAML.cpp219 LoadCommand.Data.load_command_data.cmd); in mapping()
221 LoadCommand.Data.load_command_data.cmd = TempCmd; in mapping()
222 IO.mapRequired("cmdsize", LoadCommand.Data.load_command_data.cmdsize); in mapping()
231 switch (LoadCommand.Data.load_command_data.cmd) { in mapping()
/external/llvm/tools/obj2yaml/
Dmacho2yaml.cpp186 memcpy((void *)&(LC.Data.load_command_data), LoadCmd.Ptr, in dumpLoadCommands()
189 MachO::swapStruct(LC.Data.load_command_data); in dumpLoadCommands()
/external/llvm-project/llvm/tools/obj2yaml/
Dmacho2yaml.cpp307 memcpy((void *)&(LC.Data.load_command_data), LoadCmd.Ptr, in dumpLoadCommands()
310 MachO::swapStruct(LC.Data.load_command_data); in dumpLoadCommands()