[llvm-bugs] [Bug 42177] New: Update documentation on linking DSOs with -fsanitize=address
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jun 7 04:54:09 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42177
Bug ID: 42177
Summary: Update documentation on linking DSOs with
-fsanitize=address
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: dilyan.palauzov at aegee.org
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
Per https://github.com/google/sanitizers/issues/1086 update
https://clang.llvm.org/docs/AddressSanitizer.html to state, that:
- Linking DSOs with -fsanitize=address does nothing.
- Linking DSOs with -fsanitize=address -libsan-shared helps with the undefined
symbols for the linker, by adding a DL_NEEDED entry, but at run time this entry
is not used: the symbols have to be loaded either within the executable, or the
asan-runtime has to be loaded with LD_PRELOAD
- Discourage the use of -fsanitize=address -libsan-static, as it is not
documented
The statement “ When linking shared libraries, the AddressSanitizer run-time is
not linked, so -Wl,-z,defs may cause link errors (don’t use it with
AddressSanitizer).” is not correct, when -libsan-shared is used.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190607/a225ea66/attachment.html>
More information about the llvm-bugs
mailing list