have configure check/add --gc-sections linker option