Created attachment 770256 [details]
tentative patch
This shold do the trick, just move the lines disabling PIE before the asm goto
test again.
Tested with the lan9252 module: both with and without gcc-PIE package, struct
module has jump_entries and num_jump_entries members.
Going to check that it does the trick in IBS as well but unfortunately I got
some slow worker, the build (project home:mkubecek:bsc1092456) is already
running for over 3 hours and doesn't seem to be going to finish any time soon.
Once tested, I would like to submit the patch to upstream, unless someone has
a better idea. In any case, it would be nice to fix the testcase but that
would require someone else.