| Summary: | sys-devel/llvm-3.5.1: clang, UndefinedBehaviorSanitizer produces non-PIC output when using std::shared_ptr | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Andrey Vul <andrey.vul> |
| Component: | [OLD] Core system | Assignee: | LLVM support project <llvm> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | andrey.vul, mgorny |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | emerge --info | ||
|
Description
Andrey Vul
2015-02-17 22:09:46 UTC
Created attachment 396760 [details]
emerge --info
Tried -fno-rtti to see whether typeinfo emission could be removed; got: x86_64-pc-linux-gnu-clang-3.5.1: error: invalid argument '-fsanitize=vptr' not allowed with '-fno-rtti' So it appears that the vptr sanitizer injects a non-PICable typeinfo, at least for elf-x86_64. I can't reproduce it with current versions of clang. It's highly likely it has been fixed upstream. |