http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56088
--- Comment #8 from Václav Zeman <vhaisman at gmail dot com> 2013-01-28 20:12:49 UTC --- (In reply to comment #7) > What linker are you using? It seems to work for me with GNU ld 2.23.1. > > Using > > > ./xg++ -B. t2.ii -r -nostdlib -flto -std=c++11 -march=amdfam10 -mfxsr -fPIC > > -O3 -flto-partition=none -fuse-linker-plugin > > and preprocessed source. Did you use the same flags compiling timehelper.o? I am seeing this when I add -Wl,-v to command line: /usr/bin/ld.gold -plugin /home/wilx/gcc48/libexec/gcc/x86_64-linux-gnu/4.8.0/liblto_plugin.so -plugin-opt=/home/wilx/gcc48/libexec/gcc/x86_64-linux-gnu/4.8.0/lto-wrapper -plugin-opt=-fresolution=/tmp/cchgMTW0.res --sysroot=/ --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o out.so -r -L/home/wilx/gcc48/lib/gcc/x86_64-linux-gnu/4.8.0 -L/home/wilx/gcc48/lib/gcc/x86_64-linux-gnu/4.8.0/../../../../lib64 -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib64 -L/home/wilx/gcc48/lib/gcc/x86_64-linux-gnu/4.8.0/../../.. -v ./timehelper.o GNU gold (GNU Binutils for Ubuntu 2.22.90.20120924) 1.11 g++-4.8 @/tmp/cc2L4QqZ.args