elf: Do not check for loader mmap on tst-decorate-maps (BZ 31553)
commit25b191f6d33cda5770a18fd18be86cce0ebb3228
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 26 Mar 2024 13:47:42 +0000 (26 10:47 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 22 Apr 2024 18:39:48 +0000 (22 15:39 -0300)
treef850b3f06d97674d0014ead9e211507659fbb12d
parentf6d18bea387676e774e18ce410ace8c33a5c3511
elf: Do not check for loader mmap on tst-decorate-maps (BZ 31553)

On some architectures and depending on the page size, the loader can
also allocate some memory during dependencies loading and it will be
marked as 'loader malloc'.  However, if the system page size is
large enough, the initial data page will be enough for all required
allocation and there will be no extra loader mmap.  To avoid false
negatives, the test does not check for such pages.

Checked on powerpc64le-linux-gnu with 64k pagesize.
Reviewed-by: Simon Chopin <simon.chopin@canonical.com>
elf/tst-decorate-maps.c