Displaying 1 result from an estimated 1 matches for "wwolff".
Did you mean:
wolff
2013 Mar 11
0
[LLVMdev] symbol address: llvm-objdump vs. objdump
...dump 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...