This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RFA: Allow .rdata to be writable on mips-wrs-vxworks
"Dave Korn" <dave.korn@artimi.com> writes:
> On 18 May 2007 10:07, Thiemo Seufer wrote:
>> Richard Sandiford wrote:
>>> Ping.
>> [snip]
>>>> ld/
>>>> * emulparams/elf32ebmipvxworks.sh (OTHER_READONLY_SECTIONS)
>>>> (OTHER_READWRITE_SECTIONS): Define. Add .rdata sections.
>>
>> Ok.
>>
>>
>> Thiemo
>
>
> This might introduce significant security vulnerabilities in applications
> that keep e.g. vtbls or other function pointers in .rdata, mightn't it?
No, those vunerabilities are already there. A writable .rdata input
section _already_ makes the output section writable; the patch simply
chooses the segment based on whether the output .rdata section is
already seen as writable.
Without the patch, a writable .rdata section goes in the text segment,
and makes the whole text segment writable. The patch is a security
improvement in that respect.
Richard