[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / lld / test / ELF / global-offset-table-position-aarch64.s
blob394e04da5816a325fcd698f63200efca9268d4bc
1 // REQUIRES: aarch64
2 // RUN: llvm-mc -filetype=obj -triple=aarch64-linux-gnu %s -o %t
3 // RUN: ld.lld --hash-style=sysv -shared %t -o %t2
4 // RUN: llvm-readobj --symbols %t2 | FileCheck %s
5 .globl a
6 .type a,@object
7 .comm a,4,4
9 .globl f
10 .type f,@function
12 adrp x0, :got:a
13 ldr x0, [x0, #:got_lo12:a]
15 .global _start
16 .type _start,@function
17 _start:
18 bl f
19 .data
20 .long _GLOBAL_OFFSET_TABLE_ - .
22 // CHECK: Name: _GLOBAL_OFFSET_TABLE_
23 // CHECK-NEXT: Value:
24 // CHECK-NEXT: Size: 0
25 // CHECK-NEXT: Binding: Local (0x0)
26 // CHECK-NEXT: Type: None (0x0)
27 // CHECK-NEXT: Other [ (0x2)
28 // CHECK-NEXT: STV_HIDDEN (0x2)
29 // CHECK-NEXT: ]
30 // CHECK-NEXT: Section: .got