Author Topic: Is that a BUG ??  (Read 9642 times)

Offline nasmtaskforce

  • Jr. Member
  • *
  • Posts: 3
Is that a BUG ??
« 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

Offline nasmtaskforce

  • Jr. Member
  • *
  • Posts: 3
Re: Is that a BUG ??
« Reply #1 on: April 16, 2021, 09:06:10 PM »
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)