[arch] factor some common parts of linker scripts into a separate file

INCLUDE the parts of the linker script that are specific to lk into
each of the arch's scripts.