Re: [RFA] Check solib bfd arch

Mark Kettenis
2009-09-18T14:08:55Z

> Date: Fri, 18 Sep 2009 14:50:22 +0200 (CEST)
> From: "Ulrich Weigand" <uweigand@de.ibm.com>
>
> In your particular case, the result of compatible appears to indicate
> that the target architecture sparc:v9 *cannot* run code written for
> the architecture sparc:v9a; if this were true (I'm not sure about
> such sparc architecture details), then it would be correct to reject
> those shared libraries ...

Yes, v9a is an extension to v9, so a target that only has support for
v9 cannot run v9a binaries.

I suppose we needsto add the necessary magic to sparc-sol-nat.c to set
the proper architecture. I'll need to figure out how to extract that
information from the system. Is it possible to create a target
description that just contains the architecture and not all the
register stuff?