Re: big number of relocations in gtk2 binding



Thierry Vignaud <tvignaud mandriva com> writes:

I put a new version of the patch at
http://asofyet.org/muppet/software/gtk2-perl/relocations-2.patch .

Diffstat says:

    213 files changed, 328 insertions(+), 226 deletions(-)

and relinfo.pl says:

    267 relocations, 228 relative (85%), 3845 PLT entries, 26 for  
local syms (0%), 0 users

That's 85% versus 76% with the previous patch, and a drop of 3 PLTs.   
Nearly all of the PLTs are for things from dependent libraries, so  
there's not much we can do about that.

note that with that release, -fPIC became mandatory on x86_64:

[ LD blib/arch/auto/Gtk2/Gtk2.so ]
/usr/bin/ld: xs/GtkStock.o: relocation R_X86_64_PC32 against `gtk2perl_translate_func_create' can not be 
used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status

The actual issue is with visibility. On x86_64, I'd to reverse some
bits:

Attachment: relocations-fixes.patch
Description: Text Data


$ relinfo.pl blib/arch/auto/Gtk2/Gtk2.so       
blib/arch/auto/Gtk2/Gtk2.so: 262 relocations, 228 relative (87%), 3856 PLT entries, 28 for local syms (0%), 0 
users


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