about summary refs log tree commit diff
path: root/sysdeps/generic/readelflib.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/readelflib.c')
-rw-r--r--sysdeps/generic/readelflib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/readelflib.c b/sysdeps/generic/readelflib.c
index af5584c37c..26444ad6b2 100644
--- a/sysdeps/generic/readelflib.c
+++ b/sysdeps/generic/readelflib.c
@@ -100,7 +100,7 @@ process_elf_file (const char *file_name, const char *lib, int *flag,
       switch (segment->p_type)
 	{
 	case PT_LOAD:
-	  if (loadaddr == -1)
+	  if (loadaddr == (ElfW(Addr)) -1)
 	    loadaddr = segment->p_vaddr - segment->p_offset;
 	  break;
 
@@ -145,7 +145,7 @@ process_elf_file (const char *file_name, const char *lib, int *flag,
 	}
 
     }
-  if (loadaddr == -1)
+  if (loadaddr == (ElfW(Addr)) -1)
     {
       /* Very strange. */
       loadaddr = 0;