For kernel modules built as a shared object we link all the object
files together, then run ld again with the final link flags.
Previously we would apply the linker script to the former ld command
however the second linker command may undo these changes as it is
lacking access to the script. Fix this by moving the linker script to
the latter ld command when building a shared kernel object.