Replicable in r360723 powerpc64 snapshot as distributed.
# uname -b
uname: sysctlbyname: No such file or directory
Expected results: definitely not that.
The kern.build_id sysctl returns an empty string and doesn't show up in sysctl -a output.
This seems unexpected since powerpc64 now uses lld by default, so bsd.linker.mk should enable the build-id feature.
This is a bug in the linker script. Looking into it.
A commit references this bug:
Date: Mon Jun 1 19:40:59 UTC 2020
New revision: 361703
[PowerPC] Fix build-id note on powerpc64 kernel
Due to the ordering of the powerpc64 linker script, we were discarding
all notes before emitting .note.gnu.build-id. This had the effect of
generating an empty build id section and breaking the kern.build_id
sysctl added in r348611.
powerpc and powerpcspe are uneffected.
MFC after: 3 days
Sponsored by: Tag1 Consulting, Inc.
Brandon, do you have any plans to MFC the change? If not we can close this PR.
I'm still planning on MFCing, but I don't have a workflow set up to test MFCs yet, and I still don't *quite* understand the documentation for MFCing stuff, so I've been kinda procastinating on it, somewhat in the hopes that the git switchover would happen in the meantime.
I guess I should just go ahead and set things up on my end.