[Nasm-bugs] [Bug 3392386] New: Visibility specification has no effect

no-reply at bugzilla-nasm.gorcunov.org no-reply at bugzilla-nasm.gorcunov.org
Wed Feb 15 12:23:05 PST 2017


https://bugzilla.nasm.us/show_bug.cgi?id=3392386

            Bug ID: 3392386
           Summary: Visibility specification has no effect
           Product: NASM
           Version: 2.12.xx
          Hardware: PC
                OS: Linux
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: andysem at mail.ru
                CC: gorcunov at gmail.com, hpa at zytor.com, nasm-bugs at nasm.us

Created attachment 411578
  --> https://bugzilla.nasm.us/attachment.cgi?id=411578&action=edit
Test code snippet

ELF visibility specification has no effect on the produced binary. For example,
having the following code:

  global foo
  global foo_hidden:function hidden

  SECTION .text  align=16

  foo:
  foo_hidden:
  foo_label:
      ret


$ nasm -f elf64 -o nasm_visibility.o nasm_visibility.asm
$ nm nasm_visibility.o 
0000000000000000 T foo
0000000000000000 T foo_hidden
0000000000000000 t foo_label

You can see that the foo_hidden function has the default visibility.

This is on Kubuntu 16.10 x86_64, nasm 2.12.01.

-- 
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