1/* 2* Copyright (C) 2025 Huawei Device Co., Ltd. 3* Licensed under the Apache License, Version 2.0 (the "License"); 4* you may not use this file except in compliance with the License. 5* You may obtain a copy of the License at 6* 7* http://www.apache.org/licenses/LICENSE-2.0 8* 9* Unless required by applicable law or agreed to in writing, software 10* distributed under the License is distributed on an "AS IS" BASIS, 11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12* See the License for the specific language governing permissions and 13* limitations under the License. 14*/ 15 .text 16 17 18 .globl glob_dat_f1 19 .p2align 2 20 .type glob_dat_f1,@function 21glob_dat_f1: 22 mov w0, #1 23 ret 24.Lfunc_end0: 25 .size glob_dat_f1, .Lfunc_end0-glob_dat_f1 26 27 28 .globl glob_dat_test 29 .p2align 2 30 .type glob_dat_test,@function 31glob_dat_test: 32 sub sp, sp, #32 33 stp x29, x30, [sp, #16] 34 add x29, sp, #16 35 adrp x8, :got:glob_dat_f1 36 ldr x8, [x8, :got_lo12:glob_dat_f1] 37 str x8, [sp, #8] 38 adrp x8, :got:glob_var1 39 ldr x8, [x8, :got_lo12:glob_var1] 40 str x8, [sp] 41 ldr x8, [sp, #8] 42 blr x8 43 ldr x8, [sp] 44 ldr w8, [x8] 45 add w0, w0, w8 46 ldp x29, x30, [sp, #16] 47 add sp, sp, #32 48 ret 49.Lfunc_end1: 50 .size glob_dat_test, .Lfunc_end1-glob_dat_test 51 52 53 .type glob_var1,@object 54 .data 55 .globl glob_var1 56 .p2align 2 57glob_var1: 58 .word 1 59 .size glob_var1, 4 60 61 62 .section ".note.GNU-stack","",@progbits 63 .addrsig 64 .addrsig_sym glob_dat_f1 65 .addrsig_sym glob_var1 66