remove the PF_W of the text program section

Alan Modra amodra@bigpond.net.au
Wed Aug 9 01:24:00 GMT 2006


On Tue, Aug 08, 2006 at 05:48:55PM -0700, Noah yan wrote:
> Thanks Alan for your comments. "a writable text section", do you mean
> I need to identify this from sources? if so, only hand-writing
> assembly code can do this and compiler-generated code does not write
> to text section, correct?

Use readelf -S on all the object files involved in the link.  (Use -t
flag with ld to identify the object files.)

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list