bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/13229] V2 of getsymbol linker plugin interface is not supported


From: hubicka at gcc dot gnu.org
Subject: [Bug ld/13229] V2 of getsymbol linker plugin interface is not supported by GNU LD
Date: Thu, 06 Oct 2011 19:09:55 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=13229

--- Comment #14 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-10-06 
19:09:55 UTC ---
Hmm, reproducing the situation is harder with the COMDAT hack in your compiler.
Here is testcase that reproduces w/o GCC patch.

With BFD and patch for V2 API:

address@hidden:/abuild/jh/trunk-3/build-inst7/gcc> cat t.C
int call_something (int);
inline void optimize_me_out (void)                                              
{ 
  call_something(0);
}
__attribute__ ((visibility("hidden")))
int optimize_me_out2 (int param)                                                
{ 
  if ((void *)optimize_me_out != (void *)call_something)
    return call_something(0);                                                   
}
void test2 (void)
{ 
  optimize_me_out();                                                            
}
address@hidden:/abuild/jh/trunk-3/build-inst7/gcc> 
/abuild/jh/trunk-install/bin/g++
-O2 t.C  --shared -fPIC -o t.so -flto -fuse-linker-plugin -fno-early-inlining
address@hidden:/abuild/jh/trunk-3/build-inst7/gcc> nm -D t.so |grep optimize
0000000000000000 W _Z15optimize_me_outv

With gold and V2 API:

address@hidden:/abuild/jh/trunk-3/build-inst7/gcc> 
/abuild/jh/trunk-install/bin/g++
-O2 t.C  --shared -fPIC -o t.so -flto -fuse-linker-plugin -fno-early-inlining
address@hidden:/abuild/jh/trunk-3/build-inst7/gcc> nm -D t.so |grep optimize
address@hidden:/abuild/jh/trunk-3/build-inst7/gcc>

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]