diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-05-28 09:43:36 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-05-30 07:29:47 -0400 |
commit | 4ad37a323b9cdb830d718dec08c2960e34410a43 (patch) | |
tree | 669b18bb44a88f3ac412638e8fa40460cdcee436 /compiler | |
parent | ade53ce29fddc49162f409567c2e76feb5f21c66 (diff) | |
download | haskell-4ad37a323b9cdb830d718dec08c2960e34410a43.tar.gz |
rts: Handle zero-sized mappings in MachO linker
As noted in #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.
Diffstat (limited to 'compiler')
0 files changed, 0 insertions, 0 deletions