On Fri, Feb 15, 2008 at 08:51:16AM -0800, Adam Litke wrote:
>
> Standardize on one method of iterating through the program headers.
> dl_iterate_phdr always works and does not need a linker script
> modification to function. To reduce code duplication, break out the
> code that translates phdr data to the htlb_seg_table into its own
> function 'save_phdr()'.
>
> This change allows the addition of remapping without linker scripts
> with a minimal amount of new code.
>
> Signed-off-by: Adam Litke <[EMAIL PROTECTED]>
Acked-by: David Gibson <[EMAIL PROTECTED]>
Again, a good idea independent of the rest of the series. ISTR
suggesting this when the dl_iterate_phdr() code first went in.
> elflink.c | 164
> +++++++++++++++++++++++++++++++------------------------------
> 1 files changed, 84 insertions(+), 80 deletions(-)
Although it's a little odd that consolidating two methods into one
ends up as a nett inserting patch, even if only slightly.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel