Hi David,

   "PIE" applications can have different compile time and run time address 
space. Libhugetlb remaps program's address space by reading "elf - program 
header" which may not be correct at run time when application is compiled with 
"pie" flag. 

Thanks,
Mehul.


There are only 10 kind of people in the world ... those who knows binary and 
those who do not......

--- On Wed, 5/27/09, David Gibson <da...@gibson.dropbear.id.au> wrote:

From: David Gibson <da...@gibson.dropbear.id.au>
Subject: Re: [Libhugetlbfs-devel] Support for Position independent executables.
To: "Mehul Vora" <mehu...@yahoo.com>
Cc: libhugetlbfs-devel@lists.sourceforge.net
Date: Wednesday, May 27, 2009, 2:18 AM

On Tue, May 26, 2009 at 07:48:10AM -0700, Mehul Vora wrote:
> 
> Hi,
> 
>    Does libhugetlb support "position independent executables"
> ("-pie" ) ? I tried compiling a simple "hello_world" application
> with libhugetlb library but library seg faults while mapping
> "writable section" in to hugepage. However without "-pie" flag
> program runs.

I don't think we've ever considered PIEs, so if anything special needs
to be done to support them, then no, they're not supported.


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



      
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to