RFA: Allow .rdata to be writable on mips-wrs-vxworks
Dave Korn
dave.korn@artimi.com
Fri May 18 10:11:00 GMT 2007
On 18 May 2007 10:48, Richard Sandiford wrote:
> "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.
Oh, gotcha, pardon the noise.
> 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.
Yes, certainly!
cheers,
DaveK
--
Can't think of a witty .sigline today....
More information about the Binutils
mailing list