Date: Sat, 25 Nov 2023 19:41:11 -0800 From: Bakul Shah <bakul@iitbombay.org> To: freebsd-arm@freebsd.org Subject: sbrk Message-ID: <2F758BA2-F7F5-4A2C-85CF-6969EE50309C@iitbombay.org>
next in thread | raw e-mail | index | archive | help
--Apple-Mail=_BE49AF84-1DD8-4F35-AF29-6589DDEC5993 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Does sbrk not exist on FreeBSD-14 on arm64? Is this by design? $ cat sb.c #include <unistd.h> #include <stdio.h> int main(int c, char**v) { void *x = sbrk(102400); printf("%p\n", x); } $ cc sb.c ld: error: undefined symbol: sbrk >>> referenced by sb.c >>> /tmp/sb-e97caf.o:(main) cc: error: linker command failed with exit code 1 (use -v to see invocation) --Apple-Mail=_BE49AF84-1DD8-4F35-AF29-6589DDEC5993 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii <html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Does sbrk not exist on FreeBSD-14 on arm64? Is this by design?<div><br></div><div><font face="Menlo">$ </font>cat sb.c</div><div>#include <unistd.h></div><div>#include <stdio.h></div><div>int main(int c, char**v) {</div><div> void *x = sbrk(102400);</div><div> printf("%p\n", x);</div><div>}</div><div>$ cc sb.c</div><div>ld: error: undefined symbol: sbrk</div><div>>>> referenced by sb.c</div><div>>>> /tmp/sb-e97caf.o:(main)</div><div>cc: error: linker command failed with exit code 1 (use -v to see invocation)</div><div><br></div></body></html> --Apple-Mail=_BE49AF84-1DD8-4F35-AF29-6589DDEC5993--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2F758BA2-F7F5-4A2C-85CF-6969EE50309C>