This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [vms/committed] Do not make CODE sections writable


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]