On Fri, Jun 10, 2011 at 02:54:46PM +0800, bill wrote:
> At 2011-06-10 09:28:52,"David Gibson" <da...@gibson.dropbear.id.au> wrote:
> 
> >On Thu, Jun 09, 2011 at 04:50:50PM +0800, bill wrote:
> >> Hi, guys:)
> >> 
> >> 
> >> In order to run a program based on huge page, either insert 
> >> PF_LINUX_HUGETLB in
> >> program header or by setting HUGETLB_ELFMAP env.
> >> 
> >> while testcases such as linkhuge/xB.linkhuge/xBDT.linkhuge don't meet 
> >> neither
> >> conditions mentioned above, so running them will using normal 4k
> >> huge page.
> >
> >The xB.linkhuge and xBDT.linkhuge testcases should have the
> >PF_LINUX_HUGETLB flag in at least some of the program headers.  If
> >they don't then something is wrong with the link process for them.
> >
> >Note, however, that the program header flag based relinking method is
> >rather fragile, and can easily break when the binutils version
> >changes.  That's why the HUGETLB_ELFMAP=R|W method is the newer,
> >preferred method.
> 
> Thanks for your reply.
> Both X86 and ARM ld version in my side is newer than  2.18.
> 
> iamroot@iamroot-OptiPlex-780:~/workbench/private/hugetlb/libhugetlbfs-2.11/tests$
>  ld -v
> GNU ld (GNU Binutils for Ubuntu) 2.20.51-system.20100908
> 
> -bash-3.2$arm-wrs-linux-gnueabi-ld -v
> GNU ld (Linux Sourcery G++ 4.4a-328) 2.19.51.20090709
> 
> Do you mean the PF_LINUX_HUGETLB is set by the linker?
> Maybe my arm porting libhugetlbfs is buggy, but I don't see any such flag in 
> xB.linkhuge on X86 either.

The linker scripts set the PF_LINUX_HUGETLB flag, yes.  How are you
linking these cases?

-- 
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

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to