HomeFreeBSD

Add RELRO build knob, default to enabled

Description

Add RELRO build knob, default to enabled

Note that lld enables relro by default, so that we already had either
partial or full RELRO, depending on the state of the BIND_NOW knob.

Add a RELRO knob so that the option can be disabled if desired, and so
that builds using the GNU toolchain are equivalent to those using the
standard Clang/LLVM toolchain.

Reviewed by: markj
MFC after: 3 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35545

(cherry picked from commit 2f3a961487c97dc879f07bb97bc62d7bd70b3f8d)

Details

Provenance
emasteAuthored on Jun 22 2022, 12:58 PM
Reviewer
markj
Differential Revision
D35545: Add RELRO build knob, default to enabled
Parents
rG2b29bd3a6d59: blacklistd: whitespace cleanup
Branches
Unknown
Tags
Unknown