X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/a645023da60d22e86be13f7b4d97adeff8bc6665..ba348e2165668ae0f4af8b349fc4a6d0910950ed:/src/ld/passes/huge.cpp diff --git a/src/ld/passes/huge.cpp b/src/ld/passes/huge.cpp index 932122a..51dda80 100644 --- a/src/ld/passes/huge.cpp +++ b/src/ld/passes/huge.cpp @@ -83,7 +83,7 @@ void doPass(const Options& opts, ld::Internal& state) return; // move all zero fill atoms that >1MB in size to a new __huge section - ld::Internal::FinalSection* hugeSection = state.getFinalSection(ld::Section("__DATA", "__huge", ld::Section::typeZeroFill)); + ld::Internal::FinalSection* hugeSection = state.getFinalSection(*new ld::Section("__DATA", "__huge", ld::Section::typeZeroFill)); for (std::vector::iterator sit=state.sections.begin(); sit != state.sections.end(); ++sit) { ld::Internal::FinalSection* sect = *sit; if ( sect == hugeSection )