From 894dc70b5e917ca30d54c1c939e7f0467ab422c6 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 21 Dec 2002 21:39:34 +0000 Subject: (handle_file): Swap p_type. --- elf/check-textrel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'elf') 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) -- cgit 1.4.1