From 28379dc0f6d62e3a5d1061015582f2ce7aeaa3e6 Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Sat, 5 Aug 2023 17:40:24 -0700 Subject: [PATCH] [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. --- src/libraries/j6/syscalls.s.cog | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libraries/j6/syscalls.s.cog b/src/libraries/j6/syscalls.s.cog index 279d89c..28e6df2 100644 --- a/src/libraries/j6/syscalls.s.cog +++ b/src/libraries/j6/syscalls.s.cog @@ -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