MIPS exception handling is broken...

David Daney ddaney@avtrex.com
Mon Sep 18 16:32:00 GMT 2006


Has anyone else noticed that the mipsel-linux-gnu target is generating 
bad .eh_frame data lately?

I am running mipsel-linux-gcc (GCC) 4.2.0 20060914 (experimental) which 
is svn r116953

I also notice that

http://gcc.gnu.org/ml/gcc-testresults/2006-09/msg00922.html

Shows similar results.  So I don't think it is just my problem.

A month ago everything was working well, so I don't know what happened.

I have tracked the problem down to the fact that GCC is generating 
unwind data with absolute addressing, but when ld links the runtime 
libraries, it is trying to convert to PC relative addressing and 
screwing up the .eh_frame data in the process.

I posted a message to the binutils list showing the problem:

  http://sourceware.org/ml/binutils/2006-09/msg00131.html

In the next few days I may try to track down the offending patches, but 
if anyone has any pointers they are of course welcome.

David Daney.



More information about the Gcc mailing list