http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60568
--- Comment #5 from David Kredba <nheghathivhistha at gmail dot com> --- This is the command line that is enough to get the crash: /usr/bin/x86_64-pc-linux-gnu-g++ -m32 -fPIC -flto=4 -fuse-linker-plugin -O2 -ggdb -pipe -march=core2 -mtune=core2 -mno-3dnow -mno-sse4.2 -mno-avx -Wl,-Bsymbolic,-znoexecstack -flto=4 -fuse-linker-plugin -Wl,--as-needed -Wl,-O2 -Wl,-flto -O2 -ggdb -pipe -march=core2 -mtune=core2 -mno-3dnow -mno-sse4.2 -mno-avx -o libx265.so.0.8 encoder/CMakeFiles/encoder.dir/__/Lib/TLibEncoder/TEncSbac.cpp.o -r -nostdlib When I ran it with /usr/bin/x86_64-pc-linux-gnu-g++ -m32 -fPIC -flto=4 -fuse-linker-plugin -O2 -ggdb -pipe -march=core2 -mtune=core2 -mno-3dnow -mno-sse4.2 -mno-avx -Wl,-Bsymbolic,-znoexecstack -flto=4 -fuse-linker-plugin -Wl,--as-needed -Wl,-O2 -Wl,-flto -O2 -ggdb -pipe -march=core2 -mtune=core2 -mno-3dnow -mno-sse4.2 -mno-avx -o libx265.so.0.8 -fpreprocessed ./TEncSbac.ii -r -nostdlib (or without -fpreprocessed) it does link the library! I attached gzipped object file got using -march/tune=core2.