Hi all
I compiled my shared library by:
gcc -ffreestanding -Wall -fPIC -c testingLibrary.c
gcc -shared -Wl,-soname,libTesting.so.1 -o libTesting.so testingLibrary.o
When I readelf -d libTesting.so
Dynamic section at offset 0x460 contains 21 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libc.so.6]
0x0000000e (SONAME) Library soname: [libTesting.so.1]
Why it still need libc.so.6 ? I have added -ffreestanding .
thanks
from Peter ([email protected])
freestanding ELF dynamic library
- gravaera
- Member
- Posts: 737
- Joined: Tue Jun 02, 2009 4:35 pm
- Location: Supporting the cause: Use \tabs to indent code. NOT \x20 spaces.
Re: freestanding ELF dynamic library
I think I'd better remember this one as well. I'm going to be compiling my own standard library dynamic linkable soon. Useful.
-Thanks,
gravaera
-Thanks,
gravaera
17:56 < sortie> Paging is called paging because you need to draw it on pages in your notebook to succeed at it.