Skip to content

rts: Handle zero-sized mappings in MachO linker

Ben Gamari requested to merge wip/T16701 into master

As noted in #16701 (closed), it is possible that we will find that an object has no segments needing to be mapped. Previously this would result in mmap being called for a zero-length mapping, which would fail. We now simply skip the mmap call in this case; the rest of the logic just works.

Merge request reports