some bug fixing on the linker script