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

            Bug ID: 39999
           Summary: Print symbol section in the "Section" 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: unassignedb...@nondot.org
          Reporter: jh7370.2...@my.bristol.ac.uk
                CC: llvm-bugs@lists.llvm.org

See also bug 39998, which covers the missing information in the "Type" column.

llvm-nm does not print anything in the "Section" column when producing sysv
output. It probably should, given that there is such a 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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to