613-mips64_more_relocation_fixes.patch 787 B

1234567891011121314151617181920
  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. case R_MIPS_TLS_DTPREL64:
  14. case R_MIPS_TLS_DTPREL32:
  15. - *(ElfW(Word) *)reloc_addr +=
  16. + *(ElfW(Addr) *)reloc_addr +=
  17. TLS_DTPREL_VALUE (symbol_addr);
  18. #ifdef __SUPPORT_LD_DEBUG__
  19. _dl_dprintf(2, "TLS_DTPREL : %s, %x, %x\n",