Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 May 2016 16:14:32 +0100
From:      Andrew Turner <andrew@fubar.geek.nz>
To:        <freebsd-arm@freebsd.org>
Subject:   Re: svn commit: r300303 - in head: . contrib/netbsd-tests/lib/libc/gen contrib/netbsd-tests/lib/libc/sys lib/libc/aarch64 lib/libc/aarch64/sys sys/sys
Message-ID:  <20160520161432.38b78632@zapp>
In-Reply-To: <201605201504.u4KF4m9n040101@repo.freebsd.org>
References:  <201605201504.u4KF4m9n040101@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
If you run arm64 I've removed the legacy brk and sbrk functions from
libc. If you are building software on arm64 make sure you have and
up to date devel/binutils. Old versions of this port may call sbrk,
however this hasn't been the case for around 6 weeks.

Andrew

On Fri, 20 May 2016 15:04:48 +0000 (UTC)
Andrew Turner <andrew@FreeBSD.org> wrote:

> Author: andrew
> Date: Fri May 20 15:04:48 2016
> New Revision: 300303
> URL: https://svnweb.freebsd.org/changeset/base/300303
> 
> Log:
>   Remove brk and sbrk from arm64. They were defined in The Single UNIX
>   Specification, Version 2, but marked as legacy, and have been
> removed from later specifications. After 12 years it is time to
> remove them from new architectures when the main use for sbrk is an
> invalid method to attempt to find how much memory has been allocated
> from malloc. 
>   There are a few places in the tree that still call sbrk, however
> they are not used on arm64. They will need to be fixed to cross build
> from arm64, but these will be fixed in a follow up commit.
>   
>   Old copies of binutils from ports called into sbrk, however this
> has been fixed around 6 weeks ago. It is advised to update binutils
> on arm64 before installing a world that includes this change.
>   
>   Reviewed by:	brooks, emaste
>   Obtained from:	brooks
>   Relnotes:	yes
>   Sponsored by:	ABT Systems Ltd
>   Differential Revision:	https://reviews.freebsd.org/D6464
> 
> Deleted:
>   head/lib/libc/aarch64/sys/brk.S
>   head/lib/libc/aarch64/sys/sbrk.S
> Modified:
>   head/UPDATING
>   head/contrib/netbsd-tests/lib/libc/gen/t_dir.c
>   head/contrib/netbsd-tests/lib/libc/sys/t_mlock.c
>   head/lib/libc/aarch64/Symbol.map
>   head/lib/libc/aarch64/sys/Makefile.inc
>   head/sys/sys/param.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160520161432.38b78632>