mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 06:48:31 +00:00
Delete ASAN
It hasn't been helpful enough to be justify the maintenance burden. What actually does help is mprotect(), kprintf(), --ftrace and --strace which can always be counted upon to work correctly. We aren't losing much with this change. Support for ASAN on AARCH64 was never implemented. Applying ASAN to the core libc runtimes was disabled many months ago. If there is some way to have an ASAN runtime for user programs that is less invasive we can potentially consider reintroducing support. But now is premature.
This commit is contained in:
parent
6ffed14b9c
commit
d1d4388201
198 changed files with 130 additions and 2954 deletions
|
@ -488,31 +488,12 @@
|
|||
.endm
|
||||
|
||||
.macro .poison name:req kind:req
|
||||
#ifdef __SANITIZE_ADDRESS__
|
||||
2323: .quad 0
|
||||
.init.start 304,"_init_\name\()_poison_\@"
|
||||
push %rdi
|
||||
push %rsi
|
||||
ezlea 2323b,di
|
||||
mov $8,%esi
|
||||
mov $\kind,%edx
|
||||
call __asan_poison
|
||||
pop %rsi
|
||||
pop %rdi
|
||||
.init.end 304,"_init_\name\()_poison_\@"
|
||||
#endif
|
||||
.endm
|
||||
|
||||
.macro .underrun
|
||||
#ifdef __SANITIZE_ADDRESS__
|
||||
.poison __BASE_FILE__, -20 # kAsanGlobalUnderrun
|
||||
#endif
|
||||
.endm
|
||||
|
||||
.macro .overrun
|
||||
#ifdef __SANITIZE_ADDRESS__
|
||||
.poison __BASE_FILE__, -21 # kAsanGlobalOverrun
|
||||
#endif
|
||||
.endm
|
||||
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue