/sbin/nologin not OK

Robert Connolly robert at linuxfromscratch.org
Sat Dec 29 11:46:47 PST 2007

On Saturday December 29 2007 12:19:08 pm goodoldmarty at gmail.com wrote:
> > So it's not linked to anything??? (but does contain textrel)
> > compiling with: gcc -nostdlib -fno-stack-protector -fno-pic -fno-pie
> > -nopie src/nologin.S -o src/nologin removes the textrel (actualy readelf
> > tells me there is no dynamic section in the file) and the resulting bin
> > does work.
> does this mean using "gcc -nostdlib" caused the compiler to ignore the
> hardwired specs, instead of appending them? What actually happened here?

It looks like nologin.S is non-pic. true.S and false.S are okay.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/hlfs-dev/attachments/20071229/b71072c1/attachment.sig>

More information about the hlfs-dev mailing list