Update target-lexicon to 0.10
This commit is contained in:
committed by
Benjamin Bouvier
parent
04d233301c
commit
43f1e05156
@@ -39,7 +39,7 @@ serde = "1.0.8"
|
||||
term = "0.6.1"
|
||||
capstone = { version = "0.6.0", optional = true }
|
||||
wabt = { version = "0.9.1", optional = true }
|
||||
target-lexicon = "0.9"
|
||||
target-lexicon = "0.10"
|
||||
pretty_env_logger = "0.3.0"
|
||||
file-per-thread-logger = "0.1.2"
|
||||
indicatif = "0.13.0"
|
||||
|
||||
@@ -17,7 +17,7 @@ cranelift-codegen-shared = { path = "./shared", version = "0.52.0" }
|
||||
cranelift-entity = { path = "../cranelift-entity", version = "0.52.0" }
|
||||
cranelift-bforest = { path = "../cranelift-bforest", version = "0.52.0" }
|
||||
hashbrown = { version = "0.6", optional = true }
|
||||
target-lexicon = "0.9"
|
||||
target-lexicon = "0.10"
|
||||
log = { version = "0.4.6", default-features = false }
|
||||
serde = { version = "1.0.94", features = ["derive"], optional = true }
|
||||
smallvec = { version = "1.0.0" }
|
||||
|
||||
@@ -11,10 +11,10 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
cranelift-module = { path = "../cranelift-module", version = "0.52.0" }
|
||||
faerie = "0.12.0"
|
||||
faerie = "0.14.0"
|
||||
goblin = "0.1.0"
|
||||
failure = "0.1.2"
|
||||
target-lexicon = "0.9"
|
||||
anyhow = "1.0"
|
||||
target-lexicon = "0.10"
|
||||
|
||||
[dependencies.cranelift-codegen]
|
||||
path = "../cranelift-codegen"
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
use crate::container;
|
||||
use crate::traps::{FaerieTrapManifest, FaerieTrapSink};
|
||||
use anyhow::Error;
|
||||
use cranelift_codegen::binemit::{
|
||||
Addend, CodeOffset, NullStackmapSink, NullTrapSink, Reloc, RelocSink, Stackmap, StackmapSink,
|
||||
};
|
||||
@@ -12,7 +13,6 @@ use cranelift_module::{
|
||||
ModuleNamespace, ModuleResult,
|
||||
};
|
||||
use faerie;
|
||||
use failure::Error;
|
||||
use std::fs::File;
|
||||
use target_lexicon::Triple;
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
cranelift-codegen = { path = "../cranelift-codegen", version = "0.52.0", default-features = false }
|
||||
target-lexicon = "0.9"
|
||||
target-lexicon = "0.10"
|
||||
log = { version = "0.4.6", default-features = false }
|
||||
hashbrown = { version = "0.6", optional = true }
|
||||
smallvec = { version = "1.0.0" }
|
||||
|
||||
@@ -15,7 +15,7 @@ libfuzzer-sys = { git = "https://github.com/rust-fuzz/libfuzzer-sys.git" }
|
||||
cranelift-codegen = { path = "../cranelift-codegen" }
|
||||
cranelift-wasm = { path = "../cranelift-wasm" }
|
||||
cranelift-reader = { path = "../cranelift-reader" }
|
||||
target-lexicon = "0.9"
|
||||
target-lexicon = "0.10"
|
||||
|
||||
# Prevent this from interfering with workspaces
|
||||
[workspace]
|
||||
|
||||
@@ -11,7 +11,7 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
cranelift-codegen = { path = "../cranelift-codegen", version = "0.52.0", default-features = false }
|
||||
target-lexicon = "0.9"
|
||||
target-lexicon = "0.10"
|
||||
|
||||
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies]
|
||||
raw-cpuid = "7.0.3"
|
||||
|
||||
@@ -11,8 +11,8 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
cranelift-module = { path = "../cranelift-module", version = "0.52.0" }
|
||||
object = { version = "0.16", default-features = false, features = ["write"] }
|
||||
target-lexicon = "0.9"
|
||||
object = { version = "0.17", default-features = false, features = ["write"] }
|
||||
target-lexicon = "0.10"
|
||||
|
||||
[dependencies.cranelift-codegen]
|
||||
path = "../cranelift-codegen"
|
||||
|
||||
@@ -11,8 +11,10 @@ use cranelift_module::{
|
||||
Backend, DataContext, DataDescription, DataId, FuncId, Init, Linkage, ModuleNamespace,
|
||||
ModuleResult,
|
||||
};
|
||||
use object::write::{Object, Relocation, SectionId, StandardSection, Symbol, SymbolId};
|
||||
use object::{RelocationEncoding, RelocationKind, SymbolKind, SymbolScope};
|
||||
use object::write::{
|
||||
Object, Relocation, SectionId, StandardSection, Symbol, SymbolId, SymbolSection,
|
||||
};
|
||||
use object::{RelocationEncoding, RelocationKind, SymbolFlags, SymbolKind, SymbolScope};
|
||||
use std::collections::HashMap;
|
||||
use target_lexicon::PointerWidth;
|
||||
|
||||
@@ -133,7 +135,8 @@ impl Backend for ObjectBackend {
|
||||
kind: SymbolKind::Text,
|
||||
scope,
|
||||
weak,
|
||||
section: None,
|
||||
section: SymbolSection::Undefined,
|
||||
flags: SymbolFlags::None,
|
||||
});
|
||||
self.functions[id] = Some(symbol_id);
|
||||
}
|
||||
@@ -161,7 +164,8 @@ impl Backend for ObjectBackend {
|
||||
kind: SymbolKind::Data,
|
||||
scope,
|
||||
weak,
|
||||
section: None,
|
||||
section: SymbolSection::Undefined,
|
||||
flags: SymbolFlags::None,
|
||||
});
|
||||
self.data_objects[id] = Some(symbol_id);
|
||||
}
|
||||
@@ -432,7 +436,8 @@ impl ObjectBackend {
|
||||
kind: SymbolKind::Text,
|
||||
scope: SymbolScope::Unknown,
|
||||
weak: false,
|
||||
section: None,
|
||||
section: SymbolSection::Undefined,
|
||||
flags: SymbolFlags::None,
|
||||
});
|
||||
self.libcalls.insert(*libcall, symbol);
|
||||
symbol
|
||||
|
||||
@@ -11,7 +11,7 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
cranelift-codegen = { path = "../cranelift-codegen", version = "0.52.0" }
|
||||
target-lexicon = "0.9"
|
||||
target-lexicon = "0.10"
|
||||
|
||||
[badges]
|
||||
maintenance = { status = "experimental" }
|
||||
|
||||
@@ -15,7 +15,7 @@ cranelift-native = { path = "../cranelift-native", version = "0.52.0" }
|
||||
region = "2.0.0"
|
||||
libc = { version = "0.2.42" }
|
||||
errno = "0.2.4"
|
||||
target-lexicon = "0.9"
|
||||
target-lexicon = "0.10"
|
||||
memmap = { version = "0.7.0", optional = true }
|
||||
|
||||
[dependencies.cranelift-codegen]
|
||||
|
||||
@@ -22,7 +22,7 @@ thiserror = "1.0.4"
|
||||
|
||||
[dev-dependencies]
|
||||
wabt = "0.9.1"
|
||||
target-lexicon = "0.9"
|
||||
target-lexicon = "0.10"
|
||||
|
||||
[features]
|
||||
default = ["std", "basic-blocks"]
|
||||
|
||||
Reference in New Issue
Block a user