------- Comment #2 from espindola at google dot com 2008-11-19 17:49 ------- To reproduce: g++ -O2 -c thunk.C -flto-single -o thunk-lto.o g++ -O2 -c thunk.C -o thunk.o
readelf -s thunk.o | grep Th 35: 0000000000000000 6 FUNC WEAK DEFAULT 19 _ZThn8_N1C1fEv readelf -s thunk-lto.o | grep Th 26: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND _ZThn8_N1C1fEv -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37352