aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishanth Aravamudan <nacc@us.ibm.com>2008-05-07 09:31:53 -0700
committerNishanth Aravamudan <nacc@us.ibm.com>2008-05-07 09:31:53 -0700
commite20b3c2a3d168065d9a9d1cc8b310c4375d9f427 (patch)
tree48d1e8c743ec246d52770bac75aa6fc56ef0b62d
parent8e9bb0423d71f7816e95734c692cd6251f069518 (diff)
downloadlibhugetlbfs-e20b3c2a3d168065d9a9d1cc8b310c4375d9f427.tar.gz
elflink: fix check_bss range1.3-pre2
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 <nacc@us.ibm.com>
-rw-r--r--elflink.c2
1 files changed, 1 insertions, 1 deletions
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;