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

2023-05-13 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29157

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #2 from Alan Modra  ---
Invalid then

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


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

2022-06-16 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29157

Nick Clifton  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

--- Comment #1 from Nick Clifton  ---
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.