Hello
i see that the address of specific symbol are not the same between llvm-objdump
and objdump.
The code:
---
#include <stdio.h>
int machin = 42;
int
main ()
{
printf("Hello : %d\n", machin);
return 0;
}
----
compile command:
clang hello1.c -o hello1
And the address of the symbol of the global variable "machin":
[ Fri Mar 08 - 22:58:36 ][ wwolff at hostname ]
~/hello_stuff
$ objdump hello1 -t -g | grep machin
0000000000601020 g O .data 0000000000000004 machin
[ Fri Mar 08 - 22:58:40 ][ wwolff at hostname ]
~/hello_stuff
$ llvm-objdump hello1 -t -g | grep machin
00c02030 g .data 00000004 machin
It's normal??
I see the same difference with llvm-nm and nm.
Best Regards
--
Willy WOLFF
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20130311/c8f13ec3/attachment.html>