diff options
-rw-r--r-- | lld/include/lld/Core/DefinedAtom.h | 2 | ||||
-rw-r--r-- | lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lld/include/lld/Core/DefinedAtom.h b/lld/include/lld/Core/DefinedAtom.h index 84068065e88..56e94e78747 100644 --- a/lld/include/lld/Core/DefinedAtom.h +++ b/lld/include/lld/Core/DefinedAtom.h @@ -106,6 +106,7 @@ public: enum ContentType { typeUnknown, // for use with definitionUndefined + typeMachHeader, // atom representing mach_header [Darwin] typeCode, // executable code typeResolver, // function which returns address of target typeBranchIsland, // linker created for large binaries @@ -146,7 +147,6 @@ public: typeTLVInitialData, // initial data for a TLV [Darwin] typeTLVInitialZeroFill, // TLV initial zero fill data [Darwin] typeTLVInitializerPtr, // pointer to thread local initializer [Darwin] - typeMachHeader, // atom representing mach_header [Darwin] typeDSOHandle, // atom representing DSO handle [Darwin] typeThreadZeroFill, // Uninitialized thread local data(TBSS) [ELF] typeThreadData, // Initialized thread local data(TDATA) [ELF] diff --git a/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp b/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp index 73f4e146906..417ac8f0e4e 100644 --- a/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp +++ b/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp @@ -301,6 +301,7 @@ SectionInfo *Util::getFinalSection(DefinedAtom::ContentType atomType) { continue; SectionAttr sectionAttrs = 0; switch (atomType) { + case DefinedAtom::typeMachHeader: case DefinedAtom::typeCode: case DefinedAtom::typeStub: case DefinedAtom::typeStubHelper: |