On Fri, Sep 08, 2023 at 02:49:56PM -0600, Anthony J. Bentley wrote: > Lucas Raab writes: > > +Use when a port requires no enforcement of indirect branch targets. Use > > New sentence, new line. > > > +.Ev USE_NOBTCFI-${MACHINE_ARCH} > > +to apply to specific architectures instead of all architectures. > > I would invert the wording: "Applies to all architectures; set > USE_NOBTCFI-${MACHINE_ARCH} to apply to only a specific architecture."
More like this?
diff /usr/src commit - 2933f00289463a6d1923d1b9cc5e5c1c5c697ece path + /usr/src blob - 00ec6c3f81fcf03e2222a69eabe8de1741a6e562 file + share/man/man5/bsd.port.mk.5 --- share/man/man5/bsd.port.mk.5 +++ share/man/man5/bsd.port.mk.5 @@ -3613,6 +3613,19 @@ and not intended to be a user setting. See .Ev WRKOBJDIR_MFS for configuration. +.It Ev USE_NOBTCFI +If set to +.Sq Yes, +writes a wrapper script to ${WRKDIR}/bin/ld in +.Cm patch +to request that the linker adds an +.Dv PT_OPENBSD_NOBTCFI +ELF section. Use when a port requires no enforcement of indirect branch +targets. +.Pp +Applies to all architectures; set +.Ev USE_NOBTCFI-${MACHINE_ARCH} +to apply to only a specific architecture. .It Ev USE_NOEXECONLY If set to .Sq Yes ,