Skip to content

rust-objcopy is x86-64 executable on aarch64-unknown-linux-gnu #138943

@Stevenjin8

Description

@Stevenjin8

If I download https://static.rust-lang.org/dist/rust-1.85.1-aarch64-unknown-linux-gnu.tar.xz (link from https://forge.rust-lang.org/infra/other-installation-methods.html#standalone-installers), all the files are ARM executables except for ./rustc/lib/rustlib/aarch64-unknown-linux-gnu/bin/rust-objcopy which is an x86_64 executable.

$ file ./rustc/lib/rustlib/aarch64-unknown-linux-gnu/bin/rust-objcopy
./rustc/lib/rustlib/aarch64-unknown-linux-gnu/bin/rust-objcopy: ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=285124b3756870de665b8585d6c9cb3a72a13eca, for GNU/Linux 3.2.0, not stripped

I expected to see this happen to be a aarch executable

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-AArch64Armv8-A or later processors in AArch64 modeT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions