[B][C][SRU][PATCH 0/1] selftests/powerpc/pmu: Link ebb tests with -no-pie

Po-Hsu Lin po-hsu.lin at canonical.com
Wed Apr 24 06:49:34 UTC 2019


BugLink: https://bugs.launchpad.net/bugs/1812805

== Justification ==
The selftests/powerpc/pmu/ebb test will fail on Ubunut PowerPC with:
   error while loading shared libraries: R_PPC64_ADDR16_HI reloc at
   0x00000f046fb04550 for symbol `' out of range

This is because the Ubuntu toolchain builds has PIE enabled by default.

== Fix ==
98415da0 (selftests/powerpc/pmu: Link ebb tests with -no-pie)

This fix will use -no-pie flag to build the test.

Patch already landed in Disco, and can be cherry-picked for B/C.
For Xenial, we don't have this test in our tree thus it can be ignored.

== Test ==
Patch verified on a Bionic P9 system, all the ebb tests will pass.

== Regression Potential ==
None.
This patchset is just for the kernel testing tool.

Joel Stanley (1):
  selftests/powerpc/pmu: Link ebb tests with -no-pie

 tools/testing/selftests/powerpc/pmu/ebb/Makefile | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.7.4




More information about the kernel-team mailing list