| Issue |
242793
|
| Summary |
lld 22.1.8 mmap failure when building wine 11.22 (`-Ttext=` and `--no-rosegment`)
|
| Labels |
lld
|
| Assignees |
|
| Reporter |
z-erica
|
reproducer [here](https://github.com/user-attachments/files/34869497/no-rosegment.tar.gz). the `--no-rosegment` flag was introduced by [this wine commit](https://gitlab.winehq.org/wine/wine/-/commit/5574e85c2eefe26ad1852465911a3ee11dab031e). strace shows that the exact failure is
```
mmap(NULL, 137975822319616, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Out of memory)
```
where the length is 0x7d7cffe08000, just below the value in `-Ttext=0x7d7d00000000`. i discovered this issue using the chimera linux toolchain, but the reproducer fails as is under arch linux as well.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs