Commit | Line | Data |
---|---|---|
712ec279 L |
1 | .text |
2 | .globl foo | |
3 | .type foo, @gnu_indirect_function | |
4 | foo: | |
5 | ret | |
6 | .text | |
7 | .type bar, @gnu_indirect_function | |
8 | bar: | |
9 | ret | |
10 | .globl _start | |
11 | .type _start, @function | |
12 | _start: | |
13 | call *foo@GOT | |
14 | jmp *bar@GOT | |
15 | movl $0, bar@GOT | |
16 | cmpl $0, foo@GOT | |
17 | movl $bar@GOT, %ecx |