aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-02-12 14:57:56 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-02-12 14:57:56 -0500
commit8e0f1fa227be762cab19234abc106ba4c572077d (patch)
treecabc17517793421ba2b9af7eccdf6e45eaea248c
parent4b8a72de3fe50a5768e405514f6c5db432759886 (diff)
Fix symbol renaming issue
-rw-r--r--tomo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tomo.c b/tomo.c
index cd92c312..5cc2011b 100644
--- a/tomo.c
+++ b/tomo.c
@@ -294,7 +294,7 @@ void build_library(Text_t lib_dir_name)
FILE *prog;
for (size_t i = 0; i < tm_files.gl_pathc; i++) {
const char *filename = tm_files.gl_pathv[i];
- prog = run_cmd("nm -Ug -fjust-symbols '%s.o' | sed 's/.*/\\0 $%s\\0/' >>symbol_renames.txt",
+ prog = run_cmd("nm -Ug -fjust-symbols '%s.o' | sed 's/_\\$\\(.*\\)/\\0 _$%s$\\1/' >>symbol_renames.txt",
filename, CORD_to_const_char_star(env->libname));
int status = pclose(prog);
if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)