about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/dynamic-link.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dynamic-link.h b/elf/dynamic-link.h
index 9e2ca03543..85d75d6b12 100644
--- a/elf/dynamic-link.h
+++ b/elf/dynamic-link.h
@@ -119,7 +119,6 @@ elf_get_dynamic_info (ElfW(Dyn) *dyn,
     struct { ElfW(Addr) start, size;  int lazy; } ranges[2];		      \
     int ranges_index;							      \
     ranges[0].lazy = 0;							      \
-    ranges[1].lazy = 1;							      \
     ranges[0].size = ranges[1].size = 0;				      \
     ranges[0].start = 0;						      \
 									      \
@@ -141,6 +140,7 @@ elf_get_dynamic_info (ElfW(Dyn) *dyn,
 	  {								      \
 	    ranges[1].start = start;					      \
 	    ranges[1].size = (map)->l_info[DT_PLTRELSZ]->d_un.d_val;	      \
+	    ranges[1].lazy = lazy;					      \
 	  }								      \
 	else								      \
 	  /* Combine processing the sections.  */			      \