Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Dec 2019 10:43:16 -0800
From:      John Baldwin <jhb@FreeBSD.org>
To:        Justin Hibbits <jhibbits@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r356113 - in head: libexec/rtld-elf sys/kern sys/sys
Message-ID:  <08f3808c-0a93-ac7c-9e20-1798eeb8b0e1@FreeBSD.org>
In-Reply-To: <201912270407.xBR473Zh054687@repo.freebsd.org>
References:  <201912270407.xBR473Zh054687@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/26/19 8:07 PM, Justin Hibbits wrote:
> Author: jhibbits
> Date: Fri Dec 27 04:07:03 2019
> New Revision: 356113
> URL: https://svnweb.freebsd.org/changeset/base/356113
> 
> Log:
>   Eliminate the last MI difference in AT_* definitions (for powerpc).
>   
>   Summary:
>   As a transition aide, implement an alternative elfN_freebsd_fixup which
>   is called for old powerpc binaries.  Similarly, add a translation to rtld to
>   convert old values to new ones (as expected by a new rtld).
>   
>   Translation of old<->new values  is incomplete, but sufficient to allow an
>   installworld of a new userspace from an old one when a new kernel is running.
>   
>   Test Plan:
>   Someone needs to see how a new kernel/rtld/libc works with an old
>   binary.  If if works we can probalby ship this.  If not we probalby need
>   some more compat bits.
>   
>   Submitted by:	brooks
>   Reviewed by:	jhibbits
>   Differential Revision:	https://reviews.freebsd.org/D20799

This would be much simpler as a 'sv_copyout_auxargs()' hook instead.  You could
even set it directly in the ELFv1 sysvec instead of needing a runtime check.
You could also move it purely into the powerpc code at that point and not need
to stick it in the MI file.

It probably should also be under COMPAT_FREEBSD12.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?08f3808c-0a93-ac7c-9e20-1798eeb8b0e1>