better linker tip (#7721)

better error msg

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
Anton-4 2025-03-31 19:57:30 +02:00 committed by GitHub
parent 9ac64ac140
commit cf18ab75dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1458,7 +1458,7 @@ fn surgery_elf_help(
}
} else {
internal_error!(
"Undefined Symbol in relocation, {:+x?}: {:+x?} try compiling with --linker legacy",
"Undefined Symbol in relocation, {:+x?}: {:+x?}\n\nTIP: try compiling with `--linker legacy`",
rel,
app_obj.symbol_by_index(index)
);