Lines 175-190
elf_machine_rela (struct link_map *map, struct r_scope_elem *scope[],
Link Here
|
175 |
|
175 |
|
176 |
#ifndef RTLD_BOOTSTRAP |
176 |
#ifndef RTLD_BOOTSTRAP |
177 |
case __WORDSIZE == 64 ? R_LARCH_TLS_DTPMOD64 : R_LARCH_TLS_DTPMOD32: |
177 |
case __WORDSIZE == 64 ? R_LARCH_TLS_DTPMOD64 : R_LARCH_TLS_DTPMOD32: |
178 |
*addr_field = sym_map->l_tls_modid; |
178 |
if (sym_map) |
|
|
179 |
*addr_field = sym_map->l_tls_modid; |
179 |
break; |
180 |
break; |
180 |
|
181 |
|
181 |
case __WORDSIZE == 64 ? R_LARCH_TLS_DTPREL64 : R_LARCH_TLS_DTPREL32: |
182 |
case __WORDSIZE == 64 ? R_LARCH_TLS_DTPREL64 : R_LARCH_TLS_DTPREL32: |
182 |
*addr_field = TLS_DTPREL_VALUE (sym) + reloc->r_addend; |
183 |
if (sym != NULL) |
|
|
184 |
*addr_field = TLS_DTPREL_VALUE (sym) + reloc->r_addend; |
183 |
break; |
185 |
break; |
184 |
|
186 |
|
185 |
case __WORDSIZE == 64 ? R_LARCH_TLS_TPREL64 : R_LARCH_TLS_TPREL32: |
187 |
case __WORDSIZE == 64 ? R_LARCH_TLS_TPREL64 : R_LARCH_TLS_TPREL32: |
186 |
CHECK_STATIC_TLS (map, sym_map); |
188 |
if (sym != NULL && sym_map != NULL) |
187 |
*addr_field = TLS_TPREL_VALUE (sym_map, sym) + reloc->r_addend; |
189 |
{ |
|
|
190 |
CHECK_STATIC_TLS (map, sym_map); |
191 |
*addr_field = TLS_TPREL_VALUE (sym_map, sym) + reloc->r_addend; |
192 |
} |
188 |
break; |
193 |
break; |
189 |
|
194 |
|
190 |
case R_LARCH_COPY: |
195 |
case R_LARCH_COPY: |
191 |
- |
|
|