From owner-freebsd-arm@freebsd.org Fri May 20 15:14:34 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E3B67B43486 for ; Fri, 20 May 2016 15:14:34 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from kif.fubar.geek.nz (kif.fubar.geek.nz [178.62.119.249]) by mx1.freebsd.org (Postfix) with ESMTP id B51C41F54 for ; Fri, 20 May 2016 15:14:34 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from zapp (global-5-141.nat-2.net.cam.ac.uk [131.111.5.141]) by kif.fubar.geek.nz (Postfix) with ESMTPSA id A42FBD7A17 for ; Fri, 20 May 2016 15:14:33 +0000 (UTC) Date: Fri, 20 May 2016 16:14:32 +0100 From: Andrew Turner To: 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> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2016 15:14:35 -0000 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 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