bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/23304] ARM linker fails to combine identical typeinfo sections


From: nickc at redhat dot com
Subject: [Bug ld/23304] ARM linker fails to combine identical typeinfo sections
Date: Tue, 19 Jun 2018 10:25:32 +0000

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.


reply via email to

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