http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46790
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2010-12-12 21:31:57 UTC --- There are some gc-sections bug fixes since binutils 2.18: Fix --gc-sections to detect unresolved symbol in DSO. PR 11218. Fix linker --gc-sections with undefined __start_XXX/__stop_XXX symbols. PR 11133. Fix linker --gc-sections with SHT_NOTE section. PR 11143. Fix "ld -r --gc-sections --entry" crash with COMDAT group. PR 9727. You can try the Linux binutils from http://www.kernel.org/pub/linux/devel/binutils/ to narrow down which binutils fixes it.