hanchenye-llvm-project/compiler-rt/lib
Dean Michael Berris 66faaceeb1 [XRay][compiler-rt] Return the pointer associated with the function instead of the sled
Summary:
XRay has erroneously been returning the address of the first sled in the
instrumentation map for a function id instead of the (runtime-relocated)
functison address. This causes confusion and issues for applications
where:

  - The first sled in the function may not be an entry sled (due to
    re-ordering or some other reason).
  - The caller attempts to find a symbol associated with the pointer at
    runtime, because the sled may not be exactly where the function's
    known address is (in case of inlined functions or those that have an
    external definition for symbols).

This fixes http://llvm.org/PR34340.

Reviewers: eizan

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D37202

llvm-svn: 311871
2017-08-28 03:58:23 +00:00
..
BlocksRuntime [compiler-rt] Test commit: remove some trailing white spaces. 2017-08-25 19:36:30 +00:00
asan [asan] Move __asan_handle_no_return to public header 2017-08-28 00:45:12 +00:00
builtins Revert r311842 - [cmake] Remove i686 target that is duplicate to i386 2017-08-27 20:37:06 +00:00
cfi CFI: Move STL allocator blacklist to clang 2017-08-04 20:04:01 +00:00
dfsan [sanitizer_common] Move filesystem-related code out of sanitizer_common.cc 2017-07-22 01:46:40 +00:00
esan [esan] Use stack_t instead of struct sigaltstack (PR34011) 2017-08-22 21:54:37 +00:00
fuzzer [libFuzzer] Use custom allocators for STL containers in libFuzzer. 2017-08-27 23:20:09 +00:00
interception [sanitizers CMake] NFC Refactor the logic for compiling and generating tests 2017-08-15 22:56:10 +00:00
lsan Add C++17 aligned new/delete interceptors to standalone lsan 2017-08-16 18:09:29 +00:00
msan [msan] Switch the pvalloc overflow test to a lit test 2017-08-04 07:32:10 +00:00
profile [Profile] create a copy of profile file name from environment 2017-08-23 21:39:33 +00:00
safestack Enable SafeStack on NetBSD 2017-08-10 18:40:09 +00:00
sanitizer_common [sanitizer] Do not over-dup string flags 2017-08-21 21:25:38 +00:00
scudo [scudo] Application & platform compatibility changes 2017-08-16 16:40:48 +00:00
stats Support compiler-rt builtins 2017-07-28 03:39:38 +00:00
tsan tsan: don't pass bogus PCs to __tsan_symbolize_external 2017-08-25 08:52:28 +00:00
ubsan Revert r311842 - [cmake] Remove i686 target that is duplicate to i386 2017-08-27 20:37:06 +00:00
xray [XRay][compiler-rt] Return the pointer associated with the function instead of the sled 2017-08-28 03:58:23 +00:00
CMakeLists.txt Move libFuzzer to compiler_rt. 2017-08-21 23:25:50 +00:00