Re: -nostartfiles for -shared on ELF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mathieu Lacage <mathieu.lacage@xxxxxxxxx> writes:

> [mlacage@diese test]$ cc  -fpic  -c -o test.o test.c
> [mlacage@diese test]$ ld -shared -nostartfiles -o libtest.so test.o
> [mlacage@diese test]$ readelf -l ./libtest.so

-nostartfiles is a compiler option, not a linker option.  I would
expect that passing -nostartfiles to the linker would be treated as
passing -n -o startfiles.  Then the -o option is overridden by your
later -o libtest.so.  So you are effectively invoking the linker with
the -n option, q.v.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux