about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-12-21 21:39:34 +0000
committerUlrich Drepper <drepper@redhat.com>2002-12-21 21:39:34 +0000
commit894dc70b5e917ca30d54c1c939e7f0467ab422c6 (patch)
treeb37b64f946f5981ed6e57a08741c0246a1243d3e /elf
parent7d277fb6887e4e72d8a9ddbbecfa61bda9c4ebf8 (diff)
downloadglibc-894dc70b5e917ca30d54c1c939e7f0467ab422c6.tar.gz
glibc-894dc70b5e917ca30d54c1c939e7f0467ab422c6.tar.xz
glibc-894dc70b5e917ca30d54c1c939e7f0467ab422c6.zip
(handle_file): Swap p_type.
Diffstat (limited to 'elf')
-rw-r--r--elf/check-textrel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/check-textrel.c b/elf/check-textrel.c
index c0592a2336..69210b2be8 100644
--- a/elf/check-textrel.c
+++ b/elf/check-textrel.c
@@ -78,7 +78,7 @@ AB(handle_file) (const char *fname, int fd)
   /* Search for the PT_DYNAMIC entry.  */
   size_t cnt;
   for (cnt = 0; cnt < phnum; ++cnt)
-    if (phdr[cnt].p_type == PT_DYNAMIC)
+    if (SWAP (phdr[cnt].p_type) == PT_DYNAMIC)
       break;
 
   if (cnt == phnum)