[vms/committed] Do not make CODE sections writable

Tristan Gingold gingold@adacore.com
Wed Aug 4 10:22:00 GMT 2010


On Aug 4, 2010, at 11:08 AM, Tristan Gingold wrote:

> 
> On Aug 4, 2010, at 11:05 AM, Andreas Schwab wrote:
> 
>> Tristan Gingold <gingold@adacore.com> writes:
>> 
>>> a one word patch to prevent CODE sections from being writable in bfd outputs.
>> 
>> Why?  In principle, there should be nothing wrong with having a writable
>> code section.  If SEC_READONLY isn't set when it should it looks like a
>> bug elsewhere.
> 
> Ah.  I will investigate that.

In object files, the CODE sections were not marked read-only.  I am testing a fix.

Thanks for catching this,
Tristan.



More information about the Binutils mailing list