HomeFreeBSD

crunchgen: fix "keep" for an ELF world, break it out

Description

crunchgen: fix "keep" for an ELF world, break it out

"keep" currently adds a leading underscore, which hasn't been useful or
accurate since a.out days. Preserve the symbol name as it's given
rather than mangle it to match ELF-style symbol names.

This was partially fixed back in
6cd35234a092d ("Assume ELF-style symbol names now.") for crunchgen, but
the keeplist wasn't changed to match it.

While we're here, break it out to bsd.crunchgen.mk for later use in
bsdbox.

Reviewed by: adrian, imp

(cherry picked from commit 8f2848eafa682f1af629f8ee5e32fec607ab0ba1)

Details

Provenance
kevansAuthored on Nov 10 2023, 4:33 AM
Parents
rG9c170b3d52bf: grep: don't rely on implementation-defined malloc(0) behavior
Branches
Unknown
Tags
Unknown