Disturbing news..
Keith Owens <[email protected]>
Quoted 10 lines
Quoted 3 lines · Jesse Pollard
Sure - very simple. If the execute bit is set on a file, don't allow ANY write to the file. This does modify the permission bits slightly but I don't think it is an unreasonable thing to have.
man strip
man objcopy
man ld
Thought of theses already (well, at least ld...)
strip - not used that much (most executables still have their symbol table
but could be handled by removing the execute bit, stripping, then putting it back. Or just use the ld option -s.
objcopy - copies object files. Object files are not marked executable...
ld - on other UNIX systems (Cray/IRIX), I think the output file
(-o) specified is first deleted. Whenever I can cause a link error, the output is not marked executable. If the GNU ld doesn't delete it first, then it most likely should.
I was expecting shell scripts to be the complaint first... :-)
-------------------------------------------------------------------------
Jesse I Pollard, II
Email: [email protected]
Any opinions expressed are solely my own.
Quoted 1 line · Jesse Pollard
objcopy - copies object files. Object files are not marked executable...
objcopy copies executable files as well - check the kernel makefiles for examples.
--
Russell King ([email protected]) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html