aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elf/dl-load.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c
index 7215931..2a14433 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -1133,16 +1133,11 @@ _dl_map_object_from_fd (const char *name, const char *origname, int fd,
case PT_LOAD:
/* A load command tells us to map in part of the file.
We record the load commands and process them all later. */
- if (__glibc_unlikely ((ph->p_align & (GLRO(dl_pagesize) - 1)) != 0))
- {
- errstring = N_("ELF load command alignment not page-aligned");
- goto lose;
- }
if (__glibc_unlikely (((ph->p_vaddr - ph->p_offset)
- & (ph->p_align - 1)) != 0))
+ & (GLRO(dl_pagesize) - 1)) != 0))
{
errstring
- = N_("ELF load command address/offset not properly aligned");
+ = N_("ELF load command address/offset not page-aligned");
goto lose;
}