rts: Handle zero-sized mappings in MachO linker

Authored by bgamari on Tue, May 28, 8:43 AM.

Description

rts: Handle zero-sized mappings in MachO linker

As noted in Trac #16701, 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.

Details

Committed
Marge Bot <ben+marge-bot@smart-cactus.org>Thu, May 30, 6:29 AM
Parents
rGHCade53ce29fdd: CODEOWNERS: Use correct username for Richard Eisenberg
Branches
Unknown
Tags
Unknown
Marge Bot <ben+marge-bot@smart-cactus.org> committed rGHC4ad37a323b9c: rts: Handle zero-sized mappings in MachO linker (authored by bgamari).Thu, May 30, 6:29 AM