mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-21 10:00:30 +00:00
Get address sanitizer mostly working
This commit is contained in:
parent
1f1f3cd477
commit
7327c345f9
149 changed files with 3777 additions and 3457 deletions
|
@ -21,24 +21,10 @@
|
|||
#include "libc/notice.inc"
|
||||
.source __FILE__
|
||||
|
||||
/ Equivalent to memalign(PAGESIZE, n).
|
||||
/ Equivalent to memalign(4096, n).
|
||||
/
|
||||
/ @param rdi is number of bytes needed
|
||||
/ @return rax is memory address, or NULL w/ errno
|
||||
/ @see dlvalloc()
|
||||
valloc: jmp *hook$valloc(%rip)
|
||||
.endfn valloc,globl
|
||||
|
||||
.initbss 800,_init_valloc
|
||||
hook$valloc:
|
||||
.quad 0
|
||||
.endobj hook$valloc,globl,hidden
|
||||
.previous
|
||||
|
||||
.init.start 800,_init_valloc
|
||||
.hidden dlvalloc
|
||||
ezlea dlvalloc,ax
|
||||
stosq
|
||||
.init.end 800,_init_valloc
|
||||
|
||||
yoink free
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue