mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
7ae39e2d40
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.
16 lines
257 B
ArmAsm
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
|