summaryrefslogtreecommitdiffstats
path: root/src/elflint.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2006-12-17 23:56:51 +0000
committerRoland McGrath <[email protected]>2006-12-17 23:56:51 +0000
commit8190db6a86a37aec86c81626ab1b083c96aff891 (patch)
tree2b065733f6ee44885a447e9506fae59518076048 /src/elflint.c
parent7c0e79ffc201e4828a050b35f2c9d96e3001cb48 (diff)
propagate from branch 'com.redhat.elfutils' (head b4944cf70801d9dac056f4f80ef1334e5acb8bdc)
to branch 'com.redhat.elfutils.roland.pending' (head e7e402c668fb0670fc5f6b6a522853ae88f32f11)
Diffstat (limited to 'src/elflint.c')
-rw-r--r--src/elflint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/elflint.c b/src/elflint.c
index e5917392..06930ca8 100644
--- a/src/elflint.c
+++ b/src/elflint.c
@@ -3829,7 +3829,8 @@ loadable segment GNU_RELRO applies to is executable\n"));
program header offset in ELF header and PHDR entry do not match"));
}
- if (phdr->p_filesz > phdr->p_memsz)
+ if (phdr->p_filesz > phdr->p_memsz
+ && (phdr->p_memsz != 0 || phdr->p_type == PT_LOAD))
ERROR (gettext ("\
program header entry %d: file size greater than memory size\n"),
cnt);