Re: [hackers] Compiling stali

From: Gleb Fotengauer-Malinovskiy <glebfm_AT_altlinux.org>
Date: Fri, 18 Mar 2016 20:48:35 +0300

Hi,

On Fri, Mar 18, 2016 at 08:37:12AM +0100, Anselm R Garbe wrote:
> Problem is some weird execution problem on such hosts that
> intermangles with glibc due to dynamic linkage.

It seems that there is nothing weird.

$ strace bin/hbase/awk/gen/maketab
execve("bin/hbase/awk/gen/maketab", ["bin/hbase/awk/gen/maketab"], [/* 0 vars */]) = -1 ENOENT (No such file or directory)

The only reason execve(2) returns ENOENT is:
> ENOENT The file filename or a script or ELF interpreter does not exist,
> or a shared library needed for file or interpreter cannot be found.

Binaries made with x86_64-linux-musl-gcc have hardcoded musl RTLD:

$ readelf -a bin/hbase/awk/gen/maketab | grep 'program interpreter'
      [Requesting program interpreter: /lib/ld-musl-x86_64.so.1]

... which simply doesn't exist at this step.

-- 
glebfm

Received on Fri Mar 18 2016 - 18:48:35 CET

This archive was generated by hypermail 2.3.0 : Fri Mar 18 2016 - 19:00:14 CET