Put the munmap and munmap_text trampolines in a separate .S file, so that they can be overridden independenly of mmap.
This commit is contained in:
12
lib/libc/syscall/munmap.S
Normal file
12
lib/libc/syscall/munmap.S
Normal file
@@ -0,0 +1,12 @@
|
||||
.text
|
||||
.extern __munmap
|
||||
.globl _munmap
|
||||
.extern __munmap_text
|
||||
.globl _munmap_text
|
||||
.balign 2
|
||||
|
||||
_munmap:
|
||||
jmp __munmap
|
||||
|
||||
_munmap_text:
|
||||
jmp __munmap_text
|
||||
Reference in New Issue
Block a user