[PATCH] Improve and consolidate sparc PIC assembler.

David Miller davem at davemloft.net
Sat Apr 13 21:58:44 CEST 2013


From: Torbjorn Granlund <tg at gmplib.org>
Date: Sat, 13 Apr 2013 21:52:40 +0200

> Really?  What does our case have to do with TLS?  The example error
> message uses a TLS reloc, we don't.

Implicit section at the beginning of assembly?

Here, try these two things:

1) Build:

	static const char foo[] = { 1, 2, 3, 4, 5, 6 };

	const char *test(void)
	{
		return &foo[0];
	}

  with gcc -m64 -O2 -fPIC -S -o test.s test.c, let me know what
  gcc emits.

2) Put ctz_table at the end of gcd_1.asm and see if that makes
   a difference.

We'll need to do these kinds of experiments anyways, because once
we determine that it's a Solaris AS bug we'll need to know precisely
how to work around it or add a acinclude.m4 test for the problem.

Thanks.


More information about the gmp-devel mailing list