summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-12-18 22:38:08 +0000
committerUlrich Drepper <drepper@redhat.com>2006-12-18 22:38:08 +0000
commit56bc0b83ea81b7e959aaa4e1d01f8b36f2804a52 (patch)
treebc88f45df09a0819c43122d8101500c51874c1c2 /src
parent8190db6a86a37aec86c81626ab1b083c96aff891 (diff)
downloadelfutils-56bc0b83ea81b7e959aaa4e1d01f8b36f2804a52.tar.gz
Lock down libelf and elflint a bit more after import of Roland's changes.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/elflint.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 190c6732..58db2243 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -7,7 +7,7 @@
2006-10-31 Roland McGrath <roland@redhat.com>
* elflint.c (check_program_header): Don't complain about
- p_filesz > p_memsz if p_memsz is zero and p_type is not PT_LOAD.
+ p_filesz > p_memsz if p_memsz is zero and p_type is PT_NOTE.
2006-09-19 Jakub Jelinek <jakub@redhat.com>
diff --git a/src/elflint.c b/src/elflint.c
index 06930ca8..7a50a21b 100644
--- a/src/elflint.c
+++ b/src/elflint.c
@@ -3830,7 +3830,7 @@ program header offset in ELF header and PHDR entry do not match"));
}
if (phdr->p_filesz > phdr->p_memsz
- && (phdr->p_memsz != 0 || phdr->p_type == PT_LOAD))
+ && (phdr->p_memsz != 0 || phdr->p_type != PT_NOTE))
ERROR (gettext ("\
program header entry %d: file size greater than memory size\n"),
cnt);