NASM - The Netwide Assembler
NASM Forum => Programming with NASM => Topic started by: nasmtaskforce on April 16, 2021, 07:30:38 PM
-
Hi everyone,
I use a small macro on my static library like :
%macro cglobal 1
global %1
%1:
%endmacro
Now, i have made a simple modification for shared library so:
%macro cglobal 1
global %1:function
%1:
%endmacro
The "function" key is not working. Maybe macro don't want to merge it.
but when I use this method :
%macro cglobal 1
global %1:func <-- no function only func
%1:
%endmacro
It works like a charm :o
Is that a BUG ???
With regards.
PS: I work on Debian and NASM release 2.14
-
I've just installed nasm 2.15 and everything seems to be ok.
No need to use function or func keyword with global, it already export the function correctly. 8)