ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] webkitgtk TEXTREL
Date: Sat, 22 Oct 2011 01:07:14 +0400
Message-ID: <20111021210714.GA6698@atlas.home> (raw)
In-Reply-To: <20111021171325.GA32248@altlinux.org>

[-- Attachment #1: Type: text/plain, Size: 1577 bytes --]

On Fri, Oct 21, 2011 at 09:13:25PM +0400, Dmitry V. Levin wrote:
> On Fri, Oct 21, 2011 at 08:49:46PM +0400, Alexey Shabalin wrote:
> > Вечер добрый.
> > Прошу помощи у зала.
> > В новом webkitgtk выделили отдельную библиотеку libjavascriptcoregtk,
> > в которой есть ассемблерная вставка.
> > И теперь появилась ошибка TEXTREL.
> > Багу в апстрим повесил, но вдруг кто-то в состоянии исправить, не
> > дожидаясь апстрима.
> > http://git.altlinux.org/tasks/56980/build/100/i586/log
> 
> В двух файлах наблюдается следующее:
> 
> #if (OS(LINUX) || OS(FREEBSD)) && CPU(X86_64)
> #define SYMBOL_STRING_RELOCATION(name) #name "@plt"
> #elif OS(DARWIN) || (CPU(X86_64) && COMPILER(MINGW) && !GCC_VERSION_AT_LEAST(4, 5, 0))
> #define SYMBOL_STRING_RELOCATION(name) "_" #name
> #elif CPU(X86) && COMPILER(MINGW)
> #define SYMBOL_STRING_RELOCATION(name) "@" #name "@4"
> #else
> #define SYMBOL_STRING_RELOCATION(name) #name
> #endif
> 
> Попробуйте заменить
> #if (OS(LINUX) || OS(FREEBSD)) && CPU(X86_64)
> на
> #if (OS(LINUX) || OS(FREEBSD)) && (CPU(X86) || CPU(X86_64))
> и посмотреть, что из этого выйдет.
> В любом случае бага зарыта здесь.

Похоже, просто так исправить это не получится, поскольку в
webkit/Source/JavaScriptCore/jit/JSInterfaceJIT.h в #elif CPU(X86)
наблюдается

        static const RegisterID regT3 = X86Registers::ebx;

в то время как для выполнения вызова через PLT требуется, чтобы в %ebx
находился адрес GOT.  Так что придётся ещё разбираться, в какие места
нужно добавить получение адреса GOT перед такими вызовами.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

      parent reply	other threads:[~2011-10-21 21:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-21 16:49 Alexey Shabalin
2011-10-21 17:13 ` Dmitry V. Levin
2011-10-21 17:55   ` Alexey Shabalin
2011-10-21 21:07   ` Sergey Vlasov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111021210714.GA6698@atlas.home \
    --to=vsu@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git