On 05/29/2018 07:38 PM, Martin Liška wrote:
$ nm main.o
00000000 T main
00000000 T mystring
00000000 C pole

Or we can be inspired by readelf:

$ readelf -s a.out
[snip]
Symbol table '.symtab' contains 74 entries:
   Num:    Value          Size Type    Bind   Vis      Ndx Name
    66: 0000000000601250     0 NOTYPE  GLOBAL DEFAULT   24 _end
    67: 00000000004004b0    43 FUNC    GLOBAL DEFAULT   13 _start
    68: 0000000000601038     0 NOTYPE  GLOBAL DEFAULT   24 __bss_start
    69: 0000000000400582    70 FUNC    GLOBAL DEFAULT   13 main
    70: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND fwrite@@GLIBC_2.2.5

Martin

Reply via email to