From nobody Sun Nov 26 03:44:10 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SdF2p1S2fz52YWX for ; Sun, 26 Nov 2023 03:44:34 +0000 (UTC) (envelope-from joseph@josephholsten.com) Received: from pb-smtp1.pobox.com (pb-smtp1.pobox.com [64.147.108.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SdF2n6wX3z4csH for ; Sun, 26 Nov 2023 03:44:33 +0000 (UTC) (envelope-from joseph@josephholsten.com) Authentication-Results: mx1.freebsd.org; none Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 398281C2CDD; Sat, 25 Nov 2023 22:44:33 -0500 (EST) (envelope-from joseph@josephholsten.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=date:from :to:message-id:in-reply-to:references:subject:mime-version :content-type; s=sasl; bh=akjeeBGBAYrm+lS6vcwTovasoLNBzIQ5jvGgfB MqZZU=; b=kZifR2I93CbF/Fpky3k1s/7sjJYSqNDYv8oeYyzq6HdeNigvU5p4WS EWE3PlYNs+VXzPobBus1q6pI7UyQHw+xhQsGu+59p8fsH/qM+1e2LPH6BqsxRzqp Uz7MeVUzsajEiZSCBdo/jBzrRRXYObRWznvTaPA1E4lXlA9sxZgj8= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 217F71C2CDC; Sat, 25 Nov 2023 22:44:33 -0500 (EST) (envelope-from joseph@josephholsten.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=josephholsten.com; h=date:from:to:message-id:in-reply-to:references:subject:mime-version:content-type; s=2016-12.pbsmtp; bh=akjeeBGBAYrm+lS6vcwTovasoLNBzIQ5jvGgfBMqZZU=; b=pTIEJfza0mFT4mVGgFlydGETnjUa/4Q5AHiWOja0ABxIKsHErhPcWLxHxA3wE2rnbaxsGLMQJBSuYfvyrY3rBXgcfx2wFMG4//ofksOMLhaVxHT0vXvfiPZnQB5wyjRk9EZYblhjd3pyZU/FnNfQHAIKSB9EGcgDzUBZiYQftJ0= Received: from [192.168.32.35] (unknown [50.46.14.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 34C4D1C2CD9; Sat, 25 Nov 2023 22:44:31 -0500 (EST) (envelope-from joseph@josephholsten.com) Date: Sat, 25 Nov 2023 19:44:10 -0800 From: joseph@josephholsten.com To: freebsd-arm@freebsd.org, Bakul Shah Message-ID: <949f8f16-1219-4f4a-abf6-f9727c95681b@Spark> In-Reply-To: <2F758BA2-F7F5-4A2C-85CF-6969EE50309C@iitbombay.org> References: <2F758BA2-F7F5-4A2C-85CF-6969EE50309C@iitbombay.org> Subject: Re: sbrk X-Readdle-Message-ID: 949f8f16-1219-4f4a-abf6-f9727c95681b@Spark List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="6562bf1d_3bd91d5a_282" X-Pobox-Relay-ID: 1B7FC1DC-8C0E-11EE-B197-78DCEB2EC81B-15777318!pb-smtp1.pobox.com X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:19151, ipnet:64.147.108.0/24, country:US] X-Rspamd-Queue-Id: 4SdF2n6wX3z4csH --6562bf1d_3bd91d5a_282 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Yes, it=E2=80=99s no longer included. It=E2=80=99s long been deprecated, = but that does make porting things like the original vi a bit challenging.= Is there a particular project you=E2=80=99re trying to use it for=3F -- Joseph Holsten On Nov 25, 2023 at 19:41 -0800, Bakul Shah , wrote= : > Does sbrk not exist on =46reeBSD-14 on arm64=3F Is this by design=3F > > =24=C2=A0cat sb.c > =23include > =23include > int main(int c, char**v) =7B > =C2=A0 =C2=A0 =C2=A0 =C2=A0 void *x =3D sbrk(102400); > =C2=A0 =C2=A0 =C2=A0 =C2=A0 printf(=22%p=5Cn=22, x); > =7D > =24 cc sb.c > ld: error: undefined symbol: sbrk > >>> referenced by sb.c > >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /tmp/sb-e97caf.o:(= main) > cc: error: linker command failed with exit code 1 (use -v to see invoca= tion) > --6562bf1d_3bd91d5a_282 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Yes, it=E2=80=99s no longer included. It=E2=80=99s = long been deprecated, but that does make porting things like the original= vi a bit challenging.

Is there a particular project you=E2=80=99re trying to use it for=3F

--
Joseph Holsten
On Nov 25, 2023 at 19:41 -0800, Bak= ul Shah <bakul=40iitbombay.org>, wrote:
Does sbrk not exist on =46reeBSD-14 on arm64=3F Is this by desi= gn=3F

=24&=23160;cat sb.c
=23include <unistd.h>
=23include <stdio.h>
int main(int c, char**v) =7B
&=23160; &=23160; &=23160; &=23160; void *x =3D sbrk(102400);
&=23160; &=23160; &=23160; &=23160; printf(=22%p=5Cn=22, x);
=7D
=24 cc sb.c
ld: error: undefined symbol: sbrk
>>> referenced by sb.c
>>> &=23160; &=23160; &=23160; &=23160; &=23160; &=23160; &= =23160; /tmp/sb-e97caf.o:(main)
cc: error: linker command failed with exit code 1 (use -v to see inv= ocation)

--6562bf1d_3bd91d5a_282--