https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60936
--- Comment #24 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Have you tried linking with -Wl,--gc-sections ?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60936
--- Comment #24 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Have you tried linking with -Wl,--gc-sections ?