On Wed, 2010-08-04 at 15:16 +0800, Peng Yuan wrote:
> I agree with your points.
> 
> So for the checkin, 
> 1) Objects in libopen64rt_shared.a should be compiled with -fPIC.

They are.  We are already linking this library into shared libraries and
if it wasn't compiled with -fPIC that wouldn't be working.

> 2) Make sure libopen64rt_shared.a can be used for executable.
> Otherwise, we cannot modify open64 driver code for the issue. Because
> libopen64rt.a is used for executable originally, and
> libopen64rt_shared.a is for shared library. The two libraries have
> different objects inside.

We are only changing this for PIE executables which currently cannot
even link.  Normal (non-PIE) executables will continue to use
libopen64rt.a and see no change with this patch.  Using this patch
I was able to link and run PIE executables on x86.

I will go ahead and check in the patch.

Steve Ellcey
s...@cup.hp.com




------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel

Reply via email to