Bug 11694 - Statically linked programs trying to dlopen themselves hang when linked with gold
Summary: Statically linked programs trying to dlopen themselves hang when linked with ...
Status: RESOLVED DUPLICATE of bug 10893
Alias: None
Product: binutils
Classification: Unclassified
Component: gold (show other bugs)
Version: 2.20
: P2 normal
Target Milestone: ---
Assignee: Ian Lance Taylor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-11 09:35 UTC by Bernhard Rosenkraenzer
Modified: 2010-08-04 08:58 UTC (History)
2 users (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Rosenkraenzer 2010-06-11 09:35:48 UTC
When using gold (Last tested version: GNU gold (Linux/GNU Binutils 2.20.51.0.9.20100526) 1.9), the 
check done in various autoconf scripts (checking whether a statically linked program can dlopen itself) 
hangs forever, with conftest taking up 100% CPU time.

Switching the linker to the old ld fixes it.

More information on the issue (including the theory that it is related to gold's handling of 
STT_GNU_IFUNC symbols) can be found at:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584607
Comment 1 Ian Lance Taylor 2010-06-11 13:10:44 UTC
gold does not yet support STT_GNU_IFUNC symbols at all.
Comment 2 Ian Lance Taylor 2010-08-04 08:58:17 UTC
This is definitely an STT_GNU_IFUNC issue.

*** This bug has been marked as a duplicate of 10893 ***