Created attachment 2875 [details] Fix LDSO_STANDALONE_SUPPORT I've added the LDSO_STANDALONE_SUPPORT patch posted on the uclibc-mailing-list in sept-2010. The patch should add the standalone-run feature to the ld-uClibc.so program (that is: specifiy a binary to run on the command line). This does not work, because of a minor flaw in ldso/ldso/dl-elf.c. This is the scenario: exec: ./lib/ld-uClibc.so.0 ./bin/busybox call to _dl_load_elf_shared_library() minvma value extracted from segment->p_vaddr (== 0x8000) minvma &= ~0xffff (== set to zero) mmap(zero, ..., MAP_FIXED) (== invalid from kernel) This is at least true for Linux sgt 2.6.32.9 #1 Thu Nov 25 23:27:59 KST 2010 armv7l GNU/Linux (that is a Samsung-Galaxy-Tab mobile phone running Debian-Squeeze-Armel). Attached Patch solves this -> needs sensible review by some ld.so wizard.
Thanks, we will review it asap.
Hi, the patch looks good. I'm wondering which is the value of the pagesize on you target. Could you post a proper patch (git formatted, comment, signed-off) ? I'll ack it and commit. thanks
Fixed in master.