[compiler-rt] r258857 - [cfi] Support for dlopen and dlclose.

H.J. Lu via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 27 12:06:47 PST 2016


On Tue, Jan 26, 2016 at 12:53 PM, Evgeniy Stepanov via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> Author: eugenis
> Date: Tue Jan 26 14:53:09 2016
> New Revision: 258857
>
> URL: http://llvm.org/viewvc/llvm-project?rev=258857&view=rev
> Log:
> [cfi] Support for dlopen and dlclose.
>
> Add dlopen/dlclose interceptors to update CFI shadow for loaded/unloaded libraries.
>
> Added:
>     compiler-rt/trunk/test/cfi/cross-dso/dlopen.cpp
>     compiler-rt/trunk/test/cfi/cross-dso/shadow_is_read_only.cpp
> Modified:
>     compiler-rt/trunk/lib/cfi/cfi.cc
>     compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.h
>     compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc
>
>

On Fedora 23/x86-64, I got


/export/gnu/import/git/llvm/projects/compiler-rt/test/cfi/cross-dso/dlopen.cpp:67:45:
warning: GCC does not allow 'aligned' attribute in this position on a
function definition [-Wgcc-compat]
extern "C" void do_nothing() __attribute__((aligned(4096))) {}
                                            ^
1 warning generated.
/export/gnu/import/git/llvm/projects/compiler-rt/test/cfi/cross-dso/dlopen.cpp:104:10:
error: expected string not found in input
 // CFI: =0=
         ^
<stdin>:1:1: note: scanning from here
dlopen.cpp.tmp1:
/export/gnu/import/git/llvm/projects/compiler-rt/test/cfi/cross-dso/dlopen.cpp:97:
int main(int, char **): Assertion `handle' failed.
^

--

********************
Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
Testing Time: 480.33s
********************
Failing Tests (1):
    cfi :: cross-dso/dlopen.cpp

  Expected Passes    : 26735
  Expected Failures  : 177
  Unsupported Tests  : 739
  Unexpected Failures: 1


-- 
H.J.


More information about the llvm-commits mailing list