Public bug reported:

Binary package hint: nasm

Package: nasm_0.98.38-1.2build1_i386.deb

When the global directive appears after the symbol, it is no longer
exported as global in ELF format.

cat >bug.s <<EOF
mystart:
global mystart:function
EOF
nasm -f elf bug.s
nm bug.o

Output:
00000000 t mystart

But it should display:
00000000 T mystart
With an uppercase T, to show that it's global.

Everything works fine when the global directive appears before the
symbol (ie when the 2 lines are swapped).

An alternative fix would be to throw an error telling the user that the
global directive came too late, and that it should appear before the
symbol.

** Affects: nasm (Ubuntu)
     Importance: Undecided
         Status: New

-- 
nasm global directive sometimes not working with elf output
https://bugs.launchpad.net/bugs/296336
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to