Skip to content

Commit 63a6d17

Browse files
committed
Move test to pack-dyn-relocs-ifunc.s
Created using spr 1.3.6-beta.1
1 parent ade32a0 commit 63a6d17

File tree

2 files changed

+25
-26
lines changed

2 files changed

+25
-26
lines changed

lld/test/ELF/pack-dyn-relocs-ifunc-static.s

Lines changed: 0 additions & 26 deletions
This file was deleted.

lld/test/ELF/pack-dyn-relocs-ifunc.s

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,28 @@ _start:
4747
.globl bar
4848
bar:
4949
ret
50+
51+
#--- c.s
52+
53+
# RUN: llvm-mc -filetype=obj -triple=aarch64-linux-android c.s -o c.o
54+
# RUN: ld.lld --pack-dyn-relocs=android c.o -o c
55+
# RUN: llvm-readelf -sS c | FileCheck --check-prefix=STATIC %s
56+
57+
# STATIC: .rela.plt RELA 0000000000200158 000158 000018 18 AI 0 5 8
58+
# STATIC: 0000000000200158 0 NOTYPE LOCAL HIDDEN 1 __rela_iplt_start
59+
# STATIC: 0000000000200170 0 NOTYPE LOCAL HIDDEN 1 __rela_iplt_end
60+
61+
.text
62+
.type foo, %gnu_indirect_function
63+
.globl foo
64+
foo:
65+
ret
66+
67+
.globl _start
68+
_start:
69+
bl foo
70+
71+
.data
72+
.balign 8
73+
.quad __rela_iplt_start
74+
.quad __rela_iplt_end

0 commit comments

Comments
 (0)