aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc/patches-0.9.29/150-fix-ldso-text-realloc-segfault.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-10-19 18:25:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-10-19 18:25:25 +0000
commit161792d02c09a4b5a77ecb27e755377394cfb72c (patch)
tree0015d66bc8667f072bb0637a8ed553f95c0f7fb2 /toolchain/uClibc/patches-0.9.29/150-fix-ldso-text-realloc-segfault.patch
parent4f1f99a63daf57e3106a675b554630e4cc396982 (diff)
downloadupstream-161792d02c09a4b5a77ecb27e755377394cfb72c.tar.gz
upstream-161792d02c09a4b5a77ecb27e755377394cfb72c.tar.bz2
upstream-161792d02c09a4b5a77ecb27e755377394cfb72c.zip
remove support for uclibc 0.9.29
SVN-Revision: 18078
Diffstat (limited to 'toolchain/uClibc/patches-0.9.29/150-fix-ldso-text-realloc-segfault.patch')
-rw-r--r--toolchain/uClibc/patches-0.9.29/150-fix-ldso-text-realloc-segfault.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/toolchain/uClibc/patches-0.9.29/150-fix-ldso-text-realloc-segfault.patch b/toolchain/uClibc/patches-0.9.29/150-fix-ldso-text-realloc-segfault.patch
deleted file mode 100644
index 7006f98b1a..0000000000
--- a/toolchain/uClibc/patches-0.9.29/150-fix-ldso-text-realloc-segfault.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- a/ldso/ldso/ldso.c
-+++ b/ldso/ldso/ldso.c
-@@ -286,15 +286,20 @@ void _dl_get_ready_to_run(struct elf_res
- _dl_debug_early("calling mprotect on the application program\n");
- /* Now cover the application program. */
- if (app_tpnt->dynamic_info[DT_TEXTREL]) {
-- ppnt = (ElfW(Phdr) *) auxvt[AT_PHDR].a_un.a_val;
-- for (i = 0; i < auxvt[AT_PHNUM].a_un.a_val; i++, ppnt++) {
-- if (ppnt->p_type == PT_LOAD && !(ppnt->p_flags & PF_W))
-- _dl_mprotect((void *) (DL_RELOC_ADDR(app_tpnt->loadaddr, ppnt->p_vaddr) & PAGE_ALIGN),
-- ((ppnt->p_vaddr + app_tpnt->loadaddr) & ADDR_ALIGN) +
-- (unsigned long) ppnt->p_filesz,
-+ ElfW(Phdr) *ppnt_inner = (ElfW(Phdr) *) auxvt[AT_PHDR].a_un.a_val;
-+ for (i = 0; i < auxvt[AT_PHNUM].a_un.a_val; i++, ppnt_inner++) {
-+ if (ppnt_inner->p_type == PT_LOAD && !(ppnt_inner->p_flags & PF_W))
-+ _dl_mprotect((void *) (DL_RELOC_ADDR(app_tpnt->loadaddr, ppnt_inner->p_vaddr) & PAGE_ALIGN),
-+ ((ppnt_inner->p_vaddr + app_tpnt->loadaddr) & ADDR_ALIGN) +
-+ (unsigned long) ppnt_inner->p_filesz,
- PROT_READ | PROT_WRITE | PROT_EXEC);
- }
- }
-+#else
-+ if (app_tpnt->dynamic_info[DT_TEXTREL]) {
-+ _dl_dprintf(_dl_debug_file, "Can't modify application's text section; use the GCC option -fPIE for position-independent executables.\n");
-+ _dl_exit(1);
-+}
- #endif
-
- #ifndef ALLOW_ZERO_PLTGOT