diff options
Diffstat (limited to 'ld/testsuite/ld-i386/got1a.S')
-rw-r--r-- | ld/testsuite/ld-i386/got1a.S | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ld/testsuite/ld-i386/got1a.S b/ld/testsuite/ld-i386/got1a.S new file mode 100644 index 0000000..f3d5330 --- /dev/null +++ b/ld/testsuite/ld-i386/got1a.S @@ -0,0 +1,21 @@ + .text + .globl main + .type main, @function +main: + subl $12, %esp + call *foo@GOT + call *bar@GOT + call *plt@GOT + movl foo@GOT, %eax + call *%eax + movl bar@GOT, %eax + call *%eax + movl plt@GOT, %eax + call *%eax + movl foo@GOT(%ebx), %ecx + call *%ecx + subl $12, %esp + pushl $0 + pushl $0 # Push a dummy return address onto stack. + jmp *myexit@GOT + .size main, .-main |