binutils-gdb/gold/testsuite/aarch64_pr23870_main.S
Egeyar Bagcioglu 7ae39e2d40 Check whether symbols with MOVW_.ABS relocations require PLT entries (aarch64).
2019-02-19  Egeyar Bagcioglu  <egeyar.bagcioglu@oracle.com>

gold/
     PR gold/23870
     * aarch64.cc (Target_aarch64::Scan::global): Check if a symbol with
     R_AARCH64_MOVW_.ABS_* relocations requires a PLT entry.
     * testsuite/Makefile.am: Add aarch64_pr23870 test case.
     * testsuite/Makefile.in: Regenerate.
     * testsuite/aarch64_pr23870_bar.c: New file.
     * testsuite/aarch64_pr23870_foo.c: New file.
     * testsuite/aarch64_pr23870_main.S: New file.
2019-02-19 16:13:24 -08:00

16 lines
257 B
ArmAsm

.text
.globl main
.type main,#function
main:
stp x29, x30, [sp,#-16]!
mov x29, sp
movz x0, #:abs_g3:bar
movk x0, #:abs_g2_nc:bar
movk x0, #:abs_g1_nc:bar
movk x0, #:abs_g0_nc:bar
add x0, x0, #0x0
bl foo
ldp x29, x30, [sp],#16
ret