trylink: instead of build error, disable --gc-sections if GLIBC && STATIC