$ rpm -q gcc cargo
gcc-8.5.0-7.el8.x86_64
cargo-1.56.1-2.module+el8.6.0+13527+64f2eba2.x86_64
$ rhpkg local
...
error: build-id found in /var/home/walters/rpmbuild/BUILDROOT/rpm-ostree-2021.14-2.el8.x86_64/usr/bin/rpm-ostree too small
error: Generating build-id links failed
RPM build errors:
build-id found in /var/home/walters/rpmbuild/BUILDROOT/rpm-ostree-2021.14-2.el8.x86_64/usr/bin/rpm-ostree too small
Generating build-id links failed
$ eu-readelf -a ~/rpmbuild/BUILDROOT/rpm-ostree-2021.14-2.el8.x86_64/usr/bin/rpm-ostree |grep -i 'build-id.*bytes at offset'
Note section [ 3] '.note.gnu.build-id' of 24 bytes at offset 0x31c:
$ eu-readelf -a /usr/bin/bash |grep -i 'build-id.*bytes at offset'
Note section [ 4] '.note.gnu.build-id' of 36 bytes at offset 0x308:
$
So indeed, the bash build-id is larger.