Home
last modified time | relevance | path

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

/src/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DMachOYAML.cpp27 MachOYAML::LoadCommand::~LoadCommand() = default;
220 void mapLoadCommandData(IO &IO, MachOYAML::LoadCommand &LoadCommand) {} in mapLoadCommandData() argument
224 IO &IO, MachOYAML::LoadCommand &LoadCommand) { in mapLoadCommandData() argument
225 IO.mapOptional("Sections", LoadCommand.Sections); in mapLoadCommandData()
230 IO &IO, MachOYAML::LoadCommand &LoadCommand) { in mapLoadCommandData() argument
231 IO.mapOptional("Sections", LoadCommand.Sections); in mapLoadCommandData()
236 IO &IO, MachOYAML::LoadCommand &LoadCommand) { in mapLoadCommandData() argument
237 IO.mapOptional("Content", LoadCommand.Content); in mapLoadCommandData()
242 IO &IO, MachOYAML::LoadCommand &LoadCommand) { in mapLoadCommandData() argument
243 IO.mapOptional("Content", LoadCommand.Content); in mapLoadCommandData()
[all …]
H A DMachOEmitter.cpp126 size_t writeLoadCommandData(MachOYAML::LoadCommand &LC, raw_ostream &OS, in writeLoadCommandData()
132 size_t writeLoadCommandData<MachO::segment_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData()
149 MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) { in writeLoadCommandData()
163 size_t writePayloadString(MachOYAML::LoadCommand &LC, raw_ostream &OS) { in writePayloadString()
173 size_t writeLoadCommandData<MachO::dylib_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData()
180 size_t writeLoadCommandData<MachO::dylinker_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData()
187 size_t writeLoadCommandData<MachO::rpath_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData()
195 MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) { in writeLoadCommandData()
201 MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) { in writeLoadCommandData()
207 MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) { in writeLoadCommandData()
[all …]
/src/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOObject.cpp45 LoadCommand &LC = LoadCommands[Index]; in updateLoadCommandIndexes()
93 function_ref<bool(const LoadCommand &)> ToRemove) { in removeLoadCommands()
96 [&](const LoadCommand &LC) { return !ToRemove(LC); }); in removeLoadCommands()
107 for (LoadCommand &LC : LoadCommands) { in removeSections()
128 for (const LoadCommand &LC : LoadCommands) in removeSections()
150 for (const LoadCommand &LC : LoadCommands) { in nextAvailableSegmentAddress()
185 LoadCommand &Object::addSegment(StringRef SegName, uint64_t SegVMSize) { in addSegment()
186 LoadCommand LC; in addSegment()
205 std::optional<StringRef> LoadCommand::getSegmentName() const { in getSegmentName()
217 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()
137 static void updateLoadCommandPayloadString(LoadCommand &LC, StringRef S) { in updateLoadCommandPayloadString()
148 static LoadCommand buildRPathLoadCommand(StringRef Path) { in buildRPathLoadCommand()
149 LoadCommand LC; in buildRPathLoadCommand()
166 &MachOConfig](const LoadCommand &LC) { in processLoadCommands()
197 for (LoadCommand &LC : Obj.LoadCommands) { in processLoadCommands()
216 for (LoadCommand &LC : Obj.LoadCommands) { in processLoadCommands()
274 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.cpp28 for (const LoadCommand &LC : O.LoadCommands) { in computeSizeOfCmds()
119 for (LoadCommand &LC : O.LoadCommands) { in layoutSegments()
216 for (LoadCommand &LC : O.LoadCommands) in layoutRelocations()
337 for (LoadCommand &LC : O.LoadCommands) { in layoutTail()
H A DMachOReader.cpp123 LoadCommand LC; in readLoadCommands()
254 for (LoadCommand &LC : O.LoadCommands) in setSymbolInRelocationInfo()
351 for (const LoadCommand &LC : O.LoadCommands) in readSwiftVersion()
/src/contrib/llvm-project/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 …]
/src/contrib/llvm-project/lld/MachO/
H A DWriter.h20 class LoadCommand {
22 virtual ~LoadCommand() = default;
H A DWriter.cpp85 class LCDyldInfo final : public LoadCommand {
130 class LCSubFramework final : public LoadCommand {
155 class LCFunctionStarts final : public LoadCommand {
174 class LCDataInCode final : public LoadCommand {
193 class LCDysymtab final : public LoadCommand {
221 template <class LP> class LCSegment final : public LoadCommand {
275 class LCMain final : public LoadCommand {
295 class LCSymtab final : public LoadCommand {
320 class LCDylib final : public LoadCommand {
362 class LCLoadDylinker final : public LoadCommand {
[all …]
H A DSyntheticSections.h38 class LoadCommand; variable
93 void addLoadCommand(LoadCommand *);
96 std::vector<LoadCommand *> loadCommands;
H A DSyntheticSections.cpp82 void MachHeaderSection::addLoadCommand(LoadCommand *lc) { in addLoadCommand()
159 for (const LoadCommand *lc : loadCommands) { in writeTo()
/src/usr.sbin/ppp/
H A Dcommand.c332 LoadCommand(struct cmdargs const *arg) in LoadCommand() function
406 if (arg->argc > arg->argn && (res = LoadCommand(arg)) != 0) in DialCommand()
880 {"load", NULL, LoadCommand, LOCAL_AUTH | LOCAL_CX_OPT,