[llvm] [llvm-objcopy] MachO: Fix section finding policy for object files (PR #127604)

Alexander Shaposhnikov via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 18 22:33:25 PST 2025


alexander-shaposhnikov wrote:

All right, just in case - you can run `otool -l` on MacOS to dump all the load commands.
So just for the record - what's going here - for intermediate object files LC_SEGMENT_64's segname is empty => the segment is not found by the usual machinery. It looks like this aspect was briefly mentioned on page 57 in https://math-atlas.sourceforge.net/devel/assembly/MachORuntime.pdf 

https://github.com/llvm/llvm-project/pull/127604


More information about the llvm-commits mailing list