Press â or â to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
x86_64-unknown-linux-none
Tier: 3
Freestanding x86-64 linux binary with no dependency on libc.
Target maintainers RequirementsThis target is cross compiled and can be built from any host.
This target has no support for host tools, std, or alloc.
One of the primary motivations of the target is to write a dynamic linker and libc in Rust. For that, the target defaults to position-independent code and position-independent executables (PIE) by default. PIE binaries need relocation at runtime. This is usually done by the dynamic linker or libc. You can use -Crelocation-model=static
to create a position-dependent binary that does not need relocation at runtime.
The target can be built by enabling it for a rustc
build:
[build]
build-stage = 1
target = ["x86_64-unknown-linux-none"]
Building Rust programs
Rust does not yet ship pre-compiled artifacts for this target. To compile for this target, you will either need to build Rust with the target enabled (see "Building the target" above), or build your own copy of core
by using build-std
or similar.
Created binaries will run on linux without any external requirements
Support for C code is currently untested
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4