This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Should MIPS .eh_frame be writable?
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Mark Mitchell <mark at codesourcery dot com>, binutils at sources dot redhat dot com, rdsandiford at googlemail dot com
- Date: Tue, 08 Sep 2009 14:59:01 -0400
- Subject: Re: Should MIPS .eh_frame be writable?
- References: <4AA66F4D.2040001@codesourcery.com> <87bpll1dc5.fsf@firetop.home>
Richard Sandiford wrote:
> The relocations are only for the personality routines, right?
Yes.
> If so, then I think we should simply use an indirect encoding.
> I'll do a (gcc) patch.
That's clearly ideal; I wasn't sure if it was possible. But, it doesn't
solve the problem that there are versions of GCC out there generating
code that results in a read-write frame. I think it's bad if GAS marks
a section as read-only when it should know that it's not. Shouldn't GAS
check that it's really generating a read-only frame before setting the
read-only bit?
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713