/sbin/nologin not OK
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
Size: 189 bytes
Desc: not available
More information about the hlfs-dev