If we check the entire BSS/data segment, we get spurious WARNING()s
because we will find symbols that we are already going to copy.
Insteaad, start at the last symbol we are going to copy (which is the
same as start if no symbols/PLT were found).
Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]>
diff --git a/elflink.c b/elflink.c
index 24a1a50..98517ff 100644
--- a/elflink.c
+++ b/elflink.c
@@ -502,7 +502,7 @@ static void get_extracopy(struct seg_info *seg, const
Elf_Phdr *phdr, int phnum)
}
if (__hugetlbfs_debug)
- check_bss(start, end_orig);
+ check_bss(end, end_orig);
if (found_sym) {
seg->extrasz = end - start;
--
Nishanth Aravamudan <[EMAIL PROTECTED]>
IBM Linux Technology Center
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel