GCC 4.0.3 -shared creates segfault

Simon Geard delgarde at ihug.co.nz
Tue Apr 17 00:54:21 PDT 2007


On Mon, 2007-04-16 at 20:30 +0100, Tijnema ! wrote:
> Hi,
> 
> Is it normal when using -shared to create binaries that they are a segfault.
> 
> This is what i did for example
> /# echo "main(){}" > dummy.c
> /# gcc -shared dummy.c -o dummy
> /# ./dummy
> Segmentation fault

Yes. The -shared option indicates that gcc should produce a dynamic
library, rather than a runnable executable. What exactly are you trying
to do?

Simon.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxfromscratch.org/pipermail/blfs-support/attachments/20070417/f22735f1/attachment.sig>


More information about the blfs-support mailing list