Always use -Wl,-gc-sections on our build.