Skip to content
Commit 2be1bbea authored by Lang Hames's avatar Lang Hames
Browse files

[RuntimeDyld] Always allocate at least 1 byte for object sections in the JIT to

ensure that section addresses are distinct.

mapSectionAddress will fail if two sections are allocated the same address,
which can happen if any section has zero size (since malloc(0) is implementation
defined). Unfortunately I've been unable to repro this with a simple test case.

Fixes <rdar://problem/20314015>.

llvm-svn: 234299
parent ed96cb7f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment