Home
last modified time | relevance | path

Searched refs:LoadCommand (Results 1 – 15 of 15) sorted by relevance

/openbsd-src/gnu/llvm/llvm/lib/ObjectYAML/
H A DMachOYAML.cpp26 MachOYAML::LoadCommand::~LoadCommand() = default;
219 void mapLoadCommandData(IO &IO, MachOYAML::LoadCommand &LoadCommand) {} in mapLoadCommandData() argument
223 IO &IO, MachOYAML::LoadCommand &LoadCommand) { in mapLoadCommandData() argument
224 IO.mapOptional("Sections", LoadCommand.Sections); in mapLoadCommandData()
229 IO &IO, MachOYAML::LoadCommand &LoadCommand) { in mapLoadCommandData() argument
230 IO.mapOptional("Sections", LoadCommand.Sections); in mapLoadCommandData()
235 IO &IO, MachOYAML::LoadCommand &LoadCommand) { in mapLoadCommandData() argument
236 IO.mapOptional("Content", LoadCommand.Content); in mapLoadCommandData()
241 IO &IO, MachOYAML::LoadCommand &LoadCommand) { in mapLoadCommandData() argument
242 IO.mapOptional("Content", LoadCommand.Content); in mapLoadCommandData()
[all …]
H A DMachOEmitter.cpp125 size_t writeLoadCommandData(MachOYAML::LoadCommand &LC, raw_ostream &OS, in writeLoadCommandData()
131 size_t writeLoadCommandData<MachO::segment_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData()
148 MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) { in writeLoadCommandData()
162 size_t writePayloadString(MachOYAML::LoadCommand &LC, raw_ostream &OS) { in writePayloadString()
172 size_t writeLoadCommandData<MachO::dylib_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData()
179 size_t writeLoadCommandData<MachO::dylinker_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData()
186 size_t writeLoadCommandData<MachO::rpath_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData()
194 MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) { in writeLoadCommandData()
200 MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) { in writeLoadCommandData()
206 MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) { in writeLoadCommandData()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ObjCopy/MachO/
H A DMachOObject.cpp44 LoadCommand &LC = LoadCommands[Index]; in updateLoadCommandIndexes()
92 function_ref<bool(const LoadCommand &)> ToRemove) { in removeLoadCommands()
95 [&](const LoadCommand &LC) { return !ToRemove(LC); }); in removeLoadCommands()
106 for (LoadCommand &LC : LoadCommands) { in removeSections()
127 for (const LoadCommand &LC : LoadCommands) in removeSections()
149 for (const LoadCommand &LC : LoadCommands) { in nextAvailableSegmentAddress()
184 LoadCommand &Object::addSegment(StringRef SegName, uint64_t SegVMSize) { in addSegment()
185 LoadCommand LC; in addSegment()
204 std::optional<StringRef> LoadCommand::getSegmentName() const { in getSegmentName()
216 std::optional<uint64_t> LoadCommand::getSegmentVMAddr() const { in getSegmentVMAddr()
H A DMachOObjcopy.cpp33 using LoadCommandPred = std::function<bool(const LoadCommand &LC)>;
36 static bool isLoadCommandWithPayloadString(const LoadCommand &LC) { in isLoadCommandWithPayloadString()
46 static StringRef getPayloadString(const LoadCommand &LC) { in getPayloadString()
126 static void updateLoadCommandPayloadString(LoadCommand &LC, StringRef S) { in updateLoadCommandPayloadString()
137 static LoadCommand buildRPathLoadCommand(StringRef Path) { in buildRPathLoadCommand()
138 LoadCommand LC; in buildRPathLoadCommand()
155 &MachOConfig](const LoadCommand &LC) { in processLoadCommands()
186 for (LoadCommand &LC : Obj.LoadCommands) { in processLoadCommands()
205 for (LoadCommand &LC : Obj.LoadCommands) { in processLoadCommands()
263 auto RemovePred = [&MachOConfig](const LoadCommand &LC) { in processLoadCommands()
[all …]
H A DMachOObject.h78 struct LoadCommand { struct
300 std::vector<LoadCommand> LoadCommands;
352 Error removeLoadCommands(function_ref<bool(const LoadCommand &)> ToRemove);
359 LoadCommand &addSegment(StringRef SegName, uint64_t SegVMSize);
H A DMachOWriter.cpp112 for (const LoadCommand &LC : O.LoadCommands) in totalSize()
158 for (const LoadCommand &LC : O.LoadCommands) { in writeLoadCommands()
240 for (const LoadCommand &LC : O.LoadCommands) in writeSections()
408 getSegmentFileOffset(const LoadCommand &TextSegmentLoadCommand) { in getSegmentFileOffset()
421 static uint64_t getSegmentFileSize(const LoadCommand &TextSegmentLoadCommand) { in getSegmentFileSize()
461 const LoadCommand &TextSegmentLoadCommand = in writeCodeSignatureData()
H A DMachOLayoutBuilder.cpp27 for (const LoadCommand &LC : O.LoadCommands) { in computeSizeOfCmds()
118 for (LoadCommand &LC : O.LoadCommands) { in layoutSegments()
215 for (LoadCommand &LC : O.LoadCommands) in layoutRelocations()
336 for (LoadCommand &LC : O.LoadCommands) { in layoutTail()
H A DMachOReader.cpp121 LoadCommand LC; in readLoadCommands()
252 for (LoadCommand &LC : O.LoadCommands) in setSymbolInRelocationInfo()
349 for (const LoadCommand &LC : O.LoadCommands) in readSwiftVersion()
/openbsd-src/gnu/llvm/llvm/include/llvm/ObjectYAML/
H A DMachOYAML.h73 struct LoadCommand { struct
74 virtual ~LoadCommand();
142 std::vector<LoadCommand> LoadCommands;
172 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::MachOYAML::LoadCommand)
210 template <> struct MappingTraits<MachOYAML::LoadCommand> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
211 static void mapping(IO &IO, MachOYAML::LoadCommand &LoadCommand); in LLVM_YAML_IS_SEQUENCE_VECTOR()
320 static void mapping(IO &IO, MachO::LCStruct &LoadCommand); \ in LLVM_YAML_IS_SEQUENCE_VECTOR()
327 static void mapping(IO &IO, MachO::dylib &LoadCommand); in LLVM_YAML_IS_SEQUENCE_VECTOR()
331 static void mapping(IO &IO, MachO::fvmlib &LoadCommand); in LLVM_YAML_IS_SEQUENCE_VECTOR()
335 static void mapping(IO &IO, MachO::section &LoadCommand); in LLVM_YAML_IS_SEQUENCE_VECTOR()
[all …]
/openbsd-src/gnu/llvm/lldb/examples/python/
H A Dmach_o.py860 lc = Mach.LoadCommand()
1148 class LoadCommand: class in Mach
1201 self.command = Mach.LoadCommand.Command(0)
1280 class DylibLoadCommand(LoadCommand):
1283 Mach.LoadCommand.__init__(self, lc.command, lc.length, lc.file_off)
1297 s = Mach.LoadCommand.__str__(self)
1304 class LoadDYLDLoadCommand(LoadCommand):
1307 Mach.LoadCommand.__init__(self, lc.command, lc.length, lc.file_off)
1315 s = Mach.LoadCommand.__str__(self)
1319 class UnixThreadLoadCommand(LoadCommand):
[all …]
/openbsd-src/gnu/llvm/lld/MachO/
H A DWriter.h20 class LoadCommand {
22 virtual ~LoadCommand() = default;
H A DWriter.cpp86 class LCDyldInfo final : public LoadCommand {
131 class LCSubFramework final : public LoadCommand {
156 class LCFunctionStarts final : public LoadCommand {
175 class LCDataInCode final : public LoadCommand {
194 class LCDysymtab final : public LoadCommand {
222 template <class LP> class LCSegment final : public LoadCommand {
276 class LCMain final : public LoadCommand {
296 class LCSymtab final : public LoadCommand {
321 class LCDylib final : public LoadCommand {
363 class LCLoadDylinker final : public LoadCommand {
[all …]
H A DSyntheticSections.h37 class LoadCommand; variable
92 void addLoadCommand(LoadCommand *);
95 std::vector<LoadCommand *> loadCommands;
H A DSyntheticSections.cpp88 void MachHeaderSection::addLoadCommand(LoadCommand *lc) { in addLoadCommand()
165 for (const LoadCommand *lc : loadCommands) { in writeTo()
/openbsd-src/gnu/llvm/llvm/tools/obj2yaml/
H A Dmacho2yaml.cpp27 MachOYAML::LoadCommand &LC,
209 MachOYAML::LoadCommand &LC, in processLoadCommandData()
218 MachOYAML::LoadCommand &LC, in processLoadCommandData()
228 MachOYAML::LoadCommand &LC, in processLoadCommandData()
237 readString(MachOYAML::LoadCommand &LC, in readString()
249 MachOYAML::LoadCommand &LC, in processLoadCommandData()
258 MachOYAML::LoadCommand &LC, in processLoadCommandData()
267 MachOYAML::LoadCommand &LC, in processLoadCommandData()
276 MachOYAML::LoadCommand &LC, in processLoadCommandData()
320 MachOYAML::LoadCommand LC; in dumpLoadCommands()