This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/80027] ASAN breaks DT_RPATH $ORIGIN in dlopen()


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80027

Maxim Ostapenko <m.ostapenko at samsung dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |m.ostapenko at samsung dot com

--- Comment #1 from Maxim Ostapenko <m.ostapenko at samsung dot com> ---
It seems that the bug is the same as
https://bugs.llvm.org//show_bug.cgi?id=27790 so it should be fixed in
compiler-rt first.

The problem exists only if use shared libasan.so because it clobbers RPATH,
static libasan should be fine. I don't know whether there is a general recipe
how to deal with this issue, but for now you can try to link ASan runtime
statically (via -static-libasan option) or use LD_LIBRARY_PATH.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]