This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [libffi] closures for sparc


On Sun, Jan 05, 2003 at 11:26:30AM -0500, Jeff Sturm wrote:
> On Sat, 4 Jan 2003, Andreas Tobler wrote:
> > Hm, powerpc-unknown-linux-gnu doesn't like the static:
> 
> > .libs/ffitest.o: could not read symbols: Bad value
> 
> Strange.  Surely this isn't a problem in libffi though?
> 
> Can you try a newer ld and see if it fixes the problem?  If not, let me
> know and I'll attempt a cross build (I don't have a powerpc-linux machine
> handy).

I get the same on ppc-linux. To me this looks like a bug in gcc:

/* { dg-do link } */
/* { dg-options "-O2 -fpic" } */
static char foo [128];
void bar (void)
{
  ((void (*)(void))foo)();
}
int main ()
{
}

results in:
...
        bl foo@plt
...
        .lcomm  foo,128,4

Note @plt used for local symbol.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]