Revert "Makerules: respect HARDWIRED_ABSPATH in interp.c"
Revert "Makerules: respect HARDWIRED_ABSPATH in interp.c"

This reverts commit 5dffed7dd1a413f3965af702fa7ecd79809d1988.

This breaks ldd when HARDWIRED_ABSPATH=n.

[1] http://lists.uclibc.org/pipermail/uclibc/2011-March/045048.html

From: Timo Teräs <timo.teras@iki.fi>
Your commit 5dffed7dd1a413f3965af702fa7ecd79809d1988 removed absolute
path from the interpreter binary name embedded in ELF files.

This makes ldd seg.fault as it seems to assume absolute paths.

gdb sayeth:

(gdb) where
 #0  0x00111ae3 in find_elf_interpreter (ehdr=0xb7a74000) at
../utils/ldd.c:556
 #1  0x00111f2a in find_dependencies (filename=0x114910
"/home/fabled/aports/main/libc0.9.32/src/uClibc-0.9.32-rc3/lib/librt.so.0.9.32")
at ../utils/ldd.c:676
 #2  0x0011228e in main (argc=1, argv=0xbffff6e8) at ../utils/ldd.c:777
(gdb) p tmp
tmp = NULL
(gdb) p interp_dir
$1 = 0x116660 "ld-uClibc.so.0.9.32"

[2] http://lists.uclibc.org/pipermail/uclibc/2011-March/045054.html

From: Mike Frysinger <8f3f75c74bd5184edcfa6534cab3c13a00a2f794@gentoo.org>
On Wed, Mar 23, 2011 at 7:18 AM, Peter Mazinger wrote:
>> Your commit 5dffed7dd1a413f3965af702fa7ecd79809d1988 removed absolute
>> path from the interpreter binary name embedded in ELF files.
>
> do you consider my patch wrong?

yes.  the absolute path to the ldso must be encoded in binaries.  the
point of HARDWIRED_ABSPATH is purely for sysroot/non-sysroot
toolchain, and the interp path isnt involved with that.

are you sure this even works at runtime ?  i'm pretty sure the kernel
doesnt do any path lookups on the interp string.

Signed-off-by: Sedat Dilek <4946ef7dd8f3b21b6f8e2f51ee1d2e36059c35a6@gmail.com>
Signed-off-by: Mike Frysinger <8f3f75c74bd5184edcfa6534cab3c13a00a2f794@gentoo.org>

kraj/uClibc,kraj/uclibc-ng,ffainelli/uClibc,brgl/uclibc-ng,ffainelli/uClibc,hwoarang/uClibc,groundwater/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,wbx-github/uclibc-ng,brgl/uclibc-ng,ffainelli/uClibc,ddcc/klee-uclibc-0.9.33.2,foss-xtensa/uClibc,wbx-github/uclibc-ng,brgl/uclibc-ng,groundwater/uClibc,mephi42/uClibc,skristiansson/uClibc-or1k,hwoarang/uClibc,mephi42/uClibc,majek/uclibc-vx32,skristiansson/uClibc-or1k,hjl-tools/uClibc,ddcc/klee-uclibc-0.9.33.2,foss-xtensa/uClibc,kraj/uclibc-ng,kraj/uclibc-ng,waweber/uclibc-clang,kraj/uclibc-ng,majek/uclibc-vx32,foss-for-synopsys-dwc-arc-processors/uClibc,czankel/xtensa-uclibc,mephi42/uClibc,wbx-github/uclibc-ng,czankel/xtensa-uclibc,wbx-github/uclibc-ng,ffainelli/uClibc,skristiansson/uClibc-or1k,kraj/uClibc,ffainelli/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,hjl-tools/uClibc,foss-xtensa/uClibc,waweber/uclibc-clang,groundwater/uClibc,czankel/xtensa-uclibc,hjl-tools/uClibc,skristiansson/uClibc-or1k,hwoarang/uClibc,hjl-tools/uClibc,brgl/uclibc-ng,foss-xtensa/uClibc,ddcc/klee-uclibc-0.9.33.2,kraj/uClibc,hjl-tools/uClibc,mephi42/uClibc,kraj/uClibc,ddcc/klee-uclibc-0.9.33.2,hwoarang/uClibc,groundwater/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,majek/uclibc-vx32,waweber/uclibc-clang,czankel/xtensa-uclibc,waweber/uclibc-clang,majek/uclibc-vx32,groundwater/uClibc