uclibc-ng: bump version from 1.0.6 to 1.0.8
[openwrt/staging/chunkeey.git] / toolchain / uClibc / patches-0.9.33.2 / 613-mips64_more_relocation_fixes.patch
1 --- a/ldso/ldso/mips/elfinterp.c
2 +++ b/ldso/ldso/mips/elfinterp.c
3 @@ -239,7 +239,7 @@ int _dl_parse_relocation_information(str
4 case R_MIPS_TLS_DTPMOD64:
5 case R_MIPS_TLS_DTPMOD32:
6 if (tls_tpnt)
7 - *(ElfW(Word) *)reloc_addr = tls_tpnt->l_tls_modid;
8 + *(ElfW(Addr) *)reloc_addr = tls_tpnt->l_tls_modid;
9 #ifdef __SUPPORT_LD_DEBUG__
10 _dl_dprintf(2, "TLS_DTPMOD : %s, %d, %d\n",
11 symname, old_val, *((unsigned int *)reloc_addr));
12 @@ -248,7 +248,7 @@ int _dl_parse_relocation_information(str
13
14 case R_MIPS_TLS_DTPREL64:
15 case R_MIPS_TLS_DTPREL32:
16 - *(ElfW(Word) *)reloc_addr +=
17 + *(ElfW(Addr) *)reloc_addr +=
18 TLS_DTPREL_VALUE (symbol_addr);
19 #ifdef __SUPPORT_LD_DEBUG__
20 _dl_dprintf(2, "TLS_DTPREL : %s, %x, %x\n",