From: "Blue Swirl" <blauwirbel@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Alpha build failure: dyngen picking out a nameless symbol
Date: Thu, 15 Nov 2007 22:01:41 +0200 [thread overview]
Message-ID: <f43fc5580711151201m27889636l9b9945c561c90a59@mail.gmail.com> (raw)
In-Reply-To: <473A9DED.6020308@shaddybaddah.name>
On 11/14/07, Shaddy Baddah <shaddy.baddah@shaddybaddah.name> wrote:
> Hi,
>
> I am building qemu from CVS, on a sun4u machine. I have used the
> following configure command to ensure a sun4m userland build:
>
> ../qemu/configure --prefix=/opt/qemu-cvs --sparc_cpu=v8
>
> I get the following message confirming the use of GCC 3:
>
> Looking for gcc 3.x
> Found "gcc-3.4"
>
> Eventually, I get the error I have included at the base of this email. I
> have attached the op.h generated. As you will be able to see from the
> line below, a nameless symbol is being referenced (after the &):
>
> op.h:24: *(uint32_t *)(gen_code_ptr + 0) = ((*(uint32_t
> *)(gen_code_ptr + 0)) & ~0x3fffff) | ((((long)(&) + 0) >> 10) & 0x3fffff);
>
> ^
> I've followed the dyngen code as best as I can, and AFAICT that code is
> right. The symbol referenced is nameless in the ELF symbol table.
The problem is in op_reset_FT0. Source is like this:
void OPPROTO glue(op_reset_FT, REG) (void)
{
glue(FT, REG) = 0;
RETURN();
}
The code generated for op_reset_FT0 is like this:
.section .rodata.cst8,"aM",@progbits,8
.align 8
.LLC0:
.long 0
.long 0
.section ".text"
.align 4
.global op_reset_FT0
.type op_reset_FT0, #function
.proc 020
op_reset_FT0:
.LLFB152:
.loc 1 30 0
!#PROLOGUE# 0
!#PROLOGUE# 1
.loc 1 31 0
sethi %hi(.LLC0), %g1
ldd [%g1+%lo(.LLC0)], %f8
std %f8, [%g6+1176]
.loc 1 32 0
nop
retl
nop
.LLFE152:
.size op_reset_FT0, .-op_reset_FT0
So gcc puts the zero constant to .rodata.cst8 and generates code to
load the zero value from this location. This method is not supported
by dyngen for Sparc, but ARM uses similar method for all (?)
constants.
next prev parent reply other threads:[~2007-11-15 20:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-14 7:04 [Qemu-devel] Alpha build failure: dyngen picking out a nameless symbol Shaddy Baddah
2007-11-14 8:10 ` [Qemu-devel] now ppc build failure: dyngen: empty code for op_splatw_T1_64 Shaddy Baddah
2007-11-14 13:13 ` [Qemu-devel] and now bus error for i386 guest Shaddy Baddah
2007-11-14 20:42 ` Blue Swirl
2007-12-04 4:21 ` Shaddy Baddah
2007-12-04 13:23 ` Shaddy Baddah
2007-12-04 18:54 ` Blue Swirl
2007-12-05 14:33 ` Shaddy Baddah
2007-12-05 21:36 ` Blue Swirl
2007-12-06 0:17 ` Shaddy Baddah
2007-12-06 9:10 ` Blue Swirl
2007-12-06 15:19 ` Blue Swirl
2007-11-15 20:01 ` Blue Swirl [this message]
2007-11-15 22:50 ` [Qemu-devel] Alpha build failure: dyngen picking out a nameless symbol Paul Brook
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=f43fc5580711151201m27889636l9b9945c561c90a59@mail.gmail.com \
--to=blauwirbel@gmail.com \
--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).