This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Check solib bfd arch
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: uweigand at de dot ibm dot com
- Cc: brobecker at adacore dot com, teawater at gmail dot com, gdb-patches at sourceware dot org, msnyder at vmware dot com
- Date: Fri, 18 Sep 2009 16:07:46 +0200 (CEST)
- Subject: Re: [RFA] Check solib bfd arch
- References: <200909181250.n8ICoMmD010948@d12av02.megacenter.de.ibm.com>
> 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?