bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/29157] error: undefined reference to 'typeinfo for XXX'


From: nickc at redhat dot com
Subject: [Bug ld/29157] error: undefined reference to 'typeinfo for XXX'
Date: Thu, 16 Jun 2022 13:32:30 +0000

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

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nickc at redhat dot com

--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
Hi BogDan,

  Why do you think that the linker should be discarding anything ?

  You are creating a shared object, so the linker has no way of determining
  if stuff is going to be needed or not.  So it keeps everything and then,
  because you are linking with -Wl,--no-undefined the linker generates the
  error message.

Cheers
  Nick

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]