Konstantin Belousov c9f833abf1 rtld: Round down relro_size
lld rounds up p_memsz(PT_GNU_RELRO) to satisfy common-page-size. If the
page size is smaller than common-page-size, rounding up relro_size may
incorrectly make some RW pages read-only.

GNU ld, gold, and ld.lld ensures p_vaddr+p_memsz is a multiple of
common-page-size. While max-page-size >= system the page size,
common-page-size can be smaller than the system page size.

Submitted by:	MaskRay
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D31498
2021-08-13 12:58:53 +03:00
..
2020-09-11 13:28:37 +00:00
2019-12-11 17:37:53 +00:00
2021-07-27 12:18:08 -06:00
2020-09-09 00:39:47 +00:00
2018-03-05 16:11:07 +00:00
2021-08-13 12:58:53 +03:00
2019-11-12 22:31:59 +00:00
2019-12-04 16:56:11 +00:00
2019-12-11 17:37:53 +00:00
2021-04-10 11:16:02 +02:00
2020-04-06 23:16:05 +00:00
2020-09-09 00:39:47 +00:00