mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-09 21:42:44 +00:00
compiler: Hermit targets: Remove pre-link args.
These pre-link args are remains from Hermit's old C version. We don't need them and we have no reason to override the defaults here. See ld [1] for details. [1]: https://sourceware.org/binutils/docs/ld/Options.html Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
This commit is contained in:
parent
8771282d4e
commit
2676637666
@ -1,17 +1,11 @@
|
||||
use crate::spec::{Cc, LinkerFlavor, Lld, PanicStrategy, TargetOptions, TlsModel};
|
||||
|
||||
pub fn opts() -> TargetOptions {
|
||||
let pre_link_args = TargetOptions::link_args(
|
||||
LinkerFlavor::Gnu(Cc::No, Lld::No),
|
||||
&["--build-id", "--hash-style=gnu", "--Bstatic"],
|
||||
);
|
||||
|
||||
TargetOptions {
|
||||
os: "hermit".into(),
|
||||
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
|
||||
linker: Some("rust-lld".into()),
|
||||
has_thread_local: true,
|
||||
pre_link_args,
|
||||
panic_strategy: PanicStrategy::Abort,
|
||||
position_independent_executables: true,
|
||||
static_position_independent_executables: true,
|
||||
|
Loading…
Reference in New Issue
Block a user