Direct exec of /usr/bin/ld fails with "mmap of entire address space failed: Cannot allocate memory"

Ryan Stone rysto32 at gmail.com
Sat Sep 21 16:19:33 UTC 2019


If I try direct exec ld via rtld, I get the following failure:

# /libexec/ld-elf.so.1 /usr/bin/ld
ld-elf.so.1: /usr/bin/ld: mmap of entire address space failed: Cannot
allocate memory

Is there some sysctl limit I need to bump up to get around this?  I
presume that the binary is just too large given that I can direct exec
smaller binaries like /bin/cat.


More information about the freebsd-current mailing list