Bug 271475 - security/nss: investigate dropping binutils
Summary: security/nss: investigate dropping binutils
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gecko (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-17 21:57 UTC by (intentionally left blank)
Modified: 2023-05-17 21:57 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (gecko)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description (intentionally left blank) 2023-05-17 21:57:31 UTC
Chimera Linux applied patch [1] to allow build without binutils.

Consider pulling [1] from cports, as this would allow to build NSS when LLVM IR is generated which is not understood by binutils. This is prerequisite for e.g. ThinLTO (LTO (fat LTO) != ThinLTO) or -fsanitize for CFI.

I can't test build or runtime at the moment, but NSS with [1] applied used to build on Gentoo here (musl + LLVM without binutils or gcc, global ThinLTO). 

[1]: https://github.com/chimera-linux/cports/blob/f3e0e579542e/main/nss/patches/clang-ias.patch