Add -mrelax-relocations= to x86 assembler
[deliverable/binutils-gdb.git] / ld / testsuite / ld-i386 / got1a.S
index f3d5330b05723fe03ee1b2aaf8abc86e01baccbc..7a3f7b5b47dae5c64bfa48f664d82cc56f760861 100644 (file)
@@ -12,10 +12,19 @@ main:
        call    *%eax
        movl    plt@GOT, %eax
        call    *%eax
-       movl    foo@GOT(%ebx), %ecx
+       call    __x86.get_pc_thunk.cx
+       addl    $_GLOBAL_OFFSET_TABLE_, %ecx
+       movl    foo@GOT(%ecx), %ecx
        call    *%ecx
        subl    $12, %esp
        pushl   $0
        pushl   $0      # Push a dummy return address onto stack.
        jmp     *myexit@GOT
        .size   main, .-main
+       .section        .text.__x86.get_pc_thunk.cx,"axG",@progbits,__x86.get_pc_thunk.cx,comdat
+       .globl  __x86.get_pc_thunk.cx
+       .hidden __x86.get_pc_thunk.cx
+       .type   __x86.get_pc_thunk.cx, @function
+__x86.get_pc_thunk.cx:
+       movl    (%esp), %ecx
+       ret
This page took 0.023476 seconds and 4 git commands to generate.