]> granicus.if.org Git - llvm/commit
[JITLink] Fix section start address calculation in eh-frame recorder.
authorLang Hames <lhames@gmail.com>
Mon, 22 Apr 2019 01:35:16 +0000 (01:35 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 22 Apr 2019 01:35:16 +0000 (01:35 +0000)
commitc13dba05ba5968a9ac1d10c064da59d313ba0825
treeffe2d5456faf079248dfc02c3c44ccad7373a319
parent909f6da0ace030c3d66a95f1a58ae97fbf8b55a8
[JITLink] Fix section start address calculation in eh-frame recorder.

Section atoms are not sorted, so we need to scan the whole section to find the
start address.

No test case: Found by inspection, and any reproduction would depend on pointer
ordering.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358865 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/JITLink/JITLink_EHFrameSupport.cpp