This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix lazy setting for PLTREL overlap cpus.


While investigating a problem with unused dep detection on sparc, I
found that several bug fixes and improvements have been going into one
of the two _ELF_DYNAMIC_DO_RELOC definitions and not the other.

I'll slowly try to bring the in line with eachother again, and
here's the first step.

Any objections?

2012-04-03  David S. Miller  <davem@davemloft.net>

	* elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Set lazy properly in
	the PLTREL overlap definition just like the non-PLTREL overlap one.

diff --git a/elf/dynamic-link.h b/elf/dynamic-link.h
index aa71227..669180e 100644
--- a/elf/dynamic-link.h
+++ b/elf/dynamic-link.h
@@ -263,7 +263,7 @@ elf_get_dynamic_info (struct link_map *l, ElfW(Dyn) *temp)
     int ranges_index;							      \
 									      \
     ranges[0].lazy = ranges[2].lazy = 0;				      \
-    ranges[1].lazy = 1;							      \
+    ranges[1].lazy = (do_lazy);						      \
     ranges[0].size = ranges[1].size = ranges[2].size = 0;		      \
     ranges[0].nrelative = ranges[1].nrelative = ranges[2].nrelative = 0;      \
 									      \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]