diff --git a/tests/run-make/symbols-all-mangled/rmake.rs b/tests/run-make/symbols-all-mangled/rmake.rs index a4c656722a7..244f68e511b 100644 --- a/tests/run-make/symbols-all-mangled/rmake.rs +++ b/tests/run-make/symbols-all-mangled/rmake.rs @@ -59,6 +59,13 @@ fn symbols_check(path: &str) { continue; // Correctly mangled } + if !name.contains("rust") { + // Assume that this symbol doesn't originate from rustc. This may + // be wrong, but even if so symbol_check_archive will likely + // catch it. + continue; + } + if name == "__rust_no_alloc_shim_is_unstable" { continue; // FIXME remove exception once we mangle this symbol } @@ -67,14 +74,6 @@ fn symbols_check(path: &str) { continue; // Unfortunately LLVM doesn't allow us to mangle this symbol } - if ["_start", "__dso_handle", "_init", "_fini", "__TMC_END__"].contains(&name) { - continue; // Part of the libc crt object - } - - if name == "main" { - continue; // The main symbol has to be unmangled for the crt object to find it - } - panic!("Unmangled symbol found: {name}"); } }