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

--- Comment #4 from tmb99 at gmx dot net ---
Since COMDAT was mentioned:

>bar.cpp
#include "common.h"
Bar::Bar() { Foo* foo = &Foo::get_instance(); }

>g++ -g -nostdlib -Wl,-r bar.cpp -o bar.o
>g++ -g -nostdlib -Wl,-r foo.cpp -o foo.o
>ld -r foo.o bar.o -o baz.o
ld: foo.o: warning: COMDAT symbol '.debug_frame$_ZN3Bar12get_instanceEv' does
not match section name '.debug_frame'
ld: bar.o: warning: COMDAT symbol '.debug_frame$_ZN3Foo12get_instanceEv' does
not match section name '.debug_frame'

Reply via email to