Related to nix-rust/nix#1194
Since linux 3.8 there are additional flags to mmap that allow specifying what size of huge page should be used. (MAP_HUGE_2MB, MAP_HUGE_1GB on x86_64, the headers appears to have some generic support for variety of other sizes for other architectures)
http://man7.org/linux/man-pages/man2/mmap.2.html
target triple eight be x86_64-unknown-linux-gnu ?
Can those be added to libc ?
(I'd be willing to help, but I wouldn't mind some guidance on how to best tackle this and whether this is appropriate.)