1
Fork 0

Use objdump instead of llvm-objdump

This commit is contained in:
Jakub Beránek 2025-01-22 09:58:45 +01:00
parent 7877883339
commit 46ae7382a4
No known key found for this signature in database
GPG key ID: 909CD0D26483516B

View file

@ -79,8 +79,10 @@ fn check_symbols(file: &Path, max_supported: (u32, u32, u32)) {
fn get_glibc_symbols(file: &Path) -> Vec<GlibcSymbol> {
let regex = regex::Regex::new(r#"GLIBC_(\d)+\.(\d+)(:?\.(\d+))?"#).unwrap();
// Uses llvm-objdump, because implementing this using the `object` crate is quite complicated.
llvm_objdump()
// FIXME(kobzol): llvm-objdump currently chokes on the BOLTed librustc_driver.so file.
// Use objdump instead, since it seems to work, and we only run this test in a specific
// CI environment anyway.
cmd("objdump")
.arg("--dynamic-syms")
.arg(file)
.run()