[llvm-bugs] [Bug 39998] New: Print symbol type in the "Type" column for llvm-nm sysv output format

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 13 06:30:11 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=39998

            Bug ID: 39998
           Summary: Print symbol type in the "Type" column for llvm-nm
                    sysv output format
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-nm
          Assignee: unassignedbugs at nondot.org
          Reporter: jh7370.2008 at my.bristol.ac.uk
                CC: llvm-bugs at lists.llvm.org

llvm-nm does not print anything in the "Type" column when producing sysv
output. It probably should, given that there is such a column, and since this
information is easier to understand than the "Class" column (and of course GNU
nm does it):

GNU:
C:\Work\TempWork> nm bar.o --format=sysv


Symbols from bar.o:

Name                  Value           Class        Type         Size           
 Line  Section

bar                 |0000000000000000|   B  |           
OBJECT|0000000000000004|     |.bss
main                |0000000000000000|   T  |             
FUNC|0000000000000014|     |.text

LLVM:
C:\Work\TempWork> C:\llvm\build\Debug\bin\llvm-nm bar.o --format=sysv


Symbols from bar.o:

Name                  Value           Class        Type         Size           
 Line  Section
bar                 |0000000000000000|   B  |                 
|0000000000000004|     |
main                |0000000000000000|   T  |                 
|0000000000000014|     |

Input:
int bar;

int main(){
    return bar;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181213/5a89a14e/attachment.html>


More information about the llvm-bugs mailing list