diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-07-10 19:28:45 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-07-10 19:28:45 +0000 |
commit | ded4c0675d1dd3b6268ac94ff2c99ebb280815f9 (patch) | |
tree | bfa8b5fbe38c9d55ce814c4fbdbc02c830a0a8b9 /toolchain/uClibc/patches-0.9.33.2/613-mips64_more_relocation_fixes.patch | |
parent | a44b4e3ffb2a35cc83871c46d8b45327e5abc91c (diff) | |
download | upstream-ded4c0675d1dd3b6268ac94ff2c99ebb280815f9.tar.gz upstream-ded4c0675d1dd3b6268ac94ff2c99ebb280815f9.tar.bz2 upstream-ded4c0675d1dd3b6268ac94ff2c99ebb280815f9.zip |
uClibc: add a whole bunch of mips64 related fixes
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41570
Diffstat (limited to 'toolchain/uClibc/patches-0.9.33.2/613-mips64_more_relocation_fixes.patch')
-rw-r--r-- | toolchain/uClibc/patches-0.9.33.2/613-mips64_more_relocation_fixes.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches-0.9.33.2/613-mips64_more_relocation_fixes.patch b/toolchain/uClibc/patches-0.9.33.2/613-mips64_more_relocation_fixes.patch new file mode 100644 index 0000000000..e2efa23823 --- /dev/null +++ b/toolchain/uClibc/patches-0.9.33.2/613-mips64_more_relocation_fixes.patch @@ -0,0 +1,20 @@ +--- a/ldso/ldso/mips/elfinterp.c ++++ b/ldso/ldso/mips/elfinterp.c +@@ -239,7 +239,7 @@ int _dl_parse_relocation_information(str + case R_MIPS_TLS_DTPMOD64: + case R_MIPS_TLS_DTPMOD32: + if (tls_tpnt) +- *(ElfW(Word) *)reloc_addr = tls_tpnt->l_tls_modid; ++ *(ElfW(Addr) *)reloc_addr = tls_tpnt->l_tls_modid; + #ifdef __SUPPORT_LD_DEBUG__ + _dl_dprintf(2, "TLS_DTPMOD : %s, %d, %d\n", + symname, old_val, *((unsigned int *)reloc_addr)); +@@ -248,7 +248,7 @@ int _dl_parse_relocation_information(str + + case R_MIPS_TLS_DTPREL64: + case R_MIPS_TLS_DTPREL32: +- *(ElfW(Word) *)reloc_addr += ++ *(ElfW(Addr) *)reloc_addr += + TLS_DTPREL_VALUE (symbol_addr); + #ifdef __SUPPORT_LD_DEBUG__ + _dl_dprintf(2, "TLS_DTPREL : %s, %x, %x\n", |