As far as I can tell, ppc64-diag-2.7.1-5.fc28.ppc64le does not use the standard Fedora build flags from redhat-rpm-config at all (neither CFLAGS nor LDFLAGS). The build log does not show any CFLAGS and LDFLAGS injection, and BIND_NOW, PIE, and annobin annotations are all missing. See https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/buildflags.md for information on RPM macros and environment variables provided by the build environment.
it's fixed in ppc64-diag-2.7.1-6.fc29
ppc64-diag-2.7.1-6.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0d4f204b6e
ppc64-diag-2.7.1-6.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-0d4f204b6e
Sorry, LDFLAGS are still missing from the linker invocation in ppc64-diag-2.7.1-6.fc28.ppc64le: gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -funwind-tables -fstack-clash-protection -I/builddir/build/BUILD/ppc64-diag-2.7.1/common -I /usr/include/ncurses -I/builddir/build/BUILD/ppc64-diag-2.7.1/common -I /usr/include/ncurses -o extract_platdump extract_platdump.o config.o -lrtas Only CFLAGS are included.
The fix doesn't work in 2.7.1 as it uses hand-crafted Makefiles, I'm building ppc64-diag-2.7.4-1.fc28 now
ppc64-diag-2.7.4-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0d4f204b6e
ppc64-diag-2.7.4-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-0d4f204b6e
ppc64-diag-2.7.4-2.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0d4f204b6e
ppc64-diag-2.7.4-2.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-0d4f204b6e
ppc64-diag-2.7.4-2.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.