[Bug 287991] Remove brk and sbrk default symbols

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 03 Jul 2025 18:27:56 UTC
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.