Detect if the linker is gold and if so always use --gc-sections.