Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Dec 2013 19:53:24 -0800
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        John-Mark Gurney <jmg@funkthat.com>
Cc:        "svn-src-head@freebsd.org" <svn-src-head@FreeBSD.org>, svn-src-all <svn-src-all@FreeBSD.org>, Marcel Moolenaar <marcel@FreeBSD.org>, "src-committers@freebsd.org" <src-committers@FreeBSD.org>
Subject:   Re: svn commit: r260022 - head/lib/libkvm
Message-ID:  <5C67568C-389D-4023-9076-DC2E1608D187@xcllnt.net>
In-Reply-To: <20131229033245.GY99167@funkthat.com>
References:  <201312282301.rBSN1wWP002326@svn.freebsd.org> <20131229010848.GV99167@funkthat.com> <7F0C4872-DB2A-4E6B-A8B8-E366989312C5@xcllnt.net> <20131229033245.GY99167@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_134EE2E7-477A-4012-85C1-097B83F89B11
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii


On Dec 28, 2013, at 7:32 PM, John-Mark Gurney <jmg@funkthat.com> wrote:

> Marcel Moolenaar wrote this message on Sat, Dec 28, 2013 at 18:49 -0800:
>> 
>> On Dec 28, 2013, at 5:08 PM, John-Mark Gurney <jmg@funkthat.com> wrote:
>> 
>>> Marcel Moolenaar wrote this message on Sat, Dec 28, 2013 at 23:01 +0000:
>>>> Author: marcel
>>>> Date: Sat Dec 28 23:01:57 2013
>>>> New Revision: 260022
>>>> URL: http://svnweb.freebsd.org/changeset/base/260022
>>>> 
>>>> Log:
>>>> Allow building a cross libkvm by setting TARGET_ARCH. The library so
>>>> produced will be called libkvm-${ARCH} instead of libkvm. This allows
>>>> installing it alongside the native version.
>>>> For symbol lookups, use ps_pglobal_lookup() instead of __fdnlist()
>>>> when building a cross libkvm. It is assumed that the cross tool that
>>>> uses the cross libkvm also provides an implementation for this
>>>> proc_services function.
>>>> 
>>>> Note that this commit does not change any of the architecture-specific
>>>> code for cross-compilation.
>>> 
>>> Shouldn't we be putting cross compiled libaries in another location
>>> than /lib?  Kind of like the compat32 libs?
>> 
>> I don't think we're there yet. libkvm is not ready for generic
>> cross building and we don't really have the infrastructure for
>> it either. For one, we really need to install CPU-specific
>> headers on the host.
>> 
>> We can manually cross-build a few things, like binutils and gdb
>> and I see value to extend that to kgdb, but that's about it.
> 
> Then what was the goal of this commit?  Was it to have an i386
> compatible libkvm that links w/ amd64 binaries? or?

The goal was to get a step closer to having useful cross-tools,
including those that need libkvm. In this case it allowed me
to make an ia64 cross-kgdb, useful for core analysis and/or
remote debugging.

-- 
Marcel Moolenaar
marcel@xcllnt.net



--Apple-Mail=_134EE2E7-477A-4012-85C1-097B83F89B11
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAlK/nLQACgkQpgWlLWHuifZx7gCbBnY6wJFFR2GGJr78OY1MPZAK
MlYAn3bQQ+q/HU4ZALegoluqaZiEMYGW
=FkZa
-----END PGP SIGNATURE-----

--Apple-Mail=_134EE2E7-477A-4012-85C1-097B83F89B11--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5C67568C-389D-4023-9076-DC2E1608D187>