... seems the body of the original email was lost somewhere in
cyberspace...
here is the original body...
Hi,
I am trying to build qemu (http://www.qemu.org) but get the following
messages when linking:
...
LINK sparc-softmmu/qemu-system-sparc
ld: fatal: register REG_G2 symbol used incompatibly:
(file cpu-exec.o symbol 'env', file /lib/sparcv9/libm.so symbol
'<SCRATCH REGISTER 2>');
ld: fatal: file processing errors. No output written to qemu-system-sparc
collect2: ld returned 1 exit status
gmake[1]: *** [qemu-system-sparc] Error 1
gmake: *** [subdir-sparc-softmmu] Error 2
...
elfdump shows that both g%2 and g%3 are referenced as undef in libm.so:
...
[431] REG_G2 0x0000000000000000 REGI GLOB D 0 UNDEF
...
[448] REG_G3 0x0000000000000000 REGI GLOB D 0 UNDEF ...
According to the SPARCv9 ABI
(http://developers.sun.com/solaris/articles/sparcv9abi.html) both g%2 and
g%3 are for applications only.
I have not been able to locate any current libm sources, but suspect that
the library is not buildt properly with -xregs=no%appl.
The problem is present in both OpenSolaris 2009.06 and still present in
Solaris 11 Express.
Regards
Palle
On Sun, 21 Nov 2010, Palle Lyckegaard wrote:
Date: Sun, 21 Nov 2010 19:59:28
From: Palle Lyckegaard <pa...@lyckegaard.dk>
To: opensolaris-code@opensolaris.org
Subject: [osol-code] Problem with references to SPARC global regiters g%2 and
g%3 in /lib/sparcv9/libm.so when building qemu
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code