Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DMachOYAML.cpp25 MachOYAML::LoadCommand::~LoadCommand() = default;
218 void mapLoadCommandData(IO &IO, MachOYAML::LoadCommand &LoadCommand) {} in mapLoadCommandData() argument
222 IO &IO, MachOYAML::LoadCommand &LoadCommand) { in mapLoadCommandData() argument
223 IO.mapOptional("Sections", LoadCommand.Sections); in mapLoadCommandData()
228 IO &IO, MachOYAML::LoadCommand &LoadCommand) { in mapLoadCommandData() argument
229 IO.mapOptional("Sections", LoadCommand.Sections); in mapLoadCommandData()
234 IO &IO, MachOYAML::LoadCommand &LoadCommand) { in mapLoadCommandData() argument
235 IO.mapOptional("Content", LoadCommand.Content); in mapLoadCommandData()
240 IO &IO, MachOYAML::LoadCommand &LoadCommand) { in mapLoadCommandData() argument
241 IO.mapOptional("Content", LoadCommand.Content); in mapLoadCommandData()
[all …]
H A DMachOEmitter.cpp124 size_t writeLoadCommandData(MachOYAML::LoadCommand &LC, raw_ostream &OS, in writeLoadCommandData()
130 size_t writeLoadCommandData<MachO::segment_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData()
147 MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) { in writeLoadCommandData()
161 size_t writePayloadString(MachOYAML::LoadCommand &LC, raw_ostream &OS) { in writePayloadString()
171 size_t writeLoadCommandData<MachO::dylib_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData()
178 size_t writeLoadCommandData<MachO::dylinker_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData()
185 size_t writeLoadCommandData<MachO::rpath_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData()
193 MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) { in writeLoadCommandData()
199 MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) { in writeLoadCommandData()
205 MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) { in writeLoadCommandData()
[all …]
/freebsd/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 …]
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOObject.cpp58 LoadCommand &LC = LoadCommands[Index]; in updateLoadCommandIndexes()
106 function_ref<bool(const LoadCommand &)> ToRemove) { in removeLoadCommands()
109 [&](const LoadCommand &LC) { return !ToRemove(LC); }); in removeLoadCommands()
120 for (LoadCommand &LC : LoadCommands) { in removeSections()
141 for (const LoadCommand &LC : LoadCommands) in removeSections()
163 for (const LoadCommand &LC : LoadCommands) { in nextAvailableSegmentAddress()
198 LoadCommand &Object::addSegment(StringRef SegName, uint64_t SegVMSize) { in addSegment()
199 LoadCommand LC; in addSegment()
218 std::optional<StringRef> LoadCommand::getSegmentName() const { in getSegmentName()
230 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()
156 static void updateLoadCommandPayloadString(LoadCommand &LC, StringRef S) { in updateLoadCommandPayloadString()
167 static LoadCommand buildRPathLoadCommand(StringRef Path) { in buildRPathLoadCommand()
168 LoadCommand LC; in buildRPathLoadCommand()
185 &MachOConfig](const LoadCommand &LC) { in processLoadCommands()
216 for (LoadCommand &LC : Obj.LoadCommands) { in processLoadCommands()
235 for (LoadCommand &LC : Obj.LoadCommands) { in processLoadCommands()
293 auto RemovePred = [&MachOConfig](const LoadCommand &LC) { in processLoadCommands()
[all …]
H A DMachOObject.h78 struct LoadCommand { struct
301 std::vector<LoadCommand> LoadCommands;
353 Error removeLoadCommands(function_ref<bool(const LoadCommand &)> ToRemove);
360 LoadCommand &addSegment(StringRef SegName, uint64_t SegVMSize);
H A DMachOWriter.cpp111 for (const LoadCommand &LC : O.LoadCommands) in totalSize()
157 for (const LoadCommand &LC : O.LoadCommands) { in writeLoadCommands()
239 for (const LoadCommand &LC : O.LoadCommands) in writeSections()
407 getSegmentFileOffset(const LoadCommand &TextSegmentLoadCommand) { in getSegmentFileOffset()
420 static uint64_t getSegmentFileSize(const LoadCommand &TextSegmentLoadCommand) { in getSegmentFileSize()
460 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.cpp122 LoadCommand LC; in readLoadCommands()
253 for (LoadCommand &LC : O.LoadCommands) in setSymbolInRelocationInfo()
350 for (const LoadCommand &LC : O.LoadCommands) in readSwiftVersion()
/freebsd/contrib/llvm-project/lld/MachO/
H A DWriter.cpp84 class LCDyldInfo final : public LoadCommand {
129 class LCSubFramework final : public LoadCommand {
154 class LCFunctionStarts final : public LoadCommand {
173 class LCDataInCode final : public LoadCommand {
192 class LCDysymtab final : public LoadCommand {
220 template <class LP> class LCSegment final : public LoadCommand {
274 class LCMain final : public LoadCommand {
294 class LCSymtab final : public LoadCommand {
319 class LCDylib final : public LoadCommand {
361 class LCLoadDylinker final : public LoadCommand {
[all …]
H A DWriter.h20 class LoadCommand {
22 virtual ~LoadCommand() = default;
H A DSyntheticSections.h38 class LoadCommand; variable
93 void addLoadCommand(LoadCommand *);
96 std::vector<LoadCommand *> loadCommands;
H A DSyntheticSections.cpp81 void MachHeaderSection::addLoadCommand(LoadCommand *lc) { in addLoadCommand()
158 for (const LoadCommand *lc : loadCommands) { in writeTo()
/freebsd/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,