[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Workaround for Alpha libstc++ unaligned access problem



"Christopher C. Chimelis" <chris@debian.org> writes:

> On 21 Feb 2000, David Huggins-Daines wrote:
> Great work!  BTW, the offending code is also in binutils' source and is
> quite a bit more explicit (see gas/ehopt.c).  I need to look at the DWARF2
> spec, but I don't see why it would require such a fixed alignment.  FYI,
> the ehopt.c code is specifically there to optimise gcc's EH frame
> relocations, so that may be another worthwhile avenue for you to
> pursue.  Being the binutils maintainer, I really wish I could work on this
> more right now, but it's a bad time (today's my first day back from my
> 2-week-long vacation/honeymoon).  Let me know if you need me to patch
> something, though, as I'm equally interested in solving the problem for
> good.

The problem is that it needs support from three places:

1) gcc code the generates the frame info in the first place
2) gas code that optimizes the frame info
3) C++ runtime support that reads the frame info in exception handlers
   (gcc/frame.o)

The last one is particularly important, as it's where we have the
potential to break binary compatibility.  Basically we have to find a
way to make the pointer to the exception table aligned, while still
allowing the exception handling code to find it.


Reply to: