On Fri, 2007-02-23 at 14:36 -0800, Nishanth Aravamudan wrote: > Currently the elf exectuable header pointer is global in elflink.c, but > passes as a parameter to parse_phdrs(). The only other user of ehdr is > the extracopy code. We run this code at prepare-time, but there is no > reason it couldn't be done at parse-time. This patch makes exactly this > change. This requires moving the parse_phdrs() function (the majority of > this patch) to avoid foward declarations. The only performance > implication of this, that I can see, is that we now will call > get_extracopy() unconditionally, whereas before we would not do prepare > (and thus not extracopy) for shared segments. Since get_extracopy() only > does parsing, though, I think this should be ok (extra work may be done > in DEBUG=yes mode, but that's not performance-critical). > > Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]> Acked-by: Adam Litke <[EMAIL PROTECTED]> -- Adam Litke - (agl at us.ibm.com) 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
