[llvm] [ObjCopy] Respect requirements of LC_ENCRYPTION_INFO commands (PR #120995)
Tim Neumann via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 8 23:10:02 PST 2025
TimNN wrote:
I don't believe this patch is quite correct, see https://github.com/llvm/llvm-project/issues/130472
What this patch seems to do, is push the entire `__TEXT` **segment** back to 16k.
What it should instead be doing, is push only the first **section** within `__TEXT` back to 16k.
According to https://github.com/apple-oss-distributions/dyld/blob/main/mach_o/Header.cpp#L867-L873, the load commands must be included in the `__TEXT` **segment**, thus this segment must start at offset zero.
https://github.com/llvm/llvm-project/pull/120995
More information about the llvm-commits
mailing list