Skip to content

Read Target Architecture Information in XTask #821

Open
@Alexhuszagh

Description

@Alexhuszagh

Read the target architecture, as if via readelf -A for a compiled binary from the target, without producing any build artifacts on the host, and print the output as JSON so that the target info can be verified. The Tag_ prefixes should also be removed. This could be useful to prevent issues like #426 when adding new targets.

The output for arm-unknown-linux-gnueabihf would therefore look like:

{
    "CPU_name": "6",
    "CPU_arch": "v6",
    "ARM_ISA_use": "Yes",
    "THUMB_ISA_use": "Thumb-1",
    "FP_arch": "VFPv2",
    "ABI_PCS_GOT_use": "GOT-indirect",
    "ABI_PCS_wchar_t": "4",
    "ABI_FP_rounding": "Needed",
    "ABI_FP_denormal": "Needed",
    "ABI_FP_exceptions": "Needed",
    "ABI_FP_number_model": "IEEE 754",
    "ABI_align_needed": "8-byte",
    "ABI_enum_size": "int",
    "ABI_VFP_args": "VFP registers",
    "CPU_unaligned_access": "v6",
    "ABI_FP_16bit_format": "IEEE 754"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementmetaissues/PRs related to the maintenance of the crate.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions