Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new tier 3 target: x86_64-unknown-none #89062

Merged
merged 15 commits into from
Oct 31, 2021
Merged

Commits on Oct 13, 2021

  1. Configuration menu
    Copy the full SHA
    8aad5f4 View commit details
    Browse the repository at this point in the history
  2. Fix code formatting.

    mikeleany committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    80654c3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dcbdb6e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5ba3a65 View commit details
    Browse the repository at this point in the history
  5. Rename x86_64-unknown-none-elf to x86_64-unknown-none

    Most Rust freestanding/bare-metal targets use just `-unknown-none` here,
    including aarch64-unknown-none, mipsel-unknown-none, and the BPF
    targets. The *only* target using `-unknown-none-elf` is RISC-V.
    
    The underlying toolchain doesn't care; LLVM accepts both `x86_64-unknown-none`
    and `x86_64-unknown-none-elf`.
    
    In addition, there's a long history of embedded x86 targets with varying
    definitions for the `elf` suffix; on some of those embedded targets,
    `elf` implied the inclusion of a C library based on newlib or similar.
    Using `x86_64-unknown-none` avoids any potential ambiguity there.
    
    (Work on this target sponsored by Profian.)
    joshtriplett authored and mikeleany committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    a23ee64 View commit details
    Browse the repository at this point in the history
  6. x86_64-unknown-none: Fix module comment

    (Work on this target sponsored by Profian.)
    joshtriplett authored and mikeleany committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    b0efa05 View commit details
    Browse the repository at this point in the history
  7. x86_64-unknown-none: Drop the abi field

    (Work on this target sponsored by Profian.)
    joshtriplett authored and mikeleany committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    b0d1e3b View commit details
    Browse the repository at this point in the history
  8. x86_64-unknown-none: Disable more target features

    Based on the list used for x86_64-unknown-none-linuxkernel.
    
    (Work on this target sponsored by Profian.)
    joshtriplett authored and mikeleany committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    6ab6619 View commit details
    Browse the repository at this point in the history
  9. x86_64-unknown-none: Expand TargetOptions to specify more details

    Specify the `cpu` and the `max_atomic_width` (64).
    
    Set `stack_probes` similarly to other targets to work around known
    issues, and copy the corresponding comment from those targets.
    
    Build position-independent code that doesn't require relocations.
    
    (Work on this target sponsored by Profian.)
    joshtriplett authored and mikeleany committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    2037cee View commit details
    Browse the repository at this point in the history
  10. x86_64-unknown-none: Add target documentation

    In particular, document the default properties and assumptions of code
    built for the target.
    
    (Work on this target sponsored by Profian.)
    joshtriplett authored and mikeleany committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    7bb2f7d View commit details
    Browse the repository at this point in the history
  11. Fix build errors.

    mikeleany committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    8b6764c View commit details
    Browse the repository at this point in the history
  12. Documentation fixes.

    Fix broken link to target documentation.
    
    Also fix formatting of developer list.
    mikeleany committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    3b854cf View commit details
    Browse the repository at this point in the history
  13. Unlinkify email address to satisfy linkchecker

    The linkchecker doesn't seem happy with links to email addresses.
    joshtriplett authored and mikeleany committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    9704a83 View commit details
    Browse the repository at this point in the history
  14. x86_64-unknown-none: Use position-independent code by default

    This avoids requiring relocation code, which a bare-metal environment
    may not have or want.
    joshtriplett authored and mikeleany committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    3a18792 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2021

  1. Fix issue where PIC was added to the wrong target.

    Should be for x86_64_unknown_none, but aarch64_unknown_none was inadvertently
    updated instead.
    mikeleany committed Oct 14, 2021
    Configuration menu
    Copy the full SHA
    11d54dc View commit details
    Browse the repository at this point in the history