*BSD News Article 49309


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!newshost.marcam.com!news.mathworks.com!tank.news.pipex.net!pipex!in2.uu.net!world!blanket.mitre.org!linus.mitre.org!mwunix!m24725
From: m24725@mwunix.mitre.org ( James B Croall)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Quick Q, on creating shared libraries
Date: 19 Aug 1995 21:57:08 GMT
Organization: The MITRE Corporation
Lines: 21
Message-ID: <415mnk$5nn@linus.mitre.org>
NNTP-Posting-Host: mwunix.mitre.org
Summary: Quick Q, on creating shared libraries
Keywords: chared libs freebsd

I'm able to build a shared library just fine, using

	ld -Bshareable -dc -dp -o libthing.so.ver *.o

On my FreeBSD 2.0.5R box.

However, with some code, running a binary linked against that library
gives me a Floating point exception and a nice useless core dump.

I seem to remember something about shared libraies on Suns, also having
a file libthing.sa.ver used for code that exported initialized data. I
noticed a -Bsilly parameter to ld, but according to the docs it looks 
like it's essentially unused. 

I would appreciate any suggestions on this; I haven't been able to fund
much in any documentation anywhere.

Thanks!

	- James