Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion wild/tests/external_tests/mold_skip_tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ tests = [
"empty-input.sh", # Different message formats
"gc-sections.sh", # Passes when `--no-gc-sections` is passed.
"hash-style.sh", # Wild doesn't support `--hash-style=none`.
"hidden-undef.sh", # Wild correctly errors, but message format differs from mold's.
"help.sh",
"invalid-version-script.sh", # Different message formats
"linker-script-error.sh", # Different message formats
Expand Down Expand Up @@ -229,7 +230,6 @@ tests = [
"discard.sh",
"dynamic-linker.sh",
"glibc-2.22-bug.sh",
"hidden-undef.sh",
"initfirst.sh",
"mergeable-strings.sh",
"missing-error.sh",
Expand Down
1 change: 1 addition & 0 deletions wild/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3543,6 +3543,7 @@ fn integration_test(
"symbol-priority.c",
"symbol-binding.c",
"hidden-ref.c",
"hidden-undef.c",
"trivial_asm.s",
"non-alloc.s",
"gnu-unique.c",
Expand Down
1 change: 1 addition & 0 deletions wild/tests/sources/hidden-undef-lib.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
int foo(void) { return 1; }
17 changes: 17 additions & 0 deletions wild/tests/sources/hidden-undef.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Tests that linking fails when a hidden symbol is only available from a DSO.

//#Object:runtime.c
//#Mode:dynamic
//#RunEnabled:false
//#Shared:hidden-undef-lib.c
//#ExpectError:foo

#include "runtime.h"

// foo is declared hidden — must not be resolved from the DSO above.
__attribute__((visibility("hidden"))) int foo(void);

void _start(void) {
runtime_init();
exit_syscall(foo());
}
Loading