This is the mail archive of the 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


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

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

It get's compiled with:

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

And is linked against:

jackson:~ # ldd => /lib/ (0x4000d000) => /usr/lib/ (0x40011000) => /lib/ (0x40019000)
	/lib/ => /lib/ (0x80000000)

The library works fine until the gcc-3 removes the /usr/lib/ 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 ...)

  René Rebe

René Rebe (Registered Linux user: #127875)



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]