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

--- Comment #2 from Nick Clifton <nickc at redhat dot com> ---
Hi Cary,

> Given the error message, it sure looks like arm-g++ is still failing to mark
> the typeinfo symbols as weak definitions.

Actually I think that the compiler is doing the right thing now, but the
assembler is messing up.  For example:

  % arm-g++ inst2.cpp -c --save-temps
  % cat inst2.s
  [...]
        .weak   _ZTV13test_templateIlLl2EE
        .section       
.rodata._ZTV13test_templateIlLl2EE,"aG",%progbits,_ZTV13test_templateIlLl2EE,comdat
        .align  2
        .type   _ZTV13test_templateIlLl2EE, %object
  [...]
  % readelf --wide --syms inst2.o
  [...]
   123: 00000008    23 OBJECT  GLOBAL DEFAULT   84 _ZTS13test_templateIlLl2EE
  [...]

Note how the symbol is GLOBAL not WEAK...
This is with a very recent version of gcc:
  xg++ (GCC) 9.0.0 20180618 (experimental) [trunk revision 261696]

I am investigating further.

-- 
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