-Bsymbolic-functions is incompatible with ASan
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
clang (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The linker flag -Bsymbolic-
On Debian the `libclang_
The impact is that on Debian, ASan will use the stub `__asan_
On Ubuntu, ASan will use the `__asan_
This can be checked using the following command:
```console
$ objdump --dynamic-reloc $(clang -print-
# Debian: 00000000001091c0 R_X86_64_JUMP_SLOT __asan_
# Ubuntu: not found
```
This is problematic for the symbol `__asan_
I'd suggest the following patch to the LLVM/Clang package:
ifneq (,$(LDFLAGS))
LDFLAGS := $(filter-out %-Bsymbolic-
endif
Here is the related bug report for the LLVM project: https:/
Another solution might be to allow-list certain functions using --dynamic-list