Boqun Feng <boqun.feng@xxxxxxxxx> writes: > On Mon, Oct 16, 2017 at 02:00:33PM +1100, Michael Ellerman wrote: > >> I'm having trouble testing these, I get: ... >> >> ~/linus/tools/testing/selftests/rseq$ ./basic_percpu_ops_test >> ./basic_percpu_ops_test: error while loading shared libraries: R_PPC64_ADDR16_HI re10d8f10a0 for symbol `' out of range >> ~/linus/tools/testing/selftests/rseq$ ./param_test >> ./param_test: error while loading shared libraries: R_PPC64_ADDR16_HI re136251b48 for symbol `' out of range >> > > I think this one is due to the same reason as: > > 7998eb3dc700 ("powerpc: Fix 64 bit builds with binutils 2.24") > > I have made the fix before, but seems forgot to send it to Mathieu... > > so would this help? > > diff --git a/tools/testing/selftests/rseq/rseq-ppc.h b/tools/testing/selftests/rseq/rseq-ppc.h > index bc78b4fd72b1..39cbabe89b0e 100644 > --- a/tools/testing/selftests/rseq/rseq-ppc.h > +++ b/tools/testing/selftests/rseq/rseq-ppc.h > @@ -74,7 +74,7 @@ do { \ > "lis %%r17, (3b)@highest\n\t" \ > "ori %%r17, %%r17, (3b)@higher\n\t" \ > "rldicr %%r17, %%r17, 32, 31\n\t" \ > - "oris %%r17, %%r17, (3b)@h\n\t" \ > + "oris %%r17, %%r17, (3b)@high\n\t" \ > "ori %%r17, %%r17, (3b)@l\n\t" \ > "std %%r17, 0(%[rseq_cs])\n\t" \ > RSEQ_INJECT_ASM(2) \ Yes, that fixes it thanks! cheers -- To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html