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: Author: bdragon Date: Mon Jun 1 19:40:59 UTC 2020 New revision: 361703 URL: https://svnweb.freebsd.org/changeset/base/361703 Log: [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. PR: 246430 MFC after: 3 days Sponsored by: Tag1 Consulting, Inc. Changes: head/sys/conf/ldscript.powerpc64
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.
^Triage: note that this was committed quite some time ago.