libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [FYI] Cleanup of linux pass_all


From: Jacob Meuser
Subject: Re: [FYI] Cleanup of linux pass_all
Date: Fri, 17 Sep 2004 16:46:08 -0700
User-agent: Mutt/1.4.2i

On Wed, Sep 15, 2004 at 01:22:19PM -0500, Bob Friesenhahn wrote:
> On Wed, 15 Sep 2004, Alexandre Oliva wrote:
> >
> >>if there was only a good way to test for PIC ....
> >
> >The only reasonable way I can think of is to get the linker to try and
> >link stuff.  If it fails, we print a warning message and proceed to
> >building a static-only version of the library.  And let's just hope
> >modern linkers won't silently create corrupt binaries.
> 
> I expect that assumption takes a lot of finger-crossing.  Some 
> problems will be found at run-time by ld.so and some will be found via 
> gdb in the resulting core dump. :-)

yes, on OpenBSD x86, the compile-time linker will let non-PIC link into shared
objects, but the runtime linker will report "lazy binding failed".

FWIW, I have asked the same question on address@hidden, and got no good
responses on how to determine PIC.

-- 
<address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]