Fix libafl_libfuzzer's compatibility with LLVM 14 (#2136)
* Always use Rust's nm instead of host system one * Fix formatting * Fix formatting
This commit is contained in:
parent
695efeab42
commit
f6d2eaacb4
@ -93,14 +93,9 @@ fn main() {
|
|||||||
let target_libdir = String::from_utf8(target_libdir.stdout).unwrap();
|
let target_libdir = String::from_utf8(target_libdir.stdout).unwrap();
|
||||||
let target_libdir = Path::new(target_libdir.trim());
|
let target_libdir = Path::new(target_libdir.trim());
|
||||||
|
|
||||||
let rust_objcopy = target_libdir.join("../bin/llvm-objcopy"); // NOTE: depends on llvm-tools
|
|
||||||
let nm = if cfg!(target_os = "macos") {
|
|
||||||
// NOTE: depends on llvm-tools
|
// NOTE: depends on llvm-tools
|
||||||
target_libdir.join("../bin/llvm-nm")
|
let rust_objcopy = target_libdir.join("../bin/llvm-objcopy");
|
||||||
} else {
|
let nm = target_libdir.join("../bin/llvm-nm");
|
||||||
// NOTE: we use system nm on linux because llvm-nm doesn't respect the encoding?
|
|
||||||
PathBuf::from("nm")
|
|
||||||
};
|
|
||||||
|
|
||||||
let redefined_archive_path = custom_lib_dir.join("libFuzzer.a");
|
let redefined_archive_path = custom_lib_dir.join("libFuzzer.a");
|
||||||
let redefined_symbols = custom_lib_dir.join("redefs.txt");
|
let redefined_symbols = custom_lib_dir.join("redefs.txt");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user