linker: add a possibility to use preprocessor directives in .ld
It is often useful to be able to use preprocessor directives in linker scripts, e.g. for including headers and using definitions from them or for using conditionals. Add a preprocessing stage for the linker script to enable this.