On Thu, Aug 02, 2001 at 12:22:38PM -0600, Bradley C. Midgley wrote:
> > > if the contents of a libfoo.a were created without -fPIC, then any .so
> > > created with -lfoo will have REL24 relocations and fail. but debian policy
> 
> i have another question along these lines.
> 
> why doesn't gcc fail when it's told to create a .so using objects that are
> not PIC? is it because it might possibly work?
> 
> it would be a lot easier to track down a compilation failure than
> backtracking after a dlopen problem and the underlying problem wouldn't be
> ignored as much as it is now.

On some architectures, it will work anyway; also, the shared object
could be used for some other purpose besides dynamic linking (i
think?).  You've just got to know what you're doing.

It can also be a little tricky to tell.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

Reply via email to