[Nasm-bugs] [Bug 3392749] New: macro do not recognize the function keyword
noreply-nasm at dev.nasm.us
noreply-nasm at dev.nasm.us
Sun May 2 11:20:04 PDT 2021
https://bugzilla.nasm.us/show_bug.cgi?id=3392749
Bug ID: 3392749
Summary: macro do not recognize the function keyword
Product: NASM
Version: 2.15.xx
Hardware: All
OS: Linux
Status: OPEN
Severity: normal
Priority: Medium
Component: Assembler
Assignee: nobody at nasm.us
Reporter: nsa at dibyasyk.fr
CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
hpa at zytor.com, nasm-bugs at nasm.us
Obtained from: Binary from nasm.us
Dear my friend,
I have made a shared library with more than 100 functions made with nasm.
When i tried to use this macro to declare all of my functions as external
function :
%macro cglobal 1
global %1:function
%1:
%endmacro
I get the following message : "error: cannot use relocatable expression
as symbol size".
But when i use (F)unction with a capital F it works and i can link my
application with the whole functionnalities of my shared library.
%macro cglobal 1
global %1:Function
%1:
%endmacro
Is that normal ?
This library works on Debian and Mac OS 64 Bit
I use the latest relase of nasm.
This lib works on static mode and now on shared mode but i'm suprised to use
the capital F with the function word.
Best regards.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
More information about the Nasm-bugs
mailing list