brintos

brintos / llvm-project-archived public Read only

0
0
Text · 779 B · 4fbc79e Raw
25 lines · plain
1// REQUIRES: aarch642// RUN: llvm-mc -filetype=obj -triple=aarch64-windows %s -o %t.obj3// RUN: lld-link -entry:main -subsystem:console %t.obj -out:%t.exe4// Don't check the output, just make sure it links fine and doesn't5// error out due to a misaligned load.6    .text7    .globl main8    .globl myfunc9main:10    adrp x8, __imp_myfunc11    ldr  x0, [x8, :lo12:__imp_myfunc]12    br   x013    ret14myfunc:15    ret16 17    .section .rdata, "dr"18    // Start the .rdata section with a 4 byte chunk, to expose the alignment19    // of the next chunk in the section.20mydata:21    .byte 4222    // The synthesized LocalImportChunk gets stored here in the .rdata23    // section, but needs to get proper 8 byte alignment since it is a24    // pointer, just like regular LookupChunks in the IAT.25