[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:
Justin C. Miller
2023-08-05 17:40:24 -07:00
parent c86c0f2ae6
commit 28379dc0f6

View File

@@ -1,7 +1,7 @@
; vim: ft=asm
%macro define_syscall 2
global j6_%1
global j6_%1: function (j6_%1.end - j6_%1)
j6_%1:
push rbp
mov rbp, rsp
@@ -28,6 +28,7 @@
pop rbx
pop rbp
ret
.end:
%endmacro
; [[[cog code generation