configure tests, howto ?

Luciano Miguel Ferreira Rocha strange at nsk.no-ip.org
Tue Jan 2 06:42:21 PST 2007


On Tue, Jan 02, 2007 at 03:14:16PM +0100, Joakim Tjernlund wrote:
> Anyone know how to translate this configure test to uClibc:
> 
> # See whether gas has R_PPC_REL16 relocs.
> AC_CACHE_CHECK(for R_PPC_REL16 gas support, libc_cv_ppc_rel16, [dnl
> cat > conftest.s <<\EOF
> 	.text
> 	addis 11,30,_GLOBAL_OFFSET_TABLE_-. at ha
> EOF

Try this:
	.text
	here:
	addis 11,30,here-. at ha

Some PPC systems use a different assembly sintax:
	.text
	here:
	addis r11,r30,ha16(here-.)

-- 
lfr
0/0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://busybox.net/lists/uclibc/attachments/20070102/c39e8d1f/attachment.pgp 


More information about the uClibc mailing list