fixing bugs in reading and more eh_frame code