Unified · Split
| @@ -60,6 +60,8 @@ LIBTCCAPI int tcc_relocate(TCCState *s1, void *ptr) · 59 unmodified lines | ||
| 60 | 60 | |
| 61 | 61 | #ifdef HAVE_SELINUX |
| 62 | 62 | { /* Use mmap instead of malloc for Selinux. */ |
| 63 | + s1->mem_size = ret; | |
| 64 | + | |
| 63 | 65 | s1->write_mem = mmap (NULL, ret, PROT_READ|PROT_WRITE, |
| 64 | 66 | MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); |
| 65 | 67 | if (s1->write_mem == MAP_FAILED) |