[PATCH] ldso: fix standalone execution on x86_64 architecture

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Tue Apr 8 13:23:56 UTC 2014


On 7 April 2014 10:04, =?UTF-8?q?C=C3=A9dric=20VINCENT?=
<cedric.vincent at st.com> wrote:
> If the dynamic linker is built with LDSO_STANDALONE_SUPPORT=y, it can
> load then run a dynamically linked program when explicitly invoked
> from the command line.  This is used for test and prelink purposes,
> and also by other tools like PRoot to force the kernel to load the
> right ELF interpreter.
>
> This feature is currently broken on x86_64 since the number of command
> line arguments (ie. argc) passed from the kernel is an "elf_addr_t"
> (64 bit on x86_64), whereas it is read as an "unsigned int" (32 bit on
> x86_64).
>
> Ref: https://github.com/cedric-vincent/PRoot/issues/45
> Signed-off-by: Cédric VINCENT <cedric.vincent at st.com>
>
> v2: use "ElfW(Addr)", as suggested by Bernhard Reutner-Fischer

Applied, thanks!


More information about the uClibc mailing list