This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Add type and section to nm


This patch adds type and section to nm for the sysv output. I got

# nm-new -f s x.o


Symbols from x.o:

Name                  Value   Class        Type         Size     Line  Section

foo                 |        |   U  |            NOTYPE|        |     |*UND*
main                |00000000|   T  |              FUNC|00000017|     |.text
x                   |00000000|   D  |            OBJECT|00000004|     |.data
y                   |        |   U  |            NOTYPE|        |     |*UND*


BTW, it only works on 32bit ELF. The display is strange for 64bit ELF. I got



Symbols from /home/hjl/tmp/x.o:

Name                  Value   Class        Type         Size     Line  Section

*ABS*               |0000000000000000|   a  |            NOTYPE|        |     |*ABS*
foo                 |        |   U  |            NOTYPE|        |     |*UND*
main                |0000000000000000|   T  |              FUNC|000000000000003c|     |.text



H.J.

Attachment: nm-sysv.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]