From: Ulrich Drepper Date: Sat, 21 Dec 2002 21:39:34 +0000 (+0000) Subject: (handle_file): Swap p_type. X-Git-Tag: upstream/2.20~13440 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=894dc70b5e917ca30d54c1c939e7f0467ab422c6;p=platform%2Fupstream%2Flinaro-glibc.git (handle_file): Swap p_type. --- diff --git a/elf/check-textrel.c b/elf/check-textrel.c index c0592a2..69210b2 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)