Skip to content
Commit 718fdd87 authored by Rongwei Wang's avatar Rongwei Wang Committed by H.J. Lu
Browse files

elf: Properly align PT_LOAD segments [BZ #28676]



When PT_LOAD segment alignment > the page size, allocate enough space to
ensure that the segment can be properly aligned.  This change helps code
segments use huge pages become simple and available.

This fixes [BZ #28676].

Signed-off-by: default avatarXu Yu <xuyu@linux.alibaba.com>
Signed-off-by: default avatarRongwei Wang <rongwei.wang@linux.alibaba.com>
parent 2e75604f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment