-
-
Save vegard/72e1af7dc01ac4bb25d033870347328d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int x = 0x12345678; | |
const int *xptr = &x; | |
#if 0 | |
$ gcc -O2 -c test.c && objdump -Dr test.o | |
test.o: file format elf64-x86-64 | |
Disassembly of section .data: | |
0000000000000000 <xptr>: | |
... | |
0: R_X86_64_64 x | |
0000000000000008 <x>: | |
8: 78 56 js 60 <x+0x58> | |
a: 34 12 xor $0x12,%al | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment