Date: Thu, 03 Jul 2025 18:27:56 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 287991] Remove brk and sbrk default symbols Message-ID: <bug-287991-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287991 Bug ID: 287991 Summary: Remove brk and sbrk default symbols Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: brooks@FreeBSD.org Src: https://github.com/brooksdavis/freebsd/tree/nobrk Ports: https://github.com/brooksdavis/freebsd-ports/tree/nobrk The source branch further deprecates the obsolete brk and sbrk interfaces by removing the default symbols making it impossible to link to them with pure C/C++ code. The ports branch adds a libsbrk which allows programs using sbrk to link to the libc implementation through some assembly tricks and a wrapper function. It also adds infrastructure to use libsbrk automatically based on USES=sbrk:lib and fixes ports I was able to test to use this functionality. -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-287991-227>
