bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/16417] executable linked with gold segfaults before main


From: petrinic at gmail dot com
Subject: [Bug gold/16417] executable linked with gold segfaults before main
Date: Sun, 16 Mar 2014 02:40:55 +0000

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]