What do the .eh_frame and .eh_frame_hdr sections store, exactly?

若如初见. 提交于 2019-11-28 18:39:58
Icarus3

Please, see cfi-directives

It should cover history and theory of most of the sections in question.

About eh_frame, it contains exception unwinding and source language information. Each entry in this section is represented by single CFI (call frame information )

see, eh_frame in linuxfoundation

eh_frame_hdr, is used by c++ runtime code to access the eh_frame. That means, it contains the pointer and binary search table to efficiently retrieve the information from eh_frame.

Now, in case you want to see how you read/write this sections then I suggest take a look at following linker code.

(look for EhFrame.cpp, EhFrameHdr.cpp and EhFrameReader.cpp )

Good luck !!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!