Make loader independent of memory configuration