This is an archive of the discontinued LLVM Phabricator instance.

Modify llvm-objdump to display information for common symbols similar to GNU objdump
ClosedPublic

Authored by colinl on Jan 23 2015, 7:35 AM.

Details

Summary

Output for GNU objdump:
$ objdump -t test.o

test.o: file format elf32-little

SYMBOL TABLE:
00000000 l df *ABS* 00000000 test.c
00000000 l d .text 00000000 .text
00000000 l d .data 00000000 .data
00000000 l d .bss 00000000 .bss
00000000 l d .comment 00000000 .comment
00000400 O *COM* 00000008 common_symbol

Output for llvm-objdump:
$ ./bin/llvm-objdump.exe -t test.o

test.o: file format ELF32-hexagon

SYMBOL TABLE:
00000000 *UND* 00000000
00000000 l df *ABS* 00000000 test.c
00000000 l d .text 00000000 .text
00000000 l d .data 00000000 .data
00000000 l d .bss 00000000 .bss
00000000 l d .comment 00000000 .comment
00000400 g *COM* 00000008 common_symbol

Diff Detail

Event Timeline

colinl updated this revision to Diff 18678.Jan 23 2015, 7:35 AM
colinl retitled this revision from to Modify llvm-objdump to display information for common symbols similar to GNU objdump.
colinl updated this object.
colinl edited the test plan for this revision. (Show Details)
colinl set the repository for this revision to rL LLVM.
colinl added a subscriber: Unknown Object (MLST).
rafael accepted this revision.Jan 23 2015, 11:15 AM
rafael added a reviewer: rafael.
rafael added a subscriber: rafael.

There are a few difference left, but this is going on the right direction.

LGTM

test/tools/llvm-objdump/common-symbol-elf.test
4

please add a newline.

This revision is now accepted and ready to land.Jan 23 2015, 11:15 AM
colinl closed this revision.Jan 26 2015, 10:13 AM

Committed r226932