Ilya Leoshkevich f3b7e73b2c s390/module: fix loading modules with a lot of relocations
If the size of the PLT entries generated by apply_rela() exceeds
64KiB, the first ones can no longer reach __jump_r1 with brc. Fix by
using brcl. An alternative solution is to add a __jump_r1 copy after
every 64KiB, however, the space savings are quite small and do not
justify the additional complexity.

Fixes: f19fbd5ed642 ("s390: introduce execute-trampolines for branches")
Cc: stable@vger.kernel.org
Reported-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2022-01-24 09:10:37 +01:00
..
2021-10-11 20:55:58 +02:00
2021-08-05 14:10:53 +02:00
2021-12-16 19:58:07 +01:00
2021-12-13 12:04:45 -06:00
2021-01-19 12:29:26 +01:00
2021-08-03 14:31:40 +02:00
2021-11-18 17:25:35 +01:00
2020-06-29 16:31:46 +02:00
2021-07-08 15:37:28 +02:00