aboutsummaryrefslogtreecommitdiff
path: root/src/tomo.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-16 02:05:50 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-16 02:05:50 -0400
commit7be536c5dfe3621d1d42a13ec0a3ef98ceb7f570 (patch)
treef257d3d4777af1ae2b21dba1be94bf75764a7a5d /src/tomo.c
parenta2d2916e3220ec333122afb9cdef0f5c1eda84f7 (diff)
Bugfix for top-level variables in libraries
Diffstat (limited to 'src/tomo.c')
-rw-r--r--src/tomo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tomo.c b/src/tomo.c
index f4ab6b76..fae2a62e 100644
--- a/src/tomo.c
+++ b/src/tomo.c
@@ -459,7 +459,7 @@ void build_library(Text_t lib_dir_name)
FILE *prog;
for (int64_t i = 0; i < tm_files.length; i++) {
Path_t f = *(Path_t*)(tm_files.data + i*tm_files.stride);
- prog = run_cmd("nm -g '", build_file(f, ".o"), "' | awk '$2~/^[DT]$/{print $3 \" _$",
+ prog = run_cmd("nm -g '", build_file(f, ".o"), "' | awk '$2~/^[DTB]$/{print $3 \" _$",
CORD_to_const_char_star(env->libname), "\" substr($3,2)}' "
">>.build/symbol_renames.txt");
if (!prog) print_err("Could not find symbols!");