I have a Linux x86 application built as a shared library(.so) . I see that addresses of global variables and structures in my code are all 48 bit since x86_64 uses 48 bit virtual addresses.
I have certain structures in my code that can only accommodate 40 bits to store an address. It is done this way to align to certain specific requirements.
Having said this, is there any way to limit my application to use 40 bit virtual addresses instead of 48 bit ?