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] |
On Sun, Jun 16, 2002 at 12:13:23AM -0700, H . J . Lu wrote: > 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 > > > Here is an update. I fixed the 64bit objects: # ./nm-new -f s libx.a ymbols from libx.a[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* Symbols from libx.a[x.o]: Name Value Class Type Size Line Section *ABS* |0000000000000000| a | NOTYPE| | |*ABS* foo | | U | NOTYPE| | |*UND* main |0000000000000000| T | FUNC|000000000000003c | |.text # ./nm-new -f s ~/tmp/x.o x.o 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 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* 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] |