public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Should MIPS .eh_frame be writable?
@ 2009-09-08 14:51 Mark Mitchell
  2009-09-08 18:49 ` Richard Sandiford
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Mitchell @ 2009-09-08 14:51 UTC (permalink / raw)
  To: binutils; +Cc: Richard Sandiford

On MIPS GNU/Linux, it appears that GAS marks .eh_frame as read-only.

However, the MIPS32 relocation against the personality routine is not
optimized away (as I'm given to understand it is on some other
platforms), and so .eh_frame does end up needing run-time relocation.
That results in DT_TEXTREL being set on shared objects, and undesirable
relocations at run-time.  (In fact, the uClibc loader -- at least older
versions -- don't support relocations against the text section at all.)

The obvious thing seems to be to set DWARF2_EH_FRAME_READ_ONLY to 0 (it
has the non-conservative default of 1) in tc-mips.h.  Is that the right
approach?

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-09-10  7:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-08 14:51 Should MIPS .eh_frame be writable? Mark Mitchell
2009-09-08 18:49 ` Richard Sandiford
2009-09-08 18:59   ` Mark Mitchell
2009-09-08 19:50     ` Richard Sandiford
2009-09-08 20:24       ` Mark Mitchell
2009-09-09 21:16         ` Richard Sandiford
2009-09-09 23:44           ` Mark Mitchell
2009-09-10  7:56             ` Richard Sandiford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).