elf: Add a test for PT_LOAD segments with p_align == 1 [BZ #28688]
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 21 Dec 2021 20:25:20 +0000 (12:25 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 24 Jan 2022 14:37:29 +0000 (06:37 -0800)
commite4c9268d154ff11c070eba4791d33bd3a5875bca
tree5d23d680397e40d5a71e0706e1ea9f12edc0a6af
parentb5237c0746fcf5252fc88291a63782c59167fcb5
elf: Add a test for PT_LOAD segments with p_align == 1 [BZ #28688]

Add tst-p_alignmod2-edit to edit the copy of tst-p_alignmod-base.so to
set p_align of the first PT_LOAD segment to 1 and verify that the shared
library can be loaded normally.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
elf/Makefile
elf/tst-p_align2.c [new file with mode: 0644]
elf/tst-p_alignmod2-edit.c [new file with mode: 0644]