This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

compiling a shared-library not linked against libgcc_s.so


Hi.

I'm try to get a shared library, which collects the files during the build
process of our distribution (www.rocklinux.org), to work with the gcc-3.0.x.

The library wraps the open, read, write, close, ... calls to log the
activities.

It get's compiled with:

gcc -Wall -O2 -ldl --shared -o fl_wrapper.so fl_wrapper.c

And is linked against:

jackson:~ # ldd fl_wrapper.so 
	libdl.so.2 => /lib/libdl.so.2 (0x4000d000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x40011000)
	libc.so.6 => /lib/libc.so.6 (0x40019000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

The library works fine until the gcc-3 removes the /usr/lib/libgcc_s.so during
it's make install - and so the next command fails because the libgcc_s for the
preloaded lib is gone.

I tryed to compile it with various compile options like -fno-exceptions ... -
but it gets linked against the libgcc_s everytime.

Q: What have I to do to get a lib which is not linked agains this libgcc_s.
Q: What does the libgcc_s exactly??

(I can post the source (4,6k) if that helps ...)

Thanks
  René Rebe

-- 
René Rebe (Registered Linux user: #127875)

eMail:    rene.rene@gmx.net
          rene.rebe@rocklinux.org

Homepage: http://www.rene.rebe.myokay.net/

Anyone sending unwanted advertising e-mail to this address will be
charged $25 for network traffic and computing time. By extracting my
address from this message or its header, you agree to these terms.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]