mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-12 14:09:12 +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
|
@ -22,24 +22,10 @@
|
|||
.source __FILE__
|
||||
|
||||
/ Equivalent to valloc(minimum-page-that-holds(n)), that is,
|
||||
/ round up n to nearest PAGESIZE.
|
||||
/ round up n to nearest pagesize.
|
||||
/
|
||||
/ @param rdi is number of bytes needed
|
||||
/ @return rax is memory address, or NULL w/ errno
|
||||
/ @see dlpvalloc()
|
||||
pvalloc:jmp *hook$pvalloc(%rip)
|
||||
.endfn pvalloc,globl
|
||||
|
||||
.initbss 800,_init_pvalloc
|
||||
hook$pvalloc:
|
||||
.quad 0
|
||||
.endobj hook$pvalloc,globl,hidden
|
||||
.previous
|
||||
|
||||
.init.start 800,_init_pvalloc
|
||||
.hidden dlpvalloc
|
||||
ezlea dlpvalloc,ax
|
||||
stosq
|
||||
.init.end 800,_init_pvalloc
|
||||
|
||||
yoink free
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue