Refactoring linker

Signed-off-by: RedChrome <redchrome@gmx.de>