HomeFreeBSD

Avoid emitting popcnt in libclang_rt.fuzzer*.a if unsupported

Description

Avoid emitting popcnt in libclang_rt.fuzzer*.a if unsupported

Since popcnt is only supported by CPUTYPE=nehalem and later, ensure that
this instruction is only emitted when appropriate. Otherwise, programs
using the library can abort with SIGILL.

See also: https://github.com/llvm/llvm-project/issues/52893

PR: 258156
Reported by: Eric Rucker <bhtooefr@bhtooefr.org>
MFC after: 3 days

Details

Provenance
dimAuthored on Dec 30 2021, 9:53 AM
Parents
rG841e0a87576b: uma: with KTR trace allocs/frees from SMR zones
Branches
Unknown
Tags
Unknown