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

no-reply at bugzilla-nasm.gorcunov.org no-reply at bugzilla-nasm.gorcunov.org
Fri Mar 31 14:06:52 PDT 2017


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

H. Peter Anvin <hpa at zytor.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|OPEN                        |CLOSED
         Resolution|---                         |INVALID

--- Comment #1 from H. Peter Anvin <hpa at zytor.com> ---
"nm" doesn't display visibility information.  Use "readelf -s" to display the
symbol table information to see that the symbol is indeed hidden:

[hanvin at hanvin-mobl2 test]$ readelf -s elf_visibility.o

Symbol table '.symtab' contains 6 entries:
   Num:    Value  Size Type    Bind   Vis      Ndx Name
     0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 00000000     0 FILE    LOCAL  DEFAULT  ABS elf_visibility.asm
     2: 00000000     0 SECTION LOCAL  DEFAULT    1 
     3: 00000000     0 NOTYPE  LOCAL  DEFAULT    1 foo_label
     4: 00000000     0 NOTYPE  GLOBAL DEFAULT    1 foo
     5: 00000000     0 FUNC    GLOBAL HIDDEN     1 foo_hidden

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