mirror of
https://github.com/justinian/jsix.git
synced 2025-12-09 16:04:32 -08:00
[libj6] Add symbol sizes to syscall stubs
Add extra info to the NASM `global` directive to specify the sizes of these symbols, mostly so they look right in `nm` or `readelf` and don't trick me into thinking something is wrong.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
; vim: ft=asm
|
; vim: ft=asm
|
||||||
|
|
||||||
%macro define_syscall 2
|
%macro define_syscall 2
|
||||||
global j6_%1
|
global j6_%1: function (j6_%1.end - j6_%1)
|
||||||
j6_%1:
|
j6_%1:
|
||||||
push rbp
|
push rbp
|
||||||
mov rbp, rsp
|
mov rbp, rsp
|
||||||
@@ -28,6 +28,7 @@
|
|||||||
pop rbx
|
pop rbx
|
||||||
pop rbp
|
pop rbp
|
||||||
ret
|
ret
|
||||||
|
.end:
|
||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
; [[[cog code generation
|
; [[[cog code generation
|
||||||
|
|||||||
Reference in New Issue
Block a user