uclibc-ng: bump version from 1.0.6 to 1.0.8
[openwrt/openwrt.git] / toolchain / uClibc / patches-0.9.33.2 / 480-powerpc_rel24_support.patch
1 --- a/ldso/ldso/powerpc/elfinterp.c
2 +++ b/ldso/ldso/powerpc/elfinterp.c
3 @@ -297,22 +297,17 @@ _dl_do_reloc (struct elf_resolve *tpnt,s
4 break;
5 #endif
6 case R_PPC_REL24:
7 -#if 0
8 {
9 Elf32_Sword delta = finaladdr - (Elf32_Word)reloc_addr;
10 if (unlikely(delta<<6>>6 != delta)) {
11 _dl_dprintf(2, "%s: symbol '%s' R_PPC_REL24 is out of range.\n\t"
12 "Compile shared libraries with -fPIC!\n",
13 _dl_progname, symname);
14 - _dl_exit(1);
15 + return -1;
16 }
17 *reloc_addr = (*reloc_addr & 0xfc000003) | (delta & 0x3fffffc);
18 break;
19 }
20 -#else
21 - _dl_dprintf(2,"R_PPC_REL24: Compile shared libraries with -fPIC!\n");
22 - return -1;
23 -#endif
24 case R_PPC_NONE:
25 goto out_nocode; /* No code code modified */
26 default: