Add some ARM eh related code.

This is a copy of the easy part of issue #489.