https://sourceware.org/bugzilla/show_bug.cgi?id=16417
Aleksandar Petrinic <petrinic at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |petrinic at gmail dot com --- Comment #3 from Aleksandar Petrinic <petrinic at gmail dot com> --- I investigated this bug a more further and this is only triggered when gold is used in combination with -Wl,--as-needed. I'm on Exherbo and will attach cave info. Anyway, take a look: x86_64-pc-linux-gnu-g++ -pthread -std=gnu++0x -pedantic -ggdb -O2 -pipe -march=native -pedantic -c -o print_exports.o print_exports.cc x86_64-pc-linux-gnu-g++ -pthread -std=gnu++0x -pedantic -ggdb -O2 -pipe -march=native -pedantic -o print_exports print_exports.o -Wl,--as-needed -pthread -Wl,-fuse-ld=gold ./print_exports -->(segfault) x86_64-pc-linux-gnu-g++ -pthread -std=gnu++0x -pedantic -ggdb -O2 -pipe -march=native -pedantic -o print_exports print_exports.o -Wl,--as-needed -pthread -Wl,-fuse-ld=bfd ./print_exports --> works x86_64-pc-linux-gnu-g++ -pthread -std=gnu++0x -pedantic -ggdb -O2 -pipe -march=native -pedantic -o print_exports print_exports.o -pthread -Wl,-fuse-ld=gold (Pay attention... as-needed is missing here) ./print_exports --> works -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils