elf: Add a test for PT_LOAD segments with mixed p_align [BZ #28676]
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 21 Dec 2021 02:33:55 +0000 (18:33 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 24 Jan 2022 14:37:15 +0000 (06:37 -0800)
commitb5237c0746fcf5252fc88291a63782c59167fcb5
treeb2a5891f4b054220ffb8c3290ac114012bbd8376
parent114d07fd9a54684cb67b02174f2c48d19f3e2502
elf: Add a test for PT_LOAD segments with mixed p_align [BZ #28676]

Add tst-p_alignmod1-edit to edit the copy of tst-p_alignmod-base.so to
reduce p_align of the first PT_LOAD segment by half and verify that the
shared library is mapped with the maximum p_align of all PT_LOAD segments.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
elf/Makefile
elf/tst-elf-edit.h [new file with mode: 0644]
elf/tst-p_align.h [new file with mode: 0644]
elf/tst-p_align1.c [new file with mode: 0644]
elf/tst-p_alignmod-base.c [new file with mode: 0644]
elf/tst-p_alignmod1-edit.c [new file with mode: 0644]