|
27 | 27 | adrp x0, :tlsdesc_auth:a |
28 | 28 | ldr x16, [x0, :tlsdesc_auth_lo12:a] |
29 | 29 | add x0, x0, :tlsdesc_auth_lo12:a |
30 | | - .tlsdesccall a |
31 | 30 | blraa x16, x0 |
32 | 31 |
|
33 | 32 | // CHECK: adrp x0, 0x[[P]]000 |
|
42 | 41 | adrp x0, :tlsdesc_auth:local1 |
43 | 42 | ldr x16, [x0, :tlsdesc_auth_lo12:local1] |
44 | 43 | add x0, x0, :tlsdesc_auth_lo12:local1 |
45 | | - .tlsdesccall local1 |
46 | 44 | blraa x16, x0 |
47 | 45 |
|
48 | 46 | // CHECK: adrp x0, 0x[[P]]000 |
|
53 | 51 | adrp x0, :tlsdesc_auth:local2 |
54 | 52 | ldr x16, [x0, :tlsdesc_auth_lo12:local2] |
55 | 53 | add x0, x0, :tlsdesc_auth_lo12:local2 |
56 | | - .tlsdesccall local2 |
57 | 54 | blraa x16, x0 |
58 | 55 |
|
59 | 56 | // CHECK: adrp x0, 0x[[P]]000 |
@@ -98,47 +95,38 @@ local2: |
98 | 95 | //--- err1.s |
99 | 96 | // RUN: llvm-mc -filetype=obj -triple=aarch64-pc-linux -mattr=+pauth err1.s -o err1.o |
100 | 97 | // RUN: not ld.lld -shared err1.o -o err1.so 2>&1 | FileCheck --check-prefix=ERR1 --implicit-check-not=error: %s |
101 | | -// ERR1: error: both AUTH and non-AUTH TLSDESC entries for 'a' requested, but only one type of TLSDESC entry per symbol is supported |
102 | | -// ERR1-NEXT: >>> defined in err1.o |
103 | | -// ERR1-NEXT: >>> referenced by err1.o:(.text+0x10) |
104 | | -// ERR1: error: both AUTH and non-AUTH TLSDESC entries for 'a' requested, but only one type of TLSDESC entry per symbol is supported |
105 | | -// ERR1-NEXT: >>> defined in err1.o |
106 | | -// ERR1-NEXT: >>> referenced by err1.o:(.text+0x14) |
107 | | -// ERR1: error: both AUTH and non-AUTH TLSDESC entries for 'a' requested, but only one type of TLSDESC entry per symbol is supported |
108 | | -// ERR1-NEXT: >>> defined in err1.o |
109 | | -// ERR1-NEXT: >>> referenced by err1.o:(.text+0x18) |
| 98 | +// ERR1: error: both AUTH and non-AUTH TLSDESC entries for 'a' requested, but only one type of TLSDESC entry per symbol is supported |
110 | 99 | .text |
111 | 100 | adrp x0, :tlsdesc_auth:a |
112 | 101 | ldr x16, [x0, :tlsdesc_auth_lo12:a] |
113 | 102 | add x0, x0, :tlsdesc_auth_lo12:a |
114 | | - .tlsdesccall a |
115 | 103 | blraa x16, x0 |
116 | 104 |
|
117 | 105 | adrp x0, :tlsdesc:a |
118 | 106 | ldr x1, [x0, :tlsdesc_lo12:a] |
119 | 107 | add x0, x0, :tlsdesc_lo12:a |
120 | | - .tlsdesccall a |
121 | 108 | blr x1 |
122 | 109 |
|
123 | 110 | //--- err2.s |
124 | 111 | // RUN: llvm-mc -filetype=obj -triple=aarch64-pc-linux -mattr=+pauth err2.s -o err2.o |
125 | 112 | // RUN: not ld.lld -shared err2.o -o err2.so 2>&1 | FileCheck --check-prefix=ERR2 --implicit-check-not=error: %s |
126 | | -// ERR2: error: both AUTH and non-AUTH TLSDESC entries for 'a' requested, but only one type of TLSDESC entry per symbol is supported |
127 | | -// ERR2-NEXT: >>> defined in err2.o |
128 | | -// ERR2-NEXT: >>> referenced by err2.o:(.text+0x10) |
129 | | -// ERR2: error: both AUTH and non-AUTH TLSDESC entries for 'a' requested, but only one type of TLSDESC entry per symbol is supported |
130 | | -// ERR2-NEXT: >>> defined in err2.o |
131 | | -// ERR2-NEXT: >>> referenced by err2.o:(.text+0x14) |
132 | | -// ERR2: error: both AUTH and non-AUTH TLSDESC entries for 'a' requested, but only one type of TLSDESC entry per symbol is supported |
133 | | -// ERR2-NEXT: >>> defined in err2.o |
134 | | -// ERR2-NEXT: >>> referenced by err2.o:(.text+0x18) |
| 113 | +// ERR2: error: both AUTH and non-AUTH TLSDESC entries for 'a' requested, but only one type of TLSDESC entry per symbol is supported |
135 | 114 | .text |
136 | 115 | adrp x0, :tlsdesc:a |
137 | 116 | ldr x1, [x0, :tlsdesc_lo12:a] |
138 | 117 | add x0, x0, :tlsdesc_lo12:a |
139 | | - .tlsdesccall a |
140 | 118 | blr x1 |
141 | 119 |
|
| 120 | + adrp x0, :tlsdesc_auth:a |
| 121 | + ldr x16, [x0, :tlsdesc_auth_lo12:a] |
| 122 | + add x0, x0, :tlsdesc_auth_lo12:a |
| 123 | + blraa x16, x0 |
| 124 | + |
| 125 | +//--- err3.s |
| 126 | +// RUN: llvm-mc -filetype=obj -triple=aarch64-pc-linux -mattr=+pauth err3.s -o err3.o |
| 127 | +// RUN: not ld.lld -shared err3.o -o err3.so 2>&1 | FileCheck --check-prefix=ERR3 --implicit-check-not=error: %s |
| 128 | +// ERR3: error: both AUTH and non-AUTH TLSDESC entries for 'a' requested, but only one type of TLSDESC entry per symbol is supported |
| 129 | + .text |
142 | 130 | adrp x0, :tlsdesc_auth:a |
143 | 131 | ldr x16, [x0, :tlsdesc_auth_lo12:a] |
144 | 132 | add x0, x0, :tlsdesc_auth_lo12:a |
|
0 commit comments