This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/53831] [4.7 Regression] Virtuals missing in LTO symtab


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53831

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trippels at gcc dot gnu.org

--- Comment #34 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Sami Farin from comment #33)
> Is 4.9.0 supposed to work with -flto with ar archives? It works if I do gcc
> -flto *.o, though.
> 
> $ gcc-ar r libdiv.a div64.o
> /bin/ar terminated with signal 11 [Segmentation fault]
> 
> ...
> 
> Starting program: /usr/bin/ar r --plugin
> /usr/libexec/gcc/x86_64-redhat-linux/4.9.?/liblto_plugin.so libdiv.a div64.o
> 
> Program received signal SIGSEGV, Segmentation fault.
> bfd_plugin_get_symbols_in_object_only (abfd=0x6138f0) at plugin.c:151
> 151	  plugin_data->object_only_syms = NULL;
> (gdb) bt
> #0  bfd_plugin_get_symbols_in_object_only (abfd=0x6138f0) at plugin.c:151
> #1  add_symbols (handle=0x6138f0, nsyms=1, syms=0x618e20) at plugin.c:278
> #2  0x00007ffff0bb577a in claim_file_handler (file=0x7fffffff9880,
> claimed=0x7fffffff987c) at ../../lto-plugin/lto-plugin.c:929

This looks like a binutils bug to me. What version of binutils are you using?
Does it still happen with binutils trunk?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]