int i;
static int * g(void)
{
return &i;
}
struct S {
static int * f(void)
{
static int *p = g();
return p;
}
};
int * wrap2_f (void)
{
return S::f();
}
g++ -O2 -fpic -shared -o lib.so lib.cc -Wl,-Bsymbolic
(assuming gcc has been configured to use STB_GNU_UNIQUE).
There are no r
--- Additional Comments From hjl dot tools at gmail dot com 2010-03-26
13:36 ---
Created an attachment (id=4682)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4682&action=view)
A patch
Please try this patch.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11434
--- Y
--- Additional Comments From hjl dot tools at gmail dot com 2010-03-26
13:42 ---
Created an attachment (id=4683)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4683&action=view)
An updated patch
We don't need to check unique_global for ifunc symbols.
--
What|Rem
--- Additional Comments From hjl dot tools at gmail dot com 2010-03-26
15:02 ---
A patch with a testcase is posted at
http://sourceware.org/ml/binutils/2010-03/msg00395.html
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11434
--- You are receiving this mail because: ---