From: Fabrice Bellard <fabrice.bellard@free.fr>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] QEMU 0.2 is out
Date: Thu, 05 Jun 2003 00:43:21 +0200 [thread overview]
Message-ID: <3EDE7609.80306@free.fr> (raw)
In-Reply-To: 87vfvnjo50.fsf@student.uni-tuebingen.de
With gcc 3.3 and binutils 2.14.90.0.4 it is better. I fixed some bugs
related to the new jump optimisation I introduced. But there is a big
problem: no relocations are generated for calls to global functions if
they are in the same file as the function call. I am trying various
patches for this.
Fabrice.
Falk Hueffner wrote:
> Fabrice Bellard <fabrice.bellard@free.fr> writes:
>
>
>>Which version of gcc are you using ? Do you use a patched gcc ? Can
>>you give me your spec file and the gcc -v log when you compile
>>op-i386.c ?
>
>
> I use gcc 3.3 or 3.4 snapshots usually.
>
>
>>I am totally unable to get correct code. In particular, I cannot make
>>gcc 3.2.3 generate R_ALPHA_BRADDR relocations. Currently, to get
>>correct code, I must do the following:
>>
>>--
>>int __op_param1;
>>#define PARAM1 ({ int _r; asm("ldah %0,__op_param1($29) !gprelhigh\n" \
>> "lda %0,__op_param1(%0) !gprellow" :
>> "=r"(_r) ); _r; })
>
>
> Ah yes, this is because gcc 3.2.3 doesn't support visibility("hidden")
> yet. If a symbol has global visibility, gcc cannot know it is accessed
> with the same gp, since it might be provided by libc for example. I
> don't think there's any better way do this with 3.2.3.
>
>
>>#define CALL(x) asm volatile ("bsr $26, %0" : : "i" (x))
>>--
>>and use the macro CALL to call a function!
>
>
> This seems to works for me even with 3.2.3. What happens if you don't
> use the macro? Maybe your binutils is too old? I have 2.14.90.0.4-0.1.
>
> Also, concerning the signal handler, siginfo is only filled in with
> 2.4.20 and newer kernels...
>
--
Fabrice.
next prev parent reply other threads:[~2003-06-04 22:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-28 0:58 [Qemu-devel] QEMU 0.2 is out Fabrice Bellard
2003-06-01 18:19 ` Falk Hueffner
2003-06-02 22:52 ` Fabrice Bellard
2003-06-02 23:20 ` Falk Hueffner
2003-06-03 0:49 ` Fabrice Bellard
2003-06-03 13:18 ` Falk Hueffner
2003-06-04 22:43 ` Fabrice Bellard [this message]
2003-06-05 1:12 ` [Qemu-devel] QEMU on Alpha Fabrice Bellard
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=3EDE7609.80306@free.fr \
--to=fabrice.bellard@free.fr \
--cc=qemu-devel@nongnu.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).