https://sourceware.org/bugzilla/show_bug.cgi?id=16934

--- Comment #6 from Nick Clifton <nickc at redhat dot com> ---
Have you tried enabling link-time optimization in gcc.  Ie compiling with -lfto
added to the g++ command lines.  This appears to work for the test case you
supplied.

The problem I believe is related to the virtual nature of the functions, which
are not invoked directly, but rather via pointers stored in a table.  The
linker is not sophisticated enough to be able to determine which entries in a
given table are unused, so it cannot delete the unneeded virtual functions.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to