[Webkit-unassigned] [Bug 70610] TEXTREL in libjavascriptcoregtk-1.0.so.0.11.0 on x86 (or i586)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 24 02:59:08 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=70610





--- Comment #3 from Alexey Shabalin <a.shabalin at gmail.com>  2011-10-24 02:59:09 PST ---
I was build for ALTLinux for x86.
Gentoo have some warning. http://gentwoo.elisp.net/emerges/88345

QA Notice: The following files contain runtime text relocations
 Text relocations force the dynamic linker to perform extra
 work at startup, waste system resources, and may pose a security
 risk.  On some architectures, the code may not even function
 properly, if at all.
 For more information, see http://hardened.gentoo.org/pic-fix-guide.xml
 Please include the following list of files in your report:
TEXTREL usr/lib/libjavascriptcoregtk-3.0.so.0.11.0

For reproduce this:
- build for i586 with --disable-silent-rules
- you can see for libjavascriptcoregtk
  "/usr/bin/ld: warning: creating a DT_TEXTREL in a shared object."
- after build you can check:

$ eu-findtextrel ./libwebkitgtk-3.0.so.0.11.0 
eu-findtextrel: no text relocations reported in './libwebkitgtk-3.0.so.0.11.0'

$ eu-findtextrel ./libjavascriptcoregtk-3.0.so.0.11.0 
either the file containing the function '_ZN3JSC3JIT13testPrototypeENS_7JSValueERNS_22AbstractMacroAssemblerINS_12X86AssemblerEE8JumpListE' or the file containing the function 'cti_op_put_by_id_generic' is not compiled with -fpic/-fPIC
either the file containing the function 'jsRoundThunk' or the file containing the function 'expThunk' is not compiled with -fpic/-fPIC
either the file containing the function 'expThunk' or the file containing the function 'logThunk' is not compiled with -fpic/-fPIC
either the file containing the function 'logThunk' or the file containing the function 'floorThunk' is not compiled with -fpic/-fPIC
either the file containing the function 'floorThunk' or the file containing the function 'ceilThunk' is not compiled with -fpic/-fPIC
either the file containing the function 'ceilThunk' or the file containing the function 'jsRound' is not compiled with -fpic/-fPIC

simple patch in attach, but i have doubts about Source/JavaScriptCore/jit/JSInterfaceJIT.h in #elif CPU(X86)
 static const RegisterID regT3 = X86Registers::ebx;

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list