Skip to content

Wrong loader path for HOST and TARGET as same architecture #56

@otavio

Description

@otavio

When building for an x86-64 using an x86-64 host, our binary ends with:

        linux-vdso.so.1 (0x00007ffd4007c000)
        libssl.so.1.1 => /usr/lib/libssl.so.1.1 (0x00007f0146de9000)
        libcrypto.so.1.1 => /usr/lib/libcrypto.so.1.1 (0x00007f0146b2c000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f0146b27000)
        librt.so.1 => /lib/librt.so.1 (0x00007f0146b1c000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f0146afc000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f0146ae1000)
        libc.so.6 => /lib/libc.so.6 (0x00007f0146929000)
        libm.so.6 => /lib/libm.so.6 (0x00007f01467e6000)
        .../tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 => /lib/ld-linux-x86-64.so.2 (0x00007f0147338000)

So when running the binary it fails to find the loader and dies badly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions