diff options
Diffstat (limited to 'ld/testsuite/ld-x86-64/no-plt-extern1.S')
-rw-r--r-- | ld/testsuite/ld-x86-64/no-plt-extern1.S | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/no-plt-extern1.S b/ld/testsuite/ld-x86-64/no-plt-extern1.S index 3957f39..0d5820f 100644 --- a/ld/testsuite/ld-x86-64/no-plt-extern1.S +++ b/ld/testsuite/ld-x86-64/no-plt-extern1.S @@ -12,4 +12,17 @@ get_func: call_func: jmp *func@GOTPCREL(%rip) .size call_func, .-call_func + .globl func_p + .section .data.rel,"aw",@progbits + .type func_p, @object +func_p: +#ifdef __LP64__ + .align 8 + .size func_p, 8 + .quad func +#else + .align 4 + .size func_p, 4 + .long func +#endif .section .note.GNU-stack,"",@progbits |