File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -665,7 +665,7 @@ static int64_t getTlsTpOffset(const Symbol &s) {
665
665
// `tls` may be null, the return value is ignored.
666
666
if (s.type != STT_TLS)
667
667
return 0 ;
668
- return s.getVA (0 ) + (tls ? tls ->p_vaddr & (tls->p_align - 1 ) : 0 );
668
+ return s.getVA (0 ) + (tls->p_vaddr & (tls->p_align - 1 ));
669
669
670
670
// Variant 2.
671
671
case EM_HEXAGON:
Original file line number Diff line number Diff line change 169
169
# IE32-NEXT: lw a0 , 0x80(a0 )
170
170
# IE32-NEXT: add a0 , a0 , tp
171
171
172
- # IE64A-LABEL: 0000000000002340 R_RISCV_TLS_TPREL64 c
172
+ # IE64A: OFFSET TYPE VALUE
173
+ # IE64A-NEXT: 0000000000002340 R_RISCV_TLS_TPREL64 c
174
+ # IE64A-EMPTY:
173
175
## &.got[c]-. = 0x2340 - 0x1258 = 0x10e8
174
176
# IE64A-LABEL: <.Ltlsdesc_hi2>:
175
177
# IE64A-NEXT: addi zero, zero, 0x0
You can’t perform that action at this time.
0 commit comments