fix linker script for -O2 and -O3