Hacker News new | ask | show | jobs
by kouteiheika 895 days ago
You absolutely can, with `MAP_FIXED`. But it's not trivial to do because you'd have to handle the case where the rtld and/or the kernel has already put something in memory where you want to put down your map. So it'd be tricky to implement, but definitely possible.
1 comments

That can be fixed with a linker script, to reserve the range using ELF headers.

But then you're going to hit other problems. This isn't a new idea. Presumably one of the reasons you're restarting your server is to upgrade it ...