aboutsummaryrefslogtreecommitdiff
path: root/tomo.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-16 19:59:20 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-16 19:59:20 -0400
commit2d5c8c3124dfe82c983bc91b62ed4b69be3fc647 (patch)
tree36d1a90a5c87b1a97ff3c61b94de113174f17eac /tomo.c
parent9703ca45f0472dfed440f373c29206b0b2c8e4db (diff)
Only rename public symbols
Diffstat (limited to 'tomo.c')
-rw-r--r--tomo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tomo.c b/tomo.c
index a765c020..246c57c6 100644
--- a/tomo.c
+++ b/tomo.c
@@ -208,7 +208,7 @@ void build_library(const char *lib_base_name)
FILE *prog;
for (size_t i = 0; i < tm_files.gl_pathc; i++) {
const char *filename = tm_files.gl_pathv[i];
- prog = CORD_RUN("nm -U -fjust-symbols ", filename, ".o | sed 's/.*/\\0 ", libname, "$\\0/' >>symbol_renames.txt");
+ prog = CORD_RUN("nm -Ug -fjust-symbols ", filename, ".o | sed 's/.*/\\0 ", libname, "$\\0/' >>symbol_renames.txt");
int status = pclose(prog);
if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)
errx(WEXITSTATUS(status), "Failed to create symbol rename table with `nm` and `sed`");