parse_phdrs() now does much more than just deal with the program
headers. Rename the function to indicate that it abstracts all
ELF-related parsing.

Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]>
---
 elflink.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/elflink.c b/elflink.c
index f71a640..e17a463 100644
--- a/elflink.c
+++ b/elflink.c
@@ -522,7 +522,7 @@ bail2:
  * Parse an ELF header and record segment information for any segments
  * which contain hugetlb information.
  */
-static void parse_phdrs(Elf_Ehdr *ehdr)
+static void parse_elf(Elf_Ehdr *ehdr)
 {
        Elf_Phdr *phdr = (Elf_Phdr *)((char *)ehdr + ehdr->e_phoff);
        int i;
@@ -948,7 +948,7 @@ static void __attribute__ ((constructor)) 
setup_elflink(void)
        if (check_env())
                return;
 
-       parse_phdrs(ehdr);
+       parse_elf(ehdr);
 
        if (htlb_num_segs == 0) {
                DEBUG("Executable is not linked for hugepage segments\n");

-- 
Nishanth Aravamudan <[EMAIL PROTECTED]>
IBM Linux Technology Center

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to