🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Jerry Liebelson Tue, 26 Jan 1993 21:42
Can gcc produce position-independent object code for shared libraries?
#890
Author: Jerry Liebelson
Date: Tue, 26 Jan 1993 21:42
9 lines
708 bytes
Or, what's the gcc equivalent of the cc -pic option for use with
compiling modules for subsequent linking into a SunOS 4.11 shared library?

Please answer from actual experience, thank you.

-- 
Jerry Liebelson
jlieb@is.morgan.com
Compuserve: 73477,2740
Re: Can gcc produce position-independent object code for shared libraries?
#908
Author: Michael Salmon
Date: Thu, 28 Jan 1993 09:33
29 lines
1593 bytes
In article <1993Jan26.214222.3324@is.morgan.com>
jlieb@is.morgan.com (Jerry Liebelson) writes:
|> Or, what's the gcc equivalent of the cc -pic option for use with
|> compiling modules for subsequent linking into a SunOS 4.11 shared library?
|> 
|> Please answer from actual experience, thank you.

From the man page (and actual experience with SunOS 4.1.1):

     -fpic
          If  supported  for  the   target   machines,   generate
          position-independent code, suitable for use in a shared
          library.

     -fPIC
          If supported for the  target  machine,  emit  position-
          independent code, suitable for dynamic linking, even if
          branches need large displacements.

-- 

Michael Salmon

#include	<standard.disclaimer>
#include	<witty.saying>
#include	<fancy.pseudo.graphics>

Ericsson Telecom AB
Stockholm
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads